joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fcf8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x46fddc], 0
jne 0x45fd79
cmp dword [0x46fdfc], 0
jne 0x45fd28
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x46fdfc], eax
test eax, eax
jne 0x45fd28
push str.GetEnvironmentStrings_failed
call fcn.0045f4cc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x46fdfc]
jmp 0x45fd3c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00459798
pop ecx
mov edi, eax
test eax, eax
jne 0x45fd34
lea edi, [ebp + 1]
push edi
call fcn.004587fc
pop ecx
mov ebx, eax
mov dword [0x46fde0], ebx
test ebx, ebx
jne 0x45fd66
xor eax, eax
jmp 0x45fe3c
push edi
mov edx, dword [0x46fdfc]
push edx
push ebx
call fcn.00459578
add esp, 0xc
jmp 0x45fd99
xor esi, esi
mov ebx, dword [0x46fddc]
jmp 0x45fd93
push eax
call fcn.00459798
pop ecx
test eax, eax
jne 0x45fd8f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45fd83
lea ebx, [esi + 4]
push 4
mov dword [0x46fde4], ebx
inc ebx
push ebx
call fcn.004585fc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x45fdbc
xor eax, eax
jmp 0x45fe3c
cmp dword [0x46fddc], 0
jne 0x45fded
xor esi, esi
mov ebx, dword [0x46fde0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x45fdde
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00459798
pop ecx
mov edi, eax
test eax, eax
jne 0x45fdd4
jmp 0x45fe1e
xor esi, esi
mov ebx, dword [0x46fddc]
mov eax, dword [esp]
mov edi, eax
jmp 0x45fe18
push eax
call fcn.00459798
pop ecx
test eax, eax
je 0x45fe0d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x45fe11
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x45fdfc
mov eax, dword [0x46fddc]
test eax, eax
je 0x45fe2e
push eax
call fcn.0045880c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x46fddc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x196035b
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp esi
dec ebp
rol ebp, 1
add edx, 0x233e4797
cmovbe dx, si
neg ebp
add ebp, eax
mov edi, esp
rdtsc
cmp edx, esi
bsr ebx, edx
sub esp, 0xc0
movsx dx, dh
bts edx, edx
test ax, bx
mov ebx, ebp
test al, bl
cwd
mov edx, 0
dec al
movzx ax, ah
sub ebx, edx
cwde
lea esi, [0x18e8f18]
mov eax, dword [ebp]
jmp 0x19911bf
push ebp
movsx ebp, bx
push esi
push edx
mov esi, 0x7ec2271e
push eax
rdtsc
movzx ebp, ax
pushfd
mov esi, esp
bts bp, si
push ebx
rcl eax, 0xaa
btc ebp, eax
mov bx, 0x3b06
push edi
lahf
push ecx
cmc
mov eax, 0
cdq
bswap edx
push eax
mov ebp, dword [esp + 0x28]
movzx bx, dl
rol ebp, 1
jmp 0x18e8eda
lea ebp, [ebp + 4]
cmp edx, esp
stc
xor eax, ebx
rol eax, 1
clc
stc
add eax, 0x39f87531
stc
rol eax, 3
sub eax, 0x6d696367
xor ebx, eax
cmc
cmp bh, 0x7d
test esp, edx
add esi, eax
jmp 0xfd8aa5
Function at 0x4b703d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4739000]
push edi
or ebp, 0xffffffff
jmp 0x4b703f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b703f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b703e8
mov eax, 1
add ebx, ebx
jne 0x4b7040b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7041c
jne 0x4b7043b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7043b
dec eax
add ebx, ebx
jne 0x4b70428
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b70400
add ebx, ebx
jne 0x4b70437
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b7048d
xor ecx, ecx
sub eax, 3
jb 0x4b70453
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b704c2
sar eax, 1
mov ebp, eax
jmp 0x4b7045e
add ebx, ebx
jne 0x4b7045e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7042c
inc ecx
add ebx, ebx
jne 0x4b7046c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7042c
add ebx, ebx
jne 0x4b70479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b7046e
jne 0x4b7048a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b7046e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b704ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b7049e
jmp 0x4b703ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b704ac
add edi, ecx
jmp 0x4b703ee
pop esi
lea edi, [esi + 0x476e000]
mov eax, dword [edi]
or eax, eax
je 0x4b7050b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4770d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4770dbc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b704c9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4770dc4]
or eax, eax
je 0x4b70505
mov dword [ebx], eax
add ebx, 4
jmp 0x4b704e6
call dword [esi + 0x4770dc0]
mov ebp, dword [esi + 0x4770dc8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b7053f
sub esp, 0xffffff80
jmp 0x405fcc
Function at 0x402190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x214], ebx
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.00409670
add esp, 0xc
mov dword [ebx], 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4021fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a0d
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c
mov edx, 0x104
mov ebx, 0x80070057
push esi
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4022a6
mov ecx, edx
lea eax, [ebp - 0x20c]
cmp word [eax], 0
je 0x402231
add eax, 2
sub ecx, 1
jne 0x402223
mov eax, edx
mov edi, ecx
sub eax, ecx
neg edi
sbb edi, edi
xor esi, esi
and edi, eax
test ecx, ecx
mov eax, ebx
cmovne eax, esi
je 0x402298
mov esi, edx
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + edi*2]
sub esi, edi
je 0x402281
mov ebx, 0x421b68
mov eax, 1
sub ebx, ecx
test eax, eax
je 0x40227c
movzx edi, word [ebx + ecx]
test di, di
je 0x40227c
mov word [ecx], di
dec eax
add ecx, 2
sub esi, 1
jne 0x402263
mov ebx, 0x80070057
test esi, esi
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test esi, esi
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
test eax, eax
jne 0x40234f
mov edi, dword [ebp - 0x210]
mov ecx, edx
lea eax, [ebp - 0x20c]
nop
cmp word [eax], 0
je 0x4022be
add eax, 2
sub ecx, 1
jne 0x4022b0
mov eax, edx
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
xor eax, eax
test ecx, ecx
cmovne ebx, eax
je 0x402319
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x402300
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x402300
movzx esi, word [edi + ecx]
test si, si
je 0x402300
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4022e7
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x8007007a
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
test edx, edx
cmovne ebx, eax
test ebx, ebx
jne 0x40234d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
jne 0x40234d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407a0d
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00407a0d
mov esp, ebp
pop ebp
ret
Function at 0x402610
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a241
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42500c]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00402010
mov dword [ebp - 0x24], eax
test eax, eax
je 0x402789
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x41b17c]
mov ecx, dword [ebp - 0x24]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
mov byte [ebp - 4], 3
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push dword [ebp - 0x28]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4026e1
push 0x421bf4
mov ecx, ebx
call fcn.00402950
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40276b
mov edi, dword [ecx]
push ecx
jmp 0x40275a
inc eax
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00402a10
mov dword [ebp - 4], 2
jmp 0x402719
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402727
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004017a0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
or edi, 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40276b
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x41b17c]
mov ecx, edi
call esi
mov eax, ebx
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.00407a0d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402170
int3
Function at 0x402b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a100
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402bd9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402bc5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402c12
nop dword [eax]
cmp esi, edx
jae 0x402bc5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402c00
cmp esi, edx
jae 0x402bc5
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411914
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41195f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00411ab3
test al, al
jne 0x411959
sub edx, 2
cmp edx, edi
jne 0x41193f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x411981
lea eax, [edi + 2]
cmp edx, eax
je 0x411981
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00411860
add esp, 0x10
jmp 0x411a7b
push esi
lea ecx, [ebp - 0x255]
call fcn.00411ab3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4119c4
push dword [ebp - 0x25c]
jmp 0x411971
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x411a01
cmp word [ebp - 0x226], 0
je 0x411a22
cmp word [ebp - 0x226], ax
jne 0x411a01
cmp word [ebp - 0x224], 0
je 0x411a22
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00411860
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x411a6e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4119db
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x411a56
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x411a7b
push 0x411690
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00415d60
add esp, 0x10
jmp 0x411a4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a0d
leave
ret

Function at 0x412773
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e3ec
push 0x41e3e4
push str.FlsAlloc
push 0x1e
call fcn.004126b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4127a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b17c]
call esi
jmp 0x4127ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4127f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e3fc
push 0x41e3f4
push str.FlsGetValue
push 0x20
call fcn.004126b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412828
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x38b172e4
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x74ad748b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10006b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1004301c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x10006b37
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10006b3e
mov al, 1
jmp 0x10006c19
call fcn.10001e50
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.10001e50
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.100087c0
add esp, 8
movzx eax, al
test eax, eax
je 0x10006b7a
xor al, al
jmp 0x10006c19
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x38]
call fcn.1000abf0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10006bb6
cmp dword [ebp - 0x34], 1
je 0x10006bbd
cmp dword [ebp - 0x34], 3
je 0x10006c0c
jmp 0x10006c17
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x10006bec
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1001993a
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10006bec
xor al, al
jmp 0x10006c19
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10006c00
mov dword [ebp - 0x3c], 1
jmp 0x10006c07
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x10006c19
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x10006c19
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb7
mov esp, ebp
pop ebp
ret
Function at 0x10009d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1004301c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x38], ecx
call fcn.10001e50
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.100087c0
add esp, 8
movzx edx, al
test edx, edx
je 0x10009db5
lea eax, [ebp + 8]
push eax
call fcn.10009c20
add esp, 4
jmp 0x10009f36
mov ecx, dword [ebp - 0x38]
call fcn.1000a120
test eax, eax
je 0x10009df7
mov ecx, dword [ebp - 0x38]
call fcn.1000a120
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.100087a0
cmp esi, eax
jae 0x10009df7
lea ecx, [ebp + 8]
push ecx
call fcn.1000a810
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x38]
call fcn.10007b00
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10009f36
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x10009e0a
call fcn.10001e50
jmp 0x10009f36
mov ecx, dword [ebp - 0x38]
call fcn.10007ba0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x10009e59
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.1000a810
add esp, 4
movzx ecx, al
push ecx
call fcn.10003050
add esp, 8
movzx edx, al
test edx, edx
je 0x10009e49
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x10009e51
call fcn.10001e50
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
jmp 0x10009f36
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.1000a810
add esp, 4
mov byte [ebp - 0x2a], al
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
call fcn.10009d30
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x10009f31
cmp dword [ebp - 0x3c], 1
jle 0x10009eb4
cmp dword [ebp - 0x3c], 3
je 0x10009f01
jmp 0x10009f31
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x40], ecx
je 0x10009ee6
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1001993a
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10009ee6
call fcn.10001e50
jmp 0x10009f36
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x10009efa
mov eax, dword [ebp + 8]
jmp 0x10009f36
call fcn.10001e50
jmp 0x10009f36
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.10003050
add esp, 8
movzx eax, al
test eax, eax
je 0x10009f24
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
jmp 0x10009f2c
call fcn.10001e50
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x10009f36
call fcn.10001e50
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb7
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ace0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004301c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x1000ad0a
jl 0x1000ad01
cmp dword [ebp + 0xc], 0
ja 0x1000ad0a
xor eax, eax
xor edx, edx
jmp 0x1000ae41
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x1000ad2c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1000ae60
jmp 0x1000ae41
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.10006f40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x1000ad9b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10001540
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.10008d60
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10001e00
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10008b70
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x1000ae32
mov ecx, dword [ebp - 0x10]
call fcn.10007ba0
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x1000ae0b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.100192b3
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x1000ae09
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x1000ae41
jmp 0x1000adb7
cmp dword [ebp - 8], 0
jbe 0x1000ae32
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.100192b3
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013bb7
mov esp, ebp
pop ebp
ret 0xc