joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a232
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x48a2ba
cmp dword [esi + 0x10], 0
je 0x48a2ba
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a1e60
mov ebx, esp
test ebx, ebx
je 0x48a2ba
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.0044da8b
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0044bfe9
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004480b3
test al, al
je 0x48a2ba
mov ecx, dword [esi + 0x10]
call fcn.00451aa4
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1496
leave
ret 0x10

Function at 0x48caf4
Capabilities:
Hide graphical window

Disassembly:
push 0x120
mov eax, 0x644240
call fcn.004a1de7
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x48cb86
lea eax, [ebp - 0x12c]
push eax
call fcn.0048c6e8
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0x12c]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00447dec
mov edi, dword [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00445654
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004476dd
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00447a09
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0044e0d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
mov bl, al
call fcn.0044d9e9
mov esi, 0x588
test bl, bl
je 0x48cbc5
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x94]
push eax
call fcn.0048c99e
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 1
call fcn.0044daf7
push eax
push 0
push 0x1032
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x10]
add eax, esi
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.004b9750
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [ebp - 0x94]
mov byte [edi + 0x18], 1
call fcn.0044d9e9
call fcn.004a1da2
ret 4
Function at 0x48d1a1
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x48d23f
push esi
mov esi, 0xff
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004b95f0
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
pop esi
test eax, eax
je 0x48d23f
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.004b9750
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
jmp 0x48d241
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1496
leave
ret

Function at 0x48d33a
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x6442d3
call fcn.004a1de7
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x48d3f7
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x48d3cf
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.0048cf27
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00447dec
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00445654
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004476dd
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00447a09
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0044e0d8
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0044d9e9
test bl, bl
je 0x48d42f
call fcn.0048d1a1
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.004a1da2
ret 4
Function at 0x495938
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6f1114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x210], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x495986
cmp esi, 0x28
jbe 0x495980
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x495986
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b95f0
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0044d902
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1496
leave
ret 0xc

Function at 0x495c5c
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x644ace
call fcn.004a1de7
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x495d6c
lea eax, [ebp - 0xa4]
push eax
call fcn.00495486
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00447dec
push eax
mov ecx, ebx
call fcn.00445654
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x495d6c
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004476dd
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00447a09
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.004961a2
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.0049578a
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.0044da6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044d9e9
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.004a1da2
ret 4
Function at 0x4a4bea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d21f1
Capabilities:
Read file on windows

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

Function at 0x4db4ab
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004db16b
Function at 0x4ebb00
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4ebb8c
push esi
call fcn.005043b0
add esp, 4
test al, al
jne 0x4ebb8c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4ebb23
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.005053a0
add esp, 0xc
test eax, eax
je 0x4ebb57
sub eax, esi
push eax
push 0x2e
push esi
call fcn.005053a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4ebb59
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x4ebb85
mov al, byte [esi]
push eax
call fcn.004e9b30
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x4ebb67
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4f8990
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x6f9], 0
je 0x4f8a27
cmp dword [edi + 0x1a8], 0
je 0x4f89e1
push esi
push 1
push edi
call fcn.004f36f0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004f36f0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x4f89f6
sub ecx, 1
je 0x4f89f6
sub ecx, 1
jne 0x4f8a27
push dword [edi + 0x148]
lea eax, [edx*2 + 0x665ff0]
push 1
add eax, edx
push 2
push eax
call fcn.004bdb52
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004bdb52
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x4f8fd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x178
mov edx, dword [ecx + 0x154]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x150]
mov ebp, dword [eax + ecx]
mov eax, 0x188
cmove esi, eax
mov eax, dword [ecx + 0x2a8]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x4f90d3
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x168]
cmp dword [eax + ecx], 0x4f8c90
jne 0x4f90d3
cmp dword [esi], 0
je 0x4f906e
test edi, edi
je 0x4f90d3
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00521cd0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4f90d3
test al, 1
je 0x4f90d3
mov ecx, dword [esi]
test ecx, ecx
jne 0x4f90bc
mov eax, dword [ebx + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6f1ba4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x4f9107
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4f90d3
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x4f9142
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4f9118
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x4f9142
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x4f9148
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00503870
push eax
push str.Send_failure:__s
push ebx
call fcn.004f8a30
add esp, 0x18
mov dword [ebx + 0x948], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x10c
ret
Function at 0x4f95a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1a4], 0
je 0x4f95bd
push eax
call fcn.004e78a0
add esp, 4
test eax, eax
je 0x4f95de
mov al, 1
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x4f95de
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
ret
xor al, al
ret

Function at 0x4f9830
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.004b95f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4f98b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00503870
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4f98f7
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.004f9420
add esp, 0x10
test al, al
jne 0x4f9900
call fcn.004c811f
mov esi, dword [eax]
call fcn.004c811f
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00503870
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004f8a30
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x188
ret

Function at 0x4fa100
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x6fb4e4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4fa151
push 3
push 2
push eax
push eax
push 6
call fcn.00525fe0
add esp, 0x14
test al, al
je 0x4fa145
mov dword [0x6fb4e4], 2
add esp, 0xc
ret
mov dword [0x6fb4e4], 1
jmp 0x4fa156
cmp eax, 2
je 0x4fa19c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4fa181
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4fa19c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x4fb5d0
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 0x4fb5ea
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 0x666468
push esi
call fcn.004e04e0
add esp, 8
test eax, eax
je 0x4fb632
test ebp, ebp
je 0x4fb623
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 0x4fb658
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fb658
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 0x4fb70f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fb675
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x6f1ba4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4fb705
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4fb705
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fb6a7
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 0x4fb6c0
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 0x4fb6d0
test ebp, ebp
je 0x4fb6fc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6f1ba8]
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 [0x6f1ba8]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x501a20
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x6f1bac]
mov edi, eax
add esp, 8
test edi, edi
je 0x501a77
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x501a8f
cmp esi, ebx
je 0x501a8f
cmp esi, 0x8000
ja 0x501a8f
cmp esi, ebx
jb 0x501a88
push esi
push edi
call dword [0x6f1bac]
mov edi, eax
add esp, 8
test edi, edi
jne 0x501a40
push ebp
call dword [0x6f1ba8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x6f1ba8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x504510
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x504522
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x504536
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret
Function at 0x505a60
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0051e300
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0052fcd6
push dword [esp + 0x40]
mov edi, eax
call fcn.0052fcd6
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x505af5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0051e300
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0051e3b0
add esp, 0x20
test edx, edx
ja 0x505b19
jb 0x505ae7
cmp eax, 0x3e8
ja 0x505b19
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x505ab0
test edi, edi
je 0x505b02
push edi
call fcn.004bddc1
add esp, 4
test esi, esi
je 0x505b0f
push esi
call fcn.004bddc1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x505b26
push edi
call fcn.004bddc1
add esp, 4
test esi, esi
je 0x505b33
push esi
call fcn.004bddc1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret

Function at 0x50b0d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
or esi, 0xffffffff
push eax
mov ebx, dword [edi + 0xc]
mov ebp, dword [ebx + 0x154]
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x50b133
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push ebx
push edi
call fcn.004f94d0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x50b158
push str.Error_accept__ing_server_connect
push edi
call fcn.004f8a30
add esp, 8
mov eax, 0x1e
jmp 0x50b1c8
push str.Connection_accepted_from_server
push edi
call fcn.004f8b00
push 1
push esi
mov byte [ebx + 0x26d], 0
mov dword [ebx + 0x154], esi
call fcn.00525940
add esp, 0x10
mov byte [ebx + 0x280], 1
cmp dword [edi + 0x1b0], 0
je 0x50b1c6
push 1
push edi
call fcn.004f36f0
mov eax, dword [edi + 0x1b0]
push 1
push esi
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.004f36f0
add esp, 0x1c
test esi, esi
je 0x50b1c6
push ebx
push edi
call fcn.0050b660
add esp, 8
mov eax, 0x2a
jmp 0x50b1c8
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x88
ret
Function at 0x50d0f0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x50d120
push str.Couldnt_set_desired_mode
push esi
call fcn.004f8a30
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x50d137
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.004f8b00
add esp, 0xc
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0x13
jne 0x50d152
push ebx
push esi
call fcn.0050cff0
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x50d262
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp dword [esi + 0x4e8], 2
mov dword [esp + 0x18], edi
jne 0x50d1d0
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x50d1d0
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.004e4a10
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x50d28f
push 0x2f
push dword [esp + 0x18]
call fcn.0052f940
add esp, 8
test eax, eax
je 0x50d1bf
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x50d1cc
push dword [esp + 0x14]
call dword [0x6f1ba8]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x530]
test ecx, ecx
jne 0x50d1ee
cmp byte [esi + 0xd0c], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x6d704a
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x6d7754
cmove eax, edx
push eax
push ecx
push 0x6d78d0
call fcn.004e86d0
push ebx
mov ebp, eax
call dword [0x6f1ba8]
add esp, 0x14
test ebp, ebp
jne 0x50d22b
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x665da4
lea eax, [edi + 0x440]
push eax
push esi
call fcn.00528b80
push ebp
mov edi, eax
call dword [0x6f1ba8]
add esp, 0x14
test edi, edi
jne 0x50d28f
mov eax, dword [esi + 0xc]
pop ebp
mov dword [eax + 0x4c4], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x50d27b
push 0xd
push 1
push esi
call fcn.0050cb80
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x50d28f
push 0xe
push 1
push esi
call fcn.0050cb80
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret