joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1733
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4c178d
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x4c1788
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4c1787
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x4c1754
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c2560
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040b294
add esp, 0x100
pop ebx
ret

Function at 0x4c2690
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c276a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4c2780
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4c26da.0
jmp dword [eax*4 + 0x4c26e1]
mov eax, ebx
mov edx, 0x4c278c
call fcn.00405490
jmp 0x4c274f
mov eax, ebx
mov edx, 0x4c27a0
call fcn.00405490
jmp 0x4c274f
mov eax, ebx
mov edx, 0x4c27b0
call fcn.00405490
jmp 0x4c274f
mov eax, ebx
mov edx, 0x4c27c4
call fcn.00405490
jmp 0x4c274f
mov eax, ebx
mov edx, 0x4c27d4
call fcn.00405490
jmp 0x4c274f
mov eax, ebx
mov edx, 0x4c27e8
call fcn.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2771
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405460
ret
Function at 0x4c2a28
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x4c2a30
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
lea eax, [ebp - 0x168]
mov edx, dword [0x408b48]
call fcn.00405ef4
xor eax, eax
push ebp
push 0x4c2c55
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x2ac]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0043d934
mov eax, dword [ebp - 0x2ac]
mov edx, 0x4c2c6c
call fcn.00405864
je 0x4c2a94
lea eax, [ebp - 4]
mov edx, 0x4c2c6c
call fcn.00405708
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2b0]
mov ecx, 0x4c2c78
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2b0]
call fcn.004058cc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
lea eax, [ebp - 0x2c0]
mov edx, ebx
mov cl, 4
call fcn.00416670
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x2d0]
call fcn.00417c6c
lea edx, [ebp - 0x2d0]
pop eax
call fcn.00417c74
je 0x4c2bdf
jmp 0x4c2bc4
mov eax, dword [ebp - 0x2a8]
sub eax, 0x10
jne 0x4c2b89
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x27c]
call fcn.0040b294
mov eax, dword [ebp - 0x2d4]
mov edx, 0x4c2c84
call fcn.00405864
je 0x4c2bc4
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x27c]
call fcn.0040b294
mov eax, dword [ebp - 0x2d8]
mov edx, 0x4c2c90
call fcn.00405864
je 0x4c2bc4
lea eax, [ebp - 0x2e0]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004056ac
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2dc]
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2dc]
call fcn.004c2a28
jmp 0x4c2bc4
lea eax, [ebp - 0x2e8]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004056ac
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2e4]
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2e4]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a8]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c2af9
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x168]
call fcn.0040aba8
mov eax, dword [ebp - 4]
call fcn.0040b03c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2c5c
lea eax, [ebp - 0x2e8]
mov edx, 6
call fcn.00405460
lea eax, [ebp - 0x2d0]
mov edx, dword [0x401100]
mov ecx, 2
call fcn.00406010
lea eax, [ebp - 0x2b0]
mov edx, 2
call fcn.00405460
lea eax, [ebp - 0x168]
mov edx, dword [0x408b48]
call fcn.00405fc4
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c5144
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
mov eax, dword [ebp - 8]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c530e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c52d6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4196f4]
call fcn.0041e48c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c51dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040a88c
test al, al
je 0x4c51d2
mov eax, dword [ebp - 8]
call fcn.004058cc
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00405634
mov eax, dword [ebp - 0x1c]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c51e6
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4196f4]
call fcn.0041e48c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c52c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e204
mov edx, dword [ebp - 0x14]
add edx, 8
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e204
mov edx, dword [ebp - 0x14]
add edx, 8
add edx, dword [ebp - 0x18]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c52cc
mov eax, dword [ebp - 0x10]
call fcn.0040455c
mov eax, dword [ebp - 0xc]
call fcn.0040455c
ret
Function at 0x409113
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x409122
pop dword [ebp - 0x24]
mov eax, 0x409122
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3bbe2
push 0
mov eax, 0xccfd15ab
sub eax, 0xccbc251b
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x555b
mov esi, eax
mov edx, 0x41aa00
add edx, dword [ebp - 0x24]
mov edi, 0x8014d0a4
sub edi, 0x3d5f38b5
add dword [ebp - 0x10], esi
mov ebx, dword [edx]
mov dword [ebp - 0x20], 0x78ff2f84
add ebx, edi
mov dword [ebp - 0x10], 0x3325265f
mov dword [esi], ebx
xor dword [ebp - 0x14], 0x4180f796
add esi, 4
add edx, 0x2e8b4f8e
add edx, 0xd174b076
loop 0x409170
add eax, 0x1483f
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004051a8
test esi, esi
jne 0x403372
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405298
jmp 0x403390
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403240
mov edi, eax
test esi, esi
je 0x403390
cmp dword [ebx], 0
je 0x403390
dec esi
jmp 0x403379
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x57d008], 0x8088405
inc edx
mov dword [ebx + 0x57d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403fd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x57d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404070
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404050
xor eax, eax
push ebp
push 0x404049
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40408c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404050
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x57d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x57d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404f54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58704c], 0
je 0x404fb5
cmp word [0x587220], 0xd7b2
jne 0x404f7d
cmp dword [0x587228], 0
jbe 0x404f7d
mov eax, 0x58721c
call dword [0x587238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404fdc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x57d030], 0
jne 0x404fd1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40512c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x57d038], 0
je 0x405152
mov edx, esi
mov eax, ebx
call dword [0x57d038]
jmp 0x405161
mov eax, 8
call fcn.00402f50
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x58704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4050f4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406d78
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406fa8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406dfb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406fa8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406dfb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406fc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406e84
xor eax, eax
push ebp
push 0x406e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406bb4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406e62
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406fe4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406e62
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e84
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406f9e
cmp byte [ebp - 0xd], 0
jne 0x406ecb
cmp byte [ebp - 0x12], 0
je 0x406f9e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406ee4
dec ebx
cmp byte [ebx], 0x2e
je 0x406ef3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406ee3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406f9e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406f30
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f9e
cmp byte [ebp - 0xd], 0
je 0x406f9e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f9e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4099ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4099fe
test eax, edx
je 0x409a01
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4099c1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4099e7
add ecx, 4
js 0x4099d7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4099e4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409a0d
test edx, edx
jne 0x4099b4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405638
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a529
test al, 0x10
je 0x40a52d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405638
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a54d
test al, 0x10
jne 0x40a551
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40db1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40db55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405298
jmp 0x40db5e
mov eax, ebx
mov edx, esi
call fcn.004051fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40db68
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40db8a
movzx eax, byte [esp]
jmp 0x40db8c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e21c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e094
mov eax, dword [0x58684c]
cmp byte [eax], 0
je 0x40e298
mov eax, dword [0x5863e4]
call fcn.004037e8
call fcn.004030ac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a874
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e2e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e2ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x586334]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5897f8]
call fcn.00406b5c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40eba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405240
lea eax, [ebp - 4]
call fcn.00405690
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405638
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ec60
mov eax, ebx
call fcn.00402f50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ec59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405638
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ec43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ec88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ec43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec60
mov eax, dword [ebp - 0x10]
call fcn.00402f6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec7d
lea eax, [ebp - 4]
call fcn.004051a8
ret

Function at 0x427180
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4271ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00426ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4271e7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4271f0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00426ebc
dec esi
jne 0x427212
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x428398
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x58b9f4
cmp dword [edi], 0
jne 0x428414
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x58b9f0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x57dd34
mov ecx, 2
call fcn.00403140
mov edx, 0x428370
lea eax, [esi + 5]
call fcn.00428390
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00428390
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4283e9
mov dword [0x58b9f0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42bd38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405638
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42bd90
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x586ac0]
mov dl, 1
mov eax, dword [0x42b844]
call fcn.0040e3dc
call fcn.00404a94
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042b94c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42ce48
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42ce4e
ret
Function at 0x44054c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x440720
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.00459924
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x440705
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x4405b2
mov eax, dword [esi]
add eax, 0x264
call fcn.004051a8
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x44068c
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x586a80]
movzx eax, al
bt dword [edx], eax
jae 0x440649
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.0045a9a8
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4406d0
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00405390
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00405390
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.0040553c
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x4406d0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00405390
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.00405474
jmp 0x4406d0
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x440679
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.004056e0
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00405468
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040ed00
cmp al, 2
je 0x440668
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x4406bd
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.004056e0
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x4406e1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4406ee
push ebp
call fcn.00440464
pop ecx
jmp 0x440705
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.004043dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440727
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004051cc
ret