joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xf1eaf8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf1eb02
pushal
call 0xf1eb08
pop ebp
sub ebp, 0x10
sub ebp, 0xb1eaf8
jmp 0xf1eb1e
mov eax, 0xb1eaf8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b6
mov edx, 0xa381e605
xor byte [eax], dl
inc eax
dec ecx
jne 0xf1eb35
jmp 0xf1eb48
mov cs, eax
mov cs, word [ecx + edi - 0x7bfafafb]
invalid

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40325b
pop dword [ebp - 0x50]
mov eax, 0x40325b
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x5f179d4f
add dword [ebp - 0x60], 0xef3aa7fc
mov dword [ebp - 0x5c], 0x872838cc
add dword [ebp - 0x5c], 0xab0b1379
mov dword [ebp - 0x58], 0x9570bab5
add dword [ebp - 0x58], 0xb6db8979
mov dword [ebp - 0x54], 0xa288518a
sub dword [ebp - 0x54], 0xa288518a
lea eax, [ebp - 0x60]
push eax
mov eax, 0xb413aee9
add eax, 0x4c2cd18f
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6c10a890
add dword [ebp - 0x60], 0x861c0c6
mov dword [ebp - 0x5c], 0x492762d
sub dword [ebp - 0x5c], 0xc32614b8
mov dword [ebp - 0x58], 0xc15b4a49
sub dword [ebp - 0x58], 0x5debdddd
mov dword [ebp - 0x54], 0xbfc06f7
sub dword [ebp - 0x54], 0xbfc06f7
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3c340
push 0
call eax
mov ecx, 0xbf1b2625
add ecx, 0x40e5368b
xor ebx, ebx
add ebx, eax
mov esi, 0xf28d3188
sub esi, 0xf2481d88
add esi, dword [ebp - 0x50]
mov edi, 0x98869720
sub dword [ebp - 0x28], 0x2b59fb54
mov edx, dword [esi]
sub dword [ebp - 0x48], edi
add edx, edi
sub dword [ebp - 8], eax
mov dword [ebx], edx
xor dword [ebp - 4], edx
add ebx, 0x2e452456
sub ebx, 0x2e452452
add esi, 0xa05c49f2
add esi, 0x5fa3b612
loop 0x40336f
add eax, 0x5fadefeb
sub eax, 0x5fac8a58
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcff58562
sub ecx, 0xcfb58562
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10001ee0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x438
mov eax, dword [0x10032048]
xor eax, esp
mov dword [esp + 0x434], eax
movq xmm0, qword [ebp + 8]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x100666f0
push 0x104
push 0x816
push dword [ebp + 8]
movq qword [0x100666e0], xmm0
mov dword [0x100666e8], eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.pork2Sausage.ini
push 0x100666f0
call esi
push 0x100666f0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100020c8
movups xmm0, xmmword [str.pork2sausage]
mov ax, word [0x1002e964]
push 0x1ee
mov word [esp + 0x24c], ax
lea eax, [esp + 0x24e]
movups xmmword [esp + 0x234], xmm0
push 0
movq xmm0, qword [0x1002e95c]
push eax
movq qword [esp + 0x24c], xmm0
call fcn.1000a7b0
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call fcn.1000a7b0
add esp, 0x18
lea eax, [esp + 0x28]
push eax
push 0x104
push 0x849
push dword [0x100666e0]
call edi
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
call esi
push str.Config
lea eax, [esp + 0x2c]
push eax
call esi
push str.pork2sausage.ini
lea eax, [esp + 0x2c]
push eax
call esi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000200a
push 1
push 0x100666f0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x100020c8
push 0x100666f0
lea ecx, [esp + 0x14]
call fcn.10005340
mov ecx, dword [esp + 0x24]
mov eax, ecx
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x3d
jb 0x10002058
cmp ecx, 8
lea esi, [esp + 0x10]
lea eax, [edi + 0x3d]
cmovae esi, dword [esp + 0x10]
push 0x7a
mov dword [esp + 0x24], eax
push str._is_absent._rPlease_create_the_file_for_avoiding_this_message.
lea eax, [esi + edi*2]
push eax
call fcn.1000a230
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x7a], ax
jmp 0x1000206e
push 0x3d
push str._is_absent._rPlease_create_the_file_for_avoiding_this_message.
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x3d
call fcn.10006960
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push str.Configuration_file_is_missing
push eax
push dword [0x100666e0]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x100020c8
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100020be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100020eb
push ecx
push edx
call fcn.10008d64
add esp, 8
push ecx
call fcn.100022e0
mov ecx, dword [esp + 0x440]
add esp, 4
add dword [0x10032ab0], eax
pop edi
pop esi
xor ecx, esp
call fcn.10008d1c
mov esp, ebp
pop ebp
ret
call fcn.100105f0
int3
Function at 0x100022e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a20
call fcn.10009b80
mov eax, dword [0x10032048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100666f0
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
xor eax, eax
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x2a20], eax
cmp word [ebp - 0x21c], ax
je 0x10002506
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov edi, 0x10032b3c
nop word [eax + eax]
push 0x800
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.1000a7b0
push 0x800
lea eax, [ebp - 0x121c]
push 0
push eax
call fcn.1000a7b0
push 0x800
lea eax, [ebp - 0x1a1c]
push 0
push eax
call fcn.1000a7b0
add esp, 0x24
lea eax, [ebp - 0xa1c]
push 0x100666f0
push 0x400
push eax
push 0x1002e924
push str.progPath
push esi
call ebx
push 0x100666f0
push 0x400
lea eax, [ebp - 0x121c]
push eax
push 0x1002e924
push str.progCmd
push esi
call ebx
push 0x100666f0
push 0x400
lea eax, [ebp - 0x1a1c]
push eax
push 0x1002e924
push str.workDir
push esi
call ebx
cmp word [ebp - 0xa1c], 0
je 0x100024e7
cmp word [ebp - 0x121c], 0
je 0x100024e7
cmp word [ebp - 0x1a1c], 0
je 0x100024e7
push esi
lea eax, [edi - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xa1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x121c]
push eax
lea eax, [edi + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1a1c]
push eax
lea eax, [edi + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100666f0
push 0x400
lea eax, [ebp - 0x221c]
push eax
push 0x1002e924
push str.progInput
push esi
call ebx
push 0x100666f0
push 0x400
lea eax, [ebp - 0x2a1c]
push eax
push 0x1002e924
push str.progOutput
push esi
call ebx
push 0x100666f0
push 8
lea eax, [ebp - 0x14]
push eax
push str.true
push str.replaceSelection
push esi
call ebx
lea eax, [ebp - 0x221c]
push eax
lea eax, [edi + 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2a1c]
push eax
lea eax, [edi + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x14]
push eax
push str.false
call fcn.10012ae4
add esp, 8
test eax, eax
jne 0x100024db
mov byte [edi + 0x2800], al
inc dword [ebp - 0x2a20]
add edi, 0x2888
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x10002340
mov eax, dword [ebp - 0x2a20]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10008d1c
mov esp, ebp
pop ebp
ret
Function at 0x10003ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10004022
jl 0x10004015
test ecx, ecx
jne 0x10004022
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100040e2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10005b90
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000408e
jg 0x1000404d
test esi, esi
je 0x1000408e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10004065
mov eax, dword [esp + 0x10]
jl 0x1000405f
cmp eax, esi
jae 0x10004065
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000a230
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x100040af
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100040cb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10004034
jl 0x100040cb
test ecx, ecx
jne 0x10004034
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10004120
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10004120
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.1000a230
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10004189
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10004146
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10004174
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000ff23
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10004189
cmp edi, eax
ja 0x10004152
test edi, edi
je 0x10004189
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000ff23
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011d2a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10011d69
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011d69
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011d69
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10011d69
cmp dword [ecx + 0x74], 0xe
jbe 0x10011d69
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10016b07
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027360
push 0x10027358
push str.FlsAlloc
push 0x1f
call fcn.10016972
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016b3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100241d4]
call esi
jmp 0x10016b41
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016b85
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027370
push 0x10027368
push str.FlsGetValue
push 0x21
call fcn.10016972
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016bbc
push dword [ebp + 8]
mov ecx, esi
call dword [0x100241d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016bc4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027378
push 0x10027370
push str.FlsSetValue
push 0x22
call fcn.10016972
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016bfe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100241d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018501
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009b80
mov eax, dword [0x10032048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10013342
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10018543
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001869f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10023470
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100662a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001954e
mov ecx, dword [esi*4 + 0x100662a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10018698
cmp eax, dword [ecx + edi + 0x24]
jne 0x10018698
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018698
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001954e
add esp, 0x14
test edx, edx
jl 0x10018698
jg 0x1001860e
test eax, eax
jb 0x10018698
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10018698
jl 0x10018628
cmp dword [ebp - 0x1008], eax
ja 0x10018698
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10018646
test ebx, ebx
je 0x1001867f
cmp ecx, edi
jae 0x1001867f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10018660
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001866c
cmp byte [ecx + 1], 0xa
jne 0x1001866c
inc ecx
jmp 0x1001866c
movzx eax, al
movsx eax, byte [eax + 0x10032470]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10018646
cmp edx, ebx
jne 0x10018646
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001869d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008d1c
leave
ret
Function at 0x100189e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100662a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018a26
cmp byte [ebx], 0xa
jne 0x10018a26
or byte [edi + eax + 0x28], 4
jmp 0x10018a2b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10018b2a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10018b0d
inc eax
cmp dl, 0xd
je 0x10018a57
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10018a7d
cmp eax, ecx
jae 0x10018a8b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10018a3f
jmp 0x10018b2a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018b08
cmp dword [ebp - 0x10], 0
je 0x10018b08
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100662a0]
test byte [eax + edi + 0x28], 0x48
je 0x10018ae2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10018acd
mov byte [esi], dl
jmp 0x10018ade
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100662a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10018b2a
cmp byte [ebp - 1], 0xa
jne 0x10018af1
cmp esi, ebx
jne 0x10018af1
mov byte [esi], 0xa
jmp 0x10018b29
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001956c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10018b2a
mov byte [esi], 0xd
jmp 0x10018b29
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100662a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018b27
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018b2a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10018b33
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100662a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018b79
cmp word [ebx], dx
jne 0x10018b79
or byte [eax + edi + 0x28], 4
jmp 0x10018b7e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10018ce1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10018cc1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10018bbf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10018bf5
cmp eax, edx
jae 0x10018c03
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10018b9a
jmp 0x10018ce1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018cbc
cmp dword [ebp - 0x18], 0
je 0x10018cbc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100662a0]
test byte [eax + edi + 0x28], 0x48
je 0x10018c92
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10018c56
mov word [esi], cx
jmp 0x10018c8d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100662a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100662a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100662a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10018ce1
pop eax
cmp word [ebp - 4], ax
jne 0x10018ca2
cmp esi, ebx
jne 0x10018ca2
mov word [esi], ax
jmp 0x10018cde
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001956c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10018ce1
push 0xd
pop eax
jmp 0x10018c9d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100662a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10018cdb
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10018ce1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret