joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x200
push esi
call fcn.00422e50
mov ecx, dword [0x25b43dc]
mov eax, dword [0x25b60f4]
mov dword [esp + 0x14], ecx
mov ecx, 0x20
mov dword [esp + 4], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
xor esi, esi
mov eax, 3
mov edx, 0xc0
mov ecx, 4
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x74656d70
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x9c
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0x666f6e74
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0xa0
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0x62616c6c
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], 0x786f6e69
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], 0x73706565
mov dword [esp + 0x6c], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 0x6d6f6e79
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], 0x61616161
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], 0x72727272
mov dword [esp + 0x9c], 0x40
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xa4], 0x6d323530
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xb4], 0x6d323630
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], 0x2a
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xc4], 0x6d323430
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], 0x54
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xd4], 0x6d323130
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], 0x7e
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xe4], 0x6d323230
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], 0xa8
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xf4], 0x6d323330
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], 0xd2
mov dword [esp + 0x108], eax
mov dword [esp + 0x104], 0x6d313032
mov dword [esp + 0x10c], esi
mov dword [esp + 0x110], 0x48
mov dword [esp + 0x118], eax
mov dword [esp + 0x114], 0x6f6e2b2b
mov dword [esp + 0x11c], 0x80
mov dword [esp + 0x120], esi
mov dword [esp + 0x12c], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x128], 0x6f66662b
mov dword [esp + 0x134], esi
mov dword [esp + 0x13c], 7
mov dword [esp + 0x138], 0x6e726567
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], esi
mov dword [esp + 0x14c], 6
mov dword [esp + 0x148], 0x31313131
mov dword [esp + 0x150], esi
mov dword [esp + 0x154], esi
mov dword [esp + 0x15c], 5
mov dword [esp + 0x158], 0x666e7433
mov dword [esp + 0x160], esi
mov dword [esp + 0x164], esi
mov dword [esp + 0x168], esi
call fcn.004058f0
add esp, 4
call fcn.004058a0
test eax, eax
jne 0x423c24
push esi
call dword [sym.imp.USER32.dll_MessageBeep]
pop esi
add esp, 0x200
ret
Function at 0x4296d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x198
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x24]
test ecx, ecx
push esi
push edi
jne 0x428c96
cmp dword [ebx + 0x28], ecx
je 0x428dca
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x400]
jmp 0x428cb6
test byte [eax + 0xd], 4
je 0x428cb4
cmp dword [eax + 0x14], ecx
jne 0x428cb4
mov edx, dword [eax + 0x18]
cmp edx, dword [ebx + 0x28]
je 0x428cbc
mov eax, dword [eax]
test eax, eax
jne 0x428ca1
jmp 0x428cc3
lea esi, [eax + 8]
test esi, esi
jne 0x428cf6
mov dword [ebp + 0x70], 0xc8770bc2
xor eax, eax
mov cl, byte [eax + 0x43b188]
mov byte [ebp + eax - 0x10], cl
inc eax
test cl, cl
jne 0x428ccc
mov dword [ebp + 0x74], 0x542
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x98]
lea eax, [ebp - 0x98]
jmp 0x428dba
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 4]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0x74]
push 8
pop ecx
or eax, 0x20000
mov dword [ebp + 0x64], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 4], 0x7c
mov dword [ebp], 0x1007
lea edi, [ebp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 0
lea esi, [ebx + 0xa0]
push esi
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x428d67
mov dword [ebp - 0x18], eax
xor eax, eax
mov cl, byte [eax + 0x43b14c]
mov byte [ebp + eax - 0x98], cl
inc eax
test cl, cl
jne 0x428d4c
mov dword [ebp - 0x14], 0x555
jmp 0x428da8
mov ebx, dword [ebx + 0x94]
push dword [esi]
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jge 0x428dca
mov eax, dword [esi]
test eax, eax
je 0x428d8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov dword [ebp - 0x18], edi
xor eax, eax
mov cl, byte [eax + 0x43b14c]
mov byte [ebp + eax - 0x98], cl
inc eax
test cl, cl
jne 0x428d8f
mov dword [ebp - 0x14], 0x560
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x120]
lea eax, [ebp - 0x120]
push 0x22
pop ecx
push 0x43c704
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004310f7
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
push edi
je 0x4296fa
dec eax
je 0x4296f1
dec eax
jne 0x429701
call fcn.00429501
jmp 0x429701
mov ecx, esi
call fcn.0042925a
jmp 0x429701
mov ecx, esi
call fcn.0042935d
cmp dword [esi + 0x18], 0x10
jae 0x42970e
mov ecx, esi
call fcn.004287d3
lea edi, [esi + 0xb0]
cmp dword [edi], 0
jne 0x429721
mov ecx, dword [esi + 0x70]
call fcn.00426f46
mov eax, dword [esi + 0x2c]
test eax, eax
ja 0x42972e
cmp dword [esi + 0x30], 0
jbe 0x429747
cmp dword [edi], 0
jne 0x42973e
push dword [esi + 0x30]
mov ecx, esi
push eax
call fcn.00428afb
pop edi
mov ecx, esi
pop esi
jmp 0x428c76
pop edi
pop esi
ret
Function at 0x42b43f
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, esi
mov ebp, ecx
jne 0x42b459
mov eax, 0x80070057
jmp 0x42b5bc
cmp dword [ebp + 0x104], 0xffffffff
je 0x42b469
mov ecx, ebp
call fcn.0042af9f
mov edx, ebp
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42b46f
push esi
push 0x10000080
push 4
push esi
push esi
push 0xc0000000
push edi
mov dword [ebp + 0x114], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x104], eax
je 0x42b50b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
sbb ebx, ebx
neg ebx
mov dword [ebp + 0x110], eax
je 0x42b4be
mov eax, 0x1000
jmp 0x42b4c8
add eax, 0xfff
and eax, 0xfffff000
push esi
push eax
push esi
push 4
push esi
push dword [ebp + 0x104]
mov dword [ebp + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebp + 0x108], eax
je 0x42b50b
push dword [ebp + 0x110]
push esi
push esi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, esi
mov dword [ebp + 0x10c], edx
jne 0x42b53b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x42b51d
call esi
mov esi, eax
jmp 0x42b52d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, ebp
call fcn.0042af9f
mov eax, esi
jmp 0x42b5bc
cmp ebx, esi
jne 0x42b58b
push 2
pop ecx
mov edi, 0x43bd68
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x42b56a
cmp dword [edx + 8], eax
jne 0x42b56a
cmp dword [edx + 0x14], 0x10
jne 0x42b56a
mov eax, dword [edx + 0x18]
cmp eax, 0x28
jb 0x42b56a
cmp eax, dword [ebp + 0x110]
jbe 0x42b585
mov ecx, dword [ebp + 0x110]
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
xor ebx, ebx
mov ecx, esi
inc ebx
and ecx, 3
rep stosb byte es:[edi], al
test ebx, ebx
je 0x42b5ba
xor esi, esi
mov eax, dword [0x43bd68]
mov dword [edx], eax
mov eax, dword [0x43bd6c]
mov dword [edx + 4], eax
mov dword [edx + 8], esi
mov dword [edx + 0xc], esi
mov dword [edx + 0x10], esi
mov dword [edx + 0x14], 0x10
mov dword [edx + 0x18], 0x28
mov dword [edx + 0x1c], esi
mov dword [edx + 0x20], esi
mov dword [edx + 0x24], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40334c
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.00404ce0
test esi, esi
jne 0x403382
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.00404dd0
jmp 0x4033a0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031f0
mov edi, eax
test esi, esi
je 0x4033a0
cmp dword [ebx], 0
je 0x4033a0
dec esi
jmp 0x403389
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403bd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e9024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c4c
xor eax, eax
push ebp
push 0x403c45
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 0x403c88
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 0x403c4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4e9024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e9024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404aac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ee04c], 0
je 0x404b0d
cmp word [0x4ee220], 0xd7b2
jne 0x404ad5
cmp dword [0x4ee228], 0
jbe 0x404ad5
mov eax, 0x4ee21c
call dword [0x4ee238]
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 0x404b34
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e9030], 0
jne 0x404b29
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c64
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 [0x4e9034], 0
je 0x404c8a
mov edx, esi
mov eax, ebx
call dword [0x4e9034]
jmp 0x404c99
mov eax, 8
call fcn.00402f00
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ee04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c2c
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 0x4064bc
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 0x4066ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40653f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40653f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406708
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4065c8
xor eax, eax
push ebp
push 0x4065c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004062f8
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 0x4065a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406728
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065a6
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 0x4065c8
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 0x4066e2
cmp byte [ebp - 0xd], 0
jne 0x40660f
cmp byte [ebp - 0x12], 0
je 0x4066e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406628
dec ebx
cmp byte [ebx], 0x2e
je 0x406637
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406627
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4066e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406674
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 0x4066e2
cmp byte [ebp - 0xd], 0
je 0x4066e2
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 0x4066e2
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 0x408f28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408f7a
test eax, edx
je 0x408f7d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408f3d
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 0x408f63
add ecx, 4
js 0x408f53
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408f60
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 0x408f89
test edx, edx
jne 0x408f30
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

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

Function at 0x40c5ec
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 0x40c625
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dd0
jmp 0x40c62e
mov eax, ebx
mov edx, esi
call fcn.00404d34
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c638
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 0x40c65a
movzx eax, byte [esp]
jmp 0x40c65c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ccec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb64
mov eax, dword [0x4ed1ec]
cmp byte [eax], 0
je 0x40cd68
mov eax, dword [0x4ecebc]
call fcn.00403508
call fcn.0040305c
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.00409b78
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 0x40cdb0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd9e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ece44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f07f8]
call fcn.004062a0
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 0x40d694
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 0x40d76a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d78
lea eax, [ebp - 4]
call fcn.004051c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405170
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d754
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d74d
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.00405170
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d737
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d77c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d737
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 0x40d754
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d771
lea eax, [ebp - 4]
call fcn.00404ce0
ret

Function at 0x42264c
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 0x42269a
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.0042235c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4226b3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4226bc
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.0042235c
dec esi
jne 0x4226de
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x423850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f29f0
cmp dword [edi], 0
jne 0x4238cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f29ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e9c98
mov ecx, 2
call fcn.004030f0
mov edx, 0x423828
lea eax, [esi + 5]
call fcn.00423848
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423848
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 0x4238a1
mov dword [0x4f29ec], 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 0x42779c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00427270
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405170
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4277fb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ed094]
mov dl, 1
mov eax, dword [0x4270fc]
call fcn.0040ced0
call fcn.00404650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x427804
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.00405170
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42785c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ed39c]
mov dl, 1
mov eax, dword [0x4270fc]
call fcn.0040ced0
call fcn.00404650
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004272a0
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 0x428c10
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 0x428c16
ret
Function at 0x441664
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405160
xor eax, eax
push ebp
push 0x441799
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x44176c
xor edx, edx
push ebp
push 0x441765
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4416b1
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x44173a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x441729
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4416f0
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405170
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004030f0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441730
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4ecd78]
mov dl, 1
mov eax, dword [0x4080bc]
call fcn.0040ce94
call fcn.00404650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4417a0
lea eax, [ebp - 4]
call fcn.00404ce0
ret