joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464db0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x580400]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x464de0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005335a0
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x464e1d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x464e1d
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005335a0
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x464f02
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x464e45
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464e51
movsx eax, bl
jmp 0x464e91
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x464ebc
sub eax, 1
je 0x464ebc
sub eax, 2
jne 0x464f02
movsx eax, byte [esp + 0x17]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005335a0
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x464edc
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x464f02
lea ecx, [esp + 0x17]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005335a0
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005335a0
add esp, 0x30
ret 4
Function at 0x4674b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x580400]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x467572
cmp byte [esi + 0x3d], 0
je 0x467572
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x46755f
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x467523
sub eax, 1
je 0x467527
sub eax, 2
jne 0x46755f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005335a0
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x467547
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x46755f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005335a0
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005335a0
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.005335a0
add esp, 0x28
ret
Function at 0x474550
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x10c
mov eax, dword [0x580400]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, edx
mov eax, dword [esp + 0x124]
mov edi, ecx
push 0x40
mov dword [esp + 0x14], eax
lea eax, [esp + 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [esp + 0x24]
push 0x36
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [esp + 0x70]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
lea eax, [esp + 0xd4]
cmp esi, 0x40
jbe 0x4745ce
push 0x40
push eax
mov edx, esi
mov ecx, edi
call fcn.00474720
add esp, 8
jmp 0x4745d9
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
movups xmm1, xmmword [esp + eax + 0xd4]
movups xmm0, xmmword [esp + eax + 0x14]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0x14], xmm0
movups xmm0, xmmword [esp + eax + 0x54]
xorps xmm0, xmm1
movups xmmword [esp + eax + 0x54], xmm0
add eax, 0x10
cmp eax, 0x40
jl 0x4745e0
mov esi, dword [esp + 0x120]
lea ebx, [esi + 0x40]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movups xmm0, xmmword [esp + 0x18]
mov edi, eax
push esi
push dword [esp + 0x14]
movups xmmword [edi], xmm0
lea eax, [edi + 0x40]
movups xmm0, xmmword [esp + 0x30]
push eax
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x44]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esp + 0x54]
movups xmmword [edi + 0x30], xmm0
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esp + 0xa4]
mov edx, ebx
push 0x20
push eax
mov ecx, edi
call fcn.00474720
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
push 0x60
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movups xmm0, xmmword [esp + 0x74]
mov esi, eax
mov edx, 0x60
lea eax, [esp + 0xd4]
mov ecx, esi
push 0x20
push eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x9c]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [esp + 0xac]
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [esp + 0xbc]
movups xmmword [esi + 0x40], xmm0
movups xmm0, xmmword [esp + 0xcc]
movups xmmword [esi + 0x50], xmm0
call fcn.00474720
push esi
call edi
mov esi, dword [esp + 0x154]
mov eax, 0x20
cmp esi, eax
cmova esi, eax
lea eax, [esp + 0xe0]
push esi
push eax
push dword [esp + 0x44]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x14c]
add esp, 0x38
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005335a0
add esp, 0x10c
ret
Function at 0x474720
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x580400]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edx
mov edx, ecx
mov dword [esp + 0x34], 0
lea ecx, [esp + 0xc]
movlpd qword [esp + 0xc], xmm0
mov dword [esp + 0x14], 0x6a09e667
mov dword [esp + 0x18], 0xbb67ae85
mov dword [esp + 0x1c], 0x3c6ef372
mov dword [esp + 0x20], 0xa54ff53a
mov dword [esp + 0x24], 0x510e527f
mov dword [esp + 0x28], 0x9b05688c
mov dword [esp + 0x2c], 0x1f83d9ab
mov dword [esp + 0x30], 0x5be0cd19
call fcn.00474a00
lea edx, [esp + 0x80]
lea ecx, [esp + 0xc]
call fcn.00474ce0
mov eax, dword [ebp + 0xc]
mov ecx, 0x20
cmp eax, ecx
cmova eax, ecx
push eax
lea eax, [esp + 0x84]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0xac]
add esp, 0x10
pop esi
xor ecx, esp
call fcn.005335a0
mov esp, ebp
pop ebp
ret
Function at 0x474ce0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
mov ecx, dword [esi + 0x28]
cmp ecx, 0x40
jae 0x474e74
lea eax, [ecx*8]
add dword [esi], eax
push ebx
adc dword [esi + 4], 0
mov byte [ecx + esi + 0x2c], 0x80
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
cmp eax, 0x38
jbe 0x474d3e
cmp eax, 0x40
jae 0x474d27
mov byte [eax + esi + 0x2c], 0
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
cmp eax, 0x40
jb 0x474d16
lea ebx, [esi + 0x2c]
mov ecx, esi
mov edx, ebx
call fcn.004747e0
mov dword [esi + 0x28], 0
xor eax, eax
jmp 0x474d43
lea ebx, [esi + 0x2c]
jae 0x474d54
mov byte [eax + esi + 0x2c], 0
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
cmp eax, 0x38
jb 0x474d43
movzx eax, byte [esi + 7]
mov edx, ebx
mov byte [esi + 0x64], al
mov ecx, esi
movzx eax, byte [esi + 6]
mov byte [esi + 0x65], al
movzx eax, byte [esi + 5]
mov byte [esi + 0x66], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x67], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x68], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x69], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x6a], al
movzx eax, byte [esi]
mov byte [esi + 0x6b], al
call fcn.004747e0
movzx eax, byte [esi + 0xb]
mov byte [edi], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 1], al
movzx eax, byte [esi + 9]
mov byte [edi + 2], al
movzx eax, byte [esi + 8]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xf]
mov byte [edi + 4], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [edi + 6], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 8], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 9], al
movzx eax, byte [esi + 0x11]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0x17]
mov byte [edi + 0xc], al
movzx eax, byte [esi + 0x16]
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0x15]
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xf], al
movzx eax, byte [esi + 0x1b]
mov byte [edi + 0x10], al
movzx eax, byte [esi + 0x1a]
mov byte [edi + 0x11], al
movzx eax, byte [esi + 0x19]
mov byte [edi + 0x12], al
movzx eax, byte [esi + 0x18]
mov byte [edi + 0x13], al
movzx eax, byte [esi + 0x1f]
mov byte [edi + 0x14], al
movzx eax, byte [esi + 0x1e]
mov byte [edi + 0x15], al
movzx eax, byte [esi + 0x1d]
mov byte [edi + 0x16], al
movzx eax, byte [esi + 0x1c]
mov byte [edi + 0x17], al
movzx eax, byte [esi + 0x23]
mov byte [edi + 0x18], al
movzx eax, byte [esi + 0x22]
mov byte [edi + 0x19], al
movzx eax, byte [esi + 0x21]
mov byte [edi + 0x1a], al
movzx eax, byte [esi + 0x20]
mov byte [edi + 0x1b], al
movzx eax, byte [esi + 0x27]
mov byte [edi + 0x1c], al
movzx eax, byte [esi + 0x26]
mov byte [edi + 0x1d], al
movzx eax, byte [esi + 0x25]
mov byte [edi + 0x1e], al
movzx eax, byte [esi + 0x24]
mov byte [edi + 0x1f], al
pop ebx
pop edi
pop esi
ret
Function at 0x4d97c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53726d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x580400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.005335ae
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [eax + 4], 0x483f20
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x4d9c50
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
jne 0x4d9834
push 6
mov dword [edi], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005335a0
mov esp, ebp
pop ebp
ret 8

Function at 0x4da410
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x4da45f
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4da422
mov eax, dword [esi]
jmp 0x4da545
cmp eax, 0x4e0
jb 0x4da545
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebp, 1
jne 0x4da480
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebp, 1
jne 0x4da4d0
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret
Function at 0x4da6c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp dword [ecx + 0x18], 0
jne 0x4da6d7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
jmp 0x4da6da
mov eax, dword [ecx + 8]
movups xmm0, xmmword [eax - 8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 8]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [eax + 0x28]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0x18]
ret

Function at 0x4da700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, 1
call fcn.004da610
mov ecx, eax
call fcn.004da760
mov edx, esi
mov ecx, eax
call fcn.004da7c0
test eax, eax
jne 0x4da756
lea ecx, [eax + 3]
call fcn.004da610
mov ecx, eax
call fcn.004da760
mov edx, esi
mov ecx, eax
call fcn.004da7c0
test eax, eax
jne 0x4da756
lea ecx, [eax + 2]
call fcn.004da610
mov ecx, eax
call fcn.004da760
mov edx, esi
mov ecx, eax
pop esi
jmp fcn.004da7c0
pop esi
ret

Function at 0x4da7c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x24]
add edx, edi
add ecx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
cmp ebx, 0xffff
ja 0x4da806
sub bx, word [eax + 0x10]
movzx ecx, bx
cmp ecx, dword [eax + 0x14]
jae 0x4da839
mov eax, dword [edx + ecx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x20]
xor esi, esi
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4da839
nop word [eax + eax]
mov edx, dword [ecx + esi*4]
mov ecx, ebx
add edx, edi
call fcn.004dacc0
test eax, eax
je 0x4da842
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 4]
jb 0x4da820
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dab40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, ecx
call fcn.004dac40
test eax, eax
jne 0x4dab54
mov ecx, esi
pop esi
jmp 0x4dabf0
pop esi
ret
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004dab60
mov ecx, ebx
mov dword [0x5813ac], eax
call fcn.004db2c0
mov edx, dword [0x5813ac]
mov edi, eax
mov esi, edi
mov ecx, 0x4dadd0
sub esi, ebx
sub ecx, ebx
push ebx
push ebx
add ecx, edi
mov dword [esi + 0x5813ac], edx
call ecx
add esp, 8
mov ecx, edi
call fcn.004da8b0
pop edi
pop esi
pop ebx
jmp fcn.004da9d0
Function at 0x4db1f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0x61657243
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0x69466574
mov dword [ebp - 4], 0x57656c
call fcn.004da700
mov ecx, edi
mov esi, eax
call fcn.004da670
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x46746547
mov ebx, eax
mov dword [ebp - 8], 0x53656c69
mov dword [ebp - 4], 0x657a69
call fcn.004da700
push 0
push ebx
call eax
mov esi, eax
push 4
mov edx, esi
call fcn.004da860
add esp, 4
mov dword [ebp - 9], 0x64616552
lea ecx, [ebp - 9]
mov dword [ebp - 5], 0x656c6946
mov edi, eax
mov byte [ebp - 1], 0
call fcn.004da700
push 0
push 0
push esi
push edi
push ebx
call eax
mov dword [ebp - 4], 0x65736f
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 0x6c43744e
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.004da700
push ebx
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dbd5a
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 0x4dbd81
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4dbd84
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.004dbd36
pop esi
leave
ret 8
Function at 0x4e5c90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4e5d3f
push esi
call fcn.004fbcb0
add esp, 4
test al, al
jne 0x4e5d3f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4e5cb7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00504e40
add esp, 0xc
test eax, eax
je 0x4e5ceb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00504e40
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4e5ced
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x4e5d1e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.004f9880
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x4e5d00
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4f2b90
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x6bb], 0
je 0x4f2c2f
cmp dword [edi + 0x194], 0
je 0x4f2be7
push edi
call fcn.004e0990
push 1
push edi
mov byte [esp + 0x14], al
call fcn.004e0e40
push dword [edi + 0x144]
mov eax, dword [edi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push dword [esp + 0x28]
push edi
call fcn.004e0e40
add esp, 0x28
pop edi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x4f2bfc
sub eax, 1
je 0x4f2bfc
sub eax, 1
jne 0x4f2c2f
push dword [edi + 0x140]
lea eax, [ecx*2 + 0x544068]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop edi
ret

Function at 0x4f6390
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4f63aa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x54472c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4f63f3
test ebp, ebp
je 0x4f63e4
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4f6419
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f6419
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4f64cf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f6436
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4f64c5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4f64c5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f6468
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f6480
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4f6490
test ebp, ebp
je 0x4f64bc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x580004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x580004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret