joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025320
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x10025350
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1007100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
push 0x1005ce64
push eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100253ba
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100490d4
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x40c]
push ebx
push 0x400
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x10025407
nop dword [eax]
push eax
lea eax, [ebp - 0x40c]
mov ecx, edi
push eax
call fcn.1001cd90
push ebx
push 0x400
lea eax, [ebp - 0x40c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x100253e0
xor edx, edx
lea ecx, [edi + 0x12]
nop dword [eax]
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0xc], al
movzx eax, byte [ecx - 5]
mov byte [ebp + edx - 0xb], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0xa], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 9], al
add edx, 4
cmp edx, 8
jb 0x10025410
mov edx, dword [edi + 0x10]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
mov ecx, edi
push eax
push 0x10072d90
call fcn.1001cd90
push 8
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.1001cd90
lea ecx, [edi + 0x59]
mov esi, 4
lea edx, [edi + 2]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
sub esi, 1
jne 0x10025480
push 0x58
push esi
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movzx eax, byte [edi + esi + 0x58]
push eax
lea eax, [edi + 0x68]
lea eax, [eax + esi*2]
push str._02x
push eax
call fcn.1000ea80
inc esi
add esp, 0xc
cmp esi, 0x10
jl 0x100254b3
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x68]
add esp, 4
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.100490d4
mov esp, ebp
pop ebp
ret 4
Function at 0x10026180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1007100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x100261a0
mov edx, dword [ebp + 0xc]
mov ecx, 2
mov dword [ebp - 0x104], 0xc59a14c6
mov dword [ebp - 0x100], 0x10685ff3
mov dword [ebp - 0xfc], 0xb1b2341b
mov dword [ebp - 0xf8], 0xdaae6073
mov dword [ebp - 0xf4], 0xe57d339d
mov dword [ebp - 0xf0], 0x54e1c74d
mov dword [ebp - 0xec], 0xc1cce703
mov dword [ebp - 0xe8], 0xe80c4f85
mov dword [ebp - 0xe4], 0x7f11e662
mov dword [ebp - 0xe0], 0x51dcd0c0
mov dword [ebp - 0xdc], 0xa343ce91
mov dword [ebp - 0xd8], 0x8be9bc40
mov dword [ebp - 0xd4], 0xf7422396
mov dword [ebp - 0xd0], 0x7a65d8b6
mov dword [ebp - 0xcc], 0x6d49388d
mov dword [ebp - 0xc8], 0x8a2a5c4c
mov dword [ebp - 0xc4], 0x9f11e6f
mov dword [ebp - 0xc0], 0xa02b39aa
mov dword [ebp - 0xbc], 0x83c8a901
mov dword [ebp - 0xb8], 0x2702d605
mov dword [ebp - 0xb4], 0xb8133545
mov dword [ebp - 0xb0], 0x41bd371a
mov dword [ebp - 0xac], 0x4755f0cb
mov dword [ebp - 0xa8], 0x44f49b56
mov dword [ebp - 0xa4], 0xcf9e16f5
mov dword [ebp - 0xa0], 0x6ec30ffb
mov dword [ebp - 0x9c], 0xfa0b67b7
mov dword [ebp - 0x98], 0x633e9452
mov dword [ebp - 0x94], 0x98228f5a
mov dword [ebp - 0x90], 0x312e59a8
mov dword [ebp - 0x8c], 0xd517d958
mov dword [ebp - 0x88], 0x7b36a66
mov dword [ebp - 0x84], 0xeee2a2db
mov dword [ebp - 0x80], 0xeb531884
mov dword [ebp - 0x7c], 0xfd8e0aec
mov dword [ebp - 0x78], 0xac5d1d64
mov dword [ebp - 0x74], 0x4ad19a6
mov dword [ebp - 0x70], 0xe0b5b424
mov dword [ebp - 0x6c], 0x4b3da706
mov dword [ebp - 0x68], 0xed7ea429
mov dword [ebp - 0x64], 0x69727977
mov dword [ebp - 0x60], 0xca4a993a
mov dword [ebp - 0x5c], 0x300d97e3
mov dword [ebp - 0x58], 0xa12f75de
mov dword [ebp - 0x54], 0x487caf7b
mov dword [ebp - 0x50], 0xd1748cab
mov dword [ebp - 0x4c], 0xd33c953f
mov dword [ebp - 0x48], 0x3278d7e4
mov dword [ebp - 0x44], 0x92ea89a5
mov dword [ebp - 0x40], 0x2676f2f8
mov dword [ebp - 0x3c], 0xb9159c21
mov dword [ebp - 0x38], 0x6bd282bb
mov dword [ebp - 0x34], 0xc4932081
mov dword [ebp - 0x30], 0x36862c46
mov dword [ebp - 0x2c], 0x57088012
mov dword [ebp - 0x28], 0xfefc1f4e
mov dword [ebp - 0x24], 0x6cc95eb0
mov dword [ebp - 0x20], 0x281ccd2d
mov dword [ebp - 0x1c], 0xdfefdd88
mov dword [ebp - 0x18], 0xbabe8700
mov dword [ebp - 0x14], 0x6190f9bf
mov dword [ebp - 0x10], 0x5bf6c2d4
mov dword [ebp - 0xc], 0x25710e70
mov dword [ebp - 8], 0xff3b9f50
cmp edx, ecx
jbe 0x100263e7
mov esi, dword [ebp + 8]
movzx eax, byte [ecx + esi]
mov al, byte [ebp + eax - 0x104]
xor al, 0xba
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x100263d2
jmp 0x100263f1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100490d4
mov esp, ebp
pop ebp
ret 8
Function at 0x10031b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100aa50c]
push esi
push dword [ebp + 8]
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x10031bc7
mov eax, dword [edi]
test eax, eax
je 0x10031b80
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10031b80
test ebx, ebx
je 0x10031b80
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10031b80
cmp dword [ebp + 0xc], esi
je 0x10031bc7
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10031ba0
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10031b94
cmp eax, 1
jne 0x10031ba0
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10033a30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [0x10073ea0]
mov edx, 0x1000
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov eax, 8
sub eax, esi
cmp eax, 0x1000
push 0
cmovg eax, edx
push eax
lea eax, [ebp - 0x30]
add eax, esi
push eax
push dword [ecx + 0x21c8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x10033a99
mov ecx, dword [ebp - 0x10]
add esi, eax
mov edx, 0x1000
cmp esi, 8
jl 0x10033a60
jmp 0x10033a9b
mov esi, eax
cmp esi, 8
je 0x10033ab1
mov eax, 0xfffffffe
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x10000
call fcn.1004968c
mov esi, dword [ebp - 0x30]
add esp, 4
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], ecx
movlpd qword [ebp - 0x20], xmm0
jb 0x10033ae3
mov edi, dword [edi]
mov dword [ebp + 8], edi
mov eax, esi
or eax, ecx
je 0x10033bb4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
nop dword [eax]
push 0x10000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
jg 0x10033b28
jl 0x10033b21
cmp esi, 0x10000
jae 0x10033b28
mov edi, esi
mov dword [ebp - 0x1c], eax
jmp 0x10033b34
mov edi, 0x10000
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
push edi
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x10033b81
nop dword [eax + eax]
mov eax, edi
mov ecx, 0x1000
sub eax, esi
cmp eax, 0x1000
push 0
cmovg eax, ecx
push eax
lea eax, [esi + ebx]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x21c8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x10033bb0
add esi, eax
cmp esi, edi
jl 0x10033b50
mov eax, esi
test eax, eax
js 0x10033bb0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cdq
sub esi, eax
mov eax, esi
mov dword [ebp - 0x14], esi
sbb ecx, edx
add dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x24]
adc edi, dword [ebp - 0x1c]
or eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], edi
jne 0x10033b00
jmp 0x10033bb4
mov byte [ebp - 1], 1
push ebx
call fcn.10049687
add esp, 4
cmp byte [ebp - 1], 0
je 0x10033bd4
mov eax, 0xfffffffd
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10033bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x10033c25
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x21c8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10033c2e
add esi, eax
cmp esi, edi
jl 0x10033c01
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x10033c40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x10033c75
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x21c8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10033c7e
add esi, eax
cmp esi, edi
jl 0x10033c51
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8

Function at 0x10033c90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov dword [ebp + 8], eax
nop dword [eax]
push 0
mov eax, 4
sub eax, esi
push eax
lea eax, [ebp + 8]
add eax, esi
push eax
push dword [edi + 0x21c8]
call ebx
cmp eax, 0xffffffff
je 0x10033cdd
add esi, eax
cmp esi, 4
jl 0x10033cb0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x10033cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
nop dword [eax]
push 0
mov eax, 4
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [ebx + 0x21c8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10033d39
add esi, eax
cmp esi, 4
jl 0x10033d00
push dword [edi]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x10034660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f563
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1007100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea edx, [edi + 0x24]
mov dword [edi], edx
lea esi, [edi + 0x30]
mov dword [edi + 4], esi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x800
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0x144
mov byte [edi + 0x20], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [edx], ecx
mov dword [edx + 4], eax
lea eax, [esi + 8]
mov dword [edx + 8], ecx
mov dword [esi], eax
add eax, 0x800
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100368c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push esi
push ebx
call edi
lea eax, [ebp + 0xc]
push eax
push 0x40
push esi
mov esi, dword [ebp + 8]
push esi
call edi
push dword [ebp + 0x10]
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10036920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10036970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp + 0xc]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100369b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, byte [ebp + 0xc]
push ebx
push eax
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10038870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1003887b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x10038937
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
sub edi, 1
jne 0x10038890
pop edi
test esi, esi
je 0x1003895a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
sub esi, 1
jne 0x10038940
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100390e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x10039128
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003911a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x1003919b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10039196
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x100391c8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x100391ac
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x100391dc
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x100391d3
cmp byte [esi + 8], 0
je 0x100391d3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039d80
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x10039f3c
cmp dword [edi + 0x18], 0
je 0x10039f3c
cmp dword [edi + 0x7c], 0
je 0x10039da9
call fcn.1003a230
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.10039b10
add esp, 8
test eax, eax
je 0x10039dcd
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10039e13
push 0x4000
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x10039e1f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x10039e7a
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.10038bc0
test eax, eax
jne 0x10039e7a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x10039e9d
mov al, byte [edi + 0x39]
jmp 0x10039ea0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x10039f1d
nop
mov al, byte [ebx]
test al, al
je 0x10039f1d
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x100555a8]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100555a8]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x10039ed0
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003a930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x1003a9c0
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a970
sub ecx, edx
je 0x1003a99f
mov al, byte [ebp + ecx - 0x109]
cmp al, 0x2f
je 0x1003a98a
cmp al, 0x5c
jne 0x1003a99f
dec ecx
cmp ecx, 0x104
jae 0x1003aaa9
mov byte [ebp + ecx - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1003a9c0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x1003aa99
push esi
mov esi, edi
mov ecx, edi
nop
cmp al, 0x2f
je 0x1003a9d8
cmp al, 0x5c
jne 0x1003a9da
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1003a9d0
cmp esi, edi
je 0x1003aa1a
sub esi, edi
lea eax, [ebp - 0x108]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x104
jae 0x1003aaa9
lea edx, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
mov ecx, ebx
call fcn.1003a930
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [ebp - 0x20c], 0
test ebx, ebx
je 0x1003aa3d
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov byte [ebp - 0x109], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003aa50
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x20c]
add eax, ecx
push edi
push eax
call esi
add esp, 0xc
mov byte [ebp - 0x109], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x1003aa99
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100490d4
mov esp, ebp
pop ebp
ret
call fcn.10049206
int3