joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0ab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x457db4]
push edi
push str._Windows_Subsystem__Fixing__s_n
call fcn.00409e88
push 0x445874
push edi
call fcn.00419fb0
add esp, 0x10
mov esi, eax
test esi, esi
mov byte [ebp - 4], 0x50
mov byte [ebp - 3], 0x45
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
push edi
jne 0x40a0fd
push str._Windows_Subsystem__Could_not_open_file__s_n
call fcn.00409e88
pop ecx
pop ecx
push 1
call fcn.00419b88
push str._Windows_Subsystem__Opened__s_n
call fcn.00409e88
pop ecx
xor ebx, ebx
pop ecx
xor edi, edi
push esi
call fcn.0041b9bd
pop ecx
push esi
mov dword [ebp - 8], eax
inc ebx
call fcn.0041c5de
test eax, eax
pop ecx
jne 0x40a1d0
mov al, byte [ebp - 8]
cmp al, byte [ebp + edi - 4]
jne 0x40a133
inc edi
jmp 0x40a135
xor edi, edi
cmp edi, 4
jne 0x40a10d
cmp ebx, 0xffffffff
mov dword [0x457e54], ebx
je 0x40a0f6
lea edi, [ebx + 0x58]
push edi
push 0x58
push ebx
push str._Windows_Subsystem__Found_marker_OK_at__d___d___d__n
call fcn.00409e88
xor ebx, ebx
push ebx
push edi
push esi
call fcn.0041e5d0
add esp, 0x1c
push edi
push str._Windows_Subsystem__Skipped_to_relevant_spot__d_n
call fcn.00409e88
push esi
call fcn.0041b9bd
add esp, 0xc
push eax
push str._Windows_Subsystem__Was__02X_n
call fcn.00409e88
push ebx
push edi
push esi
call fcn.0041e5d0
add esp, 0x14
push esi
push 2
call fcn.0041ca87
push esi
call fcn.00419e50
add esp, 0xc
push ebx
push edi
push esi
call fcn.0041e5d0
add esp, 0xc
push esi
call fcn.0041b9bd
pop ecx
push eax
push str._Windows_Subsystem__Now__02X_n
call fcn.00409e88
push esi
call fcn.00419e50
add esp, 0xc
push esi
call fcn.0041b941
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push str.SS_edit___PE_sig
push str.Could_not_find_marker:__s_n
jmp 0x40a0ef

Function at 0x40a2d5
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x448504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push str.perm_all
push esi
call fcn.0041a450
test eax, eax
pop ecx
pop ecx
jne 0x40a374
push str.Permanent_install_for_all_users_n
call fcn.00409e88
pop ecx
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a339
cmp dword [ebp - 0x9c], 5
jbe 0x40a339
push str.PROGRAMDATA
call fcn.0041b84b
pop ecx
jmp 0x40a39c
push str.ALLUSERSPROFILE
call fcn.0041b84b
mov edi, eax
mov dword [esp], 0x1388
call fcn.00418b47
pop ecx
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00418d70
push str.Application_Data
call fcn.00409d82
add esp, 0xc
push esi
call fcn.00409d63
pop ecx
jmp 0x40a39e
push str.perm_user
push esi
call fcn.0041a450
test eax, eax
pop ecx
pop ecx
jne 0x40a38c
push str.Permanent_install_for_current_user_n
jmp 0x40a391
push str.Temporary_install_n
call fcn.00409e88
pop ecx
call fcn.00409b9d
mov esi, eax
test esi, esi
jne 0x40a3b4
push str.ERROR:_Unable_to_get_shared_dir_
call fcn.00409e88
pop ecx
push 1
call fcn.00419b88
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418a5b
leave
ret
Function at 0x40c2b0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40c2d0
push 0xd0
push str.._srchashes_sha2_sha256.c
push 0x4384b8
call fcn.0040e430
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0x6a09e667
mov dword [esi + 0x284], 0xbb67ae85
mov dword [esi + 0x288], 0x3c6ef372
mov dword [esi + 0x28c], 0xa54ff53a
mov dword [esi + 0x290], 0x510e527f
mov dword [esi + 0x294], 0x9b05688c
mov dword [esi + 0x298], 0x1f83d9ab
mov dword [esi + 0x29c], 0x5be0cd19
xor eax, eax
pop esi
ret

Function at 0x40c850
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40c86d
push 0x2a
push str.c:users_simplehelpworkspace_runner_nativelibtomlibtomcrypt_srchashes_sha2_sha224.c
push 0x4384b8
call fcn.0040e430
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0xc1059ed8
mov dword [esi + 0x284], 0x367cd507
mov dword [esi + 0x288], 0x3070dd17
mov dword [esi + 0x28c], 0xf70e5939
mov dword [esi + 0x290], 0xffc00b31
mov dword [esi + 0x294], 0x68581511
mov dword [esi + 0x298], 0x64f98fa7
mov dword [esi + 0x29c], 0xbefa4fa4
xor eax, eax
pop esi
ret
Function at 0x418a5b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448504]
jne 0x418a65
repz ret
jmp fcn.0041f2b5

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41e31b
call fcn.00418f7c
mov dword [eax], esi
call fcn.00418f69
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042106e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41e2f7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41e34a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00418f8f
pop ecx
call fcn.00418f69
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41e371
test al, 1
je 0x41e371
test byte [esp + 0xc], 2
je 0x41e371
call fcn.00418f7c
mov dword [eax], 5
call fcn.00418f69
mov dword [eax], 0xd
jmp 0x41e341
xor eax, eax
pop esi
ret
Function at 0x427fc4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004210f5
xor ebx, ebx
cmp dword [0x44b9e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x428099
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x428004
xor eax, eax
jmp 0x42815d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x427ffd
push eax
call fcn.00421092
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b9e8], eax
call esi
push eax
call fcn.00421092
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44b9ec], eax
call esi
push eax
call fcn.00421092
mov dword [0x44b9f0], eax
lea eax, [ebp - 8]
push eax
call fcn.004199b5
test eax, eax
pop ecx
pop ecx
je 0x428067
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420f72
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x428099
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00421092
cmp eax, ebx
pop ecx
mov dword [0x44b9f8], eax
je 0x428099
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421092
pop ecx
mov dword [0x44b9f4], eax
mov eax, dword [0x44b9f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x428112
cmp dword [0x44b9f8], esi
je 0x428112
push eax
call fcn.004210fe
pop ecx
call eax
cmp eax, ebx
je 0x4280df
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44b9f8]
call fcn.004210fe
pop ecx
call eax
test eax, eax
je 0x4280df
test byte [ebp - 0x18], 1
jne 0x428112
lea eax, [ebp - 0xc]
push eax
call fcn.004199ec
test eax, eax
pop ecx
je 0x4280fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00420f72
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x428109
or dword [ebp + 0x10], 0x200000
jmp 0x428143
or dword [ebp + 0x10], 0x40000
jmp 0x428143
mov eax, dword [0x44b9ec]
cmp eax, esi
je 0x428143
push eax
call fcn.004210fe
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x428143
mov eax, dword [0x44b9f0]
cmp eax, esi
je 0x428143
push dword [ebp - 4]
push eax
call fcn.004210fe
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44b9e8]
call fcn.004210fe
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
not eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jbe 0x434a1f
test bl, 7
je 0x434989
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43a048]
test bl, 7
jne 0x434970
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x434a1f
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [ebp + 0x10], ebx
add dword [ebp + 0x10], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x43a448]
xor edx, dword [ecx*4 + 0x43a848]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43b448]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x43b848]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x43a048]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x43b048]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x43ac48]
xor edx, dword [eax*4 + 0x43bc48]
mov eax, edx
cmp ebx, edi
jb 0x4349a0
test esi, esi
je 0x434a3d
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43a048]
sub esi, 1
jne 0x434a23
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x434a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
not eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
not esi
cmp edi, 4
jbe 0x434b4a
mov dword [ebp + 0x14], ebx
test bl, 3
je 0x434aa7
nop word [eax + eax]
movzx ecx, byte [ebx]
dec edi
movzx edx, al
inc ebx
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x43c048]
xor esi, dword [edx*8 + 0x43c04c]
test bl, 3
jne 0x434a80
mov dword [ebp + 0x14], ebx
mov edx, edi
mov dword [ebp - 8], 0
and edx, 0xfffffffc
mov dword [ebp - 4], 0
and edi, 3
mov dword [ebp + 0xc], edi
lea ecx, [edx + ebx]
add edx, 3
shr edx, 2
cmp ebx, ecx
cmova edx, dword [ebp - 8]
mov dword [ebp - 8], edx
test edx, edx
je 0x434b4a
mov edi, edx
mov ebx, dword [ebx]
xor ebx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*8 + 0x43c848]
mov edx, dword [edx*8 + 0x43c84c]
xor eax, dword [ecx*8 + 0x43d048]
xor edx, dword [ecx*8 + 0x43d04c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x43c048]
xor edx, dword [ecx*8 + 0x43c04c]
movzx ecx, bl
mov ebx, dword [ebp + 0x14]
add ebx, 4
mov dword [ebp + 0x14], ebx
xor eax, dword [ecx*8 + 0x43d848]
xor edx, dword [ecx*8 + 0x43d84c]
xor eax, esi
mov ecx, dword [ebp - 4]
xor edx, 0
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
cmp ecx, edi
jb 0x434ad8
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x434b75
nop
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x43c048]
xor esi, dword [edx*8 + 0x43c04c]
sub edi, 1
jne 0x434b50
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030bc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4030f8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403118
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e2c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403350
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.00404bbc
test esi, esi
jne 0x403386
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.00404cac
jmp 0x4033a4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403254
mov edi, eax
test esi, esi
je 0x4033a4
cmp dword [ebx], 0
je 0x4033a4
dec esi
jmp 0x40338d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ab4
Capabilities:
Query or enumerate registry value

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

Function at 0x404968
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4aa04c], 0
je 0x4049c9
cmp word [0x4aa220], 0xd7b2
jne 0x404991
cmp dword [0x4aa228], 0
jbe 0x404991
mov eax, 0x4aa21c
call dword [0x4aa238]
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 0x4049f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a602c], 0
jne 0x4049e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404b40
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 [0x4a6030], 0
je 0x404b66
mov edx, esi
mov eax, ebx
call dword [0x4a6030]
jmp 0x404b75
mov eax, 8
call fcn.00402eb4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4aa04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b08
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 0x408dac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408dfe
test eax, edx
je 0x408e01
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408dc1
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 0x408de7
add ecx, 4
js 0x408dd7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408de4
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 0x408e0d
test edx, edx
jne 0x408db4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040504c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40987d
test al, 0x10
je 0x409881
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040504c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4098a1
test al, 0x10
jne 0x4098a5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d130
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 0x40d169
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cac
jmp 0x40d172
mov eax, ebx
mov edx, esi
call fcn.00404c10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d17c
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 0x40d19e
movzx eax, byte [esp]
jmp 0x40d1a0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d830
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d6a8
mov eax, dword [0x4a9424]
cmp byte [eax], 0
je 0x40d8ac
mov eax, dword [0x4a90dc]
call fcn.00403468
call fcn.00403010
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.00409c24
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 0x40d8f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d8e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a9064]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ac7f8]
call fcn.004061b4
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 0x40e1d8
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 0x40e2ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c54
lea eax, [ebp - 4]
call fcn.004050a4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040504c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e298
mov eax, ebx
call fcn.00402eb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e291
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.0040504c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e27b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e2c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e27b
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 0x40e298
mov eax, dword [ebp - 0x10]
call fcn.00402ed0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2b5
lea eax, [ebp - 4]
call fcn.00404bbc
ret

Function at 0x4208bc
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.004205cc
dec esi
jne 0x4208de
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ae9f0
cmp dword [edi], 0
jne 0x421acc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ae9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a6b08
mov ecx, 2
call fcn.00403154
mov edx, 0x421a28
lea eax, [esi + 5]
call fcn.00421a48
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421a48
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 0x421aa1
mov dword [0x4ae9ec], 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 0x4242d0
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.00423c64
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.0040504c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42432f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a92c8]
mov dl, 1
mov eax, dword [0x423b5c]
call fcn.0040da14
call fcn.00404530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424338
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.0040504c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x424390
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a95e8]
mov dl, 1
mov eax, dword [0x423b5c]
call fcn.0040da14
call fcn.00404530
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423c94
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 0x425520
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 0x425526
ret