joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417201
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4827f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417244
cmp word [esi], dx
jne 0x417244
or byte [edi + eax + 0x28], 4
jmp 0x417249
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41739c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41737c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41728b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4172c1
cmp eax, edx
jae 0x4172cd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417263
jmp 0x41739c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417378
cmp dword [ebp - 0x14], 0
je 0x417378
mov eax, dword [ebx*4 + 0x4827f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417350
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417319
mov word [esi], cx
jmp 0x41734c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4827f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4827f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4827f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41739c
pop ebx
cmp word [ebp - 4], bx
jne 0x417361
cmp esi, dword [ebp + 0xc]
jne 0x417361
mov word [esi], bx
jmp 0x417399
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417c35
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41739c
push 0xd
jmp 0x417395
mov ecx, dword [ebx*4 + 0x4827f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417393
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41739c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433508
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x442758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call fcn.0040dcc6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401850
push 0x80004005
call fcn.00401bf0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x439ba0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402220
lea ecx, [ebp - 0x20]
mov bl, 2
push ecx
mov byte [ebp - 4], bl
call fcn.00401600
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00401e40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4018ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x18]
mov ecx, 0x439e78
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4018dd
test dx, dx
je 0x4018d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4018dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4018b7
xor eax, eax
jmp 0x4018e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4018fd
push 0x43eed0
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], 0
call fcn.00420b7d
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402640
test eax, eax
jne 0x401922
mov ecx, dword [ebp - 0x1c]
push 1
push eax
push ecx
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
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 0x402150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402169
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4021a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4021a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4021a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402190
cmp esi, eax
jb 0x4021aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402e99
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x442758]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x402ed6
push 0x4349d0
push 4
push eax
call fcn.0041ed9a
push eax
call fcn.00401b60
add esp, 0x10
jmp 0x402ee8
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x402f53
push edi
call fcn.0041eeff
mov edi, dword [eax]
call fcn.0041eeff
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0041eea5
add esp, 0x18
mov ebx, eax
call fcn.0041eeff
cmp dword [eax], 0
je 0x402f33
call fcn.0041eeff
push dword [eax]
call fcn.00402df6
pop ecx
jmp 0x402f3a
call fcn.0041eeff
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x402f53
cmp ebx, esi
jae 0x402f53
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x402f55
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dde6
leave
ret
Function at 0x404c96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x404cdc
call fcn.0040c430
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404cdc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x404d1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x404d08
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404d08
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404d1c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4323b5
call fcn.0041ecc3
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040c430
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x405f9b
call fcn.0040c430
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x405fac
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x405fb9
or eax, 0xffffffff
jmp 0x406115
mov ecx, esi
call fcn.00405a97
mov dword [ebp - 0x14], eax
call fcn.00408ee8
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x406037
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x406037
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x406037
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00402e80
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x406037
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x406037
mov ecx, ebx
call fcn.0040d2ea
test eax, eax
je 0x406037
push 0
mov ecx, ebx
call fcn.0040d305
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040a83a
push dword [ebp - 0x14]
call fcn.00408e40
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00405d58
xor edi, edi
cmp eax, edi
je 0x406094
test byte [esi + 0x3c], 0x10
je 0x40607e
push 4
pop edi
mov ecx, esi
call fcn.0040d1fb
test ax, 0x100
je 0x406074
push 5
pop edi
push edi
mov ecx, esi
call fcn.004089d6
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x406094
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040d4af
or dword [ebp - 4], 0xffffffff
jmp 0x4060bf
cmp dword [ebp - 0x28], edi
je 0x4060cd
push 1
mov ecx, ebx
call fcn.0040d305
cmp dword [ebp - 0x2c], edi
je 0x4060dd
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4060f6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4060f6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00405ad1
cmp dword [esi + 0x58], edi
je 0x406112
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041ed68
ret
Function at 0x40b954
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40b997
call fcn.0040c430
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b997
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b9b2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b50e
test ebx, ebx
mov esi, eax
je 0x40b9b0
test edi, edi
je 0x40b9b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40e700
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40e72e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40e74c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040e66a
jmp 0x40e74c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e74c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040e66a
test edi, edi
mov eax, edi
jne 0x40e736
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x445708]
test ecx, ecx
je 0x40e80f
jmp 0x40e6ff
ret 8

Function at 0x41dde6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442758]
jne 0x41ddf0
repz ret
jmp fcn.00423026
Function at 0x421e37
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 + 0x442770]
je 0x421e52
inc edi
cmp edi, 0x17
jb 0x421e43
cmp edi, 0x17
jae 0x421fd2
push ebp
push 3
call fcn.0042a6f0
cmp eax, 1
pop ecx
je 0x421f9e
push 3
call fcn.0042a6f0
test eax, eax
pop ecx
jne 0x421e86
cmp dword [0x4425c4], 1
je 0x421f9e
cmp ebx, 0xfc
je 0x421fd1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x445a68
push ebp
call fcn.0042a68b
add esp, 0xc
test eax, eax
je 0x421ebc
push esi
push esi
push esi
push esi
push esi
call fcn.0042416f
add esp, 0x14
push 0x104
mov esi, 0x445a81
push esi
push 0
mov byte [0x445b85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421f00
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042a68b
add esp, 0xc
test eax, eax
je 0x421f00
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042416f
add esp, 0x14
push esi
call fcn.0042a600
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421f45
push esi
call fcn.0042a600
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x445d7c
push 0x437d74
sub ecx, eax
push ecx
push eax
call fcn.0042a540
add esp, 0x14
test eax, eax
je 0x421f45
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042416f
add esp, 0x14
jmp 0x421f47
xor esi, esi
push 0x437d70
push ebx
push ebp
call fcn.0042a4cf
add esp, 0xc
test eax, eax
je 0x421f67
push esi
push esi
push esi
push esi
push esi
call fcn.0042416f
add esp, 0x14
push dword [edi*8 + 0x442774]
push ebx
push ebp
call fcn.0042a4cf
add esp, 0xc
test eax, eax
je 0x421f89
push esi
push esi
push esi
push esi
push esi
call fcn.0042416f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042a312
add esp, 0xc
jmp 0x421fd1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x421fd1
cmp ebp, 0xffffffff
je 0x421fd1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x442774]
push dword [esi]
call fcn.0042a600
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 0x42a312
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004229fb
xor ebx, ebx
cmp dword [0x446560], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42a3e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42a4c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42a4c8
push eax
call fcn.0042298d
mov dword [esp], 0x437fb4
push edi
mov dword [0x446560], eax
call esi
push eax
call fcn.0042298d
mov dword [esp], 0x437fa0
push edi
mov dword [0x446564], eax
call esi
push eax
call fcn.0042298d
mov dword [0x446568], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041e1d1
test eax, eax
pop ecx
pop ecx
je 0x42a3b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042416f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42a3e8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042298d
cmp eax, ebx
pop ecx
mov dword [0x446570], eax
je 0x42a3e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042298d
pop ecx
mov dword [0x44656c], eax
mov eax, dword [0x44656c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42a46d
cmp dword [0x446570], ecx
je 0x42a46d
push eax
call fcn.00422a04
push dword [0x446570]
mov esi, eax
call fcn.00422a04
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42a46d
cmp edi, ebx
je 0x42a46d
call esi
cmp eax, ebx
je 0x42a43a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a43a
test byte [ebp - 0x18], 1
jne 0x42a46d
lea eax, [ebp - 0x10]
push eax
call fcn.0041e208
test eax, eax
pop ecx
je 0x42a455
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042416f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42a464
or dword [ebp + 0x10], 0x200000
jmp 0x42a4a8
or dword [ebp + 0x10], 0x40000
jmp 0x42a4a8
mov eax, dword [0x446564]
cmp eax, dword [ebp - 8]
je 0x42a4a8
push eax
call fcn.00422a04
cmp eax, ebx
pop ecx
je 0x42a4a8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42a4a8
mov eax, dword [0x446568]
cmp eax, dword [ebp - 8]
je 0x42a4a8
push eax
call fcn.00422a04
cmp eax, ebx
pop ecx
je 0x42a4a8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446560]
call fcn.00422a04
cmp eax, ebx
pop ecx
je 0x42a4c8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a4ca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e0a1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0042dc74
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0x4e
mov byte [ebp - 0x3f], 0x6d
mov byte [ebp - 0x3e], 0x63
invalid

Function at 0x42e0ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
ret

Function at 0x431dc4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x442758]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00431d59
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.0041ef50
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 0x431e13
cmp dword [ebp - 0x1c], 5
jb 0x431e2b
jmp 0x431e27
cmp dword [ebp - 0x10], 1
jne 0x431e2b
cmp dword [ebp - 0x1c], 4
ja 0x431e27
jne 0x431e2b
cmp dword [ebp - 0x18], 0
jbe 0x431e2b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x439998
call fcn.00431c2d
test eax, eax
jge 0x431e4c
mov byte [0x446704], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041dde6
add ebp, 0x78
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x26f132c5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
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
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x752e7138
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403518
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.0040525c
test esi, esi
jne 0x40354e
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.0040534c
jmp 0x40356c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040341c
mov edi, eax
test esi, esi
je 0x40356c
cmp dword [ebx], 0
je 0x40356c
dec esi
jmp 0x403555
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404158
Capabilities:
Query or enumerate registry value

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

Function at 0x405028
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d4048], 0
je 0x405089
cmp word [0x4d421c], 0xd7b2
jne 0x405051
cmp dword [0x4d4224], 0
jbe 0x405051
mov eax, 0x4d4218
call dword [0x4d4234]
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 0x4050b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bf030], 0
jne 0x4050a5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4051e0
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 [0x4bf038], 0
je 0x405206
mov edx, esi
mov eax, ebx
call dword [0x4bf038]
jmp 0x405215
mov eax, 8
call fcn.004030bc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d4049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051a8
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