joyce8/EMBER2024-capa huggingface dataset:
Function at 0x280640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a000]
push edi
jmp 0x28065a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x280661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x280650
mov eax, 1
add ebx, ebx
jne 0x280673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x280684
jne 0x2806a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2806a3
dec eax
add ebx, ebx
jne 0x280690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x280668
add ebx, ebx
jne 0x28069f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x2806f5
xor ecx, ecx
sub eax, 3
jb 0x2806bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x28072a
sar eax, 1
mov ebp, eax
jmp 0x2806c6
add ebx, ebx
jne 0x2806c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x280694
inc ecx
add ebx, ebx
jne 0x2806d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x280694
add ebx, ebx
jne 0x2806e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x2806d6
jne 0x2806f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2806d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x280714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x280706
jmp 0x280656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x280714
add edi, ecx
jmp 0x280656
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x280732
cmp byte [edi], 0x11
jne 0x280732
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x280737
lea edi, [esi + 0xd9000]
mov eax, dword [edi]
or eax, eax
je 0x2807af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xea724]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xea8c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x280764
mov ecx, edi
jns 0x280793
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xea8d0]
or eax, eax
je 0x2807a9
mov dword [ebx], eax
add ebx, 4
jmp 0x280781
call dword [esi + 0xea8cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x2807e0
cmp al, 0xef
ja 0x2807d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x2807b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x2807c2
mov ebp, dword [esi + 0xea8d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x280814
sub esp, 0xffffff80
jmp 0x1c7f4a
Function at 0x4060c0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
pop ebp
ret 0x1210
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
jb 0x40611e
push edi
retf
dec eax
and eax, 0x3b08508b
mov edx, 0x5e5f0c75
or al, 0x5f
pop esi
lea eax, gs:[eax]
add byte [eax], al
pop ebx
pop ebp
or dword [eax], 0x1c908b00
xor byte [eax], al
add bl, dl
pop ebp
or al, 0x8d
or al, 0x89
mov esp, dword [ebp - 0x73]
cmp al, 0x8a
push esi
add eax, 0xf30000d5
movsd dword es:[edi], dword [esi]
enter 0x57a0, 0xf
mov dl, 0
add byte [eax], al
loope 0x4060d2
jne 0x9240aff9
mov edx, dword [ebx + 0x11]
mov byte [0x538a047a], al
or byte [ecx + edx*8 + 0x508b2f74], al
or al, 0x4e
test cl, dl
je 0x406143
mov edx, dword [eax + 0xc]
dec esi
inc esi
test edx, edx
jbe 0x40610a
lea esi, [eax + 0x48]
jo 0x406168
dec eax
cmp dword [esi], edi
and dword [eax], ecx
pop ebx
add esi, 0x28
cmp ecx, edx
jb 0x4060b3
cmp ecx, edx
jne 0x406143
cmp edx, 0x88000400
jae 0x406143
mov dword [eax + ecx*4 + 0x10], edi
mov ecx, dword [eax + 0xc]
jecxz 0x4060ca
dec eax
and dh, dh
inc ebx
or byte [esp + esi*2], al
invalid
test byte [ebx + 8], 4
je 0x406110
mov esi, ebp
adc byte [eax], dl
mov cl, 0
xor ecx, ecx
test esp, ebp
jbe 0x406167
mov dword [0x8b14b0], eax
add byte [ecx], bh
je 0x406183
cmp dword [esi], edi
je 0x406183
inc ecx
add esi, 4
cmp ecx, edx
jb 0x40615b
cmp ecx, edx
imul ebx, dword [ecx + eax*4], 0xfffffffa
fsub qword [eax + 0x14730000]
mov dword [eax + ecx*4 + 0x1014], edi
mov ecx, dword [eax - 0x1effef65]
inc ecx
mov dword [eax + 0x10b9], ecx
test byte [ebx + 8], 0x72
mov bh, 0x3e
jae 0x40611f
retf 0x1c6b
mov ecx, 0xf6000010
inc ebx
or byte [edx - 0x49], dh
jae 0x40611f
adc al, 0x20
add byte [eax], al
xor esi, eax
test edx, edx
jbe 0x4061ab
and byte [eax], al
add byte [ebx], dh
invalid
lea esi, [eax + 0x372018]
cmp dword [esi], edi
je 0x4061ab
inc ecx
add esi, 4
cmp ecx, edx
jb 0x40619f
or cl, dl
jno 0x4061cb
cmp dword [edi + 0x4e00dd00], 0xbc891473
mov byte [eax], bl
je 0x4061f6
add byte [ecx + 0x201488], al
add byte [ecx + 0x60], al
mov byte [edi + ebp*2], dl
mov esi, 0x18f67c00
xor byte [eax], al
add byte [esi + 6], bh
jl 0x4061c3
sbb byte [eax], dh
add byte [eax], al
jle 0x4061d9
mov dword [eax + 0x30f0], edi
mov ecx, dword [eax + 0x13]
pop edi
inc ecx
ror byte [ecx - 0x13ccfbb8], 0x5b
imul eax, edx, 8
add bl, ch
pop esi
dec esi
or dword [ecx], edi
stosb byte es:[edi], al
lcall 0x9000, 0xe4b45d8b
add dl, byte [eax - 0x5d8f6f70]
nop
nop
jl 0x406190
Function at 0x406fa0
Capabilities:
Resolve dns

Disassembly:
sal dword [edi], 0xa
jne 0x406f4e
and eax, 3
adc dword [eax + 2], ebp
add byte [ebx + ebp + 0x1d], dh
div byte [ebp + ebx*8 - 0x75]
or dword [eax], edx
test edi, edi
fisttp qword [ebx - 0x7aeff7]
jne 0x406f6b
cmp eax, 3
je 0x406f6b
test cl, 2
je 0x406f7d
pop edi
mov eax, 0x11187
pop esi
pop ebp
ret 0x83
pop edi
push ss
add byte [eax], al
add byte [esi + 0x5d], bl
ret 0xc6
mov eax, 0x6700c179
mov edi, dword [ebp - 4]
push edi
push ecx
mov ecx, dword [ebp - 0x41]
push ecx
push eax
push esi
push edx
call fcn.00406fa0
cmp esi, 0x18
pop edi
pop esi
xor ecx, dword [edx]
sbb byte [eax], al
mov edx, 0x55909090
push ebp
push ebp
mov ebp, esp
sub esp, 0x4a
cli
mov dword [0x33fa7d5c], eax
fstp xword [ebx]
jle 0x406f3a
jne 0x406fa7
jne 0x406fba
mov esi, str.0.0.0.0
mov al, byte [esi]
cmp al, 0x30
jl 0x40707d
cmp al, 0x39
jg 0x407006
jno 0x407002
hlt
iretd
in al, dx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x77], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp esp, ebp
inc ebp
test byte [eax - 0x77000000], ch
pop ebp
cld
mov edx, dword [ebp - 0x5f]
push 0xffffffffffffffb4
push edx
call 0xff5f0360
invalid
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp eax, ebx
mov dword [0x8b85750c], ecx
xor eax, 0x540abd8
call esi
test eax, eax
je 0x4070c6
call esi
pop edi
pop esi
insd dword es:[edi], dx
cmp ah, 0xb0
add byte [ebx - 0x75], bl
aam 0x5d
ret
pop edi
pop esi
xchg esi, eax
rcr byte [ebx - 0x75], 0xe5
pop ebp
ret

Function at 0x71118a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x716892
cmp al, ah
pushal
jmp 0x710695
push ebx
lea esp, [esp + 0x2c]
jne 0x7262e8
jmp 0x9477b1
push ebx
inc esi
call fcn.006c97fa
fmul qword [edi]
dec edx
daa
xchg esi, eax
dec edx
jbe 0x94782e
aaa
add dword [edx], 0x31e4338a
and ah, byte [ebp - 0x52e777f9]
scasb al, byte es:[edi]
xchg ebx, eax
invalid
or eax, 0x892d9d82
dec esi
cwde
not dword [edx]
jmp [esi]

Function at 0x72d23b
Capabilities:
Encode data using xor

Disassembly:
call fcn.0071b0ed
imul byte [esi + 0x6c3b72c3]
jbe 0x72d26b
pop edx
aad 0x4c
invalid
cmp bh, byte [0x5502614d]
push ebp
adc byte [ebx + 0x1c], ah
leave
leave
outsb dx, byte [esi]
mov ah, 0xc7
cmp dword [esi], ecx
cwde
adc eax, 0xb425daf9
inc edi
push edi
jl 0x72d271
and ebp, dword [ebp + 0xaba9b7a]
cmp byte [edx + 0x48], cl
mov esi, 0xc98c89c
pop edi
test al, bh
mov cl, 0x89
jne 0x72d266
xor al, 0x2b
push edi
inc esp
outsd dx, dword [esi]
or al, 0x5e
mov eax, dword [0xaef002b9]
add dh, al
scasb al, byte es:[edi]
cmp al, 0x3e
jg 0x72d27e
xor byte [ebp + 0x3369450], 0xee
cmp bl, bl
je 0x72d2a1
shr byte [ebx], 0xd7
cmp dword [edi + edx*8 + 0x4a61ebdc], esp
inc ebp
and dword [edi + 0x59a87d00], esi
xchg edi, eax
cmp eax, 0x10751b63
div byte [ebx]
in al, 0x4d
push ss
test byte [edi + 0x47], ah
test al, 0x6e
mov eax, 0xc92254ef
xor dword [edx], eax
enter 0xffffffffffffd83d, 0xfffffffffffffffe
test dword [ecx + edi + 0x4d], edi
push 0xffffffffffffffc9
adc esp, edi
mov cl, 0xd4
dec eax
mov dh, byte [esp + edx]
je 0x72d2b3
pop edi
mov esi, 0x2ecee053
Function at 0x4035ab
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403600
push dword [esp + 0x10]
push 0x40352a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x5b03f8]
test esi, esi
je 0x403659
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4035f8
cmp byte [esi + 0x10], 0
je 0x4035f8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4035d4
jmp 0x403659
mov esi, dword [0x5b03f8]
test esi, esi
je 0x403659
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403652
cmp byte [esi + 0x11], 0
je 0x40362e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403645
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x5b03f8
call fcn.0040ef9f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40360d
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x403cf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5b0404], 0
jne 0x403cfe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x5b0408]
call esi
test eax, eax
jne 0x403d21
call fcn.00403c90
push dword [0x5b0408]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x403d30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x403d90
mov ebx, 0x10
test edi, edi
jns 0x403d99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x403d62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403db0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5b0404], 0
jne 0x403dbe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x5b0408]
call esi
mov edx, eax
test edx, edx
jne 0x403de5
call fcn.00403c90
push dword [0x5b0408]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x403e18
mov ebx, 0x10
test esi, esi
jns 0x403e21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x403e30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4044f2
cmp dword [ebp + 0xc], edi
je 0x4044f2
push esi
push 0x28
push 8
push dword [0x5b0350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x4044e1
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4045f6
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4044d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4044f1
push esi
call fcn.00404647
jmp 0x4044f0
push esi
call fcn.0040450b
push esi
mov edi, eax
call fcn.00404647
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40450b
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004273f0
mov edi, eax
test edi, edi
je 0x4045db
push dword [esp + 0x18]
call fcn.0044c5d0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4045cb
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x404574
push 1
push 0x34
push edi
call fcn.00427480
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00427480
push 0x404605
push 0x4e2b
push edi
call fcn.00427480
push esi
push 0x2711
push edi
call fcn.00427480
push edi
call fcn.00427470
add esp, 0x28
test eax, eax
jne 0x4045b6
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4045cb
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0044c5c0
push edi
call fcn.004273d0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x4045ee
cmp dword [esi + 4], 0xfffffffc
je 0x4045ee
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40472c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x5b0430], 0
jne 0x404758
push 0x40467b
push 0x10
push 0x2c
mov dword [0x5b0430], edi
call fcn.0040e96a
mov dword [0x5b042c], eax
cmp word [0x5b0424], 0
jne 0x4047f4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x404783
mov word [0x5b0424], di
jmp 0x40478b
xor eax, eax
mov word [0x5b0424], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5b0440], eax
test eax, eax
je 0x4047f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454038
push eax
call esi
push 0x454044
push dword [0x5b0440]
mov dword [0x5b0434], eax
call esi
push str.getnameinfo
push dword [0x5b0440]
mov dword [0x5b0438], eax
call esi
cmp dword [0x5b0434], 0
mov dword [0x5b043c], eax
pop esi
je 0x4047f4
cmp dword [0x5b0438], 0
je 0x4047f4
test eax, eax
je 0x4047f4
mov dword [0x5b0428], edi
movsx eax, word [0x5b0424]
pop edi
add esp, 0x190
ret
Function at 0x407a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x407acc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x407e70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x407ed5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x407ecd
push dword [esp + 0x10]
push dword [0x5b0ce4]
call fcn.0040e897
test eax, eax
je 0x407ec3
cmp dword [eax + 4], 0
je 0x407eb2
push edi
push esi
push eax
call fcn.00408440
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x407f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x5b0350]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x408114
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x407fde
test ebp, ebp
je 0x408080
dec ebp
cmp dword [ebx + 4], 0
je 0x407ff7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x408011
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x408080
test cl, cl
je 0x408025
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x408060
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x5b0350]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x408080
cmp dword [esp + 0x2c], 0
jne 0x407fd0
cmp cl, 0xd
je 0x408087
cmp cl, 0xa
jne 0x407fd0
dec esi
jmp 0x4080f7
cmp dword [esp + 0x2c], 0
jne 0x4080f7
cmp cl, 0xa
jne 0x40808f
dec esi
jmp 0x4080f7
cmp cl, 0xd
jne 0x4080f7
dec esi
cmp dword [ebx + 4], 0
je 0x4080ae
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x4080c4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4080f7
cmp dword [ebx + 4], 0
je 0x4080d6
inc dword [ebx + 0xc]
jmp 0x4080f7
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x408120
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x5b0350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x4082cd
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x408174
test ebp, ebp
je 0x40822d
dec ebp
cmp dword [ebx + 4], 0
je 0x40818d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x4081a7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x40822d
test ax, ax
je 0x4081c1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x408208
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x5b0350]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x40822d
cmp dword [esp + 0x30], 0
jne 0x408166
cmp ax, 0xd
je 0x408234
cmp ax, 0xa
jne 0x408166
sub edi, 2
jmp 0x4082ac
cmp dword [esp + 0x30], 0
jne 0x4082ac
cmp ax, 0xa
jne 0x40823f
sub edi, 2
jmp 0x4082ac
cmp ax, 0xd
jne 0x4082ac
sub edi, 2
cmp dword [ebx + 4], 0
je 0x408261
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00408550
mov dword [esp + 0x14], eax
jmp 0x408277
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x4082ac
cmp dword [ebx + 4], 0
je 0x40828b
add dword [ebx + 0xc], 2
jmp 0x4082ac
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x4082e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x5b0350]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x408430
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x40832c
test edi, edi
je 0x40839d
dec edi
push esi
push ebp
call fcn.00408670
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40833f
xor cl, cl
jmp 0x408341
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x408384
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x5b0350]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x40839d
test eax, eax
jne 0x408322
cmp cl, 0xd
je 0x4083a1
cmp cl, 0xa
jne 0x408322
dec esi
jmp 0x408413
test eax, eax
jne 0x408413
cmp cl, 0xa
jne 0x4083a9
dec esi
jmp 0x408413
cmp cl, 0xd
jne 0x408413
dec esi
cmp dword [ebp + 4], 0
je 0x4083c8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00408550
mov dword [esp + 0x20], eax
jmp 0x4083df
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x408413
cmp dword [ebp + 4], 0
je 0x4083f1
inc dword [ebp + 0xc]
jmp 0x408413
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10