joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100044d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov eax, dword [edi]
mov ebp, dword [edi + 0x30]
mov dword [esp + 0x18], ecx
movzx ecx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x20]
mov esi, dword [ecx + eax + 0x28]
dec ebp
lea ecx, [ecx + eax + 0x18]
not ebp
and ebp, edx
test esi, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
jne 0x10004519
mov edx, dword [ecx + 0x24]
test dl, 0x40
je 0x10004512
mov esi, dword [eax + 0x20]
jmp 0x10004519
test dl, dl
jns 0x10004519
mov esi, dword [eax + 0x24]
mov edx, esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x28], esi
mov esi, 1
add ecx, 0x28
cmp word [eax + 6], si
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], esi
jbe 0x10004612
lea ebx, [ecx + 0x24]
mov esi, dword [edi + 0x30]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
test edi, edi
mov dword [esp + 0x10], ecx
jne 0x10004570
mov ecx, dword [ebx]
test cl, 0x40
je 0x10004569
mov edi, dword [eax + 0x20]
jmp 0x10004570
test cl, cl
jns 0x10004570
mov edi, dword [eax + 0x24]
cmp ebp, esi
je 0x100045af
mov eax, dword [esp + 0x1c]
add edx, eax
cmp edx, esi
ja 0x100045af
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.10004420
test eax, eax
je 0x10004635
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx]
mov ebp, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ecx
jmp 0x100045e5
mov eax, dword [ebx]
test eax, 0x2000000
je 0x100045cc
mov ecx, dword [esp + 0x28]
test ecx, 0x2000000
je 0x100045cc
or ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x100045d9
or eax, dword [esp + 0x28]
and eax, 0xfdffffff
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub edi, ecx
add edi, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
movzx esi, word [eax + 6]
inc ecx
mov edx, edi
mov edi, dword [esp + 0x34]
add ebx, 0x28
cmp ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
jl 0x10004547
mov esi, 1
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x34], esi
call fcn.10004420
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4

Function at 0x10004e40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004e59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10004e6d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10004e8e
cmp esi, eax
jae 0x10004e67
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10004e80
cmp esi, eax
jae 0x10004e67
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10005c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push ebx
push edi
mov edi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [0x1003817c], edi
mov dword [0x10038180], eax
mov dword [0x10038184], ecx
mov dword [esp + 0x3c], ebx
call fcn.100054d0
test eax, eax
jne 0x10005e66
push ebp
push esi
push str.SSERATO
push 0x1d26
push edi
mov dword [0x10036108], ebx
mov dword [0x1003610c], ebx
mov dword [0x10036110], ebx
mov dword [0x10036118], ebx
mov dword [0x10036114], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebp
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov eax, 0x65
mov ecx, 0x64
mov word [esp + 0x26], ax
mov word [esp + 0x2c], ax
mov eax, 0x6c
mov edx, 0x2e
mov edi, 0x6e
mov word [esp + 0x24], 0x6b
mov word [esp + 0x28], 0x72
mov word [esp + 0x2a], di
mov word [esp + 0x2e], ax
mov word [esp + 0x30], 0x33
mov word [esp + 0x32], 0x32
mov word [esp + 0x34], dx
mov word [esp + 0x36], cx
mov word [esp + 0x38], ax
mov word [esp + 0x3a], ax
mov word [esp + 0x3c], bx
mov word [esp + 0x10], di
mov word [esp + 0x12], 0x74
mov word [esp + 0x14], cx
mov word [esp + 0x16], ax
mov word [esp + 0x18], ax
mov word [esp + 0x1a], dx
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], ax
mov word [esp + 0x20], ax
mov word [esp + 0x22], bx
call fcn.100054d0
test eax, eax
jne 0x10005d5c
lea edx, [esp + 0x24]
push edx
call fcn.10005100
add esp, 4
mov edi, eax
jmp 0x10005d60
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x10]
push eax
call fcn.10005100
add esp, 4
call fcn.100054d0
test eax, eax
jne 0x10005d89
push 0x45ae4f1b
push edi
call fcn.10005240
add esp, 8
mov dword [0x10038178], eax
push 0x2c5de75e
push edi
call fcn.10005240
add esp, 8
cmp eax, ebx
mov dword [0x10038174], eax
je 0x10005dce
push ebx
push 0x1002bbac
call fcn.100109d7
add esp, 4
push eax
push str.8192
call fcn.100109d7
add esp, 4
or eax, 0x1000
push eax
push ebp
push ebx
push 0xffffffffffffffff
call dword [0x10038174]
jmp 0x10005df7
push 0x1002bbac
call fcn.100109d7
add esp, 4
push eax
push str.8192
call fcn.100109d7
add esp, 4
or eax, 0x1000
push eax
push ebp
push ebx
call dword [0x10038178]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x44], eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x10036104]
push eax
call fcn.10010866
push 0x5c
mov esi, eax
push str.oH_auY1dgd___xwOi2q3ddHK09M8NEOAykiSU_Y__WuMzZJ_7u4_K4VsiBrd6yJ2v4_kIBOCU_q_no_Np_tDu
push esi
call fcn.10004b50
mov edi, dword [esp + 0x54]
push ebp
push edi
push esi
call fcn.10004ee0
add esp, 0x1c
push ebx
push 0x100049b0
push 0x10004990
push 0x10004980
push ebp
push edi
mov ecx, 0x10038160
call fcn.10005920
pop esi
pop ebp
pop edi
mov dword [0x10038188], eax
mov eax, 1
pop ebx
add esp, 0x30
ret 0xc
push 0x1002bb80
call fcn.100108e9
add esp, 4
pop edi
xor eax, eax
pop ebx
add esp, 0x30
ret 0xc
Function at 0x10006f55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x10006fa8
call fcn.10025de0
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10006fa8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10006f9e
xor eax, eax
jmp 0x100070c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x10006fd8
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x10006fd8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x100070be
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x10007005
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.100067e4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x100070be
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1000704e
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x1000704e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x10007048
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.100067e4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x100070ae
and dword [ebp + 0xc], 0
jmp 0x100070ae
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x100070ae
push 0xc
call fcn.1001d114
mov esi, eax
test esi, esi
pop ecx
je 0x10007090
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x10007092
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x100070a9
push dword [ebp - 8]
call fcn.1001ca97
jmp 0x100070ae
call fcn.1001ca6e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x10007013
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100109dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10010690
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10010a77
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1003a15c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10010a77
cmp eax, 1
je 0x10010a98
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10010a77
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10010a44
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10010a73
xor eax, eax
inc eax
jmp 0x10010ab7
cmp edi, eax
jae 0x10010a7b
xor eax, eax
jmp 0x10010ab7
cmp eax, esi
jae 0x10010a82
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1003a15c]
jmp 0x10010a9b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10010be5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10010cd5
mov eax, 0x94
call fcn.10010690
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10010d4a
mov ecx, dword [esi + 0x10]
mov dword [0x1003a15c], ecx
mov eax, dword [esi + 4]
mov dword [0x1003a168], eax
mov edx, dword [esi + 8]
mov dword [0x1003a16c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1003a160], esi
je 0x10010c50
or esi, 0x8000
mov dword [0x1003a160], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1003a164], eax
call fcn.10013a5c
test eax, eax
pop ecx
je 0x10010d4a
call fcn.10013641
test eax, eax
jne 0x10010c7d
call fcn.10013aad
jmp 0x10010d4a
call fcn.10015bb2
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1003ba30], eax
call fcn.10015a90
mov dword [0x1003a148], eax
call fcn.10015571
test eax, eax
jl 0x10010cce
call fcn.100159ee
test eax, eax
jl 0x10010cc9
call fcn.100157bb
test eax, eax
jl 0x10010cc9
push 0
call fcn.100115ed
test eax, eax
pop ecx
jne 0x10010cc9
inc dword [0x1003a144]
jmp 0x10010d5b
call fcn.1001576f
call fcn.1001342a
jmp 0x10010c73
test eax, eax
jne 0x10010d05
cmp dword [0x1003a144], eax
jle 0x10010d4a
dec dword [0x1003a144]
cmp dword [0x1003a198], eax
jne 0x10010cf4
call fcn.1001172b
call fcn.1001576f
call fcn.1001342a
call fcn.10013aad
jmp 0x10010d5b
cmp eax, 2
jne 0x10010d4e
push 0x8c
push 1
call fcn.10012abc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10010d4a
push esi
push dword [0x100374b4]
call dword [0x1003a1b8]
test eax, eax
push esi
je 0x10010d44
call fcn.10013447
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10010d5b
call fcn.10010878
pop ecx
xor eax, eax
jmp 0x10010d5e
cmp eax, 3
jne 0x10010d5b
push 0
call fcn.10013612
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10011657
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1002ea18
call fcn.100119a4
push 8
call fcn.10013a11
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1003a19c], esi
jne 0x1001168b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1003a198], esi
mov al, byte [ebp + 0x10]
mov byte [0x1003a194], al
cmp dword [ebp + 0xc], edi
jne 0x100116d5
cmp dword [0x1003ba28], edi
je 0x100116c5
mov eax, dword [0x1003ba24]
sub eax, 4
mov dword [0x1003ba24], eax
cmp eax, dword [0x1003ba28]
jb 0x100116c5
mov eax, dword [eax]
cmp eax, edi
je 0x100116a6
call eax
jmp 0x100116a6
push 0x1003608c
mov eax, 0x10036084
call fcn.100115d5
pop ecx
push 0x10036098
mov eax, 0x10036090
call fcn.100115d5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10011706
cmp dword [ebp + 0x10], edi
jne 0x10011714
mov dword [0x1003a19c], esi
push dword [ebp + 8]
call fcn.10011593
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10011713
push 8
call fcn.1001395c
pop ecx
ret
call fcn.100119df
ret
Function at 0x10015db9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10037200]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10037ab0]
je 0x10015dee
inc eax
cmp eax, 0x13
jb 0x10015ddf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10037ab0]
jne 0x10015f14
mov eax, dword [0x1003a150]
cmp eax, 1
je 0x10015eec
cmp eax, edx
jne 0x10015e1e
cmp dword [0x1003a154], 1
je 0x10015eec
cmp ecx, 0xfc
je 0x10015f14
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10015e54
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100170d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10011260
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10015e88
mov eax, edi
push eax
call fcn.10011260
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1002f150
push edi
call fcn.10018e30
add esp, 0x10
push edi
call fcn.10011260
push dword [esi + 0x10037ab4]
mov ebx, eax
call fcn.10011260
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10010690
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100170d0
push edi
push ebx
call fcn.100170e0
push 0x1002f130
push ebx
call fcn.100170e0
push dword [esi + 0x10037ab4]
push ebx
call fcn.100170e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10018f54
add esp, 0x2c
jmp 0x10015f14
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10037ab4]
push dword [esi]
call fcn.10011260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.100111ee
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10018f54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1003a5f8], ebx
push esi
push edi
jne 0x10018fd4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001900f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002fb0c
push edi
call esi
test eax, eax
mov dword [0x1003a5f8], eax
je 0x1001900f
push 0x1002fafc
push edi
call esi
push 0x1002fae8
push edi
mov dword [0x1003a5fc], eax
call esi
cmp dword [0x1003a15c], 2
mov dword [0x1003a600], eax
jne 0x10018fd4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1003a608], eax
je 0x10018fd4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1003a604], eax
mov eax, dword [0x1003a604]
test eax, eax
je 0x10019019
call eax
test eax, eax
je 0x10019000
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1003a608]
test eax, eax
je 0x10019000
test byte [ebp - 8], 1
jne 0x10019019
cmp dword [0x1003a168], 4
jb 0x10019013
or byte [ebp + 0x12], 0x20
jmp 0x10019038
xor eax, eax
jmp 0x10019048
or byte [ebp + 0x12], 4
jmp 0x10019038
mov eax, dword [0x1003a5fc]
test eax, eax
je 0x10019038
call eax
mov ebx, eax
test ebx, ebx
je 0x10019038
mov eax, dword [0x1003a600]
test eax, eax
je 0x10019038
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1003a5f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001916c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10037200]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1001919d
xor eax, eax
jmp 0x10019326
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1003a6a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100191d9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001a560
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100192b4
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100192f2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1001923d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1001922e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1001920e
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001927d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10019286
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100191ff
jmp 0x10019288
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10019321
cmp dword [ebp - 0x6c], edi
je 0x100192f2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x100192e7
call fcn.100125cc
mov dword [eax], 9
call fcn.100125d5
mov dword [eax], esi
jmp 0x1001931c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100192dc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10019288
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10019288
push dword [ebp - 0x6c]
call fcn.100125de
pop ecx
jmp 0x1001931c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001930a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001930a
xor eax, eax
jmp 0x10019324
call fcn.100125cc
mov dword [eax], 0x1c
call fcn.100125d5
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10019324
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.100111ee
add ebp, 0x3a0
leave
ret
Function at 0x1001a5e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1001a7b7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1003a6a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1001a7b7
test cl, 0x48
je 0x1001a64e
cmp byte [eax + 5], 0xa
je 0x1001a64e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a6a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1001a688
call fcn.100125cc
mov dword [eax], 9
call fcn.100125d5
mov dword [eax], esi
jmp 0x1001a698
cmp eax, 0x6d
je 0x1001a7b7
push eax
call fcn.100125de
pop ecx
or eax, 0xffffffff
jmp 0x1001a7b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1001a7b2
test eax, eax
je 0x1001a6c7
cmp byte [ebx], 0xa
jne 0x1001a6c7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1001a6d0
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1001a7ac
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001a79c
cmp al, 0xd
je 0x1001a702
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001a78e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1001a71c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1001a717
add dword [ebp + 0x10], 2
jmp 0x1001a770
mov dword [ebp + 0x10], eax
jmp 0x1001a78a
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a744
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001a78a
cmp dword [ebp - 0xc], 0
je 0x1001a78a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1001a765
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1001a770
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001a78d
cmp ebx, dword [ebp + 0xc]
jne 0x1001a775
cmp byte [ebp - 1], 0xa
jne 0x1001a775
mov byte [ebx], 0xa
jmp 0x1001a78d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001904d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001a78e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1001a6e6
jmp 0x1001a7ac
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1001a7ac
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1001a7b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret