joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48731c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4874e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 0
mov byte [ebp - 1], 0
mov eax, edi
call fcn.00404428
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4874b2
mov eax, esi
sub eax, 1
jb 0x48736f
je 0x487387
dec eax
je 0x48739f
jmp 0x4873b5
lea eax, [ebp - 8]
push eax
push 0x4874fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 0xc], eax
jmp 0x4873b5
lea eax, [ebp - 8]
push eax
push 0x487530
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 0xc], eax
jmp 0x4873b5
lea eax, [ebp - 8]
push eax
push 0x487564
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4874b1
xor ebx, ebx
mov byte [ebp - 0x7a], 0
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 0x14], 0x64
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xdf]
push eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x7a]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x48748f
lea eax, [ebp - 0x7a]
call fcn.00408ec4
test eax, eax
je 0x48742a
mov edx, 0x487598
lea eax, [ebp - 0x7a]
call fcn.00408fe0
test eax, eax
je 0x48742d
mov edx, 0x4875a0
lea eax, [ebp - 0x7a]
call fcn.00408fe0
test eax, eax
je 0x48742d
inc ebx
jmp 0x487490
lea edx, [ebp - 0xe4]
lea eax, [ebp - 0xdf]
call fcn.004090d8
mov edx, dword [ebp - 0xe4]
mov eax, edi
call fcn.0040447c
mov eax, dword [edi]
call fcn.004046e0
mov edx, dword [edi]
cmp byte [edx + eax - 1], 0x5c
je 0x487467
mov eax, edi
mov edx, 0x4875b4
call fcn.004046e8
mov edx, dword [edi]
lea eax, [ebp - 0xe8]
mov ecx, 0x4875c0
call fcn.0040472c
mov eax, dword [ebp - 0xe8]
call fcn.00408cf4
test al, al
je 0x48748c
mov byte [ebp - 0x15], 1
inc ebx
jmp 0x487490
inc ebx
cmp ebx, 2
jl 0x4873c5
cmp byte [ebp - 0x15], 1
jne 0x4874ae
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov byte [ebp - 1], 1
jmp 0x4874ca
inc esi
jmp 0x4874b2
inc esi
cmp esi, 3
jge 0x4874c1
cmp byte [ebp - 0x15], 0
je 0x487361
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4874ef
lea eax, [ebp - 0xe8]
mov edx, 2
call fcn.0040444c
ret
Function at 0x401910
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4268cb
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
push edi
xor edi, edi
cmp eax, 5
mov esi, ecx
ja 0x401a38
je 0x4019ff
mov ecx, eax
dec ecx
je 0x401979
dec ecx
jne 0x401a44
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
call fcn.004016d0
mov esi, dword [esi + 0xc]
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
push 0x38
call fcn.00408870
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x40199b
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.00401890
jmp 0x40199d
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, dword [eax]
push eax
mov dword [esp + 0x14], 0xffffffff
call dword [edx + 4]
mov ecx, dword [esi + 0xc]
call fcn.004015c0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [esi + 0x10]
push edx
push 0x4296e4
push eax
call dword [ecx]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x24]
push ecx
mov ecx, esi
call fcn.004010f0
mov edx, dword [esi]
push edi
push 0x1f4
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 8]
mov ecx, eax
shr ecx, 0x10
add ecx, edx
push ecx
mov ecx, dword [esi + 4]
movzx edx, ax
add edx, ecx
mov ecx, dword [esi + 0xc]
push edx
push 0xfffffffffffffffe
push 0xfffffffffffffffe
call fcn.00401040
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
cmp eax, 0xc
je 0x401a9d
cmp eax, 0x113
je 0x401a6b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
cmp dword [esp + 0x1c], 1
jne 0x401aa9
mov ecx, esi
call fcn.004010c0
test eax, eax
je 0x401aa9
mov ecx, dword [esi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x20]
push edx
mov ecx, esi
call fcn.004010f0
mov ecx, dword [esp + 8]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x402190
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4022e4
push edi
xor eax, eax
mov ecx, 0x8000
mov edi, 0x42eaa0
rep stosd dword es:[edi], eax
push 0x42eaa0
lea ecx, [esi + 0x10]
call fcn.00401c00
test eax, eax
je 0x4022e3
cmp eax, 0xffffffff
je 0x4022e3
mov ecx, dword [0x42eaa0]
mov edx, dword [0x42eaa4]
mov edi, dword [0x42eaa8]
mov eax, ecx
shr eax, 0x10
sub eax, 2
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
je 0x402200
push str.Packet_Error_n
jmp 0x4022d2
mov eax, dword [0x42eaac]
cmp eax, 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
jne 0x402230
push 0
push eax
mov eax, dword [esi + 0x20074]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4022cd
test eax, eax
mov ecx, esi
jne 0x402254
call fcn.004034b0
push 0
push 0x7a133
mov ecx, 0x48eeb8
call fcn.004042f0
push eax
push 0x7a12a
jmp 0x402293
cmp eax, 0xffffffff
jne 0x402277
call fcn.004034b0
push 0
push 0x7a133
mov ecx, 0x48eeb8
call fcn.004042f0
push eax
push 0x7a13d
jmp 0x402293
call fcn.004034b0
push 0
push 0x7a133
mov ecx, 0x48eeb8
call fcn.004042f0
push eax
push 0x7a134
mov ecx, 0x48eeb8
call fcn.004042f0
mov ecx, dword [esi + 0x20074]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esi + 0x20074]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x20074]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
push str.SESSION_ACK_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi]
pop edi
mov ecx, esi
pop esi
add esp, 0x10
jmp dword [edx]
pop edi
pop esi
add esp, 0x10
ret

