joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4345ba
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 + 0x4668c0]
je 0x4345d5
inc edi
cmp edi, 0x17
jb 0x4345c6
cmp edi, 0x17
jae 0x434755
push ebp
push 3
call fcn.0043f722
cmp eax, 1
pop ecx
je 0x434721
push 3
call fcn.0043f722
test eax, eax
pop ecx
jne 0x434609
cmp dword [0x4666e4], 1
je 0x434721
cmp ebx, 0xfc
je 0x434754
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46cd10
push ebp
call fcn.0043786c
add esp, 0xc
test eax, eax
je 0x43463f
push esi
push esi
push esi
push esi
push esi
call fcn.0042ff30
add esp, 0x14
push 0x104
mov esi, 0x46cd29
push esi
push 0
mov byte [0x46ce2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x434683
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043786c
add esp, 0xc
test eax, eax
je 0x434683
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042ff30
add esp, 0x14
push esi
call fcn.004378e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4346c8
push esi
call fcn.004378e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46d024
push 0x455824
sub ecx, eax
push ecx
push eax
call fcn.0043c636
add esp, 0x14
test eax, eax
je 0x4346c8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042ff30
add esp, 0x14
jmp 0x4346ca
xor esi, esi
push 0x455820
push ebx
push ebp
call fcn.0043c57a
add esp, 0xc
test eax, eax
je 0x4346ea
push esi
push esi
push esi
push esi
push esi
call fcn.0042ff30
add esp, 0x14
push dword [edi*8 + 0x4668c4]
push ebx
push ebp
call fcn.0043c57a
add esp, 0xc
test eax, eax
je 0x43470c
push esi
push esi
push esi
push esi
push esi
call fcn.0042ff30
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043f565
add esp, 0xc
jmp 0x434754
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x434754
cmp ebp, 0xffffffff
je 0x434754
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4668c4]
push dword [esi]
call fcn.004378e0
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 0x43f565
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043516a
xor ebx, ebx
cmp dword [0x46d80c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43f63b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43f71b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43f71b
push eax
call fcn.004350fc
mov dword [esp], 0x4563d0
push edi
mov dword [0x46d80c], eax
call esi
push eax
call fcn.004350fc
mov dword [esp], 0x4563bc
push edi
mov dword [0x46d810], eax
call esi
push eax
call fcn.004350fc
mov dword [0x46d814], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00432063
test eax, eax
pop ecx
pop ecx
je 0x43f609
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ff30
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43f63b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004350fc
cmp eax, ebx
pop ecx
mov dword [0x46d81c], eax
je 0x43f63b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004350fc
pop ecx
mov dword [0x46d818], eax
mov eax, dword [0x46d818]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43f6c0
cmp dword [0x46d81c], ecx
je 0x43f6c0
push eax
call fcn.00435173
push dword [0x46d81c]
mov esi, eax
call fcn.00435173
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43f6c0
cmp edi, ebx
je 0x43f6c0
call esi
cmp eax, ebx
je 0x43f68d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43f68d
test byte [ebp - 0x18], 1
jne 0x43f6c0
lea eax, [ebp - 0x10]
push eax
call fcn.0043209a
test eax, eax
pop ecx
je 0x43f6a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ff30
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43f6b7
or dword [ebp + 0x10], 0x200000
jmp 0x43f6fb
or dword [ebp + 0x10], 0x40000
jmp 0x43f6fb
mov eax, dword [0x46d810]
cmp eax, dword [ebp - 8]
je 0x43f6fb
push eax
call fcn.00435173
cmp eax, ebx
pop ecx
je 0x43f6fb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43f6fb
mov eax, dword [0x46d814]
cmp eax, dword [ebp - 8]
je 0x43f6fb
push eax
call fcn.00435173
cmp eax, ebx
pop ecx
je 0x43f6fb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46d80c]
call fcn.00435173
cmp eax, ebx
pop ecx
je 0x43f71b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43f71d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44bc83
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x466720]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x46d880
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x46d880
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4595b8
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00447ae0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x449d28
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x466720]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00449cbd
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.00431f40
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 0x449d77
cmp dword [ebp - 0x1c], 5
jb 0x449d8f
jmp 0x449d8b
cmp dword [ebp - 0x10], 1
jne 0x449d8f
cmp dword [ebp - 0x1c], 4
ja 0x449d8b
jne 0x449d8f
cmp dword [ebp - 0x18], 0
jbe 0x449d8f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x457d48
call fcn.00449b91
test eax, eax
jge 0x449db0
mov byte [0x46db74], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042f8e0
add ebp, 0x78
leave
ret
Function at 0x405bbc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00404766
xchg ebp, eax
push es
in al, 0xd0
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
invalid
Function at 0x402f2c
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 0x402f68
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 0x402f88
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405250
add esp, 0x210
pop esi
pop ebx
ret

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

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

Function at 0x403f74
Capabilities:
Query or enumerate registry value

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

Function at 0x404e60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ac04c], 0
je 0x404ec1
cmp word [0x4ac220], 0xd7b2
jne 0x404e89
cmp dword [0x4ac228], 0
jbe 0x404e89
mov eax, 0x4ac21c
call dword [0x4ac238]
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 0x404ee8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0030], 0
jne 0x404edd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406754
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 0x406984
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406984
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406860
xor eax, eax
push ebp
push 0x406859
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406590
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 0x40683e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4069c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40683e
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 0x406860
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 0x40697a
cmp byte [ebp - 0xd], 0
jne 0x4068a7
cmp byte [ebp - 0x12], 0
je 0x40697a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4068c0
dec ebx
cmp byte [ebx], 0x2e
je 0x4068cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4068bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40697a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40690c
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 0x40697a
cmp byte [ebp - 0xd], 0
je 0x40697a
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 0x40697a
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 0x4090a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409134
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409134
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4090e7
test edx, 3
jne 0x4090d6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4090e1
jmp 0x4090e7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4090e7
cmp dword [ecx - 8], 1
je 0x4090f1
mov edx, ebx
or edx, 3
call fcn.0040572c
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 0x409103
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404fe0

Function at 0x409140
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4091d0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4091d0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409183
test edx, 3
jne 0x409172
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40917d
jmp 0x409183
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409183
cmp dword [ecx - 8], 1
je 0x40918d
mov edx, ebx
or edx, 3
call fcn.0040572c
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 0x40919f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404fe0

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004054a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409bfd
test al, 0x10
je 0x409c01
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004054a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c21
test al, 0x10
jne 0x409c25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c898
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 0x40c8d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050d0
jmp 0x40c8da
mov eax, ebx
mov edx, esi
call fcn.00405034
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c8e4
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 0x40c906
movzx eax, byte [esp]
jmp 0x40c908
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cf98
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce10
mov eax, dword [0x4aafd0]
cmp byte [eax], 0
je 0x40d014
mov eax, dword [0x4aad7c]
call fcn.00403538
call fcn.00402e80
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.00409fe4
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 0x40d05c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d04a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4aad14]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ae7f8]
call fcn.00406538
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 0x40d8f0
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 0x40d9c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405078
lea eax, [ebp - 4]
call fcn.004054f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004054a4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d9b0
mov eax, ebx
call fcn.00402d24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d9a9
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.004054a4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d993
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d9d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d993
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 0x40d9b0
mov eax, dword [ebp - 0x10]
call fcn.00402d40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9cd
lea eax, [ebp - 4]
call fcn.00404fe0
ret
Function at 0x423eac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4af304
cmp dword [edi], 0
jne 0x423f28
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4af300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a0b94
mov ecx, 2
call fcn.00403034
mov edx, 0x423e84
lea eax, [esi + 5]
call fcn.00423ea4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423ea4
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 0x423efd
mov dword [0x4af300], 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 0x4266e0
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.004054a4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x426738
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ab134]
mov dl, 1
mov eax, dword [0x426204]
call fcn.0040d158
call fcn.00404a28
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042630c
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 0x4278c8
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 0x4278ce
ret
Function at 0x43a4d0
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 0x43a6a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.00456f84
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x43a689
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x43a536
mov eax, dword [esi]
add eax, 0x264
call fcn.00404fe0
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x43a610
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x4ab10c]
movzx eax, al
bt dword [edx], eax
jae 0x43a5cd
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.00458008
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43a654
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004051c8
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.004051c8
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.00405364
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x43a654
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004051c8
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.004052ac
jmp 0x43a654
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x43a5fd
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.00405544
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.004052a0
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040da58
cmp al, 2
je 0x43a5ec
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43a641
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.00405544
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43a665
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x43a672
push ebp
call fcn.0043a3e8
pop ecx
jmp 0x43a689
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00404370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a6ab
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405004
ret