joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5132a0
Capabilities:
Encrypt data using rc6

Disassembly:
push 0xffffffffffffffff
push 0x603208
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69a450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x5132d2
lea ebx, [edi + 4]
jmp 0x5132d4
xor ebx, ebx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push 0x6ad91c
push str.Rounds
mov eax, dword [ecx]
mov dword [esp + 0x20], 0x10
call dword [eax + 4]
mov esi, dword [esp + 0x14]
push ebx
push esi
call fcn.004ed5b0
lea eax, [esi*2 + 2]
mov dword [edi + 0x10], esi
push eax
lea ecx, [edi + 0x14]
call fcn.004ec2d0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
add ecx, 3
mov dword [esp + 0x40], 1
shr ecx, 2
lea eax, [esp + 0x40]
cmp ecx, 1
mov dword [esp + 0x14], ecx
cmovae eax, edx
mov ebp, dword [eax]
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call fcn.004dc670
add esp, 4
test ebp, ebp
jne 0x513351
xor ebx, ebx
jmp 0x513363
lea eax, [ebp*4]
push eax
call fcn.004d6190
add esp, 4
mov ebx, eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x3c]
lea esi, [ebp*4]
push eax
mov dword [esp + 0x34], 0
push dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push esi
push ebx
mov dword [esp + 0x50], 4
call fcn.005cda59
mov eax, dword [esp + 0x4c]
sub esi, eax
push esi
add eax, ebx
push 0
push eax
call fcn.005c8180
add esp, 0x1c
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
call fcn.004e14c0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0xb7e15163
mov eax, 1
cmp dword [edi + 0x18], eax
jbe 0x5133dd
mov ecx, dword [edi + 0x1c]
lea edx, [ecx + eax*4]
inc eax
mov ecx, dword [edx - 4]
sub ecx, 0x61c88647
mov dword [edx], ecx
cmp eax, dword [edi + 0x18]
jb 0x5133c6
mov eax, dword [edi + 0x18]
lea ecx, [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0x38], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0
cmovae ecx, edx
mov dword [esp + 0x40], 0
xor esi, esi
mov eax, dword [ecx]
lea eax, [eax + eax*2]
mov dword [esp + 0x38], eax
test eax, eax
je 0x51345b
xor edx, edx
mov eax, esi
div dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
lea ecx, [eax + edx*4]
xor edx, edx
mov eax, dword [ecx]
add eax, dword [esp + 0x40]
add eax, dword [esp + 0x3c]
rol eax, 3
mov dword [ecx], eax
mov dword [esp + 0x3c], eax
mov eax, esi
div ebp
mov eax, dword [ebx + edx*4]
lea edx, [ebx + edx*4]
add eax, dword [esp + 0x40]
inc esi
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x3c]
add eax, dword [esp + 0x3c]
rol eax, cl
mov dword [esp + 0x40], eax
mov dword [edx], eax
cmp esi, dword [esp + 0x38]
jb 0x513410
xor eax, eax
mov edi, ebx
mov ecx, ebp
rep stosd dword es:[edi], eax
push ebx
call fcn.005c663b
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x513490
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [ecx + 0x18]
push ebp
mov edx, dword [eax + 4]
mov ebp, dword [ecx + 0xc]
push esi
mov esi, dword [ebx]
add esi, dword [eax]
mov eax, dword [ebx + 4]
push edi
add eax, edx
xor edi, edi
test ebp, ebp
je 0x5134c9
xor esi, eax
mov ecx, eax
rol esi, cl
add esi, dword [ebx + edi*8 + 8]
xor eax, esi
mov ecx, esi
rol eax, cl
add eax, dword [ebx + edi*8 + 0xc]
inc edi
cmp edi, ebp
jb 0x5134b0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5134d5
mov edx, dword [ecx]
jmp 0x5134d7
xor edx, edx
xor edx, esi
mov esi, dword [esp + 0x1c]
mov dword [esi], edx
test ecx, ecx
je 0x5134f8
add ecx, 4
test ecx, ecx
je 0x5134f8
mov ecx, dword [ecx]
pop edi
xor ecx, eax
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
ret 0xc
xor ecx, ecx
pop edi
xor ecx, eax
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x513a30
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [ecx + 0x118]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [ecx + 0x11c]
push edi
push ebx
push dword [esp + 0x1c]
lea edi, [eax*4]
mov dword [esp + 0x18], ebx
push edi
push esi
mov dword [esp + 0x2c], 4
call fcn.005cda59
sub edi, ebx
lea eax, [esi + ebx]
push edi
push 0
push eax
call fcn.005c8180
lea edx, [esp + 0x38]
lea ecx, [esp + 0x2c]
call fcn.004e14c0
push eax
mov edx, esi
mov ecx, esi
call fcn.004e37d0
add esp, 0x20
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 4]
mov edx, ecx
mov edi, dword [esi + 0x38]
mov eax, ecx
ror edx, 0x12
shr ecx, 3
ror eax, 7
xor edx, eax
mov eax, edi
xor edx, ecx
ror eax, 0x11
mov ecx, edi
shr edi, 0xa
ror ecx, 0x13
xor ecx, eax
xor ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, dword [esi + 0x24]
add edx, dword [esi]
mov dword [esi + 0x40], edx
mov eax, dword [ecx + 0x641fa0]
add ecx, 4
add dword [esi], eax
add esi, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 0xc0
jb 0x513a94
mov ecx, 0xc8
lea esp, [esp]
mov eax, dword [ecx + 0x641f98]
lea esi, [esi + 0x10]
add dword [esi - 0x10], eax
mov eax, dword [ecx + 0x641f9c]
add dword [esi - 0xc], eax
mov eax, dword [ecx + 0x641fa0]
add dword [esi - 8], eax
mov eax, dword [ecx + 0x641fa4]
add ecx, 0x10
add dword [esi - 4], eax
cmp ecx, 0x108
jb 0x513af0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x5145d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6b0024]
test eax, eax
je 0x514614
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6b0024]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5145fe
push dword [0x6b0024]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x6b0028]
mov dword [0x6b0024], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x526540
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5265e9
cmp byte [esi], 0
je 0x5265e9
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526560
sub ecx, edx
cmp ecx, 3
jb 0x526577
cmp byte [esi + 1], 0x3a
jne 0x526577
add esi, 3
mov ecx, esi
push ebx
push edi
mov edi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526580
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.005c3a35
add esp, 4
mov ebx, eax
cmp byte [esi], 0
je 0x5265de
xor eax, eax
mov dword [ebp + 8], eax
mov cl, byte [edi]
cmp cl, 0x2f
je 0x5265b0
cmp cl, 0x5c
jne 0x5265d4
push dword [ebp - 4]
push 0
push ebx
call fcn.005c8180
push dword [ebp + 8]
push esi
push ebx
call fcn.005c4dd0
add esp, 0x18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
inc edi
inc eax
mov dword [ebp + 8], eax
cmp byte [edi], 0
jne 0x5265a4
push ebx
call fcn.0045d190
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x526a50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x526aea
mov ecx, edi
shr ecx, 4
mov dword [ebp + 0xc], ecx
push ebx
lea edx, [esi + 1]
mov ebx, 4
jmp 0x526a80
movsx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6822a8]
movsx ecx, byte [edx - 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6822a8]
movsx ecx, byte [edx - 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6822a8]
movsx ecx, byte [edx - 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6822a8]
dec ebx
jne 0x526a80
add esi, 0x10
sub edi, 0x10
dec dword [ebp + 0xc]
jne 0x526a70
pop ebx
test edi, edi
je 0x526b0b
mov edi, edi
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6822a8]
dec edi
jne 0x526af0
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x526e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x526e9b
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x526ec0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 8]
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x526f37
xor edx, edx
div ebx
mov ecx, eax
imul ecx, ebx
lea eax, [edx + edi]
push eax
push ecx
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push edi
push ebx
call fcn.00526a50
add esp, 8
mov edi, eax
test ebx, ebx
je 0x526f2e
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5278c0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x5278d3
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x527930
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x527946
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x528650
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x130], ecx
test eax, eax
jne 0x52866f
mov eax, dword [edi + 0x114]
mov dword [edi + 0x134], eax
add eax, ecx
cmp eax, dword [edi + 0x114]
jbe 0x528688
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [edi + 0x130]
xor edx, edx
mov eax, esi
mov ecx, dword [edi + 0x134]
div dword [ebp - 8]
push 0
mov ebx, eax
imul ebx, dword [ebp - 8]
lea eax, [ecx + edx]
mov dword [ebp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [esi + ecx]
push eax
push 0
push 2
push 0
push dword [edi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x12c], eax
test eax, eax
jne 0x5286f2
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x138], eax
test eax, eax
jne 0x52872a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.00525b10
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, edi
push dword [edi + 0x13c]
mov dword [edi + 0x128], 0
push dword [edi + 0x134]
call fcn.00528630
mov eax, dword [edi + 0x134]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x52b180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.0052b220
push 0x104
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.005c4dd0
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov edx, 1
cmp edi, 2
jne 0x52b1b7
mov ecx, 0xc0000000
lea edx, [edi + 1]
jmp 0x52b1bc
mov ecx, connect
xor eax, eax
cmp edi, 1
push 0
push 0x80
setne al
add eax, 3
push eax
push 0
push edx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x110], eax
cmp eax, 0xffffffff
je 0x52b204
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], edi
mov dword [esi + 0x114], eax
mov eax, 1
pop edi
pop esi
pop ebp
ret 8
pop edi
mov dword [esi + 0x110], 0
xor eax, eax
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604661
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x4c]
mov dword [edi], vtable.CNetworkStream.0
call fcn.005ef230
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 0
call fcn.00550550
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
push 0x8000
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
mov dword [edi + 0x5c], 0xffffffff
mov byte [edi + 0x48], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x70], 0
mov byte [edi + 0x74], 0
call fcn.0046a350
push 0x8000
push 0x6827c0
push dword [edi + 0x78]
call fcn.005c8660
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x532d60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00532ce0
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x532dd3
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.004da7e0
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x532deb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x532deb
push str.error___WSAEWOULDBLOCK
call fcn.00525ce0
add esp, 4
mov ecx, edi
call fcn.00532ce0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.005c9cc2
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, edx
cdq
add ecx, eax
mov al, 1
mov dword [edi + 8], ecx
adc esi, edx
mov dword [edi + 0xc], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x533010
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x69a450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x533158
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x108], 1
push eax
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x533158
cmp byte [esi + 0x48], 0
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x5c]
jne 0x5330f7
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5330c0
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x48], 1
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c46a4
mov esp, ebp
pop ebp
ret
push 0
call fcn.005c9cc2
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x533158
jg 0x5330da
cmp eax, dword [esi + 8]
jbe 0x533158
mov ecx, esi
call fcn.00532ce0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c46a4
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x53311f
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x53311f
mov ecx, esi
call fcn.00533440
test al, al
jne 0x53311f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x53314a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x53313d
mov ecx, esi
call fcn.005333a0
test al, al
je 0x53314a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x533158
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.00532ce0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c46a4
mov esp, ebp
pop ebp
ret
Function at 0x5333a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x28]
test edx, edx
jle 0x5333d2
mov eax, dword [esi + 0x24]
sub eax, edx
test eax, eax
jle 0x5333c5
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.005c4710
add esp, 0xc
mov eax, dword [esi + 0x28]
sub dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x533430
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, ecx
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x533406
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x533408
pop edi
xor al, al
pop esi
ret
je 0x533401
mov ecx, esi
call fcn.00532f60
test al, al
je 0x53342d
mov edx, dword [esi + 0x1c]
add edx, dword [esi + 0x24]
cmp byte [esi + 0x4c], 0
je 0x53342d
mov ecx, dword [esi + 0x54]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
add dword [esi + 0x24], edi
pop edi
mov al, 1
pop esi
ret

