joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048b0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x4048c0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40498f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push 0x4a3d38
push edx
call fcn.004901fd
add esp, 0xc
test eax, eax
je 0x404986
lea eax, [esp]
push 0x4a3d50
push eax
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x404986
lea ecx, [esp]
push 0x4a3d68
push ecx
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x404986
lea edx, [esp]
push 0x4a3d7c
push edx
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x404986
lea eax, [esp]
push 0x4a3d8c
push eax
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x404986
lea ecx, [esp]
push 0x4a3da8
push ecx
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x40497c
lea edx, [esp]
push 0x4a3dcc
push edx
call fcn.0048fff9
add esp, 8
test eax, eax
jne 0x404995
test esi, esi
je 0x404986
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret

Function at 0x4049b0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x404a3a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ca564]
push eax
call ebx
test eax, eax
jne 0x404a2f
mov eax, dword [0x4c6948]
cmp eax, 0xffffffff
je 0x4049ff
test eax, eax
je 0x404a46
call esi
mov ecx, dword [0x4c6948]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404a46
push 1
push 0x8000012f
mov dword [0x4c694c], 0
call fcn.004013d0
mov edx, dword [0x4ca564]
add esp, 8
push edx
mov dword [0x4c694c], 1
call ebx
test eax, eax
je 0x4049e0
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4ca694], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4090d4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ca698], 0
je 0x4090e3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x4092f0
test al, al
jne 0x409126
cmp byte [ebp + 0xc], al
jne 0x409126
push 0x4c9470
push 0
push 0
push 0x4093e0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cad94], eax
test eax, eax
je 0x4091b7
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4c9470]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40915c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x409136
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x4091c3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40922a
cmp dword [esp + 0x2c], 0
je 0x4091d2
mov byte [esp + 0x1f], 1
call fcn.00409700
test al, al
jne 0x4091d2
cmp byte [ebp + 0xc], al
jne 0x4092be
mov byte [ebp + 8], al
jmp 0x409171
call fcn.00409720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40920e
call fcn.00409700
test al, al
jne 0x40922a
cmp byte [ebp + 0xc], 0
jne 0x4092b7
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ca694], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
je 0x409262
test byte [esp + 0x1e], 1
jne 0x40927b
push 0x4a5a5c
push 0
push 0
call esi
mov dword [0x4cad8c], eax
jmp 0x40927b
mov ecx, dword [0x4cad94]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x409242
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4091d2
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409171
mov edx, dword [0x4cad94]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4cad94], 0
call fcn.00409720
jmp 0x4091e2
test byte [esp + 0x1e], 1
je 0x40927b
mov eax, dword [0x4cad8c]
push eax
call edi
mov dword [0x4cad8c], 0
cmp dword [0x4ca698], 0
je 0x40929d
test byte [esp + 0x1e], 2
jne 0x4092b7
push 0x4a5a70
push 0
push 0
call esi
mov dword [0x4cad90], eax
jmp 0x4092b7
test byte [esp + 0x1e], 2
je 0x4092b7
mov ecx, dword [0x4cad90]
push ecx
call edi
mov dword [0x4cad90], 0
cmp byte [esp + 0x1f], 0
je 0x4092f0
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4c694c], 0
push 0
push 0
push 0x10000
push 0x4a5a88
call fcn.0047b3a0
add esp, 0x18
mov dword [0x4c694c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ae80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x100c
call fcn.0049b300
cmp byte [0x4cc200], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
push edi
jne 0x40aff4
cmp dword [0x4cadb0], 0
jne 0x40aeb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cadb0], eax
mov ebx, 1
add dword [0x4cc204], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4cc204]
mov esi, dword [0x4c6960]
mov ecx, eax
sub ecx, dword [0x4cadb0]
mov dword [0x4cadb4], eax
cmp edx, dword [0x4c695c]
jbe 0x40aeec
cmp ecx, esi
jb 0x40af50
xor edx, edx
cmp ecx, esi
jbe 0x40af09
mov dword [0x4cc204], 0
mov dword [0x4cadb0], eax
test edx, edx
jne 0x40aff4
mov esi, dword [esp + 0x1020]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4cbfce], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push 0x4a3914
push ecx
xor eax, eax
xor edx, edx
call fcn.0046e880
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40afc2
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
push ecx
push edx
push 0x4a63d8
mov esi, 0x800
lea edi, [esp + 0x24]
call fcn.00476740
add esp, 0xc
call fcn.00409d20
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4cc200], bl
mov dword [0x4c694c], 0
call fcn.0047b3a0
add esp, 0x18
cmp eax, 7
jne 0x40afa9
push 0
push 4
push 0x4cb508
call fcn.00417de0
mov eax, dword [0x4cadb4]
mov dword [0x4c694c], ebx
mov byte [0x4cc200], 0
mov edx, ebx
jmp 0x40aef2
cmp byte [ebp + 0x1b], 0
je 0x40aff4
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40aff4
movzx edx, word [esi + 4]
mov eax, dword [0x4ca564]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 8
Function at 0x413b70
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x413bae
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x413bae
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413bae
push 0
push eax
call edi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop edi
pop esi
add esp, 0x34
ret

Function at 0x413bc0
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x284
push ebx
push ebp
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov ebx, eax
test ebx, ebx
je 0x413c6f
xor eax, eax
jmp 0x413bf0
movzx ecx, word [eax + 0x4a6fc0]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x413bf0
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x413c5d
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413c5d
push esi
push edi
lea edi, [esp + 0x10]
lea esi, [esp + 0x8c]
mov ecx, 0x4a7028
call fcn.00477cb0
pop edi
pop esi
test eax, eax
je 0x413c5d
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp dword [esp + 0x290], ebx
je 0x413c6f
push 0
push ebx
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, ebp
pop ebp
pop ebx
add esp, 0x284
ret

Function at 0x413e70
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push ebx
push edi
push 0
mov bl, al
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x413f5f
push ebp
push esi
push 0x100
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00498b40
mov ebp, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push edi
xor esi, esi
push esi
push 2
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push 0x6e
call ebp
cmp eax, 2
jne 0x413eca
movzx esi, word [esp + 0x14]
push edi
push 0
push 2
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
movzx eax, bl
push 0
push eax
call ebp
mov dword [esp + 0x1c], eax
test eax, eax
jns 0x413efe
push edi
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0x6e
call ebp
test si, si
je 0x413f3d
push 1
lea eax, [esp + 0x17]
push edi
push eax
call fcn.00414130
mov bl, al
add esp, 0xc
test bl, bl
je 0x413f3d
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x24]
call fcn.004136e0
push edi
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
movzx eax, bl
push 0
push eax
call ebp
cmp dword [esp + 0x1c], 0
pop esi
pop ebp
je 0x413f54
movzx eax, word [esp + 0xc]
pop edi
pop ebx
add esp, 0x114
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x114
ret
push edi
movzx ecx, bl
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop edi
pop ebx
add esp, 0x114
ret
Function at 0x4184b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0x4a86e0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
call edi
mov esi, eax
test esi, esi
jne 0x4184f1
push 0xa
push str._AHK_WITH_ICON_
push eax
call edi
mov esi, eax
test esi, esi
je 0x418555
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x418555
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418555
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x418555
mov ecx, dword [esp + 0x20]
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0x10]
call fcn.004741f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xac8]
inc dword [0x4cb484]
mov dword [0x4c94ac], ecx
mov eax, 3
pop edi
pop esi
add esp, 0x10
ret 0xc
fldz
mov edx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push 0
push edx
push 0
push str.Could_not_extract_script_from_EXE.
call fcn.0047b3a0
add esp, 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
Function at 0x41e990
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c6968]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.00409ab0
test eax, eax
je 0x41ea19
cmp eax, ebp
jbe 0x41ea33
sub eax, 2
jmp 0x41ea33
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ea20
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41ea54
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41ea4d
cmp eax, 9
jne 0x41ea54
sub edi, 2
cmp edi, ebp
ja 0x41ea40
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41ea85
cmp byte [esp + 0x4c], 0
je 0x41ea79
mov ecx, dword [esp + 0x40]
push ebp
push 0x4a8bd0
call fcn.00430950
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00492bd4
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x430ee0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.0049b300
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x430fe4
test ebx, ebx
jne 0x430f10
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x634]
test ebx, ebx
je 0x430f1a
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x430f27
mov ecx, dword [eax + 0x270]
movzx eax, word [eax + 0x274]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ecx*4 + 0x4c94ac]
push edx
movzx eax, ax
push eax
push ecx
push 0x4ab8b8
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00476740
mov esi, dword [ebp + 0x14]
add esp, 0x10
cmp word [esi], 0
lea edi, [esp + eax*2 + 0x10]
je 0x430f7c
lea eax, [esp + 0x10]
mov edx, edi
push esi
sub edx, eax
sar edx, 1
mov esi, 0x2000
push 0x4ab4d0
sub esi, edx
call fcn.00476740
mov esi, dword [ebp + 0x14]
add esp, 8
mov edi, dword [ebp + 0xc]
cmp edi, 3
jne 0x430fa2
mov edx, dword [ebp + 8]
push 0x4a8668
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00430510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 2
jne 0x430fe4
test ebx, ebx
jne 0x430fc3
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x634]
test ebx, ebx
je 0x430fda
mov ecx, dword [ebp + 0x10]
push esi
push 1
push ecx
mov ecx, ebx
call fcn.004306a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push esi
push edx
call fcn.00430950
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431420
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x431447
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x431451
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4cbfa8]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x431508
cmp byte [esi + 0x11], 0
je 0x4314a9
mov ecx, dword [esi]
push ecx
call fcn.00471830
add esp, 4
sub eax, 0
je 0x43148d
dec eax
je 0x431486
mov eax, 0x4aac8c
jmp 0x431492
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x431492
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4abbb8
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00476780
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x431466
cmp word [esp + 0x20], si
je 0x431508
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4314c0
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x4314f6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a7f7c
push edi
call fcn.00492bd4
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x431508
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x431508
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c90a0]
cmp byte [eax + 0xf8], 0
je 0x431527
cmp byte [0x4cbfe9], 0
mov dword [esp + 0x14], 1
je 0x43152f
mov dword [esp + 0x14], 0
mov eax, dword [0x4ca6d8]
mov dword [esp + 0x18], 0x4abbc0
cmp eax, 1
jg 0x43164d
mov dword [esp + 0x18], 0x4a3920
xor ebp, ebp
cmp dword [0x4ca698], 0
mov edi, 0x4a5b68
je 0x431562
mov edi, 0x4a5b60
cmp dword [0x4ca694], 0
mov esi, 0x4a5b68
je 0x431575
mov esi, 0x4a5b60
push 1
call fcn.004135b0
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.004139a0
mov ecx, dword [0x4ca6d4]
mov edx, dword [0x4ca6d8]
push eax
mov eax, dword [0x4ca6dc]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4cbfb0]
push ecx
mov ecx, dword [0x4cbfb4]
push ebp
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
mov edi, dword [esp + 0x414]
push esi
lea edx, [esp + 0x14c]
push edx
push 0x4abc40
mov esi, 0xfffe
call fcn.00476740
lea esi, [edi + eax*2]
mov eax, esi
mov ebx, edi
sub eax, ebx
sar eax, 1
mov ecx, 0xfffe
add esp, 0x34
sub ecx, eax
push ecx
push esi
call fcn.004097a0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431602
sub eax, edx
sar eax, 1
cmp dword [0x4cad7c], 0
lea edi, [esi + eax*2]
mov eax, 0x4ab2d8
jne 0x431627
mov eax, 0x4abda8
mov edx, edi
sub edx, ebx
sar edx, 1
mov esi, 0xfffe
push eax
sub esi, edx
call fcn.00476740
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x43154f
Function at 0x4387b0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.00432820
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4387e5
mov ecx, dword [ebp + 8]
push esi
push eax
push 0x4a6ae4
call fcn.004306a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x4387ef
jmp dword [eax*4 + 0x4389e0]
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x438806
call fcn.00456440
jmp 0x43880c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4cad6c]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.00456440
mov ebx, eax
test ebx, ebx
je 0x438880
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438880
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4cad6c]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4cad6c]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3930
push eax
call fcn.004797c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx ecx, word [ebx]
push ecx
call fcn.0049207d
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4388bd.67
movzx edx, byte [eax + 0x438a10]
jmp dword [edx*4 + 0x4389f4]
mov esi, 0x40
jmp 0x4388ec
mov esi, 0x4000
jmp 0x4388ec
mov esi, 0x20
jmp 0x4388ec
mov esi, 0x8000
jmp 0x4388ec
mov esi, 0x80
jmp 0x4388ec
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x4388fc
call fcn.00456440
jmp 0x438902
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x438880
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x438880
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x438854
mov ecx, dword [0x4cad6c]
push 1
push 0
push 0xffffffffffffffff
push 0x4a3930
push ecx
call fcn.004797c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [ebx], 0
je 0x43897c
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.00415070
fmul qword [0x4c0e20]
call fcn.0049e710
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x438983
mov byte [esp + 0xf], 1
xor edi, edi
mov ebx, dword [ebp + 0xc]
call fcn.00456440
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x43899e
test esi, esi
jne 0x438863
jmp 0x4389a6
test esi, esi
je 0x438880
cmp byte [esp + 0xf], 0
jne 0x4389c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x438863
push 1
push 0x64
call fcn.004013d0
add esp, 8
jmp 0x438983
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43c520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4cbfe0]
push ebx
push eax
push 0x4ad388
mov esi, 0x800
call fcn.00476740
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43c577
lea edx, [edi + 2]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c577
mov edx, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
mov ecx, dword [0x4cbfe0]
pop edi
pop esi
mov dword [edx], ecx
mov al, 1
pop ebp
ret
push ebp
call fcn.0043cb70
add esp, 4
test eax, eax
je 0x43c5c7
push ebx
push ebp
push 0x4ad388
mov esi, 0x800
call fcn.00476740
mov esi, eax
lea edx, [esi + 1]
add esp, 0xc
cmp edx, 0x800
jg 0x43c5c7
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c5c7
mov eax, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
pop edi
mov dword [eax], ebp
pop esi
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

Function at 0x43c5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2214
call fcn.0049b300
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x1224]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x4a3920
call fcn.0043c520
add esp, 8
test al, al
jne 0x43c60e
pop edi
pop esi
pop ebp
add esp, 0x2214
ret
cmp byte [esp + 0x2224], 0
je 0x43c67e
mov edx, dword [esp + 0x14]
push 0x4ad398
push edx
push 0x4ad388
mov esi, 0x800
lea edi, [esp + 0x22c]
call fcn.00476740
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43c67e
lea ecx, [esp + 0x222]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c67e
mov edx, 0x22
xor eax, eax
lea ecx, [esp + 0x1220]
mov word [esp + esi*2 + 0x220], dx
mov word [esp + esi*2 + 0x222], ax
mov ebp, edi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0x4cb508
mov edx, ebp
call fcn.00431660
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x2214
ret
Function at 0x43cb70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push 0x4ad6b8
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x43cbb0
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43cc15
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x4ad6a0
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43cc43
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43cc43
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43cc23
test eax, eax
je 0x43cc15
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43cc0d
sub ecx, 2
dec eax
jne 0x43cc01
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43cc4c
test edi, edi
jne 0x43cc4c
mov edi, 0x100
jmp 0x43cb88
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43cc3a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43cc15
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43cc11
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43cc15
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43cc6f
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x43cc60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret