joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7720dd75
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x7720dd8b
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x7720dd9c
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.7720dddd
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x77210149
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x77210092
add ebx, 0
push ecx
call 0x772100a7
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x738b610c
sub ebx, dword [0x738d594b]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x738d593b
call fcn.7720bb71
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.7720b07f
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x77210205
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x77210205
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x772101bc
mov eax, 1
lock xchg dword [0x738d5947], eax
push 0x3dd1fc71
call 0x77210149
push esi
add esp, 8
cmp eax, 0
jne 0x77210132
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x77210158
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x7721016d
cmp ecx, edx
cmp eax, 0
je 0x77210192
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x7721017c
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.772101ab
dec eax
loope 0x772101ae
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x738d5947], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x772101e2
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x772101f7
jmp 0x77210202
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x772100f0
Function at 0x7721726a
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x77217540
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x738c25bf
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x738b9585
push 0xffffffffffffffff
call fcn.7720e46a
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x772172d4
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.772172ec
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x77217534
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x77217508
Function at 0x77226d3a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77226d5c
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77226d5c
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77226d5c
ret
cmp word [ebx + 4], 0x14c
jne 0x77226d5c
test word [ebx + 0x16], 2
je 0x77226d5c
test word [ebx + 0x16], 0x100
je 0x77226d5c
cmp word [ebx + 0x18], 0x10b
jne 0x77226d5c
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77226d5c
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77226de8
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77226d7c
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7720dcc7
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77226d5c
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x77226de8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77226d5c
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77226d5c
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77226d5c
ret
cmp word [ebx + 4], 0x14c
jne 0x77226d5c
test word [ebx + 0x16], 2
je 0x77226d5c
test word [ebx + 0x16], 0x100
je 0x77226d5c
cmp word [ebx + 0x18], 0x10b
jne 0x77226d5c
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77226d5c
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77226de8
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77226d7c
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7720dcc7
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77226d5c
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x77226e9f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77226ef8
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77226e9f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77226eae
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7762cb51
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77226eff
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7720dd75
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77226f9e
add edi, 4
add eax, 2
dec ecx
jne 0x77226ee4
call 0x77226f4b
loope 0x77226f41
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77226f9b
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77226fac
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77226f5f
cmp eax, ecx
ja 0x77226f5f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77226fe9
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x77226fdf
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7720e254
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x77226eae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77226ef8
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77226e9f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77226eae
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7762cb51
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77226eff
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7720dd75
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77226f9e
add edi, 4
add eax, 2
dec ecx
jne 0x77226ee4
call 0x77226f4b
loope 0x77226f41
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77226f9b
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77226fac
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77226f5f
cmp eax, ecx
ja 0x77226f5f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77226fe9
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x77226fdf
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7720e254
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10006000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095a8b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100c78d4]
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
mov eax, dword [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push eax
push ecx
push esi
mov dword [ebp - 0xc4], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10006057
xor al, al
jmp 0x10006169
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006050
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10006050
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x10006050
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.1006bcf0
add esp, 0xc
lea ecx, [ebp - 0xc0]
push 1
push 0x40
push 0x20
push dword [ebp - 0xc4]
call fcn.10003ef0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xb4], 6
je 0x100060cc
xor bl, bl
jmp 0x1000615c
push 0
push esi
push ebx
lea ecx, [ebp - 0xc0]
call fcn.1000a0b0
cmp dword [ebp - 0x70], 0
lea esi, [ebp - 0xbc]
jne 0x100060eb
xor esi, esi
jmp 0x1000610f
lea ecx, [ebp - 0xbc]
call fcn.10006240
push dword [ebp - 0x70]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.1006faf5
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0xbc]
call fcn.100069f0
test esi, esi
jne 0x1000615a
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x88], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb4]
and eax, 0x17
mov dword [ebp + ecx - 0xb4], eax
mov ecx, dword [ebp + ecx - 0xb0]
and ecx, eax
jne 0x10006185
mov bl, 1
lea ecx, [ebp - 0xc0]
call fcn.10005910
mov al, bl
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.10034680
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x10006191
mov esi, str.ios_base::badbit_set
jmp 0x100061a1
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xc8]
push 1
push eax
call fcn.10008ec0
add esp, 8
lea ecx, [ebp - 0xdc]
push eax
push esi
call fcn.10004cd0
push 0x100bbf70
lea eax, [ebp - 0xdc]
push eax
call fcn.1006add8
int3
Function at 0x10006240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100c78d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x100062e1
cmp byte [esi + 0x3d], 0
je 0x100062e1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10006297
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100062a9
sub eax, 1
je 0x100062ad
sub eax, 2
je 0x100062e1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034680
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100062ca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10070882
add esp, 0x10
cmp edi, eax
jne 0x10006297
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034680
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10034680
mov esp, ebp
pop ebp
ret

Function at 0x10006d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100957e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100c78d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100342da
mov edi, eax
add esp, 4
test edi, edi
je 0x10006dd2
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10028a9d
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100c78d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10009020
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034680
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000905c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000905c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034680
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10009141
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10009084
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100090b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1006ff1e
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034680
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10009141
cmp eax, 1
jle 0x10009114
cmp eax, 3
jne 0x10009141
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10003210
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034680
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009131
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10070882
add esp, 0x10
cmp edi, eax
jne 0x10009141
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10009047
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10034680
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000a234
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a300
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a255
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000a257
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x1000a2df
jg 0x1000a26a
test esi, esi
je 0x1000a2df
test ecx, ecx
jl 0x1000a2ac
jg 0x1000a274
test eax, eax
je 0x1000a2ac
cmp ebx, ecx
jg 0x1000a286
jl 0x1000a27e
cmp esi, eax
jae 0x1000a286
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1006b1f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1000a2b2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x1000a2df
jg 0x1000a2bc
test esi, esi
je 0x1000a2df
cmp dword [edi + 0x4c], 0
je 0x1000a2df
mov ecx, edi
call fcn.10007540
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.100701ee
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a4b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000a4d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a590
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a4f5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000a4f7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1000a574
jg 0x1000a50a
test esi, esi
je 0x1000a574
test ecx, ecx
jl 0x1000a54e
jg 0x1000a514
test eax, eax
je 0x1000a54e
cmp edi, ecx
jg 0x1000a526
jl 0x1000a51e
cmp esi, eax
jae 0x1000a526
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.1006b1f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1000a551
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1000a574
jg 0x1000a55b
test esi, esi
je 0x1000a574
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000a574
push eax
push esi
push 1
push edx
call fcn.10070882
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095df2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x100c78d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
xor eax, eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov byte [edi + 0x48], al
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 7
mov word [edi + 0x64], ax
lea ecx, [edi + 0x7c]
mov byte [ebp - 4], 5
mov dword [ecx + 0x10], eax
push 7
mov dword [ecx + 0x14], 7
push str.Default
mov word [ecx], ax
call fcn.10007de0
xor eax, eax
mov byte [ebp - 4], 6
push eax
push 0x1009e7b8
lea ecx, [ebp - 0x28]
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], esi
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10007de0
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi*4 + 0x1009ef24]
lea ecx, [ebp - 0x3c]
call fcn.1000b760
mov esi, eax
cmp edi, esi
je 0x1000ba2d
mov ecx, edi
call fcn.1000ccc0
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x3c]
call fcn.1000ccc0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000ba6b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ba61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ba80
push edx
push ecx
call fcn.1003430a
add esp, 8
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 4
call fcn.1006f189
int3