joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x532378
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xorps xmm0, xmm0
movdqu xmmword [esi + 4], xmm0
movdqu xmmword [esi + 0x14], xmm0
mov dword [esi], 0x411f38
mov dword [esi + 0x24], 0
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], 0
call fcn.0047e780
mov byte [esi + 0x34], 1
mov eax, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x40], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4c8890
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5323b3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
call eax
test al, al
jne 0x4c8934
mov ecx, 0x558880
call fcn.00485810
movzx edx, word [0x5588bc]
mov eax, 0x574e
mov ebx, dword [0x5588c4]
test dx, dx
mov edi, dword [0x5588ec]
mov ecx, dword [esi + 0x28]
cmove edx, eax
test ebx, ebx
mov eax, 0x64
push edx
cmove ebx, eax
mov eax, 0x4000000
test edi, edi
cmove edi, eax
mov eax, dword [ecx]
call dword [eax + 0x58]
cmp dword [esi + 0x38], 2
je 0x4c892e
mov ecx, dword [esi + 0x28]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov eax, dword [esi + 0x28]
mov dword [eax + 0x10], edi
lea ecx, [esp + 0x30]
call fcn.004cc880
mov dword [esp + 0xac], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x408308
mov byte [esp + 0xac], 1
mov ecx, 0x5588fc
mov eax, 0x411f60
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c8997
test dl, dl
je 0x4c8993
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c8997
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c8977
xor eax, eax
jmp 0x4c899c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c8aca
movzx eax, word [0x5588e4]
push eax
call fcn.004cc670
mov ebx, eax
add esp, 4
test bl, 8
je 0x4c89ea
lea ecx, [esp + 0x30]
call fcn.004cd010
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push 0x7d0
push edx
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x4c8afe
test bl, 4
je 0x4c8a1e
lea ecx, [esp + 0x30]
call fcn.004ccfe0
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push 0x7d0
push edx
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x4c8afe
test bl, 2
je 0x4c8a49
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push 0x7d0
push edx
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x4c8afe
test ebx, 0xe
jne 0x4c8a5b
mov eax, dword [esi + 0x28]
mov dword [eax + 0xc], 0x64
xor bl, bl
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x408308
jb 0x4c8a78
push dword [esp + 0x18]
call fcn.004f9345
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0xac], 0xffffffff
call fcn.004cc8c0
mov al, bl
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004f9e32
add esp, 0xa0
ret
push 0x5588fc
lea ecx, [esp + 0x34]
call fcn.004ccd30
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push 0x7d0
push edx
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x4c8a5b
mov bl, 1
jmp 0x4c8a5d
Function at 0x4c93a0
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x5324f8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
push reloc.WS2_32.dll_accept
push ebx
push ebx
mov byte [esp + 0x23], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x4c9591
push closesocket
push 0x411fb4
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x4c9577
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebp
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x4c9570
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c9570
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4c956c
push esi
call fcn.004fe794
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4c956c
lea eax, [esp + 0x24]
push eax
push esi
push ebx
push ebp
call edi
test eax, eax
je 0x4c956c
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x4c9481
cmp byte [esp + 0x58], 0
jne 0x4c9495
cmp eax, 3
jne 0x4c956c
cmp byte [esp + 0x5c], 0
je 0x4c956c
push dword [ebx + 0xc]
lea ecx, [esp + 0x2c]
call fcn.00473c30
mov ebx, dword [esp + 0x40]
lea esi, [esp + 0x2c]
mov edx, dword [esp + 0x2c]
lea edi, [esp + 0x2c]
cmp ebx, 0x10
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x2c]
cmovae esi, edx
add esi, dword [esp + 0x3c]
cmp ebx, 0x10
cmovae edi, edx
add edi, dword [esp + 0x3c]
cmp ebx, 0x10
mov eax, edi
cmovae ecx, edx
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.004faa50
add esp, 0xc
mov ecx, edi
test eax, eax
cmovne ecx, eax
cmp ecx, edi
je 0x4c951a
lea eax, [ecx + 1]
mov ebp, edi
sub ebp, eax
xor ebx, ebx
xor edx, edx
cmp eax, edi
cmova ebp, ebx
test ebp, ebp
je 0x4c9516
mov bl, byte [eax]
cmp bl, 0x22
je 0x4c9510
mov byte [ecx], bl
inc ecx
inc edx
inc eax
cmp edx, ebp
jne 0x4c9506
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x40], 0x10
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
test ecx, ecx
jne 0x4c9530
xor eax, eax
jmp 0x4c9534
mov eax, ecx
sub eax, edx
test esi, esi
je 0x4c953a
sub esi, ecx
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.0042ae50
lea ecx, [esp + 0x28]
call fcn.004746d0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x28]
test al, al
je 0x4c9563
mov byte [esp + 0x17], 1
call fcn.00473d10
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x4c958b
push ebx
call fcn.004f948a
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x4c9593
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f9e32
add esp, 0x40
ret 8
Function at 0x4ca120
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push reloc.WS2_32.dll_accept
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4ca1cd
push edi
push closesocket
push 0x411fb4
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4ca1c5
push esi
mov esi, dword [esp + 0x34]
jmp 0x4ca170
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movdqu xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4ca1bd
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x4ca1aa
cmp eax, 4
je 0x4ca1bb
test esi, esi
jle 0x4ca1bd
dec esi
push 0x64
call fcn.0047e010
add esp, 4
cmp dword [esp + 0x14], 4
jne 0x4ca170
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebp
pop ebx
xor ecx, esp
call fcn.004f9e32
add esp, 0x20
ret 4

Function at 0x4ca1f0
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp byte [esi + 1], 1
je 0x4ca308
mov eax, dword [0x411f68]
push ebx
mov dword [esp + 0x18], eax
xor bl, bl
mov ax, word [0x411f6c]
push ebp
mov word [esp + 0x20], ax
lea eax, [esp + 0x14]
push edi
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x4ca2cb
xor edx, edx
mov ecx, ebp
add ecx, 0x32
setb dl
neg edx
or edx, ecx
push edx
call fcn.004fe794
mov edi, eax
add esp, 4
test edi, edi
je 0x4ca2cb
push edi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4ca2c2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x411f70
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4ca2c2
cmp dword [esp + 0x1c], 0
je 0x4ca2c2
push 4
push 0x411f98
push dword [esp + 0x18]
call fcn.004fbf90
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push edi
call fcn.004f948a
add esp, 4
lea eax, [esp + 0x14]
push eax
push 1
push 0
push 0x411fa0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x4ca2f4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esi + 1], 1
test edi, edi
je 0x4ca301
cmp bl, 1
jne 0x4ca305
mov byte [esi + 2], 1
pop edi
pop ebp
pop ebx
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.004f9e32
add esp, 0x1c
ret
Function at 0x4ce000
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x128
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x144]
movdqu xmm0, xmmword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
mov dword [esp + 0x28], eax
mov edi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
movdqu xmmword [esp + 0x14], xmm0
mov eax, dword [edi + 0x14]
xor esi, esi
movq xmm0, qword [esp + 0x14c]
push 0x8004667e
push eax
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x1c
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4ce0e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4ce0c6
push 0x100
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004fa8e0
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push ebp
push esi
push eax
mov eax, dword [edi + 0x14]
push esi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ce0cb
or esi, 0xffffffff
jmp 0x4ce0e1
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 0x14]
push eax
call sub.WS2_32.dll___WSAFDIsSet
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004f9e32
add esp, 0x128
ret 0x20

Function at 0x4cec00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x532b64
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x559830]
test eax, eax
jne 0x4cecc2
push 4
call fcn.004f92f4
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
test esi, esi
je 0x4cec96
mov dword [esi], ebx
lea ecx, [esp + 0x18]
push 9
push 0x41225c
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00429350
mov dword [esp + 0x14], 0x408308
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 1
mov ebx, 1
mov ecx, esi
push eax
mov dword [esp + 0x10], ebx
call fcn.004cfa50
jmp 0x4cec98
xor eax, eax
mov dword [0x559830], eax
test bl, 1
je 0x4cecc2
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x408308
jb 0x4cecc2
push dword [esp + 0x18]
call fcn.004f9345
mov eax, dword [0x559830]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x4cf250
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp edx, 0xffffffff
jae 0x4cf3a1
mov eax, dword [esp + 0x14]
cmp edx, 4
jb 0x4cf3a1
push ebx
push edi
mov cl, byte [eax]
test cl, cl
je 0x4cf39f
movsx ecx, cl
cmp ecx, 0x80
jae 0x4cf39f
movsx ecx, byte [ecx + 0x4122c8]
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x4cf39f
movsx ecx, byte [eax + 1]
cmp ecx, 0x80
jae 0x4cf39f
movsx ecx, byte [ecx + 0x4122c8]
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
je 0x4cf39f
mov bl, byte [eax + 2]
cmp bl, 0x3d
je 0x4cf2e9
movsx edi, bl
cmp edi, 0x80
jae 0x4cf39f
cmp byte [edi + 0x4122c8], 0xff
je 0x4cf39f
mov bh, byte [eax + 3]
sub edx, 4
add eax, 4
mov byte [esp + 0x20], bh
cmp bh, 0x3d
je 0x4cf317
movsx edi, bh
cmp edi, 0x80
jae 0x4cf39f
cmp byte [edi + 0x4122c8], 0xff
je 0x4cf39f
shl byte [esp + 0xc], 2
sar ecx, 4
and cl, 3
or cl, byte [esp + 0xc]
mov byte [esi], cl
inc esi
cmp bl, 0x3d
je 0x4cf396
movsx edi, bl
cmp edi, 0x80
jae 0x4cf342
movsx ecx, byte [edi + 0x4122c8]
jmp 0x4cf345
or ecx, 0xffffffff
mov ebx, dword [esp + 0x10]
sar ecx, 2
shl bl, 4
and cl, 0xf
or cl, bl
mov bl, byte [esp + 0x20]
mov byte [esi], cl
inc esi
cmp bl, 0x3d
je 0x4cf396
cmp edi, 0x80
jae 0x4cf371
movsx ecx, byte [edi + 0x4122c8]
jmp 0x4cf374
or ecx, 0xffffffff
movsx edi, bl
cmp edi, 0x80
jae 0x4cf388
movsx ebx, byte [edi + 0x4122c8]
jmp 0x4cf38b
or ebx, 0xffffffff
shl cl, 6
and bl, 0x3f
or cl, bl
mov byte [esi], cl
inc esi
cmp edx, 4
jae 0x4cf274
pop edi
pop ebx
sub esi, dword [esp + 0x10]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4cf3b0
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov eax, 0xaaaaaaab
push ebp
lea ecx, [ebx + 2]
mul ecx
mov ebp, edx
shr ebp, 1
shl ebp, 2
mov dword [esp + 0x18], ebp
cmp ebp, 0xbffffffd
ja 0x4cf4f4
cmp ebx, 0xfffffffd
jae 0x4cf4f4
cmp dword [esp + 0x10], ebp
jb 0x4cf4f4
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
cmp ebx, 3
jb 0x4cf479
mov eax, 0xaaaaaaab
mul ebx
mov ebp, edx
shr ebp, 1
lea edi, [ebp*4]
lea ecx, [ecx]
movzx eax, byte [esi]
sub ebx, 3
shr eax, 2
movzx eax, byte [eax + 0x412280]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x412280]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x412280]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x412280]
mov byte [ecx + 3], al
add ecx, 4
dec ebp
jne 0x4cf410
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x4cf4e1
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x412280]
mov byte [ecx], al
cmp ebx, 1
jne 0x4cf4a8
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x412280]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
jmp 0x4cf4d6
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + 0x412280]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + 0x412280]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
mov byte [ecx], 0x3d
inc ecx
inc edi
lea eax, [ebp + 1]
cmp dword [esp + 0x18], eax
mov eax, edi
jb 0x4cf4ef
mov byte [ecx], 0
pop edi
pop esi
pop ebp
pop ebx
ret
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4d0230
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [esp + 0x2d4]
push ebx
mov ebx, dword [esp + 0x2d0]
push ebp
push esi
mov dword [esp + 0xc], eax
mov ebp, ebx
xor esi, esi
xor eax, eax
push edi
mov edi, dword [esp + 0x2e0]
and ebp, 1
jne 0x4d0275
test bl, 3
jne 0x4d034d
push 0x408154
lea eax, [esp + 0x1a8]
push 0x64
push eax
call fcn.004fcc08
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
lea eax, [esp + 0x1c0]
push eax
push 0x4135c4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.004f9df0
movzx eax, word [edi + 8]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x4135d8
lea eax, [esp + 0xb8]
push 0x64
push eax
call fcn.004f9df0
add esp, 0x48
lea eax, [esp + 0x78]
push eax
push 0x411510
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.004f9df0
lea esi, [esp + 0xec]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4d0310
sub esi, ecx
cmp esi, 0xc8
jae 0x4d04ca
mov byte [esp + esi + 0xdc], al
lea eax, [esi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x210]
push eax
call fcn.004fa290
add esp, 0xc
mov eax, 1
test bl, 2
je 0x4d047e
cmp dword [esp + 0x2d8], 1
je 0x4d047e
cmp word [edi + 0x10], 0
jne 0x4d0376
cmp word [edi + 0x12], 0
je 0x4d047e
xor ebx, ebx
test ebp, ebp
je 0x4d03a4
cmp eax, 1
jne 0x4d03ab
mov byte [esp + esi + 0x208], 0x7c
inc esi
cmp esi, 0xc8
jae 0x4d04ca
lea ebx, [esp + 0x208]
add ebx, esi
mov byte [ebx], 0
jmp 0x4d03ab
lea ebx, [esp + 0x208]
push 0x408154
lea eax, [esp + 0x7c]
push 0x64
push eax
call fcn.004fcc08
movzx eax, word [edi + 0x16]
push eax
movzx eax, word [edi + 0x14]
push eax
movzx eax, word [edi + 0x12]
push eax
movzx eax, word [edi + 0x10]
push eax
lea eax, [esp + 0x94]
push eax
push 0x4135c4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.004f9df0
movzx eax, word [edi + 0x18]
push eax
movzx eax, byte [edi + 0x1b]
push eax
movzx eax, byte [edi + 0x1a]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x4135d8
lea eax, [esp + 0x1e4]
push 0x64
push eax
call fcn.004f9df0
add esp, 0x48
lea eax, [esp + 0x1a4]
push eax
push 0x411510
lea eax, [esp + 0xe4]
push 0xc8
push eax
call fcn.004f9df0
lea edi, [esp + 0xec]
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4d0440
sub edi, ecx
cmp edi, 0xc8
jae 0x4d04ca
mov byte [esp + edi + 0xdc], al
mov eax, 0xc8
sub eax, esi
cmp eax, edi
jb 0x4d047a
lea eax, [edi + 1]
push eax
lea eax, [esp + 0xe0]
push eax
push ebx
call fcn.004fa290
add esp, 0xc
jmp 0x4d047c
xor edi, edi
add esi, edi
cmp esi, 0xc8
jae 0x4d04ca
mov byte [esp + esi + 0x208], 0
cmp dword [esp + 0x2e8], esi
jb 0x4d04af
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x20c]
push eax
push dword [esp + 0x18]
call fcn.004fa290
add esp, 0xc
mov ecx, dword [esp + 0x2d0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f9e32
add esp, 0x2c4
ret
call fcn.004fe979
int3
Function at 0x4d34c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x4d3507
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xfff
xor eax, dword [ecx*4 + 0x54fbc0]
xor edx, eax
shr eax, 4
and edx, 0xf
and eax, 0xfff
xor eax, dword [edx*4 + 0x54fbc0]
dec esi
jne 0x4d34d0
pop edi
pop esi
ret 8

Function at 0x4d4b80
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x18
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
test eax, eax
jns 0x4d4c32
call esi
cmp al, 4
jae 0x4d4c32
push edi
push 0x14
lea eax, [esp + 0xc]
push eax
push 0x408154
push 0x413660
push 0x41366c
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
xor esi, esi
mov edi, 0x54fc68
lea ecx, [ecx]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d4bd5
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004fef03
add esp, 0xc
test eax, eax
je 0x4d4c15
inc esi
add edi, 8
cmp esi, 0x10
jb 0x4d4bd0
pop edi
mov dword [0x559ef4], 0x809
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f9e32
add esp, 0x18
ret
mov eax, dword [esi*8 + 0x54fc6c]
pop edi
mov dword [0x559ef4], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f9e32
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x4d4c82
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x4d4c58
dec ecx
je 0x4d4c7b
dec ecx
jne 0x4d4c5d
mov eax, 1
movzx eax, ax
shl eax, 0xa
or eax, 4
mov dword [0x559ef4], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f9e32
add esp, 0x18
ret
mov eax, 2
jmp 0x4d4c5d
mov eax, ecx
mov ecx, dword [esp + 0x18]
or eax, 0x800
pop esi
xor ecx, esp
mov dword [0x559ef4], eax
call fcn.004f9e32
add esp, 0x18
ret
Function at 0x4d58a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x2c]
mov esi, 2
cmp eax, 0xa
ja case.0x4d58ce.3
jmp dword [eax*4 + 0x4d59dc]
mov edi, 0x413758
jmp case.0x4d58ce.3
mov edi, 0x413790
jmp 0x4d5904
mov edi, 0x413790
jmp case.0x4d58ce.3
mov edi, 0x4137c8
jmp case.0x4d58ce.3
mov edi, 0x4137fc
jmp 0x4d5904
mov edi, 0x413830
jmp 0x4d5904
mov edi, 0x41386c
mov esi, 3
mov eax, dword [esp + 0x38]
mov edx, 0x20119
mov dword [esp + 0x1c], eax
mov ecx, 0x20019
xor eax, eax
cmp esi, 2
sete al
add eax, reloc.WS2_32.dll_accept
cmp dword [0x55bcd8], 0
cmovne ecx, edx
lea edx, [esp + 0x18]
push edx
push ecx
push 0
push edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x4d5976
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4d59be
cmp esi, 3
jne 0x4d59be
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push 0
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x4d59be
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
test ebx, ebx
pop ebp
cmove eax, dword [esp + 0x10]
pop ebx
xor ecx, esp
call fcn.004f9e32
add esp, 0x18
ret