Function at 0x402370
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov ebx, ecx
jg 0x402390
push str.CCircularBuffer::PutData_len_is__0_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
jns 0x40239b
add eax, dword [ebx + 4]
mov ecx, dword [ebx + 4]
sub ecx, eax
cmp ebp, ecx
jl 0x4023ad
mov ecx, ebx
call fcn.00401e90
jmp 0x402390
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [ebx + 8]
lea ecx, [edx + ebp]
add edi, edx
cmp ecx, eax
jl 0x40240f
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub ebp, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x402401
mov edx, dword [esp + 0x14]
mov edi, dword [ebx + 8]
mov ecx, ebp
lea esi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 0x10], ebp
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov dword [ebx + 0x10], 0
pop ebx
ret 8
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x10]
pop edi
pop esi
add eax, ebp
pop ebp
mov dword [ebx + 0x10], eax
pop ebx
ret 8
Function at 0x402e70
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402e81
or eax, 0xffffffff
pop ebx
pop ecx
ret
push edi
xor eax, eax
mov ecx, 0x8000
mov edi, 0x44eaa0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
lea eax, [esp + 8]
push eax
push 0x4004667f
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x402f09
mov eax, dword [esp + 8]
test eax, eax
jbe 0x402f09
cmp eax, 0x20000
jbe 0x402ec8
mov eax, 0x20000
mov dword [esp + 8], eax
push esi
xor esi, esi
test eax, eax
jbe 0x402ef5
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
sub eax, esi
push eax
mov eax, dword [ebx + 8]
lea edx, [esi + 0x44eaa0]
push edx
push eax
call edi
test eax, eax
jle 0x402eed
add esi, eax
mov eax, dword [esp + 0xc]
cmp esi, eax
jb 0x402ed5
push esi
push 0x44eaa0
mov ecx, ebx
call fcn.00402df0
mov eax, esi
pop esi
pop edi
pop ebx
pop ecx
ret
pop edi
or eax, 0xffffffff
pop ebx
pop ecx
ret

Function at 0x402f10
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x64
push edi
mov edi, ecx
push edi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x48eb18
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402f56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 8]
push str.gethostbyname___generated_error__d
push eax
call fcn.00409160
add esp, 0xc
call fcn.00402fe0
mov eax, edi
pop edi
add esp, 0x64
ret
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [ecx]
push esi
mov esi, dword [edx]
push eax
lea ecx, [esp + 0xc]
push str.Host__s_has_IP_address
push ecx
call fcn.00409160
xor edx, edx
mov dword [0x48eb4c], edx
mov dword [0x48eb50], edx
mov dword [0x48eb54], edx
add esp, 0xc
mov dword [0x48eb58], edx
push esi
mov dword [0x48eb5c], edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x4274b0
push 0x48eb4c
call fcn.00409160
add esp, 0xc
push 0x48eb4c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop esi
call fcn.00402fe0
mov eax, edi
pop edi
add esp, 0x64
ret
Function at 0x402fe0
Capabilities:
Get networking parameters
Print debug messages

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0
mov dword [0x48eb74], 0
mov dword [esp + 0xc], 0
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x40301d
cmp eax, 0x6f
je 0x40301d
push eax
push str.GetNetworkParams_sizing_failed_with_error__d_n
call fcn.00409760
add esp, 8
int3
mov ecx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push ecx
push 0x40
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x40304c
push str.Memory_allocation_error_n
call fcn.00409760
add esp, 4
int3
lea edx, [esp + 0xc]
push edx
push edi
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
jne 0x4031d5
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x403076
lea esp, [esp]
mov eax, dword [eax]
test eax, eax
jne 0x403070
lea eax, [esp + 8]
push eax
push 0
mov dword [esp + 0x10], 0
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4030a8
cmp eax, 0x6f
je 0x4030a8
push eax
push str.GetAdaptersInfo_sizing_failed_with_error__d_n
call fcn.00409760
add esp, 8
int3
mov ecx, dword [esp + 8]
push ecx
push 0x40
call esi
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x4030ce
push str.Memory_allocation_error_n
call fcn.00409760
add esp, 4
pop edi
pop esi
add esp, 0x10
ret
lea edx, [esp + 8]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4030f2
push eax
push str.GetAdaptersInfo_failed_with_error__d_n
call fcn.00409760
add esp, 8
int3
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403100
mov eax, dword [esi + 0x1a0]
add eax, 0xfffffffa
cmp eax, 0x16
ja case.0x403115.7
movzx eax, byte [eax + 0x403208]
jmp dword [eax*4 + 0x4031ec]
push str.Ethernet_adapter_n
jmp 0x40314b
push str.Token_Ring_adapter_n
jmp 0x40314b
push str.FDDI_adapter_n
jmp 0x40314b
push str.PPP_adapter_n
jmp 0x40314b
push str.Loopback_adapter_n
jmp 0x40314b
push str.Slip_adapter_n
jmp 0x40314b
push str.Other_adapter_n
call edi
lea eax, [esi + 0x1ac]
test eax, eax
je 0x40315d
mov eax, dword [eax]
test eax, eax
jne 0x403157
lea ecx, [esi + 0x1d8]
push ecx
push 0x4274b0
push 0x48eb60
call fcn.00409160
mov dword [0x48eb74], 1
mov eax, dword [esi + 0x1d4]
add esp, 0xc
test eax, eax
je 0x403196
lea ebx, [ebx]
mov eax, dword [eax]
test eax, eax
jne 0x403190
lea edx, [esi + 0x278]
push edx
call fcn.00409590
lea eax, [esi + 0x27c]
push eax
call fcn.00409590
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x403100
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
add esp, 0x10
ret
push eax
push str.GetNetworkParams_failed_with_error__d_n
call fcn.00409760
add esp, 8
int3
Function at 0x403310
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get hostname
Resolve dns

Disassembly:
sub esp, 0xf4
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x403340
mov eax, dword [esp + 0x104]
push 6
push 1
push 2
mov dword [0x42d068], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
jne 0x40334c
xor eax, eax
pop ebx
add esp, 0xf4
ret 0xc
mov ecx, dword [esp + 0xfc]
push esi
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
push ecx
mov word [esp + 0xc], 2
call esi
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
test ecx, ecx
je 0x403384
xor edx, edx
nop
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0xc]
mov ecx, dword [edx + ecx + 4]
add edx, 4
test ecx, ecx
jne 0x403370
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [eax]
mov ecx, dword [str.CHINA]
mov ax, word [0x427694]
push edi
mov dword [esp + 0x1c], ecx
mov word [esp + 0x20], ax
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
push edx
call edi
lea edx, [esp + 0xc0]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4033c0
mov edx, dword [0x48ec78]
push str.TEST
push str.15001
push str.119.205.199.248
lea ecx, [esp + 0x28]
push ecx
push str._s__s__s__s
push edx
call fcn.00409160
push str.15001
call fcn.00409410
add esp, 0x1c
push eax
call dword [sym.imp.WS2_32.dll_htons]
push str.119.205.199.248
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x10], eax
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x403445
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xf4
ret 0xc
push 0x64
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x5c]
push ecx
call esi
test eax, eax
je 0x40348c
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
push 0x4274ac
push 0x48ee38
call fcn.00409160
add esp, 8
push esi
call edi
push eax
push 0x4274b0
push 0x48ee38
call fcn.00409160
add esp, 0xc
pop edi
pop esi
mov dword [ebx + 4], 1
mov eax, 1
pop ebx
add esp, 0xf4
ret 0xc
Function at 0x4034e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4034f3
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
push ebp
push esi
push edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
xor esi, esi
push esi
push edi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40354f
lea esp, [esp]
add esi, eax
cmp esi, edi
jge 0x40354f
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x10]
cmp eax, 0x64
ja 0x40354f
mov eax, dword [ebx + 8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebp]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403520
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x403600
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi], 0x427660
lea esi, [edi + 4]
jne 0x40363d
mov ecx, dword [str.Unspecified.]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [0x4276b4]
mov dword [eax + 4], edx
mov ecx, dword [0x4276b8]
mov dword [eax + 8], ecx
mov dl, byte [0x4276bc]
mov byte [eax + 0xc], dl
jmp 0x40364b
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403641
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Network_Error:
call ebx
push esi
call ebx
push 0x42769c
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4036a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x3ec
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x403670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x4036e3
push str.Thread_____Thread_creation_failed.
lea ecx, [esp + 8]
call fcn.00403600
push 0x42adfc
lea ecx, [esp + 8]
push ecx
call fcn.004092d0
mov byte [esi + 0x10], 1
pop esi
add esp, 0x3ec
ret

Function at 0x403f70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
push esi
je 0x403fb9
mov esi, dword [esp + 0xc]
test esi, esi
je 0x403fb9
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403f87
sub eax, edi
mov dword [esp + 0xc], eax
pop edi
je 0x403fb9
xor eax, eax
test esi, esi
jle 0x403fa9
lea ecx, [ecx]
xor byte [eax + ecx], 0x11
inc eax
cmp eax, esi
jl 0x403fa0
push ecx
call fcn.00425b20
add esp, 4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4054bb
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x426a11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esi], 0x427858
mov byte [esi + 4], bl
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00404170
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x405c90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
push ebp
push esi
push edi
xor ebp, ebp
push ebp
xor eax, eax
mov dword [esp + 0x1c], ebp
mov ecx, 0x49
lea edi, [esp + 0x20]
push 2
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x405cd3
pop edi
pop esi
or eax, eax
pop ebp
add esp, 0x234
ret
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405dd7
push ebx
mov ebx, dword [esp + 0x248]
jmp 0x405d00
xor ebp, ebp
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
push ecx
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x148]
push 0x4274b0
push eax
call fcn.00409160
add esp, 0xc
mov esi, ebx
lea eax, [esp + 0x144]
lea ecx, [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405d64
test cl, cl
je 0x405d60
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405d64
add eax, 2
add esi, 2
test cl, cl
jne 0x405d40
xor eax, eax
jmp 0x405d69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405d71
inc dword [esp + 0x10]
mov edi, str.Game.exe
lea esi, [esp + 0x144]
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x405d90
mov dword [esp + 0x10], 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405cf8
cmp dword [esp + 0x10], 2
mov esi, dword [esp + 0x18]
pop ebx
jl 0x405dc2
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x234
ret
push esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x234
ret
Function at 0x406aa0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x320
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00405780
mov eax, dword [0x48ee7c]
mov ecx, dword [0x42d190]
mov dword [esp + 0x10], eax
mov eax, 0x10
cmp ecx, eax
mov ecx, dword [0x42d17c]
jae 0x406ada
mov ecx, 0x42d17c
cmp dword [0x42d174], eax
mov eax, dword [0x42d160]
jae 0x406aec
mov eax, 0x42d160
mov esi, dword [ebp + 8]
push esi
push ecx
push eax
lea ecx, [esp + 0x134]
push str._s__s__s
push ecx
call fcn.00409160
mov byte [esp + 0x3c], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
add esp, 0x14
lea edx, [esp + 0x228]
stosw word es:[edi], ax
push edx
push 0x100
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea eax, [esp + 0x2c]
push str.._s
push eax
call fcn.00409160
add esp, 0xc
push 0x1fb
push 0x233
push 0x1f5
push 0x1f
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x48ee7c]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x134]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x128]
push ecx
mov esi, eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
lea ecx, [esp + 0xc]
call fcn.004056b0
xor eax, eax
test esi, esi
pop edi
setge al
pop esi
mov esp, ebp
pop ebp
ret 8