joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x3c
push esi
mov esi, eax
movzx eax, word [esp + 0x44]
lea ecx, [esp + 0x20]
test eax, 0xffffff80
je 0x40ef74
mov ecx, 0x30
mov word [esp + 0x20], cx
lea ecx, [esp + 0x22]
push 0xa
push ecx
push eax
call fcn.0048d8e5
add esp, 0xc
test esi, esi
jle 0x40f04c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, esi
push edi
mov esi, 1
jmp 0x40efa0
cmp dword [0x4c9f28], 0
jne 0x40eff8
call ebx
sub eax, dword [0x4cb134]
mov edx, dword [0x4c48ec]
cmp eax, dword [edx + 0xd8]
jbe 0x40eff8
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40eff1
push esi
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], esi
call ebx
mov dword [0x4cb134], eax
cmp dword [0x4c9f28], 2
je 0x40f013
mov ecx, dword [esp + 0x50]
push ecx
or eax, 0xffffffff
call fcn.0040d550
add esp, 4
jmp 0x40f01c
lea edi, [esp + 0x2c]
call fcn.0040f060
cmp dword [0x4c9f28], 2
jne 0x40f030
mov edx, dword [0x4c48ec]
mov eax, dword [edx + 0x60]
jmp 0x40f038
mov eax, dword [0x4c48ec]
mov eax, dword [eax + 0x5c]
push eax
call fcn.00410ef0
add esp, 4
sub ebp, esi
jne 0x40efa0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x3c
ret

Function at 0x40f060
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4c9f28], 0
push esi
je 0x40f075
mov al, byte [0x4c73e7]
jmp 0x40f16a
cmp dword [0x4c85f8], 0
je 0x40f088
mov al, byte [0x4c84c5]
jmp 0x40f16a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ebx
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f0a4
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f0b8
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f0cc
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f0e0
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f0f4
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f108
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f119
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f12a
or bl, 0x80
cmp dword [0x4c85f8], 0
je 0x40f167
mov al, bl
not al
and al, byte [0x4c84c5]
je 0x40f167
mov cl, byte [0x4c84c7]
not al
and byte [0x4c84c5], al
and byte [0x4c84c6], al
and cl, al
mov al, cl
mov byte [0x4c84c7], cl
mov ecx, 0x4c84e8
call fcn.00411af0
mov al, bl
pop ebx
mov byte [esp + 4], al
mov ecx, dword [esp + 4]
push 1
and al, 0xc4
push 0
or al, 4
push 0
movzx edx, al
push ecx
push edx
mov esi, 0xffc3d44f
call fcn.004112f0
movzx eax, word [edi]
add esp, 0x14
mov esi, edi
cmp eax, 0x30
jb 0x40f1c7
cmp ax, 0x39
ja 0x40f1c7
mov al, byte [esi]
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx ecx, al
push 0
push ecx
push 2
call fcn.0040f460
movzx eax, word [esi + 2]
add esi, 2
add esp, 0x18
cmp eax, 0x30
jae 0x40f198
push 0xffc3d44d
push 0
push 0
jmp 0x4e3e10
Function at 0x4121a0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x114
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
mov al, byte [esp + 0x11c]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x412296
push ebx
push ebp
push 0x100
lea edx, [esp + 0x24]
push 0
push edx
call fcn.00496a40
mov ebp, dword [sym.imp.USER32.dll_ToUnicodeEx]
add esp, 0xc
push edi
xor ebx, ebx
push ebx
push 2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push 0x6e
call ebp
cmp eax, 2
jne 0x4121ff
movzx ebx, word [esp + 0x10]
movzx ecx, byte [esp + 0x124]
push edi
push 0
push 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call ebp
mov dword [esp + 0x18], eax
test eax, eax
jns 0x412238
push edi
push 0
push 2
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0x6e
call ebp
test bx, bx
je 0x412276
push esi
mov ecx, edi
lea esi, [esp + 0x13]
mov eax, ebx
call fcn.00412410
mov bl, al
pop esi
test bl, bl
je 0x412276
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.00411af0
push edi
push 0
push 2
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
movzx eax, bl
push 0
push eax
call ebp
cmp dword [esp + 0x18], 0
pop ebp
pop ebx
je 0x41228c
movzx eax, word [esp + 8]
pop edi
add esp, 0x114
ret
xor eax, eax
pop edi
add esp, 0x114
ret
push edi
movzx ecx, al
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
pop edi
add esp, 0x114
ret

Function at 0x412410
Capabilities:
Log keystrokes via polling

Disassembly:
cmp ax, 0xa
jne 0x412419
mov al, 0xd
ret
push ecx
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov edx, eax
shr edx, 8
cmp dl, 0xff
jne 0x412435
cmp al, 0xff
jne 0x412435
xor al, al
ret
test dl, 0x38
jne 0x412432
test esi, esi
je 0x412480
mov cl, dl
and cl, 6
jmp loc.004e98b0
ret

Function at 0x412a30
Capabilities:
Log keystrokes

Disassembly:
movzx eax, cx
cmp eax, 0x11c
jg 0x412a88
je 0x412a85
sub eax, 0x1d
cmp eax, 0x36
ja case.0x412a99.286
movzx eax, byte [eax + 0x412b08]
jmp dword [eax*4 + 0x412ac0]
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, 0xc
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, 0x23
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x412a99.286
movzx edx, byte [eax + 0x412b5c]
jmp dword [edx*4 + 0x412b40]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
movzx eax, cl
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
ret

Function at 0x412ba0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4c7410], eax
mov edx, 1
mov eax, 0x4c7410
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4c7dcc
jl 0x412bb0
mov dword [0x4c43f4], 1
mov dword [0x4c9f2c], 1
pop edi
ret
Function at 0x412bf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c9f2c], 0
push esi
mov esi, 0x4c7410
jne 0x412c0a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00412ba0
mov dword [0x4c43f4], 0x270
mov dword [0x4c740c], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x412c20
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x412c55
mov ecx, dword [esi]
mov eax, dword [0x4c7410]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x412cc0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c43f4]
jne 0x412ccd
call fcn.00412bf0
mov eax, dword [0x4c740c]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c740c], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x42e8a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.00499360
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x42e9c3
test ebx, ebx
jne 0x42e8d8
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x42e8e2
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42e8ef
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c8460]
push esi
push edi
push edx
movzx eax, ax
push eax
push ecx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.004746f0
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x42e940
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.004746f0
add esp, 8
jmp 0x4e4068
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x4405e0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x218
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call ebp
test eax, eax
jne 0x44060d
cmp byte [0x4cb11c], al
je 0x4406b9
call fcn.004097f0
pop ebp
add esp, 0x218
ret
cmp byte [0x4cb11c], 0
push ebx
push esi
mov esi, 0x4c8cc8
jne 0x440621
lea esi, [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x44067f
cmp word [edi], 0
je 0x440697
cmp word [edi + 2], 0x3a
jne 0x440697
cmp word [edi + 4], 0
jne 0x440697
push esi
jmp loc.004eaaa8
push 0x103
push edi
push esi
call fcn.00490864
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4cb11c], 0
pop esi
pop ebx
je 0x4406b9
mov ecx, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1910
push ecx
call fcn.004774a0
pop ebp
add esp, 0x218
ret

Function at 0x4406d0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, 0x21a68
call fcn.00499360
cmp dword [0x4c8664], 4
mov eax, dword [0x4c8410]
push ebx
push ebp
mov ebp, dword [esp + 0x21a7c]
jmp loc.004e3578
Function at 0x441fa0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040d2a0
test al, al
je 0x441fc8
push 0x10
push 0
push edi
call fcn.0048f19b
add esp, 0xc
jmp 0x441fd1
push edi
call fcn.0048ee06
add esp, 4
cmp eax, 1
je 0x442036
call fcn.00454860
test al, al
je 0x442036
mov eax, dword [0x4c48ec]
cmp byte [eax + 0x108], 0
jne 0x442011
mov ecx, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a432c
push ecx
call fcn.004774a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x4ac0f0
push 0
push 0x4a432c
call fcn.0042dea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x442084
mov edx, dword [0x4c48ec]
cmp byte [edx + 0x108], 0
jne 0x442011
push 1
push 0
push eax
mov eax, dword [0x4c8cc4]
push 0x4a432c
push eax
call fcn.004774a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
jmp 0x4ed668

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

Disassembly:
mov ecx, dword [0x4c8410]
sub esp, 0x100
push esi
mov esi, eax
call fcn.004131c0
test esi, esi
je 0x442206
cmp word [esi], 0
je 0x442206
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4421bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c48ec]
cmp byte [ecx + 0x108], 0
mov dword [ecx + 0x30], eax
jne 0x44223a
mov eax, dword [0x4c8cc4]
push 1
push 0
push esi
push 0x4a432c
push eax
call fcn.004774a0
pop esi
add esp, 0x100
ret
mov edx, dword [0x4c8cc4]
mov ecx, dword [0x4c48ec]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1910
push edx
mov dword [ecx + 0x30], 0
call fcn.004774a0
mov edx, esi
lea eax, [esp + 4]
call fcn.004756e0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c8410]
push eax
call fcn.004774a0
pop esi
add esp, 0x100
ret
mov eax, dword [0x4c48ec]
cmp byte [eax + 0x108], 0
mov dword [eax + 0x30], 0x57
jne 0x44223a
mov ecx, dword [0x4c8cc4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a432c
push ecx
call fcn.004774a0
pop esi
add esp, 0x100
ret
push 0x4ac0f0
push 0
push 0x4a432c
mov ecx, edi
call fcn.0042dea0
pop esi
add esp, 0x100
ret
Function at 0x44feb0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44feb7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44fedf
dec eax
je 0x44fed1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44feec
cmp bl, 3
jne 0x44fef3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44ff19
cmp dword [0x4c85fc], 0
je 0x44ff09
movzx ecx, bl
mov al, byte [ecx + 0x4c84e8]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4c85f8], 0
je 0x44ff48
xor ecx, ecx
xor edx, edx
jmp loc.004eb980
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x45b0c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push ebp
shl eax, 4
add eax, dword [edx + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x45b0e9
push edi
call fcn.00477870
lea eax, [edi + eax*2 + 2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x45b2ff
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
test eax, eax
je 0x45b2ff
jmp 0x45b110
Function at 0x469b20
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], SysReAllocString
cmp eax, 8
ja case.0x469b41.12
jmp dword [eax*4 + 0x469c40]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x469bee
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x469bee
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x469bee
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x469bee
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x469bee
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x469bee
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 8], 0x80000000
jne 0x469c08
mov eax, dword [esi]
jmp loc.004eadc8
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x4721c0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x2c]
push ebx
push ebp
xor ebp, ebp
push edi
cmp eax, ebp
je 0x4721e6
sub eax, dword [esi + 0x30]
mov edi, dword [esi]
sub eax, dword [esi + 8]
jmp loc.004ec6c8
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x472203
cmp dword [esi + 0x2c], ebp
jne 0x472203
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call edx
mov dword [esi + 8], ebp
mov edx, dword [esi]
xor eax, eax
mov word [esi + 0x28], ax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
mov edi, eax
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, esi
call edx
test al, al
je 0x472270
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x472270
cmp ebp, ebx
jg 0x472250
jl 0x472248
cmp dword [esp + 0x10], edi
jae 0x472250
mov eax, dword [esp + 0x10]
mov ecx, ebp
jmp 0x472254
mov eax, edi
mov ecx, ebx
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8

Function at 0x4754c0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x258
push ebx
test esi, esi
je 0x475541
cmp word [esi], 0
je 0x475541
push 4
push 0x4bdfd8
push esi
call fcn.0048f704
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x4754ea
lea eax, [esi + 8]
mov ebx, 0x4ab6d0
call fcn.00409660
test eax, eax
je 0x475524
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x475541
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x47551a
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov al, 1
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x475531
mov dword [edi], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop ebx
add esp, 0x258
ret
xor al, al
pop ebx
add esp, 0x258
ret

Function at 0x475790
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x4757c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4757c4
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x475bb0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.00499360
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x475bef
lea edx, [esi + esi + 2]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.00495ef0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10000
ret
xor ecx, ecx
mov word [edi], cx
pop esi
add esp, 0x10000
ret
Function at 0x477870
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x477883
jmp dword [eax*4 + 0x477a40]
mov eax, esi
call fcn.00401160
cmp dword [0x4c862c], 0
jne 0x47794f
cmp dword [esi + 0xc], 0
jne 0x47794f
mov edi, dword [esp + 0x14]
cmp dword [0x4cbb68], esi
jne 0x4778b8
test edi, edi
jne 0x477915
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x477911
mov dword [0x4cbb68], 0
test edi, edi
je 0x477909
mov eax, dword [0x4c860c]
test eax, eax
je 0x4778fa
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ca650
xor ecx, ecx
call fcn.0042e8a0
mov ecx, dword [esi + 0x18]
call fcn.00475bb0
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x477940
cmp byte [esi + 0x17], 0
jne 0x477920
mov eax, dword [esi + 0xc]
jmp 0x477922
mov eax, esi
test byte [eax + 0x15], 4
je 0x47792f
mov eax, esi
call fcn.0042e9d0
xor eax, eax
mov word [edi], ax
mov dword [0x4cbb68], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4cbb68], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x4779d0
test eax, eax
jne 0x477987
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x477979
mov eax, esi
call fcn.0042e9d0
xor ecx, ecx
mov word [edi], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x4779d0
cmp eax, 0x186a0
jae 0x4779bf
movzx eax, word [ecx]
test ax, ax
je 0x4779b1
lea ecx, [ecx]
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x4779a0
xor edx, edx
mov word [edi], dx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.00495ef0
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.00477870
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404020
cmp eax, 0xffffffff
jne 0x4779ff
xor eax, eax
test esi, esi
je 0x477a37
xor edx, edx
mov word [esi + eax*2], dx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x477a1d
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
call ecx
add esp, 8
jmp loc.004ea3a0
Function at 0x478570
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x478580
mov eax, esi
call fcn.00454a80
jmp 0x47858d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 4]
test eax, eax
js 0x4785e8
je 0x4785e8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401360
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x4785e5
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4785e5
push 1
push 0x8000012f
call fcn.00401360
add esp, 8
push esi
call ebx
test eax, eax
jne 0x4785c4
pop edi
pop ebp
pop ebx
mov eax, esi
ret

Function at 0x4787d0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c68
call fcn.00499360
mov eax, dword [esp + 0x11c70]
push ebx
push ebp
mov ebp, dword [esp + 0x11c74]
push esi
mov esi, ecx
movzx ecx, word [edx]
xor ebx, ebx
cmp ecx, 0x41
je 0x4787fc
cmp ecx, 0x61
jne 0x478851
cmp word [edx + 2], bx
jne 0x478851
cmp word [edi], bx
jne 0x478851
jmp 0x4e34b0
cmp cx, bx
jne 0x478876
cmp word [edi], bx
jne 0x478876
cmp word [eax], bx
jne 0x478876
cmp word [esi], bx
jne 0x478876
mov eax, ebp
call fcn.004789d0
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x102c], 0x4ac0f0
mov byte [esp + 0x1849], bl
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1854], ebx
mov dword [esp + 0x1858], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov dword [esp + 0x186c], ebx
mov dword [esp + 0x1870], ebx
call fcn.004794a0
test eax, eax
je 0x478987
test byte [esp + 0x10], 2
mov al, byte [esp + 0x11c80]
mov ecx, dword [esp + 0x11c88]
mov edx, dword [esp + 0x11c8c]
mov byte [esp + 0x1839], al
mov dword [esp + 0x1848], ecx
mov dword [esp + 0x184c], edx
je 0x478993
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x47895f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478987
cmp byte [ebp + 0xea], bl
jne 0x478958
mov eax, dword [esp + 0x102c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x478958
mov ecx, dword [esp + 0x102c]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x478987
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x478978
lea esi, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.00479900
push ebx
lea edx, [esp + 0x14]
push edx
call fcn.004799c0
test eax, eax
jne 0x4789a3
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret
lea eax, [esp + 0x10]
push eax
push 0x478a40
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
cmp byte [esp + 0x11c84], bl
je 0x4789bd
cmp eax, ebx
je 0x4789bd
mov dword [ebp + 0xc4], eax
pop esi
pop ebp
pop ebx
add esp, 0x11c68
ret