Function at 0x533440
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00533350
mov edi, eax
test edi, edi
jle 0x533499
mov ecx, esi
call fcn.00532f60
test al, al
je 0x533474
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x533474
mov ecx, dword [esi + 0x50]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push 0
push edi
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x53348f
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00533360
pop edi
mov al, 1
pop esi
ret
Function at 0x536990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x604865
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6ed1d4], edi
mov dword [edi], vtable.CResourceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00462690
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.00462690
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00466e70
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.00462690
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.00462690
mov dword [edi + 0x24], eax
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 5
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00466e70
mov dword [edi + 0x2c], eax
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 6
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.00466e70
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 7
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.00462690
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53c5c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x19], al
test al, al
je 0x53c5dc
push 5
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x542800
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x69a450]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x6e2c1c], eax
cmp dword [0x6e4944], eax
je 0x54294a
push 8
lea ecx, [ebp - 0x18]
mov dword [0x6e4944], eax
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.005455e0
add esp, 0xc
mov dword [0x6e4914], eax
cmp dword [0x68a83c], eax
je 0x54294a
push 0x6e2c20
mov dword [0x68a83c], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x6e2c1c]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x5428b6
sub eax, 0xd
je 0x5428a3
dec eax
jne case.default.0x5428c8
mov byte [0x6e2c2a], al
mov dword [0x6e40f4], 0x68a82e
jmp 0x54292f
mov byte [0x6e2c2a], 1
mov dword [0x6e40f4], 0x68a834
jmp 0x54292f
mov eax, ecx
mov byte [0x6e2c2a], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x5428c8
jmp dword [eax*4 + 0x542958]
mov byte [0x6e2c2a], 0
mov dword [0x6e40f4], 0x68a822
jmp 0x54292f
mov dword [0x6e40f4], 0x68a828
jmp 0x54292f
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x6e40f4], 0x68a81c
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x6e40f4]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.005cd109
mov ecx, dword [0x6e40f4]
add esp, 4
mov word [ecx + 2], ax
cmp dword [0x6e4910], 0x4e8
je 0x54294a
mov eax, dword [0x6e4914]
mov dword [0x6e4910], eax
call fcn.00542a70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c46a4
mov esp, ebp
pop ebp
ret