joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42f008]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x42f008]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x37
push str.BufferedTransformation:_this_object_doesnt_allow_input
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00403610
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040ead0
mov byte [esp + 0x30], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x10]
mov dword [esi + 0xc], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004034e0
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::NotImplemented.0
jb 0x40bce6
push dword [esp + 0xc]
call fcn.0040f387
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040e8ab
add esp, 0x2c
ret
Function at 0x41e44c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00414212
mov dword [ebp - 0x14], eax
cmp dword [0x4321ec], esi
jne 0x41e53f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41e4cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41e61f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41e61f
push 0x428f2c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e61f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4321ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4321f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4321f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4321fc], eax
test eax, eax
je 0x41e53c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4321f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e564
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e557
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41e579
push 4
pop eax
jmp 0x41e621
cmp dword [ebp - 0x14], esi
je 0x41e579
push dword [0x4321ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41e55e
mov eax, dword [0x4321f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41e5d7
cmp dword [0x4321fc], edi
je 0x41e5d7
push eax
call ebx
push dword [0x4321fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41e5d7
test eax, eax
je 0x41e5d7
call ecx
test eax, eax
je 0x41e5cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41e5cc
test byte [ebp - 8], 1
jne 0x41e5d7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41e607
mov eax, dword [0x4321f0]
cmp eax, edi
je 0x41e604
push eax
call ebx
test eax, eax
je 0x41e604
call eax
mov esi, eax
test esi, esi
je 0x41e604
mov eax, dword [0x4321f4]
cmp eax, edi
je 0x41e604
push eax
call ebx
test eax, eax
je 0x41e604
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4321ec]
call ebx
test eax, eax
je 0x41e61f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41e621
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e8ab
mov esp, ebp
pop ebp
ret
Function at 0x4010e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x4010ee
repz ret
jmp fcn.00401354

Function at 0x403beb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402413
and dword [ebp - 0x14], 0
cmp dword [0x429ad4], 0
mov dword [ebp - 0x18], eax
jne 0x403c9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403d46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403d46
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x429ad4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x429ad8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x429adc], eax
call edi
push eax
call esi
mov dword [0x429ae4], eax
test eax, eax
je 0x403c9e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429ae0], eax
mov eax, dword [0x429ae0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403cf7
cmp dword [0x429ae4], ecx
je 0x403cf7
push eax
call esi
push dword [0x429ae4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403cf7
test ebx, ebx
je 0x403cf7
call edi
test eax, eax
je 0x403cee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403cee
test byte [ebp - 8], 1
jne 0x403cf7
or dword [ebp + 0x10], 0x200000
jmp 0x403d2a
mov eax, dword [0x429ad8]
cmp eax, dword [ebp - 0x18]
je 0x403d2a
push eax
call esi
test eax, eax
je 0x403d2a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403d2a
mov eax, dword [0x429adc]
cmp eax, dword [ebp - 0x18]
je 0x403d2a
push eax
call esi
test eax, eax
je 0x403d2a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429ad4]
call esi
test eax, eax
je 0x403d46
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403d48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010e4
leave
ret
Function at 0x415850
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x427004]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
xor esi, esi
test edi, edi
jle 0x4158bb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
cmp edi, 0x2d
jne 0x415897
push 0
push 0
call ebp
push str.mipipoyoto_vatelicahujuhasazagupu_zagepidexejexofu_pigilapisitacumayonetaperi_vazaw
push str.wudarureheb_sed_kukexuriyekigobu_jatutuzovaninuguxorepapivi_zaxipatoxo
push str.zabazevafij
push str.vufizu
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call fcn.004157d0
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x4158b5
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
inc esi
cmp esi, edi
jl 0x415872
pop ebp
pop esi
cmp edi, 0x2d
jne 0x4158d5
mov dword [0x42a7e0], 0xa62e7790
mov dword [0x42a7e4], 0xffffffff
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004010e4
add esp, 0x804
ret
Function at 0x1001670
Capabilities:
Create process on windows

Disassembly:
call fcn.01002b21
mov ecx, 0x10011bc
push 5
push ecx
push ecx
push eax
push 0x10011b0
push dword [0x1004090]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp fcn.01002731

Function at 0x1001d7f
Capabilities:
Create process on windows

Disassembly:
push esi
mov edi, edi
mov byte [0x1004099], 1
call fcn.01002c6d
xor ecx, ecx
cmp word [eax], cx
push ecx
push 0x10017a7
push dword [0x1004090]
je 0x1001da5
push 0x66
jmp 0x1001da7
push 0x65
push dword [0x1004088]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
call fcn.0100294f
mov eax, esi
pop esi
dec eax
je 0x1001dc7
dec eax
je 0x1001de7
dec eax
jne 0x1001de7
ret
call fcn.01002b74
mov ecx, 0x10011bc
push 5
push ecx
push ecx
push eax
push 0x10011b0
push dword [0x1004090]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp fcn.01001649
Function at 0x10022da
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x100229a
add eax, edx
mov cx, word [eax]
or cx, cx
je 0x1002292
cmp cx, 0x22
jne 0x1002282
cmp word [eax], 0x22
jne 0x10022b2
jmp 0x10022b0
cmp cx, 0x20
jbe 0x10022b2
add eax, edx
cmp word [eax], 0x20
ja 0x10022a0
jmp 0x10022b2
cmp cx, 0x20
ja 0x10022ba
add eax, edx
mov cx, word [eax]
or cx, cx
jne 0x10022aa
push 0xa
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01001f41
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.01002e8c
jmp 0x1002270

Function at 0x100294f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [0x1004024]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100298d
push dword [0x1004028]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x405340
Capabilities:
Encode data using xor

Disassembly:
sar ecx, 0x3a
int1
dec eax
or al, 0x8b
jp 0x405316
cmp ebp, dword [ecx]
jae 0x40532f
mov ecx, dword [eax]
sub eax, 0xf9720c4a
push ebx
dec eax
sti
mov dword [ecx], esi
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov ecx, dword [edx + 4]
mov dword [eax - 0x20], ecx
lcall 0xe142, 0x891089b6
mov eax, dword [ebp + 0x10]
invalid
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp - 0x6d]
sub al, 0x56
push edi
add byte [edx + 8], bl
mov eax, dword [edx]
mov eax, dword [edi + 0xc]
sub eax, dword [ebx + 0x10]
mov dword [ebx - 0x6b], ebp
lea ecx, [eax + eax]
xchg ecx, edi
and byte [eax + 5], bl
mov ecx, 0x9220
cmp byte [edx - 0x55], 0
mov eax, dword [ebx]
jne 0x405301
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0x10]
cmp ecx, esi
ja 0x4053ea
js 0x4053c3
add al, 0x8b
xor byte [edi - 0x748d7423], bh
mov eax, dword [ecx + ecx*4]
jno 0x40538c
mov ecx, dword [ebx + 4]
and byte [eax - 0x7b], cl
mov dword [ecx], eax
mov dword [eax], ebx
mov dword [ebx + 4], eax
mov dword [eax + 0xc], 0
mov ecx, esp
sub al, 0x4e
inc ebx
dec eax
test dword [ecx - 0x76e776ff], ecx
inc ebx
add al, 0xc7
inc eax
or al, 0
add byte [eax], al
add byte [ecx + 0x434e2ce1], cl
adc al, 0x8b
sbb byte [ebp - 0x3ed42075], ah
mov ecx, dword [0xb61000b1]
add byte [0xfffff000], ah
dec eax
movsb byte es:[edi], byte [esi]
clc
invalid
mov esi, dword [ecx]
cmp eax, dword [ecx + 0xc]
ja 0x4053c1
jae 0x40540d
add al, 0x89
xor byte [ebx + 3], ah
mov esi, dword [ebx + 4]
test al, 0x70
add al, 0x8b
inc ecx
cmp eax, 0x6b044320
sbb byte [ecx - 0x31a67652], cl
mov eax, esp
sub al, 0xe9
jmp 0x8b4053eb
mov esi, dword [edi + 0x18]
lea eax, [ecx + 0x9c89617]
inc edx
add al, dh
invalid
add byte [eax], ah
add byte [ecx], al
mov eax, dword [ebp - 4]
mov ebx, dword [ebx - 0x3f]
out dx, eax
or al, 0x4f
cmp edi, 0xffffffff
pushal
jge 0x405418
xchg edx, eax
xchg dword [edx + 0x942001e], ebx
dec ebx
ja 0x1f410015
mov ebx, dword [ebx + 0xc]
test eax, eax
je 0x40543b
push eax
pop ebp
xchg ebp, eax
dec esi
dec edx
add byte [ebx + 0x96cc78], al
test eax, 0xbe442b0e
cmp dword [eax - 0x34], 0xffffff96
add byte [ecx - 0x41bbd4f2], ch
mov byte [0x489d753], al
clc
adc byte ds:[ebx], bh
sal dword [ebx + 9], 1
add eax, 4
xor eax, 0x74003848
mov dword [ebp - 8], edx
mov edx, dword [eax]
test edx, edx
mov dword [ebx], edi
invalid
Function at 0x406a00
Capabilities:
Encode data using xor

Disassembly:
in eax, 0x5d
ret 8
push ebp
mov ebp, esp
and dword [ecx + 8], 0xffffff8d
dec eax
clc
push esi
push eax
call dword [0x340c078]
mov edx, dword [ebp - 0x53]
mov eax, dword [ebp - 8]
xor esi, esi
xor ecx, ecx
or edx, esi
xchg edi, eax
or ecx, eax
arpl word [edx], cx
push edx
push ecx
call 0xe8b5c1
sub eax, 0x48864000
push esi
add eax, 0xe05eadda
add byte [ebx - 0x6f3ca21b], cl
nop
nop
nop
aad 0x90
nop
push ebp
mov ebp, esp
mov edx, dword [esp + ecx + 0x3356c933]
mul byte [esi - 0x75]
dec eax
jge 0xccdf360
lodsd eax, dword [esi]
pop esi
loopne 0x406a35
mov esp, ebp
pop ebp
ret
pop ebp
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 8]
pop edx
loop 0x406a31
mov edx, dword [ecx]
fcmovnbe st(0), st(2)
mov dx, word [eax + 0xc]
mov dword [ecx + 4], edx
aam 0xd2
jge 0x4069f8
push eax
or cl, byte [ecx - 0x2dccf798]
wait
mov edx, dword [eax - 0x3d]
mov dword [esi], ecx
or al, 0x33
shl byte [esi - 0x75], cl
push eax
fisttp word [ecx - 0x2d71efaf]
mov bx, word [eax + 0x51cf4a02]
adc al, 0x33
rcr dl, cl
mov ch, 0x61
sub edx, 0x216c
dec eax
push ecx
sbb byte [ebx], dh
shl byte [esi + 0x39], cl
fiadd word [ecx + ecx*4]
push ecx
sbb al, 0x8b
push ecx
cmp eax, 0xb0708b66
mov ebp, dword [ebp + 0x40c240b5]
add byte [ebp + 0x33ff6c54], cl
test byte [ecx - 0x2dccdf05], 0x89
push ecx
lcall 0x308b, 0x15325189
mov eax, esi
inc esi
add eax, dword [eax]
add byte [eax + 0x3948ad79], al
enter 0xffffffffffffacf8, 0x75
sub cl, byte [ebx - 0x5166a83a]
nop
add dword [eax], eax
add bh, dh
call [edi - 0x7b]
sbb eax, 0xac8b1a75
mov esi, 0x64
idiv esi
das
sal byte [esp + ecx - 0x75], cl
inc ecx
mov edi, 0xf750f883
add al, 0x74
mov dword [ecx + 0x20], eax
fstp qword [ebp - 0x3d]
nop
rcl byte [eax + 0x3909090], 0x90
nop
nop
inc eax
nop
push ebp
mov ebp, esp
sub esp, 0x2300e0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, esi
push esi
invalid

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp - 0x28]
rol dword [eax + 0x14], cl
test eax, eax
xor byte [ebx], 0x8b
dec ebp
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jae 0x40a36e
iretd

Function at 0x40b516
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x40b518
ret
Function at 0x40bdeb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40be2a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40be2a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40be2a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40be2a
cmp dword [ecx + 0x74], 0xe
jbe 0x40be2a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ee7c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f2c0
push 0x41f2b8
push str.FlsAlloc
push 0x1f
call fcn.0040ece7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eeb0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
jmp 0x40eeb6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40eefa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f2d0
push 0x41f2c8
push str.FlsGetValue
push 0x21
call fcn.0040ece7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef31
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ef39
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f2d8
push 0x41f2d0
push str.FlsSetValue
push 0x22
call fcn.0040ece7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef73
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41c130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41086b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405430
mov eax, dword [0x429014]
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.0040f4b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4108ad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410a09
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b440
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 + 0x42a918]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00411868
mov ecx, dword [esi*4 + 0x42a918]
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 0x410a02
cmp eax, dword [ecx + edi + 0x24]
jne 0x410a02
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 0x410a02
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411868
add esp, 0x14
test edx, edx
jl 0x410a02
jg 0x410978
test eax, eax
jb 0x410a02
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410a02
jl 0x410992
cmp dword [ebp - 0x1008], eax
ja 0x410a02
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4109b0
test ebx, ebx
je 0x4109e9
cmp ecx, edi
jae 0x4109e9
mov al, byte [ecx]
cmp al, 0xd
jne 0x4109ca
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4109d6
cmp byte [ecx + 1], 0xa
jne 0x4109d6
inc ecx
jmp 0x4109d6
movzx eax, al
movsx eax, byte [eax + 0x429298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4109b0
cmp edx, ebx
jne 0x4109b0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410a07
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004046a8
leave
ret
Function at 0x410d00
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 + 0x42a918]
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 0x410d40
cmp byte [ebx], 0xa
jne 0x410d40
or byte [edi + eax + 0x28], 4
jmp 0x410d45
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 0x410e44
mov dl, byte [eax]
cmp dl, 0x1a
je 0x410e27
inc eax
cmp dl, 0xd
je 0x410d71
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410d97
cmp eax, ecx
jae 0x410da5
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 0x410d59
jmp 0x410e44
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 0x410e22
cmp dword [ebp - 0x10], 0
je 0x410e22
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42a918]
test byte [eax + edi + 0x28], 0x48
je 0x410dfc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x410de7
mov byte [esi], dl
jmp 0x410df8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42a918]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410e44
cmp byte [ebp - 1], 0xa
jne 0x410e0b
cmp esi, ebx
jne 0x410e0b
mov byte [esi], 0xa
jmp 0x410e43
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411886
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410e44
mov byte [esi], 0xd
jmp 0x410e43
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42a918]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x410e41
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410e44
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410e4d
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 + 0x42a918]
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 0x410e93
cmp word [ebx], dx
jne 0x410e93
or byte [eax + edi + 0x28], 4
jmp 0x410e98
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 0x410ffb
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 0x410fdb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x410ed9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410f0f
cmp eax, edx
jae 0x410f1d
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 0x410eb4
jmp 0x410ffb
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 0x410fd6
cmp dword [ebp - 0x18], 0
je 0x410fd6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42a918]
test byte [eax + edi + 0x28], 0x48
je 0x410fac
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 0x410f70
mov word [esi], cx
jmp 0x410fa7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42a918]
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 + 0x42a918]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42a918]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x410ffb
pop eax
cmp word [ebp - 4], ax
jne 0x410fbc
cmp esi, ebx
jne 0x410fbc
mov word [esi], ax
jmp 0x410ff8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411886
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x410ffb
push 0xd
pop eax
jmp 0x410fb7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42a918]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x410ff5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x410ffb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret