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

Disassembly:
sub esp, 0x120
mov eax, dword [0x10209f80]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1014846f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100f5910
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.1010ccb0
push esi
call dword [0x10209fd4]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x101485cf
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x101484c9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100f5910
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.1010ccb0
push 0
mov esi, 0x4d
call dword [0x10209fd4]
add esp, 0x20
jmp 0x101485c1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10148509
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100f5910
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.1010ccb0
add esp, 0x1c
mov esi, 0x4d
jmp 0x101485ad
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x10148537
jg 0x1014851d
cmp edi, 0x100000
jbe 0x10148537
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.1010ccb0
add esp, 0xc
mov esi, 0x4d
jmp 0x101485ad
lea eax, [edi + 1]
push eax
call dword [0x10209fd0]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1014854f
lea esi, [eax + 0x1b]
jmp 0x101485ad
test edi, edi
je 0x10148594
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101485ec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101485e8
add esi, eax
cmp esi, edi
jb 0x10148560
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.101481f0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x10209fd4]
add esp, 4
push dword [esp + 0x20]
call fcn.1014f73a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100f3936
add esp, 0x120
ret
mov edi, esi
jmp 0x10148594
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100f5910
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.1010ccb0
add esp, 0x1c
mov esi, 0x4d
jmp 0x101485ad
Function at 0x1014e300
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x10209fd0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1014e32b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x1014e37a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x1014e382
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1014e3f6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1014e3b0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x1014e425
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x101fc1ad
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x101fc1ae
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x1014e400
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x1014e430
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.100f9300
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x10209fd0]
mov esi, eax
add esp, 8
test esi, esi
je 0x1014e5b2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x1014e4b2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi + 8]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1014e526
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1014e4e0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x1014e555
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x101fc1ad
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x101fc1ae
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x1014e530
push dword [esp + 0x30]
call fcn.100f9300
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebp, dword [esi]
test edi, edi
jne 0x1014e580
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
call eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebp + 8]
push edi
call eax
push esi
call dword [0x10209fd4]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x1014e680
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1014e6a6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1014e6de
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.100f9300
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x1014e735
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x1014e744
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x1014e755
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x1014f390
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x1014f3db
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x1014f3a1
pop edi
pop esi
pop ebx
ret

Function at 0x1014fd7b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1014fda2
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1014fda5
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1014fd57
pop esi
leave
ret 8
Function at 0x10051977
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
jmp 0x100740ec
mov byte [esp], al
cmc
push dword [edi]
pop dword [esp + 4]
push dword [esp]
pushal
cmp edi, ebx
push dword [esp]
jmp 0x10047ba7
lea esp, [esp + 0x2c]
ja 0x100790a6
pushal
neg al
sub ebx, edi
push 0xa4872102
lea esp, [esp + 0x24]
add ebx, esp
jmp 0x1007915c

Function at 0x10051b2e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
not dl
mov dword [ebp - 0x18], eax
movsx edx, al
not dl
mov edx, edi
pushfd
pushfd
lea esp, [esp + 0x14]
jmp 0x10075d03
and dl, 0x1a
mov dword [ebp - 0x28], eax
rol edx, cl
bts dx, 0xc
adc dl, dh
xor edx, edi
mov dword [ebp - 0x2c], eax
cmp bl, bh
sub eax, 1
jmp 0x1004797b

Function at 0x1006ee5a
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
shr si, cl
mov ecx, edi
bts si, 2
sub ecx, ebx
sub si, si
movsx si, cl
push dword [esp + 4]
lea esi, [esp + 0xc]
cmp dh, 0x85
test cl, 0x3d
pushal
jmp 0x10077542
sub edi, 4
jmp 0x10078782
push dword [edi]
pop dword [esp + 0x28]
stc
mov byte [esp + 4], dl
clc
cmp edi, ebx
pushfd
push 0xf6243db7
lea esp, [esp + 0x30]
ja 0x100790a6
sub al, 0xf0
rol al, 1
sub ebx, edi
add al, ah
inc al
shld edi, ebp, 1
add ebx, esp
sub di, 0xf732
rcr di, 0xf
mov edi, ebx
shr al, 5
mov al, 0x2e
push 0x9ca4bde6
repne scasb al, byte es:[edi]
call fcn.1006fd20

Function at 0x10071353
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
repne scasb al, byte es:[edi]
jmp 0x1006ca1a
call fcn.1006cb96
dec si
lea esi, [esp + 4]
test dl, dh
jmp 0x10076739
mov byte [esp], cl
lea esp, [esp + 0x24]
ja 0x100790a6
not al
dec al
sub ebx, edi
lea edi, [eax*8 - 0x2ce9a440]
setg al
add di, bx
add ebx, esp
sal al, 7
rcr edi, cl
mov edi, ebx
inc al
clc
mov al, 0x2e
bt ebp, edi
test cl, cl
jmp 0x10047ce1
jne 0x10049bd6
bswap ax
movsx ax, cl
mov byte [edi - 1], 0
mov al, 0x42
push ebx
pushal
pushfd
lea eax, [0x10077f1c]
pushfd
pushfd
jmp 0x10048e4a
mov byte [esp + 4], 0xce
lea esp, [esp + 0x2c]
jne 0x10051953
push 0x53d316ad
bswap si
bsr si, sp
mov ecx, edi
xor si, 0xc690
shld si, cx, 0xf
lea esi, [edx + 0x6e505e]
sub ecx, ebx
jmp 0x100491b4
jmp 0x100499c1
push 0xbe2a1579
cmp edi, ebx
pushal
jmp 0x10074392
cmp dl, dl
sub edi, 4
test si, 0xa286
push dword [edi]
pop dword [esp]
jmp 0x10075949
Function at 0x100722fc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
lea eax, [edi*4]
call fcn.10070442
lea eax, [eax*4 + 0x55fa56e2]
movsx ax, al
push edi
movsx ax, dl
push edx
movzx di, dl
jmp 0x10075e71
push dword [esp]
adc edx, edx
test dh, 0x6e
push edx
cmp bh, 0x1b
push 0xcc677913
sub ecx, 1
jmp 0x1006f81c
pushfd
pushfd
test ah, 0x4f
shl edx, cl
stc
mov dword [ebp - 0x20], edx
jmp 0x10077097
bswap eax
mov dword [esp], ebx
lahf
movzx ax, cl
push ecx
bswap ax
lea eax, [ebx - 0x10b3154c]
lahf
push esi
jmp 0x1004868f
push 0xd53d8dff
call fcn.1006c8e3
dec esp
insd dword es:[edi], dx
jb 0x10071594
push edx
inc ebp
push es
jecxz 0x100714f8
stosd dword es:[edi], eax
movsb byte es:[edi], byte [esi]
fsubr st(0), st(0)
out 0xe8, al
jmp 0x1007159d
mov cl, 0x1d
mov bl, 0x34
mov eax, 0xe86f7c1c
adc al, 0x2b
in eax, dx
push 0xffffffffffffffcd
xor byte [esi], ch
invalid
shr ecx, 1
jmp 0x10049d4d
xchg di, ax
mov edi, 0x3d36
bswap ax
movsx ax, al
jmp 0x10047ad6
add esp, 0x18
jle 0x10071513
cmp eax, 0xe
call fcn.1006f8d3

Function at 0x10072564
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
sar eax, cl
not al
push ebp
add bp, ax
aas
cmc
mov ebp, esp
dec eax
btr ax, si
bts ax, bp
sal ah, 3
sub esp, 0x10
clc
push esi
push ebx
shld eax, edi, 7
neg al
btc ax, dx
mov dword [esp], edi
inc ax
sar ax, 0xc
not ah
inc al
push ebx
dec al
push edx
sbb al, 0x1b
shld ax, ax, cl
btc ax, 7
jmp 0x100758b4
mov eax, dword [ebp + 8]
call fcn.100790bb
std
push ebx
fcomp dword [edx + ebx*2 + 0x4d]
mov ecx, 0xa8af5be1
loope 0x1007592a
sbb byte [esi], dl
mov edx, 0x57646639
salc
add esp, esi
adc ebx, dword [eax + edx*8 + 0x15dd08f7]
jns 0x100758e0
invalid
insb byte es:[edi], dx
dec eax
inc ebx
xor cl, byte [edi]
das
fxtract
dec ebp
sub byte [ecx - 0x37], ch
hlt
mov al, byte [0x57638324]
not dword [ebp - 4]
or eax, 0x6d7b3045
jnp 0x10075999
jo 0x10075980
xor ah, byte [0xa68fdff6]
ror byte [edi - 0x52], cl
lodsb al, byte [esi]
lea esi, [ecx - 0x2c]
xor al, 0x95
jp 0x1007591f
mov edi, 0x73e304a2
movsb byte es:[edi], byte [esi]
sub eax, 0x68e7aea2
jns 0x10075961
sub bh, byte [esi - 0x169f20c7]
cmp al, 0xea
invalid
and al, 4
popfd
push dword [esp + 0x38]
ret 0x3c
xchg esi, eax
pop ss
cld
out dx, eax
pop ebp
jl 0x1007596f
invalid

Function at 0x10075044
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
call fcn.10078181
lea eax, [ebx + eax*4 + 0x6c0]
call fcn.10071a47
lea edi, [ebp + edi*8 - 0x7e]
call 0x1ae3de34
mov ebx, 0x6febecb4
or bh, byte [ebx + 0x6febecb4]
jno 0x100750d5
jbe 0x10075058
lodsd eax, dword [esi]
mov es, word [ecx - 0xcfe0652]
inc esp
mov dword [0x515b22db], eax
cdq
sbb ecx, dword [eax]
and eax, 0x6660e15e
imul ebp, edx, 0x35512f4b
mov byte ds:[edi + 0xa07ceee], ah
imul ecx, dword [ebx + 0x68], 0xffffffaf
int1
adc eax, 0xecd2b04e
or byte es:[ebx], dh
retf 0x3383
jmp 0x10048197
Function at 0x100769bd
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
push 0x69dde1e5
jmp 0x10076fad
pop eax
jmp 0x1007620a
repne scasb al, byte es:[edi]
pushal
pushfd
push 0x93aba9e0
lea esp, [esp + 0x30]
jne 0x10049bd6
bswap eax
setp ah
push 0x9220ea11
mov byte [edi - 1], 0
jmp 0x1006ee8f
push ebx
bswap ax
setno al
pushfd
not al
lea eax, [0x10077f1c]
mov word [esp], 0xb56
pushal
pushfd
mov dword [esp + 0x24], 0x10047bb5
call fcn.1006ee8a
cmp edi, ebx
pushfd
lea esp, [esp + 0x30]
ja 0x100790a6
push esi
sub ebx, edi
adc al, 0x76
mov di, cx
lea esp, [esp + 4]
add ebx, esp
sar edi, cl
test ah, ch
mov edi, ebx
pushfd
or al, bh
or al, dl
xor al, 0x85
mov al, 0x2e
pushfd
jmp 0x10071460
mov esp, esi
pushfd
push dword [esp]
mov word [esp + 4], ax
lea esp, [esp + 8]
jmp 0x10051953
push esp
sub edi, 4
clc
cmc
push dword [edi]

Function at 0x100790bb
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
pushal
bt di, bx
cmp ah, ch
test eax, eax
pushfd
lea esp, [esp + 0x28]
je 0x10051953
bts si, dx
Function at 0x401e20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, 0x18
mov eax, dword fs:[eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, edx
je 0x401eb3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov ecx, eax
call fcn.004020b9
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
cmp eax, edx
jne 0x401ea9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
leave
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x401e77
mov eax, 0
leave
ret

Function at 0x401f74
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 8
add eax, dword [ebp - 0x20]
add eax, 0x78
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x18]
cmp eax, edx
jb 0x401fe7
jmp 0x402030
mov eax, 1
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x401fcb
mov eax, dword [ebp - 0xc]
imul eax, eax, 4
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.00401efc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x401fda
mov eax, dword [ebp - 0xc]
imul eax, eax, 2
add eax, dword [ebp - 0x10]
movzx eax, word [eax]
movzx eax, ax
imul eax, eax, 4
add eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
leave
ret 8
mov eax, 0
leave
ret 8
Function at 0x403408
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405de0
test esi, esi
jne 0x403440
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405f1c
jmp 0x40345e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040334c
mov edi, eax
test esi, esi
je 0x40345e
cmp dword [ebx], 0
je 0x40345e
dec esi
jmp 0x403447
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403ba4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403c1c
xor eax, eax
push ebp
push 0x403c15
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 0x403c74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x52f024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x52f024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b18
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x544aec
cmp dword [ebp + 0xc], 2
jl 0x404b2c
mov ebx, 0x544b1c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x404b64
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4012d0
mov dword [0x542014], eax
mov eax, 0x4012d8
mov dword [0x542018], eax
mov eax, ebx
call fcn.00404a04
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x404b99
cmp al, 3
jge 0x404b99
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x404baa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x404bb5
call dword [ecx + eax*4]
cmp dword [0x542038], 0
jne 0x404bcb
mov byte [0x542040], 1
fnstcw word [0x52f024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00404e48
call fcn.00404ab0
ret 4
Function at 0x404db8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x542054], 0
je 0x404e19
cmp word [0x542330], 0xd7b2
jne 0x404de1
cmp dword [0x542338], 0
jbe 0x404de1
mov eax, 0x54232c
call dword [0x542348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404e44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52f030], 0
jne 0x404e35
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fe4
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 [0x52f034], 0
je 0x40500a
mov edx, esi
mov eax, ebx
call dword [0x52f034]
jmp 0x405019
mov eax, 8
call fcn.00403064
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x542055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fac
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