joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c109
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x5c]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x34
call fcn.00448f69
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x41c15d
mov ecx, dword [ebp - 0x18]
call fcn.00404832
mov dword [ebp - 0x1c], eax
jmp 0x41c164
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x2c], ecx
mov esi, esp
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b4]
cmp esi, esp
call fcn.00448f29
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov esi, esp
push 0x10001b4f
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b8]
cmp esi, esp
call fcn.00448f29
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10099040
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.00448f29
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 0x10099030
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x100a79bc]
cmp esi, esp
call fcn.00448f29
mov esi, esp
push 0x10001b4f
push 0x10099020
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.00448f29
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, 0x100a34b8
call fcn.004042ce
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
cmp ebp, esp
call fcn.00448f29
mov esp, ebp
pop ebp
ret
Function at 0x462899
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b178
push 0x1004d448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x4628d6
push 0
call dword [0x100a77a8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x46290e
push 0xc1
call dword [0x100a76c8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x462a72
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x462946
push 0xbf
call dword [0x100a76c8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x462a72
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x462974
push 0xc0
call dword [0x100a76c8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x462a72
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x462999
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x462a4c
push 0x100a2838
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.0044e9a9
add esp, 8
test eax, eax
jne 0x462a47
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x4629e8
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x4629ea
jmp 0x462a4c
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x462a17
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x462a19
jmp 0x462a4c
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x462a2d
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [0x100a76c8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x462a72
jmp 0x462990
mov dword [ebp - 4], 0xffffffff
jmp 0x462a65
push 0xc0
call dword [0x100a76c8]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401a40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x34], 0
jne 0x401a5e
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x401a91
xor eax, eax
jmp 0x401b09
cmp dword [ebp + 0x30], 0
je 0x401aab
mov eax, dword [ebp + 0x30]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x401ab2
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x30]
push edx
call fcn.00401a20
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00401b10
add esp, 0x14
test eax, eax
jne 0x401ad8
xor eax, eax
jmp 0x401b09
cmp dword [ebp + 0x2c], 0
je 0x401af0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x2c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
and ecx, 4
test ecx, ecx
jne 0x401b04
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
mov byte [ebx + edi], 0xca
push ebp
mov ebp, esp
sub dword [ebx + 8], 0xffffff8b
jp 0x406215
push ebx
push esi
push edi
cmp dword [eax + 4], 1
aam 0x85
ja 0x406215
add byte [ebp + esi*4 + 0x58], ch
insb byte es:[edi], dx
mov ch, 0x58
loope 0x4061a5
push ebp

Function at 0x40a940
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
scasb al, byte es:[edi]
in al, dx
mov edi, dword [ecx]
or byte [esi - 0x75], dl
test esp, esp
or byte [ecx], al
lea esi, [eax*4 + 0x4108e4]
pop edx
leave
jne 0x40a970
add eax, dword [esi - 0x7b]
hlt
mov esp, dword [edi + 0x10]
ffree st(0)
and cl, byte [0x51500ebe]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
push ss
mov edx, 0x8ba9558b
push es
push edx
push eax
dec esi
sbb al, 0xb8
stosb byte es:[edi], al
add byte [eax + 0x5d], cl
dec eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor byte [edi + 0x7d], bl
or al, 0x8c
pop ss
enter 0xffffffffffff89d2, 0x55
clc
jne 0x40a98b
pop edi
pop esi
imul eax, eax, 0x5de561ec
ret 0x10

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x29875218
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x63c67815
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1001c01
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, 0x20006
push edi
push ebx
push ebx
push ebx
push 0x1001480
push 0x80000002
call esi
cmp eax, ebx
jne 0x1001cbf
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
mov esi, eax
cmp esi, ebx
je 0x1001c5c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001cfd
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push 0x1001460
push dword [ebp - 4]
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x1001caa
push dword [ebp + 0x14]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push 0x100146c
push dword [ebp - 4]
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1001ccd
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jle 0x1001d20
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001d20
push dword [ebp + 0x10]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push 0x1001478
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov esi, eax
cmp esi, ebx
je 0x1001d11
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 8]
call edi
cmp esi, ebx
jle 0x1001d0d
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x1001d20
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1001d2c
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1001480
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x1001d65
jle 0x1001d96
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001d96
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x1001d93
jle 0x1001d8f
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x1001d95
xor eax, eax
pop esi
pop edi
leave
ret 4
Function at 0x10034eb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007154]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [edi*4 + 2]
push eax
mov word [ebp - 0x24], 0x30
mov word [ebp - 0x22], 0x31
mov word [ebp - 0x20], 0x32
mov word [ebp - 0x1e], 0x33
mov word [ebp - 0x1c], 0x34
mov word [ebp - 0x1a], 0x35
mov word [ebp - 0x18], 0x36
mov word [ebp - 0x16], 0x37
mov word [ebp - 0x14], 0x38
mov word [ebp - 0x12], 0x39
mov word [ebp - 0x10], 0x61
mov word [ebp - 0xe], 0x62
mov word [ebp - 0xc], 0x63
mov word [ebp - 0xa], 0x64
mov word [ebp - 8], 0x65
mov word [ebp - 6], 0x66
call fcn.01005e40
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
je 0x10035b0
push esi
xor esi, esi
test edi, edi
jle 0x10035ab
push ebx
mov eax, dword [ebp + 8]
add eax, esi
movzx edx, byte [eax]
shr edx, 4
mov dx, word [ebp + edx*2 - 0x24]
mov word [ecx], dx
movzx eax, byte [eax]
cdq
push 0x10
pop ebx
idiv ebx
inc ecx
inc ecx
mov ax, word [ebp + edx*2 - 0x24]
mov word [ecx], ax
inc ecx
inc ecx
inc esi
cmp esi, edi
jl 0x100357d
pop ebx
and word [ecx], 0
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
call fcn.010057f5
leave
ret 8
Function at 0x1003630
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push edi
xor ebx, ebx
mov edi, 0x3e8
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
je 0x1003674
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80004005
jmp 0x100376e
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x1003664
push 4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1003664
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010035c5
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1003664
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x10
push 1
mov ebx, 0x1001750
push ebx
mov dword [ebp + 0xc], eax
mov edi, 0x1001720
push edi
lea eax, [ebp - 8]
push eax
call esi
push 0x48
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x1003664
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1003664
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1003664
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call esi
test eax, eax
je 0x1003664
push dword [ebp - 0xc]
call fcn.01005e40
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x1003664
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push dword [ebp - 4]
call esi
test eax, eax
je 0x1003664
push dword [ebp - 0xc]
push edi
call fcn.010034eb
cmp eax, ebx
je 0x1003664
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
cmp dword [ebp - 4], esi
je 0x100377e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x100378d
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x14], esi
je 0x100379a
push dword [ebp - 0x14]
call fcn.01005e7c
cmp dword [ebp - 0x10], esi
je 0x10037a7
push dword [ebp - 0x10]
call fcn.01005e7c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x100590d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10018d8
call fcn.01005b9c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1005948
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005948
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005960
cmp eax, 0x20b
je 0x100594d
mov dword [ebp - 0x1c], edi
jmp 0x1005974
cmp dword [ecx + 0x84], 0xe
jbe 0x1005948
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100596e
cmp dword [ecx + 0x74], 0xe
jbe 0x1005948
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10072fc], 0xffffffff
or dword [0x1007300], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10072d8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10072d4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10072f8], eax
call fcn.01001da0
cmp dword [0x1007158], edi
jne 0x10059d1
push fcn.01001da0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005b83
push 0x100701c
push 0x1007018
call sub.msvcrt.dll__initterm
mov eax, dword [0x10072d0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10072cc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1007014
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1005a37
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1005af1
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1005a85
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1005a53
cmp ax, 0x22
jne 0x1005a40
cmp word [esi], 0x22
jne 0x1005a5e
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1005a6c
cmp ax, 0x20
jbe 0x1005a59
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1005a92
movzx eax, word [ebp - 0x50]
jmp 0x1005a95
cmp word [esi], 0x20
jbe 0x1005a5e
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1005a85
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1005ab6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005aeb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005bd7
ret
Function at 0x1005ddf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10072dc], 0
push esi
jne 0x1005d4d
call fcn.01005c44
test eax, eax
je 0x1005d90
mov eax, dword [0x10072dc]
cmp eax, 1
jne 0x1005d6e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1005d90
pop esi
ret
push eax
call dword [0x10072e4]
test eax, eax
jne 0x1005dd8
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005d94
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10072dc]
call dword [0x10072e4]
mov edi, eax
test edi, edi
je 0x1005db9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1005dd5
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10072dc]
call dword [0x10072e0]
add edi, 0x10
cmp edi, esi
jb 0x1005dc1
mov eax, edi
pop edi
pop esi
ret
jmp 0x1005d3a

Function at 0x4ae718
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004ae797
jae 0x4ae724
xor ecx, ecx
call fcn.004ae797
jae 0x4ae74e
xor eax, eax
call fcn.004ae797
jae 0x4ae75f
mov al, 0x10
call fcn.004ae797
adc al, al
jae 0x4ae740
jne 0x4ae78c
stosb byte es:[edi], al
jmp 0x4ae725
call fcn.004ae7a3
dec ecx
loop 0x4ae76b
mov eax, ebp
call fcn.004ae7a1
jmp 0x4ae78d
lodsb al, byte [esi]
shr eax, 1
je 0x4ae7b3
adc ecx, 2
mov ebp, eax
jmp 0x4ae78d
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004ae7a1
cmp eax, 0x7d00
jae 0x4ae78b
cmp eax, 0x500
jae 0x4ae78c
cmp eax, 0x7f
ja 0x4ae78d
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ae725
pop ebp
ret 8
Function at 0x402edc
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 0x402f18
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 0x402f38
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d78
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403170
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.00404b08
test esi, esi
jne 0x4031a6
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.00404bf8
jmp 0x4031c4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403074
mov edi, eax
test esi, esi
je 0x4031c4
cmp dword [ebx], 0
je 0x4031c4
dec esi
jmp 0x4031ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4039a0
Capabilities:
Query or enumerate registry value

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

Function at 0x4048d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51004c], 0
je 0x404935
cmp word [0x510220], 0xd7b2
jne 0x4048fd
cmp dword [0x510228], 0
jbe 0x4048fd
mov eax, 0x51021c
call dword [0x510238]
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 0x40495c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50c030], 0
jne 0x404951
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a8c
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 [0x50c034], 0
je 0x404ab2
mov edx, esi
mov eax, ebx
call dword [0x50c034]
jmp 0x404ac1
mov eax, 8
call fcn.00402d0c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x51004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a54
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