joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x4fe439
call fcn.00427480
mov dword [ebp + 0xc], eax
mov ecx, 0x7a79b8
call fcn.00401680
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4fe45f
xor eax, eax
jmp 0x4fe4cf
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4fe47a
xor eax, eax
jmp 0x4fe4cf
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4fe49b
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4fe4cf
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004feea0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004031b0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x5126b0
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x620efe
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6912e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00407460
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CMFCToolBarButton.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00401d90
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00401d90
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call fcn.00611b80
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00611a40
mov ecx, dword [ebp - 0x10]
call fcn.00512840
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00514710
cmp dword [ebp + 0x10], 0
jne 0x512764
mov dword [ebp - 0x14], 0x630a27
jmp 0x51276a
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.00401a70
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x20], 0
je 0x512822
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x3c], 0
jne 0x512822
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x5127e0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x38], 0xffffffff
je 0x5127c3
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call fcn.004c4290
mov ecx, eax
call fcn.004c4410
jmp 0x5127de
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004c4290
mov ecx, eax
call fcn.004c4480
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], eax
jmp 0x512822
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0xffffffff
je 0x512807
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004c4290
mov ecx, eax
call fcn.004c4410
jmp 0x512822
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call fcn.004c4290
mov ecx, eax
call fcn.004c4480
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x52b4b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x52b4e4
push str.m_hKey___0
push 0
push 0x170a
push 0x638ca8
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x52b4e4
int3
xor edx, edx
jne 0x52b4e4
xor eax, eax
jne 0x52b4bb
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x52b51f
mov eax, dword [ebp - 0xc]
jmp 0x52b52e
cmp dword [ebp - 4], 4
je 0x52b52c
mov eax, 0xd
jmp 0x52b52e
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x52b540
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
jne 0x52b572
push str.pnBytes___0
push 0
push 0x1733
push 0x638ca8
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x52b572
int3
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
jne 0x52b59b
push str.m_hKey___0
push 0
push 0x1734
push 0x638ca8
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x52b59b
int3
xor eax, eax
jne 0x52b59b
xor ecx, ecx
jne 0x52b572
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x52b5cf
mov eax, dword [ebp - 8]
jmp 0x52b5de
cmp dword [ebp - 4], 3
je 0x52b5dc
mov eax, 0xd
jmp 0x52b5de
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x52b5f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x52b622
push str.m_hKey___0
push 0
push 0x1805
push 0x638ca8
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x52b622
int3
xor edx, edx
jne 0x52b622
xor eax, eax
jne 0x52b5f9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 3
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x52b650
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x52b682
push str.m_hKey___0
push 0
push 0x180d
push 0x638ca8
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x52b682
int3
xor edx, edx
jne 0x52b682
xor eax, eax
jne 0x52b659
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x5e33b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6912e0]
jne 0x5e33ba
repz ret
jmp fcn.005f2c50
Function at 0x615460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6912e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov al, 0x6c
xor al, al
push edi
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0x52455355
mov dword [ebp - 0x18], 0x642e3233
mov word [ebp - 0x14], 0x6c6c
mov dword [ebp - 0x10], 0x72707377
mov dword [ebp - 0xc], 0x66746e69
mov word [ebp - 8], 0x41
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7c
push str.Tetris.cpp
push 0x474
mov edi, eax
call fcn.00402750
mov esi, eax
push str.tbW0LS50LS1uNC0uqY
push esi
call edi
lea edx, [esi + 0x130]
push str.6gkIBfkSqY
push edx
call edi
lea eax, [esi + 0x182]
push str.Systemcohfgthftgnstrgucdsffion
push eax
call edi
lea ecx, [esi + 0x1e6]
push 0x7a3696
push ecx
call edi
lea edx, [esi + 0x266]
push str.System_is_the_impodtanrtgponent
push edx
call edi
lea eax, [esi + 0x366]
push str.24564d0834a92e7169367f34d54f5f5e
push eax
call edi
lea ecx, [esi + 0x162]
push str.vtHRtLSm
push ecx
call edi
mov edx, dword [0x7a35dc]
mov dword [esi + 0x12c], edx
mov eax, dword [0x7a3918]
mov dword [esi + 0x468], eax
mov ecx, dword [0x7a391c]
mov dword [esi + 0x46c], ecx
mov edx, dword [0x7a3920]
mov ecx, dword [ebp - 4]
add esp, 0x44
pop edi
mov dword [esi + 0x470], edx
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005e33b0
mov esp, ebp
pop ebp
ret
Function at 0x615730
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6294c7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6912e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
movzx edx, word [eax + 0x14]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x24], 0x772488
mov dword [ebp - 0x28], ebx
lea esi, [edx + eax + 0x18]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
movzx ecx, word [eax + 6]
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], ecx
jge 0x615845
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x6157d1
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x615837
mov eax, dword [esi + 0xc]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.005e7080
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add esi, 0x28
jmp 0x61577c
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x688338
lea edx, [ebp - 0x20]
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x55
call fcn.005e7920
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.005eb590
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, 0x61582b
ret
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add esi, 0x28
jmp 0x61577c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6166e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x6912e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x83]
push ebx
push eax
mov byte [esi + 0x9d10], bl
mov dword [esi + 0x9d1c], ebx
mov dword [esi + 0x9d24], 0x12
mov dword [esi + 0x9d28], 0xc
mov dword [esi + 0x9d0c], 7
mov dword [esi + 0x9d20], ebx
mov byte [ebp - 0x84], bl
call fcn.005e7080
add esp, 0xc
push 0x66c6fc
push 0x7f
lea ecx, [ebp - 0x84]
push ecx
push 0x66c75c
push 0x66c7b4
push 0x66c81c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x84]
push edx
call fcn.005e3c40
mov ecx, 0x10
sub ecx, eax
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add esp, 4
xor edx, edx
mov dword [esi + 0x9d14], eax
mov dword [esi + 0x9d18], ecx
mov dword [esi + 0x9d3c], eax
cmp dword [esi + 0x9d24], ebx
jle 0x6167ce
push edi
lea edi, [esi + 4]
mov edi, edi
xor eax, eax
cmp dword [esi + 0x9d28], ebx
jle 0x6167be
mov ecx, edi
lea esp, [esp]
mov dword [ecx], ebx
inc eax
add ecx, 4
cmp eax, dword [esi + 0x9d28]
jl 0x6167b0
inc edx
add edi, 0x190
cmp edx, dword [esi + 0x9d24]
jl 0x6167a0
pop edi
lea eax, [esi + 0x9c84]
mov edx, 4
lea esp, [esp]
mov ecx, 4
mov dword [eax - 0x40], ebx
mov dword [eax], ebx
add eax, 4
dec ecx
jne 0x6167e5
dec edx
jne 0x6167e0
mov ecx, esi
call fcn.006160f0
mov ecx, esi
call fcn.006160f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005e33b0
mov esp, ebp
pop ebp
ret

Function at 0x616ec0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629893
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x6912e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x134]
mov edi, ecx
call fcn.006178a0
push 0x7f
lea eax, [ebp - 0x8f]
push 0
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x90], 0
call fcn.005e7080
add esp, 0xc
push str..hero.ini
push 0x7f
lea ecx, [ebp - 0x90]
push ecx
push 0x66c824
push 0x66c87c
push 0x66ca0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x90]
push edx
call fcn.005e3c40
mov ecx, dword [edi + 0x9d1c]
add esp, 4
cmp ecx, eax
jle 0x616f7c
mov eax, dword [edi + 0x9d14]
mov dword [ebp - 0x98], ecx
mov ecx, esi
mov dword [ebp - 0x94], 1
mov dword [ebp - 0xa0], eax
call fcn.00617aa0
jmp 0x616f8a
push 0
push 0
push 0x66c884
call fcn.0042e6c0
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x9c]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x616fc1
push str.nRefs___0
push 0
push 0x70
push str.c:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x616fc1
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x616fd7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0xffffffff
call fcn.00402d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e33b0
mov esp, ebp
pop ebp
ret
Function at 0x6175a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x6912e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00403ee0
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.005e7080
add esp, 0xc
push 0x66ca24
push 0x7f
lea ecx, [ebp - 0x84]
push ecx
push 0x66ca30
push 0x66ca34
push str.SETUP
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x84]
push edx
call fcn.005e3c40
add esp, 4
push 0
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.00412590
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005e33b0
mov esp, ebp
pop ebp
ret

Function at 0x617aa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629821
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x6912e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7f
lea eax, [ebp - 0x8f]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x90], 0
call fcn.005e7080
add esp, 0xc
push 0x66ca44
push 0x7f
lea ecx, [ebp - 0x90]
push ecx
push 0x66ca50
push 0x66ca54
push 0x66ca5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x94]
call fcn.00401ab0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov esi, dword [ebx + 0x98]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x617b7b
cmp dword [esi + 0xc], 0
jl 0x617b6b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x617b6b
push eax
call fcn.004012a0
add esp, 4
mov ecx, esi
mov dword [ebp - 0x98], eax
call fcn.00401d40
mov eax, dword [ebp - 0x98]
add eax, 0x10
mov dword [ebx + 0x98], eax
jmp 0x617b7b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebx + 0x98]
call fcn.004019a0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x94]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x617bb2
push str.nRefs___0
push 0
push 0x70
push str.c:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005e3450
add esp, 0x14
cmp eax, 1
jne 0x617bb2
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x617bc8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp dword [ebx + 0xa0], 0
jne 0x617c3f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x66ca64
push 0x7f
lea ecx, [ebp - 0x90]
push ecx
push 0x66ca70
push 0x66ca74
push 0x66ca7c
call esi
lea edx, [ebp - 0x90]
push edx
call fcn.005e3c40
add esp, 4
push 0x66ca84
push 0x7f
mov dword [ebx + 0x9c], eax
lea eax, [ebp - 0x90]
push eax
push 0x66ca90
push 0x66ca94
push 0x66ca9c
call esi
lea ecx, [ebp - 0x90]
push ecx
call fcn.005e3c40
add esp, 4
mov dword [ebx + 0x94], eax
mov ecx, ebx
call fcn.00403950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e33b0
mov esp, ebp
pop ebp
ret
Function at 0x408590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp - 0x44]
mov esi, 1
mov ecx, edi
mov esp, dword [0x4cbcbb99]
inc eax
add byte [eax - 0x1a], al
mov cl, byte [ebp + 0x10]
xor eax, dword [eax + 0x57458f9]
or eax, 0x40c2bd
inc esi
sub ecx, dword [eax]
mov ecx, esi
dec eax
and ecx, edx
mov cl, byte [ecx + ebx]
mov byte [eax], cl
jl 0x408596
shr edx, cl
out 0xd2, eax
jne 0x4085fc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ecx, eax
pop edi
pop esi
mov dword [edx], ecx
pop ebx
pop ebp
ret
ret 0x73
cmp al, 0x58
je 0x4085f6
mov ebx, 0x7840c2d0
mov edx, dword [ebp + 0xc]
mov ebp, 0xd2850845
ja 0x408631
jb 0x408616
and dword [ebp - 0x74e48801], 0x55
sbb al, 0x52
mov edx, dword [ebp + 0x1c]
push edx
push 0x8b521855
push ebp
fcom dword [edx + 0x51]
in al, 0xe8
call [di + 0x62ff]
les edx, [edi + ebx*2]
pop esi
pop ebx
pop ebp
mov bl, 0x8b
enter 0x233a, 0xffffffffffffffcf
mov cl, byte [ecx + ebx]
mov byte [esi], cl
mov esi, edi
adc al, ch
mov ebp, 0x46000032
mov edx, 0xe875bdbc
mov eax, dword [ebp - 0x79]
mov ecx, dword [ecx + ebp*4 + 0x2b]
invalid
mov ecx, eax
cmp ah, byte [ebx]
iretd
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2d3035ee
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x3d690cf8
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402dfc
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 0x402e39
xor eax, eax
mov al, 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 0x402e59
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405828
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030a8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403101
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402f44
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402f44
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x4030eb
inc ebx
jmp 0x4030d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403108
lea eax, [ebp - 8]
call fcn.004055b8
ret

Function at 0x403110
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004055b8
test esi, esi
jne 0x403147
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004056a8
jmp 0x403168
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f44
mov dword [esp], eax
test esi, esi
je 0x403168
cmp dword [ebx], 0
je 0x403168
dec esi
jmp 0x40314f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x654008], 0x8088405
inc edx
mov dword [ebx + 0x654008], edx
fld qword [ebx + 0x65406c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x4039f0
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403a06
sub ecx, 2
jne 0x403a28
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403a2f
cmp edx, dword [ebx + 8]
je 0x403a39
mov eax, 0x64
jmp 0x403a34
mov eax, 0x67
jmp 0x403a34
call sub.kernel32.dll_GetLastError
call fcn.00402d70
pop ebx
ret