joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a59a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511000
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], esi
push 0
push eax
call fcn.004dbbb0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5a30
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00423610
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d7bf5
mov esp, ebp
pop ebp
ret

Function at 0x4a5ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51103d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], edi
push eax
mov ecx, edx
call fcn.00404ee0
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
push 0x557fa0
cmova eax, dword [ebp - 0x38]
push eax
call fcn.004dfafd
mov ecx, dword [ebp - 0x24]
add esp, 8
mov ebx, eax
cmp ecx, 0xf
jbe 0x4a5b5e
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a5b54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5c3c
push ecx
push edx
call fcn.004d7c38
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
test ebx, ebx
jne 0x4a5b81
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x4a5c1e
push 2
push 0
push ebx
call fcn.004e014e
add esp, 0xc
push ebx
call fcn.004dfa0b
add esp, 4
mov esi, eax
push 0
push 0
push ebx
call fcn.004e014e
vpxor xmm0, xmm0, xmm0
vmovq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0044adb0
push ebx
push esi
push 1
push dword [ebp - 0x1c]
call fcn.004e3264
push ebx
call fcn.004dfdfb
mov ecx, dword [ebp - 0x18]
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [edi], eax
mov dword [edi + 8], edx
call fcn.0044af30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d7bf5
mov esp, ebp
pop ebp
ret
call fcn.004e35d4
int3
Function at 0x4b5ea0
Capabilities:
Check http status code

Disassembly:
sub esp, 0xd8
mov eax, dword [0x56a040]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
lea eax, [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xec]
push eax
push edi
call fcn.004b5410
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5ef4
mov ecx, dword [esp + 0x10]
sub esi, edi
mov edx, dword [esp + 0x14]
mov al, 3
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov byte [ebp + 8], al
lea eax, [esi + 1]
jmp 0x4b5f13
push 0x515f00
push edi
call fcn.004ea700
add esp, 8
test eax, eax
je 0x4b5f2c
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x4b5f2e
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d7bf5
add esp, 0xd8
ret
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004b5390
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4b5fcb
push 0x2e
push edi
call fcn.004dbf80
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5f11
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b5f60
sub ecx, edx
cmp ecx, 0xc8
ja 0x4b5f11
lea edx, [esp + 0x18]
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4b5f80
call fcn.004e476e
sub esi, edi
push ebx
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + esi + 0x1c], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004b5390
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4b5f11
mov eax, edi
lea ecx, [esp + 0x18]
sub eax, ecx
add esi, eax
test esi, esi
je 0x4b5f11
movsd xmm0, qword [esp + 0x10]
sub esi, edi
mov al, 0x13
movsd qword [ebp], xmm0
mov byte [ebp + 8], al
lea eax, [esi + 1]
jmp 0x4b5f13
Function at 0x4b6090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push esi
push edi
call fcn.004e476e
mov ecx, dword [esp + 0x1c]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x518491], 8
je 0x4b60e4
mov al, byte [ecx + 1]
inc ecx
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x518491], 8
jne 0x4b60d0
mov al, byte [esp + 0x1f]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x4b60f9
mov dword [esp + 0xc], 1
jmp 0x4b6102
cmp al, 0x2b
mov dword [esp + 0xc], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x4b6247
mov al, byte [edx + 1]
cmp al, 0x78
je 0x4b611a
cmp al, 0x58
jne 0x4b6247
movsd xmm2, qword [0x515f70]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov byte [esp + 0x1f], al
cmp ecx, dword [esp + 8]
jne 0x4b6146
cmp dword [esp + 0x14], 0
jne 0x4b619b
mov dword [esp + 0x14], 1
inc edx
jmp 0x4b6125
movzx eax, al
test byte [eax + 0x518491], 0x10
je 0x4b619b
test edi, edi
jne 0x4b6163
cmp byte [esp + 0x1f], 0x30
jne 0x4b6163
inc dword [esp + 0x10]
jmp 0x4b6190
inc edi
cmp edi, 0x1e
jg 0x4b618f
test byte [ecx + 0x518491], 2
je 0x4b6177
add ecx, 0xffffffd0
jmp 0x4b617d
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x4b6190
inc esi
cmp dword [esp + 0x14], 0
je 0x4b6198
dec esi
inc edx
jmp 0x4b6125
mov eax, dword [esp + 0x10]
add eax, edi
je 0x4b6247
mov eax, dword [esp + 0x20]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x4b61ba
cmp al, 0x50
jne 0x4b6222
mov al, byte [edx + 1]
xor ecx, ecx
mov byte [esp + 0x1f], al
cmp al, 0x2d
jne 0x4b61cf
lea edi, [ecx + 1]
lea eax, [ecx + 2]
jmp 0x4b61dc
xor eax, eax
xor edi, edi
cmp byte [esp + 0x1f], 0x2b
sete al
inc eax
add edx, eax
mov al, byte [edx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x518491], 2
je 0x4b6247
movsx eax, byte [esp + 0x1f]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x518491], 2
jne 0x4b61f0
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [esp + 0x20]
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x4b6230
xorps xmm1, xmmword [0x55dd70]
push esi
sub esp, 8
movsd qword [esp], xmm1
call fcn.004ea508
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
fldz
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4bb3d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x10], al
mov esi, dword [edi]
cmp esi, dword [esp + 0x18]
je 0x4bb553
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x24]
nop word [eax + eax]
mov cl, byte [esi + 5]
test cl, 0x18
je 0x4bb508
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x4bb427.11
movzx eax, byte [eax + 0x4bb580]
jmp dword [eax*4 + 0x4bb558]
push esi
push ebx
call fcn.004b8d30
add esp, 8
jmp case.0x4bb427.11
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x4bb44e
push esi
call fcn.004b9000
add esp, 4
push 0x20
push esi
push ebx
call fcn.004c3a90
add esp, 0xc
jmp case.0x4bb427.11
movzx eax, byte [esi + 6]
lea eax, [eax*4 + 0x10]
push eax
push esi
push ebx
call fcn.004c3a90
add esp, 0xc
jmp case.0x4bb427.11
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push eax
push esi
push ebx
call fcn.004c3a90
add esp, 0xc
jmp case.0x4bb427.11
push esi
push ebx
call fcn.004bc9e0
add esp, 8
jmp case.0x4bb427.11
push esi
push ebx
call fcn.004b4a40
add esp, 8
jmp case.0x4bb427.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x4bb4c0
mov ecx, 0x10
jmp 0x4bb4c8
mov ecx, eax
shl ecx, 4
add ecx, 0x18
mov eax, dword [esi + 8]
add eax, ecx
push eax
push esi
push ebx
call fcn.004c3a90
add esp, 0xc
jmp case.0x4bb427.11
push esi
push ebx
call fcn.004bc550
movzx eax, byte [esi + 7]
add eax, 0x11
push eax
push esi
push ebx
call fcn.004c3a90
add esp, 0x14
jmp case.0x4bb427.11
mov eax, dword [esi + 0xc]
add eax, 0x11
push eax
push esi
push ebx
call fcn.004c3a90
add esp, 0xc
jmp case.0x4bb427.11
test cl, 7
jne 0x4bb51c
and cl, 0xc1
and al, 0x18
or cl, al
or cl, 1
mov byte [esi + 5], cl
jmp 0x4bb53f
movzx eax, cl
and cl, 0xf8
and eax, 7
or cl, byte [eax + 0x51626c]
mov byte [esi + 5], cl
and cl, 7
cmp cl, 3
jne 0x4bb53f
cmp dword [ebp], 0
jne 0x4bb53f
mov dword [ebp], esi
mov edi, esi
mov esi, dword [edi]
mov al, byte [esp + 0x18]
cmp esi, dword [esp + 0x20]
jne 0x4bb400
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x4bbf80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
mov edx, ebx
push ebp
push esi
mov esi, dword [eax + 0x10]
push edi
mov dword [esp + 0x10], esi
mov ebp, dword [esi + 0x48]
xor ebp, ebx
test ebx, ebx
je 0x4bbfbf
mov edi, dword [esp + 0x20]
movzx ecx, byte [edi + edx - 1]
mov eax, ebp
shl eax, 5
add ecx, eax
mov eax, ebp
shr eax, 2
add ecx, eax
xor ebp, ecx
sub edx, 1
jne 0x4bbfa5
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebp
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
test edi, edi
je 0x4bc03e
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x4bc033
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x4bc001
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4bc006
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bbff0
cmp esi, 0xfffffffc
je 0x4bc06f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4bc033
cmp esi, 0xfffffffd
je 0x4bc06f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4bc033
cmp esi, 0xfffffffe
je 0x4bc06f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4bc033
cmp esi, 0xffffffff
je 0x4bc06f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4bc06f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4bbfd6
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jl 0x4bc111
mov edi, dword [esp + 0x1c]
cmp eax, 0x7fffffff
jne 0x4bc08f
push 1
push edi
call fcn.004ba060
add esp, 8
cmp dword [esi + 0x1c], 0x7fffffff
je 0x4bc15e
jmp 0x4bc08f
mov ecx, dword [esp + 0x10]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x4bc085
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [esi + 0x20]
cmp esi, 0x1fffffff
jg 0x4bc0fb
mov ebx, dword [edi + 0x10]
add esi, esi
mov edi, dword [ebx + 0x20]
cmp esi, edi
jge 0x4bc0b3
push esi
push edi
push dword [ebx + 0x18]
call fcn.004bc610
add esp, 0xc
lea eax, [esi*4]
push eax
lea eax, [edi*4]
push eax
push dword [ebx + 0x18]
mov eax, dword [esp + 0x28]
push eax
call fcn.004c3ba0
add esp, 0x10
test eax, eax
jne 0x4bc0e2
cmp esi, edi
jge 0x4bc0f7
push edi
push esi
push dword [ebx + 0x18]
jmp 0x4bc0ef
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], esi
cmp esi, edi
jle 0x4bc0f7
push esi
push edi
push eax
call fcn.004bc610
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebp
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
jmp 0x4bc115
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [esp + 0x24]
call fcn.004ba140
mov esi, eax
push ebx
push dword [esp + 0x30]
lea ecx, [esi + 0x10]
mov dword [esi + 8], ebp
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call fcn.004db630
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov byte [esi + 7], bl
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 4
push edi
call fcn.004b8660
int3
Function at 0x4bc260
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor eax, dword [esp + 0x10]
test esi, esi
je 0x4bc28f
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [edi + esi - 1]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
sub esi, 1
jne 0x4bc274
pop edi
pop esi
ret
Function at 0x4d8cc9
Capabilities:
Parse pe header

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

Function at 0x4d8f47
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4d8f6e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4d8f71
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004d8f23
pop esi
leave
ret 8
Function at 0x4df76b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00509ae0
mov eax, dword [0x56a040]
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.004f4eca
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4df7ad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4df909
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004d85d0
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 + 0x5709b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004f50d9
mov ecx, dword [esi*4 + 0x5709b8]
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 0x4df902
cmp eax, dword [ecx + edi + 0x24]
jne 0x4df902
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 0x4df902
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f50d9
add esp, 0x14
test edx, edx
jl 0x4df902
jg 0x4df878
test eax, eax
jb 0x4df902
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4df902
jl 0x4df892
cmp dword [ebp - 0x1008], eax
ja 0x4df902
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4df8b0
test ebx, ebx
je 0x4df8e9
cmp ecx, edi
jae 0x4df8e9
mov al, byte [ecx]
cmp al, 0xd
jne 0x4df8ca
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4df8d6
cmp byte [ecx + 1], 0xa
jne 0x4df8d6
inc ecx
jmp 0x4df8d6
movzx eax, al
movsx eax, byte [eax + 0x56a360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4df8b0
cmp edx, ebx
jne 0x4df8b0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4df907
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d7bf5
leave
ret
Function at 0x4e9eed
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x538678
push esi
call fcn.004fa454
pop ecx
pop ecx
test eax, eax
jne 0x4e9f1b
xor al, al
jmp 0x4e9f98
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004e9c2e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4e9f55
push dword [ebp - 0x210]
call fcn.004df21f
xor al, al
jmp 0x4e9f96
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4e9f5b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4e9f7b
push edx
call fcn.004e9e24
pop ecx
test al, al
je 0x4e9f46
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4e9f89
mov bl, 1
push dword [ebp - 0x210]
call fcn.004df21f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d7bf5
leave
ret
Function at 0x4f577e
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 + 0x5709b8]
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 0x4f57be
cmp byte [ebx], 0xa
jne 0x4f57be
or byte [edi + eax + 0x28], 4
jmp 0x4f57c3
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 0x4f58c2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f58a5
inc eax
cmp dl, 0xd
je 0x4f57ef
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f5815
cmp eax, ecx
jae 0x4f5823
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 0x4f57d7
jmp 0x4f58c2
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 0x4f58a0
cmp dword [ebp - 0x10], 0
je 0x4f58a0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5709b8]
test byte [eax + edi + 0x28], 0x48
je 0x4f587a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f5865
mov byte [esi], dl
jmp 0x4f5876
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5709b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f58c2
cmp byte [ebp - 1], 0xa
jne 0x4f5889
cmp esi, ebx
jne 0x4f5889
mov byte [esi], 0xa
jmp 0x4f58c1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f50f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f58c2
mov byte [esi], 0xd
jmp 0x4f58c1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5709b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f58bf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f58c2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f58cb
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 + 0x5709b8]
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 0x4f5911
cmp word [ebx], dx
jne 0x4f5911
or byte [eax + edi + 0x28], 4
jmp 0x4f5916
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 0x4f5a79
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 0x4f5a59
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f5957
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f598d
cmp eax, edx
jae 0x4f599b
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 0x4f5932
jmp 0x4f5a79
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 0x4f5a54
cmp dword [ebp - 0x18], 0
je 0x4f5a54
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5709b8]
test byte [eax + edi + 0x28], 0x48
je 0x4f5a2a
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 0x4f59ee
mov word [esi], cx
jmp 0x4f5a25
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5709b8]
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 + 0x5709b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5709b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f5a79
pop eax
cmp word [ebp - 4], ax
jne 0x4f5a3a
cmp esi, ebx
jne 0x4f5a3a
mov word [esi], ax
jmp 0x4f5a76
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f50f7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f5a79
push 0xd
pop eax
jmp 0x4f5a35
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5709b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f5a73
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f5a79
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f6c9c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53a764
push 0x53a75c
push str.FlsAlloc
push 0x1f
call fcn.004f6ac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f6cd0
push dword [ebp + 8]
mov ecx, esi
call dword [0x512514]
call esi
jmp 0x4f6cd6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f6d1a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53a774
push 0x53a76c
push str.FlsGetValue
push 0x21
call fcn.004f6ac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f6d51
push dword [ebp + 8]
mov ecx, esi
call dword [0x512514]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f6d59
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53a77c
push 0x53a774
push str.FlsSetValue
push 0x22
call fcn.004f6ac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f6d93
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x512514]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4f6e31
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x53a614
push 0x53a60c
push str.GetTempPath2W
push 5
call fcn.004f6ac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f6e6b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x512514]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]