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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095bc3
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
cmp dword [esi + 0x14], 8
jb 0x10051471
mov ecx, dword [esi]
jmp 0x10051473
mov ecx, esi
lea eax, [ebp - 0x48]
mov edx, edi
push eax
call fcn.1004c440
add esp, 4
test eax, eax
jne 0x10051588
cmp dword [0x100daa24], eax
jne 0x100514c0
push 0x30
call fcn.10062ca1
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100514b2
mov ecx, eax
call fcn.1004ff50
jmp 0x100514b4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x100daa24], eax
lea eax, [ebp - 0x40]
push eax
call fcn.10050990
push esi
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004be20
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x100514ef
push dword [ebp - 0x40]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x100c6658
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100630ef
mov eax, dword [ebp - 0x44]
add esp, 0xc
test eax, eax
jne 0x10051528
cmp dword [ebp - 0x14], 8
jb 0x10051524
push dword [ebp - 0x28]
call fcn.1000a3a0
add esp, 4
xor eax, eax
jmp 0x1005158b
push 2
push 0
push eax
call fcn.10063c48
add esp, 0xc
push dword [ebp - 0x44]
call fcn.10063b4d
add esp, 4
mov dword [ebp - 0x48], eax
push eax
call fcn.1006305d
add esp, 4
mov dword [edi], eax
push 0
push 0
push dword [ebp - 0x44]
call fcn.10063c48
add esp, 0xc
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 1
push dword [edi]
call fcn.100634e1
push dword [ebp - 0x44]
call fcn.10063d37
add esp, 0x14
cmp dword [ebp - 0x14], 8
jb 0x10051588
push dword [ebp - 0x28]
call fcn.1000a3a0
add esp, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006249d
mov esp, ebp
pop ebp
ret 8

Function at 0x10054160
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea esi, [edx + eax]
xor edx, edx
sar esi, 2
lea edi, [ecx + esi*4]
neg esi
je 0x100541a1
lea ecx, [ecx]
imul eax, dword [edi + esi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
rol edx, 0xd
add edx, 0xfaddaf14
lea edx, [edx + edx*4]
inc esi
jne 0x10054180
mov eax, ebx
xor ecx, ecx
and eax, 3
dec eax
je 0x100541c1
dec eax
je 0x100541b8
dec eax
jne 0x100541d7
movzx ecx, byte [edi + 2]
shl ecx, 0x10
movzx eax, byte [edi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret
Function at 0x10054270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095cf4
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x164], xmm3
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esi], vtable.PixelFont.0
mov dword [ebp - 0x168], esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
call fcn.100545d0
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
movss xmm0, dword [ebp - 0x164]
mov dword [esi + 0x14], eax
mov al, byte [ebp + 0x14]
mov byte [esi + 0xc], 1
movss dword [esi + 0x10], xmm0
mov byte [esi + 0xd], al
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
push 0
push edi
mov byte [ebp - 4], 1
call fcn.10064125
add esp, 8
test eax, eax
je 0x1005444a
push 0x410
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
jne 0x1005435d
xor ecx, ecx
jmp 0x1005436f
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054366
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x148]
call fcn.1004a060
push str.Fontsmsyh.ttf
lea edx, [ebp - 0x148]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
call fcn.100537e0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x130]
cmp eax, edi
je 0x100543e9
cmp dword [ebp - 0x11c], 0x10
jb 0x100543c2
push dword [ebp - 0x130]
call fcn.1000a3a0
add esp, 4
push edi
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.100516e0
cmp dword [ebp - 0x14c], 0x10
jb 0x10054400
push dword [ebp - 0x160]
call fcn.1000a3a0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x134], 0x10
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jb 0x10054436
push dword [ebp - 0x148]
call fcn.1000a3a0
add esp, 4
cmp dword [ebp - 0x11c], 0x10
lea edi, [ebp - 0x130]
cmovae edi, dword [ebp - 0x130]
lea ebx, [esi + 4]
push ebx
call fcn.1000a1d0
add esp, 4
test eax, eax
je 0x10054491
mov dword [ebp - 0x164], str.FT_Init_FreeType_failed
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x13c]
call fcn.10062f1f
push 0x100cd500
lea eax, [ebp - 0x13c]
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.std::runtime_error.0
push eax
call fcn.1006694b
lea eax, [esi + 8]
push eax
push 0
push edi
push dword [ebx]
call fcn.1000a150
add esp, 0x10
test eax, eax
je 0x100544b2
mov dword [ebp - 0x164], str.FT_New_Face_failed__there_is_probably_a_problem_with_your_font_file_
jmp 0x10054464
push 0x756e6963
push dword [esi + 8]
call fcn.10005330
add esp, 8
cmp dword [ebp - 0x11c], 0x10
jb 0x100544d9
push dword [ebp - 0x130]
call fcn.1000a3a0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006249d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10054990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x410
lea eax, [ebp - 0x824]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [ebp - 0x824], 0
jne 0x100549c6
xor ecx, ecx
jmp 0x100549df
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100549d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x824]
push eax
lea ecx, [esi + 8]
call fcn.1004b000
push 0x410
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [ebp - 0x824], 0
jne 0x10054a0f
xor ecx, ecx
jmp 0x10054a2f
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
jmp 0x10054a20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054a20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x824]
push eax
lea ecx, [esi + 0x20]
call fcn.1004b000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006249d
mov esp, ebp
pop ebp
ret

Function at 0x10054c30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x10
jb 0x10054c53
mov eax, dword [edi]
jmp 0x10054c55
mov eax, edi
cmp byte [eax], 0
je 0x10054d6a
mov edi, edi
push 0x5c
push eax
call fcn.10065230
mov esi, eax
add esp, 8
test esi, esi
je 0x10054d6a
mov ecx, edi
call fcn.1004f240
mov ecx, esi
sub ecx, eax
push ecx
mov ecx, edi
call fcn.1004f240
push eax
lea eax, [ebp - 0x40c]
push 0x400
push eax
call fcn.1006539d
add esp, 0x10
mov dword [ebp - 0x410], 0xf
cmp byte [ebp - 0x40c], 0
mov dword [ebp - 0x414], 0
mov byte [ebp - 0x424], 0
jne 0x10054cc5
xor eax, eax
jmp 0x10054cd9
lea eax, [ebp - 0x40c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10054cd0
sub eax, edx
push eax
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x424]
call fcn.1004a060
xor bl, bl
lea ecx, [ebp - 0x564]
cmp dword [ebp - 0x410], 0x10
lea eax, [ebp - 0x424]
push ecx
cmovae eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10054d27
test byte [ebp - 0x564], 0x10
mov ecx, 1
movzx ebx, bl
cmovne ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
sete bl
cmp dword [ebp - 0x410], 0x10
jb 0x10054d4a
push dword [ebp - 0x424]
call fcn.1000a3a0
add esp, 4
test bl, bl
je 0x10054d5d
lea eax, [ebp - 0x40c]
push eax
call fcn.1006535b
add esp, 4
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x10054c60
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006249d
mov esp, ebp
pop ebp
ret 4
Function at 0x10057da0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x10057df2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x10057e0a
mov ecx, esi
jmp 0x10057e0f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x10057e3c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x10057e1e
mov eax, dword [eax]
jmp 0x10057e02
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x10057e2e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10057e50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x14]
mov edx, ecx
and edx, eax
cmp dword [ebx + 0x18], edx
ja 0x10057ea3
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edx, eax
mov edi, dword [ebx + 8]
lea eax, [edx*8]
mov ecx, dword [ebx]
mov dword [ebp - 4], eax
lea esi, [edi + eax]
mov eax, dword [esi]
cmp eax, ecx
jne 0x10057ebf
mov esi, ecx
jmp 0x10057ec4
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x10057edd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ecx]
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x10057f01
cmp esi, dword [edi + edx*8]
jne 0x10057ed0
mov edi, dword [ecx]
push dword [ebp + 0xc]
push dword [edi + 4]
push edi
call fcn.100581b0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jae 0x10057f13
jmp 0x10057f9e
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
inc eax
mov dword [ebx + 4], eax
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov edi, dword [ebx]
mov edi, dword [edi]
mov eax, dword [edi]
cmp esi, eax
je 0x10057f4a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10057f63
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x10057f85
cmp eax, esi
jne 0x10057f6b
mov dword [ecx], edi
jmp 0x10057f85
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x10057f85
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.10057fb0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.list_T__too_long
call fcn.10061d52
int3
Function at 0x10058070
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x100580c3
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x100580fd
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x100580fd
mov eax, dword [edi]
jmp 0x100580f0
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x10058140
cmp esi, dword [edx + ecx*8]
jne 0x100580f0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x10058127
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10058170
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x10058192
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.1000a3a0
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x10058178
mov dword [ecx], edi
jmp 0x10058192
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x10058192
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.10057fb0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100961a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100cf288]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push 1
call fcn.1005a0e0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x10]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x18]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov edi, eax
cmovae ecx, dword [ebp - 0x2c]
push edi
push ecx
push str.GFX_SaveToFile_fileName:__s__nSize:__d
push 2
push dword [0x100daa7c]
call fcn.1005bd90
add esp, 0x14
push edi
call fcn.1006305d
mov ecx, dword [ebp - 0x30]
add esp, 4
mov esi, eax
mov edx, dword [ecx]
push 0
push 0
call dword [edx + 0x38]
mov eax, dword [ebp - 0x30]
mov ecx, eax
push edi
push esi
mov edx, dword [eax]
call dword [edx + 0x28]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x100c6654
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100632d7
add esp, 0xc
push dword [ebp - 0x34]
push edi
push 1
push esi
call fcn.1006373b
push dword [ebp - 0x34]
call fcn.10063d37
add esp, 0x14
push esi
call fcn.10062cf2
mov ecx, dword [ebp - 0x30]
add esp, 4
mov eax, dword [ecx]
push 0
push ebx
call dword [eax + 0x38]
cmp dword [ebp - 0x18], 0x10
jb 0x1005a0b7
push dword [ebp - 0x2c]
call fcn.1000a3a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006249d
mov esp, ebp
pop ebp
ret

Function at 0x1005ada0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1005adb1
xor ecx, ecx
cmp byte [eax], cl
cmove eax, ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x1005adc4
pop edi
pop ebp
ret 0xc
push esi
push dword [ebp + 8]
call fcn.1005b050
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1005adf8
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.failed_to_get_export_function:__s_module:__s
push 2
push dword [0x100daa7c]
call fcn.1005bd90
add esp, 0x14
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005ae56
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x1005ae56
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x1005ae56
mov edx, dword [eax + 0x80]
add edx, edi
cmp edx, eax
je 0x1005ae56
add edx, 0xc
cmp dword [edx], 0
je 0x1005ae56
mov eax, dword [edx + 4]
add eax, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1005ae4e
jmp 0x1005ae40
cmp esi, ecx
je 0x1005ae58
mov ecx, dword [eax + 4]
add eax, 4
test ecx, ecx
jne 0x1005ae40
add edx, 0x14
cmp dword [edx], 0
jne 0x1005ae30
xor eax, eax
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x1005afa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0x400
push 0x40
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0x400
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x48]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x1005b00a
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x1005b00a
push edi
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x4c]
jne 0x1005aff8
push ecx
lea ecx, [esi + 0x44]
call fcn.1005bb70
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x1005b007
mov eax, dword [esi + 0x44]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
pop edi
jmp 0x1005b021
cmp eax, dword [esi + 0x4c]
jne 0x1005b018
push ecx
lea ecx, [esi + 0x44]
call fcn.1005bb70
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1005b021
mov dword [eax], ebx
add dword [esi + 0x48], 4
push 0x400
push ebx
push str.alloc_memory:__08x_size:__08x
push 2
push dword [0x100daa7c]
call fcn.1005bd90
add esp, 0x14
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1005c260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009649b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100cf288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100daa5c], 0
jne 0x1005c2c1
push 0xd4
call fcn.10062ca1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1005c2b3
mov ecx, eax
call fcn.10054600
jmp 0x1005c2b5
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x100daa5c], eax
mov esi, dword [ebp + 8]
push esi
call fcn.10054c30
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x10], 0
jb 0x1005c2d9
mov esi, dword [esi]
push 0x100c6654
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100632d7
add esp, 0xc
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call fcn.1006373b
push dword [ebp - 0x10]
call fcn.10063d37
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1005ccc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 1
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [ebx + 4], 0
mov esi, dword [ebx]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0
jne 0x1005cd3c
push edi
call fcn.1005cb70
mov dword [esp + 0x14], eax
test eax, eax
je 0x1005cd2a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x3cc]
call fcn.10057da0
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x3cc]
movzx ecx, cl
cmove ecx, edx
jmp 0x1005cd2e
mov ecx, dword [esp + 0x1c]
cmp byte [ebx + 4], 0
jne 0x1005cd3c
test cl, cl
jne 0x1005ce4b
cmp dword [edi + 0x14], 8
mov dword [esp + 0x10], 0
jb 0x1005cd4c
mov edi, dword [edi]
push 0x100c6658
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100630ef
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1005ce4b
push 2
push 0
push eax
call fcn.10063c48
add esp, 0xc
push dword [esp + 0x10]
call fcn.10063b4d
add esp, 4
mov esi, eax
push esi
call fcn.1006305d
add esp, 4
mov edi, eax
mov dword [esp + 0x24], edi
push 0
push 0
push dword [esp + 0x18]
call fcn.10063c48
add esp, 0xc
push dword [esp + 0x10]
push esi
push 1
push edi
call fcn.100634e1
push dword [esp + 0x20]
call fcn.10063d37
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x1c], 0
mov eax, dword [edi]
push ecx
push esi
mov esi, dword [esp + 0x2c]
mov ecx, edi
push esi
call dword [eax + 8]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
je 0x1005ce01
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x3ec]
call fcn.1005d9c0
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x1005ce12
push esi
call fcn.1000a3a0
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x1005ce4b
cmp byte [ebx + 4], 0
je 0x1005ce2e
mov dword [edi + 0x40c], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 0
je 0x1005ce4b
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x3cc]
call fcn.1005d9c0
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret