joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x810708]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x81070c]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x810710]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x810714]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x81f954], 0xc
mov dword [ebp - 4], eax
jne 0x401085
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x81f954]
cmp eax, 0xfa9
jne 0x4010a1
mov dword [0x81f950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c2
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
and dword [0x81f8a8], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x81f94c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x401059
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408cfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x810030]
jne 0x408d07
repz ret
jmp fcn.0040cf92

Function at 0x40a10d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004055a8
and dword [ebp - 4], 0
cmp dword [0x814944], 0
mov ebx, eax
jne 0x40a1be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a26f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a26f
push eax
call fcn.00405536
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x814944], eax
call esi
push eax
call fcn.00405536
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x814948], eax
call esi
push eax
call fcn.00405536
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81494c], eax
call esi
push eax
call fcn.00405536
pop ecx
mov dword [0x814954], eax
test eax, eax
je 0x40a1be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405536
pop ecx
mov dword [0x814950], eax
mov eax, dword [0x814950]
cmp eax, ebx
je 0x40a216
cmp dword [0x814954], ebx
je 0x40a216
push eax
call fcn.004055b1
push dword [0x814954]
mov esi, eax
call fcn.004055b1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a216
test edi, edi
je 0x40a216
call esi
test eax, eax
je 0x40a20d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a20d
test byte [ebp - 0xc], 1
jne 0x40a216
or dword [ebp + 0x10], 0x200000
jmp 0x40a24f
mov eax, dword [0x814948]
cmp eax, ebx
je 0x40a24f
push eax
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a24f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a24f
mov eax, dword [0x81494c]
cmp eax, ebx
je 0x40a24f
push eax
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a24f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x814944]
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a26f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a271
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
pop esp
jae 0x4153cc
inc ebp
rcr dword [eax], cl
invalid
outsd dx, dword [esi]
xor dword [edi], esi
xchg byte [eax - 0x11e1df31], dl
inc ebp
fidiv dword [ebx + 0x3a]
and byte [edi - 0xd], ah
rcr dword [ebx + 0x5d3ab87b], cl
jnp 0x41539a
cmp bl, byte [ebp + 0x2b]
sar dword [esi - 0x48cfd126], 1
jnp 0x41539a
cmp bl, byte [ebp + 0x2b]
sar dword [esi - 0x48cfd126], 1
dec ebx
cmp al, 0x72
fcompi st(1)
fcomp st(1)
test dword [edi], esp
ror dh, 1
invalid
Function at 0x9a0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009a01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9a007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a006a
add dl, dl
jne 0x9a0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a00dc
xor eax, eax
add dl, dl
jne 0x9a0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a017d
add dl, dl
jne 0x9a00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9a00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9a0075
mov eax, 1
add dl, dl
jne 0x9a00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a00e1
sub eax, ebx
mov ebx, 1
jne 0x9a0128
mov ecx, 1
add dl, dl
jne 0x9a010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9a013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0136
cmp eax, 0x7d00
jae 0x9a016d
cmp eax, 0x500
jb 0x9a0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0075
cmp eax, 0x7f
ja 0x9a0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9a019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9a0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100033a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push edi
mov ecx, 0xe
mov esi, str.yvfrkcvHZfpNVnaQICoeFupNPmx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], 0x10003090
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x80]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x1e0
push 0x280
push 0x80000000
push 0x80000000
push 0x10cf0000
push str.IqPBLKAFmWRMutCcxkIbObL
lea edx, [ebp - 0x80]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000344c
push 0x30
push str.TQQUldSscGLjHfHnSAWbG
push str.IosJeDfSCxEmQjEeDViN
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x100034a4
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10003499
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1000346f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10011140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10011160
jl 0x10011157
cmp dword [ebp + 0xc], 0
ja 0x10011160
xor eax, eax
xor edx, edx
jmp 0x10011297
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10011182
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 - 8]
call fcn.10011b00
jmp 0x10011297
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.10012d70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x100111f1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.100112a0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.10012ed0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10013710
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.10012e50
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10011288
mov ecx, dword [ebp - 8]
call fcn.10012980
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10011261
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1004bc2a
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x1001125f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10011297
jmp 0x1001120d
cmp dword [ebp - 4], 0
jbe 0x10011288
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1004bc2a
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015b90
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f5be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x10]
call fcn.100167a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.10016a60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10002d20
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x35], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x36
call fcn.10002d20
mov ecx, dword [ebp - 0x10]
add ecx, 0x37
call fcn.10016980
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x18]
call fcn.100167f0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.100187e0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10016fd0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10018cb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100181b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f71d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.1001a6a0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.1001a720
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10019ce0
mov dword [ebp - 0x20], 0x1001a760
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.10001940
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.1004add3
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1001823c
lea ecx, [ebp - 0x14]
call fcn.100162e0
jmp 0x1001824d
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.10044ab1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004d8af
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006512c
push 0x10065124
push 0x10063904
push 0x1f
call fcn.1005209b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100522a4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10061cf0]
call esi
jmp 0x100522aa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100522ee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006513c
push 0x10065134
push str.FlsGetValue
push 0x21
call fcn.1005209b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10052325
push dword [ebp + 8]
mov ecx, esi
call dword [0x10061cf0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005232d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10065144
push 0x1006513c
push str.FlsSetValue
push 0x22
call fcn.1005209b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10052367
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10061cf0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100539ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10046b50
mov eax, dword [0x10077080]
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.1004ec02
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10053a10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10053b6c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005eac0
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 + 0x100cc1f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100547cf
mov ecx, dword [esi*4 + 0x100cc1f8]
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 0x10053b65
cmp eax, dword [ecx + edi + 0x24]
jne 0x10053b65
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 0x10053b65
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100547cf
add esp, 0x14
test edx, edx
jl 0x10053b65
jg 0x10053adb
test eax, eax
jb 0x10053b65
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10053b65
jl 0x10053af5
cmp dword [ebp - 0x1008], eax
ja 0x10053b65
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10053b13
test ebx, ebx
je 0x10053b4c
cmp ecx, edi
jae 0x10053b4c
mov al, byte [ecx]
cmp al, 0xd
jne 0x10053b2d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10053b39
cmp byte [ecx + 1], 0xa
jne 0x10053b39
inc ecx
jmp 0x10053b39
movzx eax, al
movsx eax, byte [eax + 0x10077338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10053b13
cmp edx, ebx
jne 0x10053b13
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10053b6a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10046268
leave
ret
Function at 0x10053c67
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 + 0x100cc1f8]
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 0x10053ca7
cmp byte [ebx], 0xa
jne 0x10053ca7
or byte [edi + eax + 0x28], 4
jmp 0x10053cac
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 0x10053dab
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10053d8e
inc eax
cmp dl, 0xd
je 0x10053cd8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10053cfe
cmp eax, ecx
jae 0x10053d0c
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 0x10053cc0
jmp 0x10053dab
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 0x10053d89
cmp dword [ebp - 0x10], 0
je 0x10053d89
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100cc1f8]
test byte [eax + edi + 0x28], 0x48
je 0x10053d63
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10053d4e
mov byte [esi], dl
jmp 0x10053d5f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100cc1f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10053dab
cmp byte [ebp - 1], 0xa
jne 0x10053d72
cmp esi, ebx
jne 0x10053d72
mov byte [esi], 0xa
jmp 0x10053daa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100547ed
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10053dab
mov byte [esi], 0xd
jmp 0x10053daa
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100cc1f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10053da8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10053dab
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10053db4
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 + 0x100cc1f8]
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 0x10053dfa
cmp word [ebx], dx
jne 0x10053dfa
or byte [eax + edi + 0x28], 4
jmp 0x10053dff
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 0x10053f62
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 0x10053f42
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10053e40
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10053e76
cmp eax, edx
jae 0x10053e84
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 0x10053e1b
jmp 0x10053f62
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 0x10053f3d
cmp dword [ebp - 0x18], 0
je 0x10053f3d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100cc1f8]
test byte [eax + edi + 0x28], 0x48
je 0x10053f13
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 0x10053ed7
mov word [esi], cx
jmp 0x10053f0e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100cc1f8]
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 + 0x100cc1f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100cc1f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10053f62
pop eax
cmp word [ebp - 4], ax
jne 0x10053f23
cmp esi, ebx
jne 0x10053f23
mov word [esi], ax
jmp 0x10053f5f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100547ed
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10053f62
push 0xd
pop eax
jmp 0x10053f1e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100cc1f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10053f5c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10053f62
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret