joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4806f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x480793
test eax, eax
jbe 0x480793
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x480793
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48073e
xor esi, esi
jmp 0x480744
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48076f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00431d00
add esi, eax
push esi
mov ebx, esi
call fcn.00431d00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x480750
pop ebp
test edi, edi
pop edi
jne 0x480793
test ebx, ebx
je 0x480793
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0049e000
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4808d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4809ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4809ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b0a4c
mov esi, eax
test esi, esi
je 0x4809ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4809ed
mov ecx, esi
call fcn.00480840
cmp edi, eax
jge 0x4809ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x480973
mov dword [esp + 0x34], 1
jmp 0x4809ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4809ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047fdb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4841a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x484206
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x484206
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4841e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x484590
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4845c8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x485200
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x485249
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4856c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00485270
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004852f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004852f0
lea ecx, [esi + 0xc]
call fcn.004aeec1
lea ecx, [esi + 0x10]
call fcn.004aeec1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00486880
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00486880
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00486880
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004aef36
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004aef36
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4b13f0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b1428
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004af3dd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004af3b5
jmp 0x4b1434
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b2ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b2b23
call fcn.004b8a8d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b2b23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b2b1a
xor eax, eax
jmp 0x4b2b2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b2b31
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b8fbd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b8feb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b9009
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b8f23
jmp 0x4b9009
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b9009
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b8f23
test edi, edi
mov eax, edi
jne 0x4b8ff3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42a8e2
Capabilities:
Encode data using xor

Disassembly:
lcall 0x1818, 0x18a9520c
and al, ch
popfd
invalid
invalid
mov byte [ecx], al
xchg ebx, eax
mov edi, 0x91c1189c
sbb al, 0xc8
or byte [eax], cl
or al, 0xcf
insb byte es:[edi], dx
les eax, [ecx - 0x66e3f3f4]
les edx, [ecx + 0x6d]
sbb al, 0xcf
sbb al, 0x9e
or ecx, esp
popal
jp 0x42a820
fidivr word [esi]
leave
pop esp
rol byte [eax + 0x41], 0x10
jb 0x42a852
push eax
pushal
fld dword [ebp + 0x20]
and al, 0x20
inc esp
add ecx, dword [edx + 0x51]
add dword [edi], esp
adc byte [edx + 0xc30bf27], bl
shl byte [ebx], 0x4e
pop edi
sbb byte [ebx], ah
dec esp
cmc
mov byte [ebx - 0x2a26d275], ah
cmpsd dword [esi], dword es:[edi]
jno 0x42a942
push edi
retf
inc edx
add dword [eax], ecx
sub dword [ecx], esi
jo 0x42a876
pop ecx
sub bl, 0x84
sahf
mov ah, 0x1b
sbb esp, dword [esi]
mov ch, 0xa8
mov ch, bl
sbb cl, byte [edx - 0x45162f02]
mov edx, 0xeb50a422
push ds
sbb ecx, dword [ebx]
mov ebx, 0x1bb213a4
daa
pop ebp
dec ebx
xchg byte [ebx + 0x19f71a13], cl
popfd
pushal
xor eax, 0xf8f61bf5
add dword [edi + ebp*2 - 0x3b], esi
pop ecx
add byte [edx], al
xchg edi, eax
jmp 0xe15a857f
mov byte es:[ecx - 0x33b0a2b0], al
sbb byte [0x321f1262], cl
and ecx, dword [edx + 0x4e268043]
pop edi
sahf
mov eax, dword [0x484e9524]
and eax, 0x128183d5
xchg edi, eax
add edi, 0xffffffd7
sbb ch, byte [eax]
inc esi
jno 0x42a99a
and dword [ebx + 0x4c], esi
or byte [ecx], al
out dx, al
cli
and dword [ebx], ebx
pop ss
sbb edx, dword [ebx - 0x52eedca7]
outsd dx, dword [esi]
sbb al, 0x4f
movsd dword es:[edi], dword [esi]
jns 0x42a9f1
mov eax, dword [0x30525468]
and al, 0x79
xor byte [esp + 0x44684455], bh
fnstcw word [ebx + 0x58]
xor eax, 0xc7375fa7
adc byte [edx + 0x6919910f], dl
sub al, 0x20
adc dl, byte [esi - 0x6f]
xchg ecx, eax
sbb dword [ecx + 0x2c], ebp
and byte [edx], dl
push esi
xchg ecx, eax
sub eax, 0x3e46951f
test byte [ebp + 0x40], bl
adc byte [edi + 0x2a], bh
scasd eax, dword es:[edi]
xchg byte [eax + edx], cl
movsd dword es:[edi], dword [esi]
adc al, 0x14
nop
xor eax, 0x5d144190
add byte [ebp + 0x30], 0x79
mov eax, dword [0xc3d3d3b3]
pushal
sub ebx, esi
mov dl, 0x51
sub byte [edx + ebp + 0x23], dl
iretd
adc dword [ebx + eax*2 + 0x5b4df198], esi
or dword [esi - 0x7ed7fa95], 0x49
xchg ebx, eax
push esi
sub byte [eax + ebx], bl
mov edi, 0x65c80cbd
or eax, dword [ebx + 0x24]
and eax, 0x75c9081a
fbld tbyte [ebx + ebp*2]
jne 0x42a9d2
and al, 0x6b
add ebx, eax
mov ah, ch
jg 0x42aa25
cdq
inc edi
ret 0xf23d
shl byte [edx], cl
sbb eax, ebp
pop ds
pop edx
adc dword [edx - 0x58], esi
xor eax, 0x4de59a4a
pop edi
stc
and byte [eax], ch
inc esi
mov eax, dword [0xddef1a86]
cld
inc ebx
hlt
Function at 0x402dbd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x43c814]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402e26
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040197a
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.00402ea1
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x402e3e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.004025b3
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x402dee
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004078df
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.004025b3
jmp 0x402e28

Function at 0x402ea1
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
push str.Dont_afraid
push 0x43d9a8
call fcn.0040131a
push eax
call fcn.00401807
mov edi, dword [esp + 0x20]
add esp, 0xc
lea eax, [edi + 0x10]
mov esi, dword [eax]
mov ebx, esi
xor ebx, dword [esp + 0x18]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0xc], eax
jb 0x402edc
mov edi, dword [edi]
mov dword [esp + 0x14], edi
push edi
shr esi, 2
push esi
push str._x_and__p
call fcn.0040466e
add esp, 0xc
test esi, esi
je 0x402f35
push ebp
mov ebp, edi
mov edi, esi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00409d30
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub edi, 1
jne 0x402ef7
mov edi, dword [esp + 0x18]
pop ebp
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [eax]
and eax, 3
sub eax, 1
je 0x402f61
sub eax, 1
je 0x402f57
sub eax, 1
jne 0x402f6f
movsx ecx, byte [edi + esi*4 + 2]
shl ecx, 0x10
movsx eax, byte [edi + esi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [edi + esi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret
Function at 0x404638
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43c814]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40461e
jmp 0xe9ac2e7e
call fcn.00402f8e
sub eax, eax
je 0x404629
call 0x7480ae68
inc edx
add al, ch
cmp eax, dword [eax]
add byte [eax], al
push str.So__lets_start_the_party
call fcn.0040466e
call fcn.00404519
push 0x75
push str.Solution_a_lot_of_many_problems__d
call fcn.0040468b
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004019d3
call fcn.00401fbc
push str.duYayx8383
push 0x43d9a8
call fcn.0040131a
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406029
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40604a
jl 0x406041
test edi, edi
jne 0x40604a
xor eax, eax
xor edx, edx
jmp 0x40610b
cmp dword [ebx + 0x38], 0
je 0x40605f
push eax
push edi
push dword [ebp + 8]
call fcn.00406111
jmp 0x40610b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4060a6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4060a6
cmp eax, edi
jb 0x406080
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409d30
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4060ac
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406100
mov ecx, ebx
call fcn.004058c9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4060eb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041141c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406100
jmp 0x4060be
test edx, edx
je 0x406100
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041141c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4084f9
Capabilities:
Parse pe header

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

Function at 0x416e26
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b118
push 0x42b110
push str.FlsAlloc
push 0x1e
call fcn.00416c93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416e5a
push dword [ebp + 8]
mov ecx, esi
call dword [0x427134]
call esi
jmp 0x416e60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x416ea4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b128
push 0x42b120
push str.FlsGetValue
push 0x20
call fcn.00416c93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416edb
push dword [ebp + 8]
mov ecx, esi
call dword [0x427134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a746
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a3e8

Function at 0x41a751
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a577

Function at 0x41ab4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408660
mov eax, dword [0x43c814]
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.004183bb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ab8d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ace9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426220
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 + 0x43e4d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bd1c
mov ecx, dword [esi*4 + 0x43e4d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ace2
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ace2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ace2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bd1c
add esp, 0x14
test edx, edx
jl 0x41ace2
jg 0x41ac58
test eax, eax
jb 0x41ace2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ace2
jl 0x41ac72
cmp dword [ebp - 0x1008], eax
ja 0x41ace2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ac90
test ebx, ebx
je 0x41acc9
cmp ecx, edi
jae 0x41acc9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41acaa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41acb6
cmp byte [ecx + 1], 0xa
jne 0x41acb6
inc ecx
jmp 0x41acb6
movzx eax, al
movsx eax, byte [eax + 0x43cac0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ac90
cmp edx, ebx
jne 0x41ac90
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ace7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004078df
leave
ret
Function at 0x41b1ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x43e4d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b1fa
cmp byte [ebx], 0xa
jne 0x41b1fa
or byte [eax + edi + 0x28], 4
jmp 0x41b1ff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b2fd
mov al, byte [edx]
cmp al, 0x1a
je 0x41b2df
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b22e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b253
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b25d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b210
jmp 0x41b2fd
push 0
lea eax, [ebp - 0xc]
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 0x41b2da
cmp dword [ebp - 0xc], 0
je 0x41b2da
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43e4d8]
test byte [eax + edi + 0x28], 0x48
je 0x41b2b4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b29f
mov byte [esi], dl
jmp 0x41b2b0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43e4d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b2fd
cmp byte [ebp - 1], 0xa
jne 0x41b2c3
cmp esi, ebx
jne 0x41b2c3
mov byte [esi], 0xa
jmp 0x41b2fc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bd3a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b2fd
mov byte [esi], 0xd
jmp 0x41b2fc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43e4d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b2f9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b2fd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b306
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43e4d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b349
cmp word [esi], dx
jne 0x41b349
or byte [edi + eax + 0x28], 4
jmp 0x41b34e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b4a1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b481
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b390
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b3c6
cmp eax, edx
jae 0x41b3d2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b368
jmp 0x41b4a1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b47d
cmp dword [ebp - 0x14], 0
je 0x41b47d
mov eax, dword [ebx*4 + 0x43e4d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b455
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b41e
mov word [esi], cx
jmp 0x41b451
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43e4d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43e4d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43e4d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b4a1
pop ebx
cmp word [ebp - 4], bx
jne 0x41b466
cmp esi, dword [ebp + 0xc]
jne 0x41b466
mov word [esi], bx
jmp 0x41b49e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bd3a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b4a1
push 0xd
jmp 0x41b49a
mov ecx, dword [ebx*4 + 0x43e4d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b498
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b4a1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret