joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c9b3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43aeb0]
je 0x41c9ce
inc edi
cmp edi, 0x17
jb 0x41c9bf
cmp edi, 0x17
jae 0x41cb4e
push ebp
push 3
call fcn.0042506b
cmp eax, 1
pop ecx
je 0x41cb1a
push 3
call fcn.0042506b
test eax, eax
pop ecx
jne 0x41ca02
cmp dword [0x43acf8], 1
je 0x41cb1a
cmp ebx, 0xfc
je 0x41cb4d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43e2a0
push ebp
call fcn.00425006
add esp, 0xc
test eax, eax
je 0x41ca38
push esi
push esi
push esi
push esi
push esi
call fcn.0041e0bf
add esp, 0x14
push 0x104
mov esi, 0x43e2b9
push esi
push 0
mov byte [0x43e3bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ca7c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00425006
add esp, 0xc
test eax, eax
je 0x41ca7c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041e0bf
add esp, 0x14
push esi
call fcn.0041bc90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41cac1
push esi
call fcn.0041bc90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43e5b4
push 0x430dd4
sub ecx, eax
push ecx
push eax
call fcn.00424f53
add esp, 0x14
test eax, eax
je 0x41cac1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041e0bf
add esp, 0x14
jmp 0x41cac3
xor esi, esi
push 0x430dd0
push ebx
push ebp
call fcn.00424ee2
add esp, 0xc
test eax, eax
je 0x41cae3
push esi
push esi
push esi
push esi
push esi
call fcn.0041e0bf
add esp, 0x14
push dword [edi*8 + 0x43aeb4]
push ebx
push ebp
call fcn.00424ee2
add esp, 0xc
test eax, eax
je 0x41cb05
push esi
push esi
push esi
push esi
push esi
call fcn.0041e0bf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00424d25
add esp, 0xc
jmp 0x41cb4d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41cb4d
cmp ebp, 0xffffffff
je 0x41cb4d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43aeb4]
push dword [esi]
call fcn.0041bc90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x424d25
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041d577
xor ebx, ebx
cmp dword [0x43ed98], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x424dfb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x424edb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x424edb
push eax
call fcn.0041d509
mov dword [esp], 0x431014
push edi
mov dword [0x43ed98], eax
call esi
push eax
call fcn.0041d509
mov dword [esp], 0x431000
push edi
mov dword [0x43ed9c], eax
call esi
push eax
call fcn.0041d509
mov dword [0x43eda0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041b893
test eax, eax
pop ecx
pop ecx
je 0x424dc9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e0bf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x424dfb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041d509
cmp eax, ebx
pop ecx
mov dword [0x43eda8], eax
je 0x424dfb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d509
pop ecx
mov dword [0x43eda4], eax
mov eax, dword [0x43eda4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x424e80
cmp dword [0x43eda8], ecx
je 0x424e80
push eax
call fcn.0041d580
push dword [0x43eda8]
mov esi, eax
call fcn.0041d580
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x424e80
cmp edi, ebx
je 0x424e80
call esi
cmp eax, ebx
je 0x424e4d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424e4d
test byte [ebp - 0x18], 1
jne 0x424e80
lea eax, [ebp - 0x10]
push eax
call fcn.0041b8ca
test eax, eax
pop ecx
je 0x424e68
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e0bf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x424e77
or dword [ebp + 0x10], 0x200000
jmp 0x424ebb
or dword [ebp + 0x10], 0x40000
jmp 0x424ebb
mov eax, dword [0x43ed9c]
cmp eax, dword [ebp - 8]
je 0x424ebb
push eax
call fcn.0041d580
cmp eax, ebx
pop ecx
je 0x424ebb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x424ebb
mov eax, dword [0x43eda0]
cmp eax, dword [ebp - 8]
je 0x424ebb
push eax
call fcn.0041d580
cmp eax, ebx
pop ecx
je 0x424ebb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ed98]
call fcn.0041d580
cmp eax, ebx
pop ecx
je 0x424edb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424edd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c7de
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43ad20]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042c773
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004199b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42c82d
cmp dword [ebp - 0x1c], 5
jb 0x42c845
jmp 0x42c841
cmp dword [ebp - 0x10], 1
jne 0x42c845
cmp dword [ebp - 0x1c], 4
ja 0x42c841
jne 0x42c845
cmp dword [ebp - 0x18], 0
jbe 0x42c845
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4321fc
call fcn.0042c647
test eax, eax
jge 0x42c866
mov byte [0x43ef60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418825
add ebp, 0x78
leave
ret
Function at 0x402f50
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 0x402f8c
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 0x402fac
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004054c4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403254
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.00405254
test esi, esi
jne 0x40328a
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.00405344
jmp 0x4032a8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403158
mov edi, eax
test esi, esi
je 0x4032a8
cmp dword [ebx], 0
je 0x4032a8
dec esi
jmp 0x403291
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40417c
Capabilities:
Query or enumerate registry value

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

Function at 0x405020
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b9048], 0
je 0x405081
cmp word [0x4b921c], 0xd7b2
jne 0x405049
cmp dword [0x4b9224], 0
jbe 0x405049
mov eax, 0x4b9218
call dword [0x4b9234]
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 0x4050a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a6030], 0
jne 0x40509d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4051d8
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 [0x4a6038], 0
je 0x4051fe
mov edx, esi
mov eax, ebx
call dword [0x4a6038]
jmp 0x40520d
mov eax, 8
call fcn.00402d48
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b9049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051a0
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 0x406a44
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 0x406c74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ac7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406ac7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406c90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406b50
xor eax, eax
push ebp
push 0x406b49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406880
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 0x406b2e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406cb0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b2e
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 0x406b50
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 0x406c6a
cmp byte [ebp - 0xd], 0
jne 0x406b97
cmp byte [ebp - 0x12], 0
je 0x406c6a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406bb0
dec ebx
cmp byte [ebx], 0x2e
je 0x406bbf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406baf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406c6a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406bfc
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 0x406c6a
cmp byte [ebp - 0xd], 0
je 0x406c6a
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 0x406c6a
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 0x409320
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4093b0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4093b0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409363
test edx, 3
jne 0x409352
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40935d
jmp 0x409363
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409363
cmp dword [ecx - 8], 1
je 0x40936d
mov edx, ebx
or edx, 3
call fcn.004059a0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40937f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405254

Function at 0x4093bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40944c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40944c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4093ff
test edx, 3
jne 0x4093ee
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4093f9
jmp 0x4093ff
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4093ff
cmp dword [ecx - 8], 1
je 0x409409
mov edx, ebx
or edx, 3
call fcn.004059a0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40941b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405254

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

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

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

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

Function at 0x40a134
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405718
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a148
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405718
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a16a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40d178
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 0x40d1b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405344
jmp 0x40d1ba
mov eax, ebx
mov edx, esi
call fcn.004052a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d878
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d6f0
mov eax, dword [0x4b8280]
cmp byte [eax], 0
je 0x40d8f4
mov eax, dword [0x4b7f00]
call fcn.004036e0
call fcn.00402ea4
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.0040a7b0
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 0x40d93c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d92a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b7e60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bb7f4]
call fcn.00406828
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 0x40e188
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 0x40e25e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004052ec
lea eax, [ebp - 4]
call fcn.00405768
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e248
mov eax, ebx
call fcn.00402d48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e241
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.00405718
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e22b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e270
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e22b
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 0x40e248
mov eax, dword [ebp - 0x10]
call fcn.00402d64
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e265
lea eax, [ebp - 4]
call fcn.00405254
ret

Function at 0x41d840
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.0041d57c
dec esi
jne 0x41d862
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41e9d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4bc304
cmp dword [edi], 0
jne 0x41ea50
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4bc300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a6ae4
mov ecx, 2
call fcn.00403058
mov edx, 0x41e9ac
lea eax, [esi + 5]
call fcn.0041e9cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e9cc
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 0x41ea25
mov dword [0x4bc300], 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 0x420fec
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040390c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4b8450]
cmp byte [edx + 0xc], 0
je 0x421050
mov edx, dword [0x4b8440]
cmp dword [edx], 2
jne 0x421050
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x421054
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x42110c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00420fec
test al, al
je 0x4210ee
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405344
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4210ee
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 4]
call fcn.00405718
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040544c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4210a7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421113
lea eax, [ebp - 0x2c]
call fcn.00405254
lea eax, [ebp - 4]
call fcn.00405254
ret

Function at 0x42120c
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.00405718
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421264
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b845c]
mov dl, 1
mov eax, dword [0x420bc4]
call fcn.0040da38
call fcn.00404be8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420ccc
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 0x4223f4
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 0x4223fa
ret