joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d790
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513b52
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x53f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x14]
mov dword [esi], 0
push 0x14
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
call fcn.004f1990
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
lea esi, [edi + 0x28]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f1990
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x30]
mov byte [ebp - 4], 2
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f1990
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x38]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f1990
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x40]
mov byte [ebp - 4], 4
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f1990
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 5
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f1990
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x50]
mov byte [ebp - 4], 6
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f1990
add esp, 0x1c
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429240
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x53f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x32c], 0xa
push edi
mov edi, edx
mov dword [ebp - 0x334], eax
mov dword [eax + 0x19e84], 0
cmp edi, 0xffffffff
jne 0x429292
mov dword [eax + 0x19e7c], edx
or eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f197d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
mov dword [ebp - 0x338], 0xf4240
lea eax, [edx - 1]
cmovle eax, ecx
mov dword [ebp - 0x330], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, eax
and ecx, 1
and edx, 2
mov dword [ebp - 0x324], ecx
and eax, 4
mov dword [ebp - 0x328], edx
mov dword [ebp + 8], eax
nop
test ecx, ecx
je 0x4292e4
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x318], 1
xor ebx, ebx
lea esi, [ebp - 0x318]
test ecx, ecx
cmove esi, ebx
mov dword [ebp - 0x33c], esi
test edx, edx
je 0x42930b
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 1
xor ebx, ebx
lea ecx, [ebp - 0x214]
test edx, edx
cmove ecx, ebx
mov dword [ebp - 0x340], ecx
test eax, eax
je 0x429332
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
xor edx, edx
lea ebx, [ebp - 0x110]
test eax, eax
cmove ebx, edx
mov edx, dword [ebp + 0xc]
test edx, edx
jg 0x429371
mov eax, 0xbce4217d
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0xc]
neg eax
cdq
idiv dword [ebp - 0x338]
mov dword [ebp - 0x31c], edx
jmp 0x429385
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x31c], 0
lea eax, [ebp - 0x320]
push eax
push ebx
push ecx
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x4293dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x334]
mov dword [ecx + 0x19e84], eax
cmp eax, 0x2714
jne 0x4293dd
mov eax, dword [ebp - 0x32c]
test eax, eax
jle 0x4293dd
mov ecx, dword [ebp - 0x324]
dec eax
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp + 8]
jmp 0x4292d0
mov edx, dword [ebp - 0x330]
mov eax, edx
dec edx
mov dword [ebp - 0x330], edx
test eax, eax
jle 0x429407
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp - 0x328]
test esi, esi
je 0x4292d0
test esi, esi
jle 0x429473
mov eax, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
xor esi, esi
cmp dword [ebp - 0x324], esi
je 0x429432
push dword [ebp - 0x33c]
push edi
call eax
test eax, eax
mov ecx, 1
mov eax, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmovne esi, ecx
cmp dword [ebp - 0x328], 0
je 0x42944b
push dword [ebp - 0x340]
push edi
call eax
test eax, eax
je 0x42944b
or esi, 2
cmp dword [ebp + 8], 0
je 0x429485
push ebx
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x429485
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f197d
mov esp, ebp
pop ebp
ret
jne 0x429485
mov eax, dword [ebp - 0x334]
mov dword [eax + 0x19e84], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f197d
mov esp, ebp
pop ebp
ret
Function at 0x4366d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
test ebx, ebx
je 0x436883
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 1
push 0x20
push ebx
call fcn.004f3040
mov esi, eax
add esp, 8
test esi, esi
je 0x436804
mov edi, ebx
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x436720
sub edi, ecx
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004fe9dc
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x43685d
lea edx, [edi + 1]
mov edi, dword [ebp - 0x10]
add edi, 0x19e7c
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edi
nop
mov eax, esi
sub eax, ebx
cmp edx, eax
jbe 0x436779
push eax
push ebx
push edx
push ecx
call fcn.004f71b5
mov ecx, dword [ebp - 0x14]
add esp, 0x10
jmp 0x43677c
mov byte [ecx], 0
mov eax, ecx
sub eax, ebx
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
mov byte [eax + esi], 0
call fcn.004368a0
add esp, 8
cmp eax, 0x1c
jne 0x4367f7
mov al, byte [esi]
cmp al, 0x20
jne 0x4367a8
nop dword [eax]
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4367a0
test al, al
je 0x4367f7
mov eax, dword [ebp - 0x10]
mov ebx, esi
push 0x20
push esi
mov dword [eax + 0x19e7c], 0
call fcn.004f3040
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov edi, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ebp - 0x20]
test esi, esi
jne 0x436760
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4367e0
sub ecx, edx
mov edx, dword [ebp - 0x20]
lea esi, [ecx + ebx]
mov ecx, dword [ebp - 0x14]
jmp 0x436760
push dword [ebp - 0x14]
call fcn.004f6893
add esp, 4
jmp 0x436816
push ecx
push ebx
mov ecx, edi
call fcn.004368a0
add esp, 8
add edi, 0x19e7c
cmp dword [edi], 0x1c
jne 0x436880
cmp dword [ebp - 0x18], 0
jle 0x436880
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov dword [edi], 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_select]
dec dword [ebp - 0x18]
lea eax, [esi + esi]
mov edi, dword [ebp - 0x10]
cmp esi, 0x20
cmovae eax, esi
mov dword [ebp - 0x24], eax
jmp 0x436700
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x19e7c], 0x14
mov eax, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f197d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x19e7c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f197d
mov esp, ebp
pop ebp
ret
Function at 0x436c20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
push edi
mov edi, edx
test esi, esi
jne 0x436c63
mov esi, dword [ebp + 0xc]
mov eax, 0x55555556
lea esi, [esi + 2]
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ebx, [eax*4 + 1]
mov edx, ebx
test ecx, ecx
jne 0x436c76
push ebx
call fcn.004fe9dc
mov esi, eax
add esp, 4
test esi, esi
je 0x436cd5
mov dword [ebp + 8], esi
mov byte [esi], 0
test edi, edi
jne 0x436cde
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 2
mov eax, ebx
neg eax
and eax, 3
add ebx, eax
lea eax, [ebx + 8]
cmp eax, edx
jb 0x436ccb
xor ecx, ecx
mov eax, ebx
add eax, 8
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.004fe9dc
mov esi, eax
add esp, 4
test esi, esi
je 0x436cc8
mov edx, dword [ebp - 4]
lea ecx, [esi + ebx]
mov eax, 0xc0de
mov dword [ecx + 4], ebx
mov word [ecx - 2], ax
mov eax, dword [edx + 0x98]
mov dword [ecx], eax
mov dword [edx + 0x98], ecx
jmp 0x436c63
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x19e7c], 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
cmp ebx, 2
jle 0x436d44
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ebx, edx
shr ebx, 1
inc ebx
lea eax, [ebx*4]
sub eax, ebx
neg eax
add dword [ebp + 0xc], eax
movzx ecx, byte [edi]
mov edx, 4
movzx eax, byte [edi + 1]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
nop dword [eax]
mov ecx, eax
dec edx
and ecx, 0x3f
shr eax, 6
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], cl
test edx, edx
jg 0x436d20
add esi, 4
add edi, 3
sub ebx, 1
jne 0x436d03
mov ebx, dword [ebp + 0xc]
mov byte [esi], 0
test ebx, ebx
jle 0x436db4
xor ecx, ecx
mov edx, ebx
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
shl ecx, 8
or ecx, eax
sub edx, 1
jne 0x436d50
mov edi, 3
cmp ebx, edi
jge 0x436d78
mov eax, edi
sub eax, ebx
nop dword [eax]
shl ecx, 8
sub eax, 1
jne 0x436d70
mov edx, 4
nop dword [eax]
mov eax, ecx
dec edx
and eax, 0x3f
shr ecx, 6
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
test edx, edx
jg 0x436d80
cmp ebx, edi
jge 0x436db0
sub edi, ebx
mov ecx, esi
push edi
sub ecx, edi
add ecx, 4
push 0x3d
push ecx
call fcn.004f3b20
add esp, 0xc
nop
mov byte [esi + 4], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e86e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515f90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov dword [edi], vtable.wadl__representation.0
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.004240a0
lea eax, [esi + 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x24]
call fcn.00422240
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4eaf30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51638b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x38]
mov dword [edi], vtable.wsdl__ext_operation.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
lea eax, [esi + 0x38]
push eax
call fcn.004ec3f0
lea eax, [esi + 0x44]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x44]
call fcn.004ec3f0
lea eax, [esi + 0x50]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x50]
call fcn.004ec3f0
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4eb070
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5163cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x34]
mov dword [edi], vtable.wsdl__operation.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
lea eax, [esi + 0x34]
push eax
call fcn.004ec540
lea eax, [esi + 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x40]
call fcn.004ec540
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x4c]
call fcn.004ec540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ebe90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515f90
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov dword [edi], vtable.wadl__representation.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.004240a0
lea eax, [esi + 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x24]
call fcn.00422240
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4f0f15
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 0x4f0f36
jl 0x4f0f2d
test edi, edi
jne 0x4f0f36
xor eax, eax
xor edx, edx
jmp 0x4f0ff7
cmp dword [ebx + 0x38], 0
je 0x4f0f4b
push eax
push edi
push dword [ebp + 8]
call fcn.004f0ffd
jmp 0x4f0ff7
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4f0f92
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4f0f92
cmp eax, edi
jb 0x4f0f6c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004f3590
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 0x4f0f98
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4f0fec
mov ecx, ebx
call fcn.004f0768
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4f0fd7
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004ffb87
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 0x4f0fec
jmp 0x4f0faa
test edx, edx
je 0x4f0fec
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004ffb87
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 0x4f27a0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f27df
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f27df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f27df
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f27df
cmp dword [ecx + 0x74], 0xe
jbe 0x4f27df
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4fcc87
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 + 0x541990]
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 0x4fccc7
cmp byte [ebx], 0xa
jne 0x4fccc7
or byte [edi + eax + 0x28], 4
jmp 0x4fcccc
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 0x4fcdcb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4fcdae
inc eax
cmp dl, 0xd
je 0x4fccf8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4fcd1e
cmp eax, ecx
jae 0x4fcd2c
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 0x4fcce0
jmp 0x4fcdcb
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 0x4fcda9
cmp dword [ebp - 0x10], 0
je 0x4fcda9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x541990]
test byte [eax + edi + 0x28], 0x48
je 0x4fcd83
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4fcd6e
mov byte [esi], dl
jmp 0x4fcd7f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x541990]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4fcdcb
cmp byte [ebp - 1], 0xa
jne 0x4fcd92
cmp esi, ebx
jne 0x4fcd92
mov byte [esi], 0xa
jmp 0x4fcdca
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0050a56f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fcdcb
mov byte [esi], 0xd
jmp 0x4fcdca
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x541990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4fcdc8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4fcdcb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fcdd4
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 + 0x541990]
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 0x4fce1a
cmp word [ebx], dx
jne 0x4fce1a
or byte [eax + edi + 0x28], 4
jmp 0x4fce1f
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 0x4fcf82
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 0x4fcf62
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4fce60
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4fce96
cmp eax, edx
jae 0x4fcea4
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 0x4fce3b
jmp 0x4fcf82
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 0x4fcf5d
cmp dword [ebp - 0x18], 0
je 0x4fcf5d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x541990]
test byte [eax + edi + 0x28], 0x48
je 0x4fcf33
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 0x4fcef7
mov word [esi], cx
jmp 0x4fcf2e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x541990]
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 + 0x541990]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x541990]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4fcf82
pop eax
cmp word [ebp - 4], ax
jne 0x4fcf43
cmp esi, ebx
jne 0x4fcf43
mov word [esi], ax
jmp 0x4fcf7f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0050a56f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fcf82
push 0xd
pop eax
jmp 0x4fcf3e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x541990]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4fcf7c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4fcf82
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret