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

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x5c], eax
cmp eax, 1
jne 0x401d62
cmp dword [esi + 0x11c], 0xffffffff
jne 0x401d62
push 0
push 0
push esi
push 0x401c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x11c], eax
pop esi
ret 4

Function at 0x401d70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x8c], eax
cmp eax, 1
jne 0x401da5
cmp dword [esi + 0x120], 0xffffffff
jne 0x401da5
push 0
push 0
push esi
push 0x401cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x120], eax
pop esi
ret 4

Function at 0x401db0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0xbc], eax
cmp eax, 1
jne 0x401de5
cmp dword [esi + 0x124], 0xffffffff
jne 0x401de5
push 0
push 0
push esi
push 0x401cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x124], eax
pop esi
ret 4

Function at 0x401df0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0xec], eax
cmp eax, 1
jne 0x401e25
cmp dword [esi + 0x128], 0xffffffff
jne 0x401e25
push 0
push 0
push esi
push 0x401cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x128], eax
pop esi
ret 4

Function at 0x401e30
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x130], eax
cmp eax, 1
jne 0x401e6f
cmp dword [esi + 0x1c8], 0xffffffff
jne 0x401e65
push 0
push 0
push esi
push 0x401d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1c4], 1
pop esi
ret 4
Function at 0x401e80
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x2f8]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esi + 0x2e0], edi
mov dword [esi + 0x2e4], edi
mov ecx, dword [eax + 0x14]
mov ebp, dword [ecx]
mov ebx, dword [eax]
push edx
mov ecx, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
call fcn.004015b0
cmp dword [esi + 0x2e0], edi
je 0x401f00
mov edx, dword [esi + 0x2f8]
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00411e90
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x10], edi
je 0x401fc4
mov dword [esi + 0x2e0], edi
mov ebx, ecx
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 0x2f8]
mov edi, dword [eax + 0x14]
mov eax, dword [eax]
test ebx, ebx
je 0x401f13
cmp ebx, eax
je 0x401f18
call fcn.00418b72
cmp ebp, edi
je 0x401fc4
cmp dword [esi + 0x2d0], 0
je 0x401fc4
test ebx, ebx
jne 0x401fb9
call fcn.00418b72
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x401f46
call fcn.00418b72
mov edi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004019a0
mov ebp, eax
test ebp, ebp
jne 0x401f83
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [edi]
push ecx
push edx
push eax
lea ebx, [esi + 0x1cc]
push str.Kjzcz_Run:__d__Code:__d__s_n
push ebx
call fcn.0041861e
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x2e4]
cmp ecx, dword [edi]
je 0x401fc4
cmp ebp, 0xff
je 0x401fc4
test ebx, ebx
jne 0x401fc0
call fcn.00418b72
xor eax, eax
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 0x14]
jne 0x401fae
call fcn.00418b72
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x401efc
mov eax, dword [ebx]
jmp 0x401f3c
mov eax, dword [ebx]
jmp 0x401fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x401fd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax + 0x14]
mov ebp, dword [eax]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 0x14], edi
lea ebx, [ebx]
mov eax, dword [ebx + 0x2f8]
mov esi, dword [eax + 0x14]
mov eax, dword [eax]
test ebp, ebp
je 0x402003
cmp ebp, eax
je 0x402008
call fcn.00418b72
cmp edi, esi
je 0x4020a2
cmp dword [ebx + 0x2d0], 0
je 0x4020a2
test ebp, ebp
jne 0x40206f
call fcn.00418b72
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x402032
call fcn.00418b72
mov esi, dword [edi + 8]
push esi
mov ecx, ebx
call fcn.004019a0
test eax, eax
jne 0x402074
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov ecx, dword [esi]
push edx
push eax
push ecx
lea edi, [ebx + 0x1cc]
push str.Kjzcz_Run:__d__Code:__d__s_n
push edi
call fcn.0041861e
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x14]
jmp 0x40207b
mov eax, dword [ebp]
jmp 0x402028
cmp eax, 0xff
je 0x4020a2
test ebp, ebp
jne 0x40209d
call fcn.00418b72
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x402090
call fcn.00418b72
mov edx, dword [edi]
mov dword [esp + 0x14], edx
mov edi, edx
jmp 0x401ff0
mov eax, dword [ebp]
jmp 0x402086
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4020b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 0
push 0x400
push 0x400
push 0
lea eax, [esp + 0x18]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x402154
jmp 0x4020f0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x5f4
je 0x402154
lea eax, [ecx - 0x459]
mov dword [esi + 0x2d0], 1
cmp eax, 0x10
ja case.default.0x402118
movzx edx, byte [eax + 0x402170]
jmp dword [edx*4 + 0x402168]
mov ecx, esi
call fcn.00401fd0
jmp case.default.0x402118
push ecx
mov ecx, esi
call fcn.00401e80
cmp dword [esi + 0x2d8], 0
mov dword [esi + 0x2d0], 0
jne 0x402154
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
jne 0x4020f0
push str.End_Kjzcz_Thread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4021b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
push ebx
push ebp
push eax
mov esi, ecx
call fcn.00411160
cmp dword [esi + 0x2dc], 0xffffffff
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x2f0], ebp
mov dword [esi + 0x2fc], edx
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x300], edi
jne 0x40221d
lea eax, [esi + 0x2d4]
push eax
push 0
push esi
push 0x402190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2dc], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x402aa0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push esi
push edi
push 0
push 0x2e
push 0x42c400
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x402ace
push esi
push 0x4264a4
push 0x42c400
call fcn.0041861e
add esp, 0xc
mov eax, esi
mov ecx, esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402ad2
mov edi, 0x42c400
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402ae1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x42c400
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x402b16
push 0
push 0x42c400
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
ret

Function at 0x402b20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
push 0x42c400
lea eax, [esp + 8]
push 0x4264a8
push eax
call fcn.0041861e
add esp, 0x10
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402b6f
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041869b
add esp, 0x108
ret
Function at 0x4033f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x108
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
mov ecx, dword [esi + 0x14]
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x42c5e4]
mov ebp, eax
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x14]
lea edi, [esi + 0x1c]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test al, 1
je 0x40345e
push 0xc8c8c8
jmp 0x403483
test al, 0x10
je 0x403469
push 0x96fa96
jmp 0x403483
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40347e
push 0x323232
jmp 0x403483
push 0xc8c800
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x18]
mov ebx, eax
push ebx
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x18]
push 0x25
push edi
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041869b
add esp, 0x108
ret
Function at 0x403530
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x425a3e
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b160]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x13c]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, ebp
je 0x4036ae
mov esi, 1
add dword [esp + 0x18], esi
push edi
call fcn.004034d0
add esp, 4
test eax, eax
jne 0x403697
push 0x104
xor esi, esi
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00418570
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x24]
push eax
push str.QQSwordWinClass
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40369b
push 0x2c
call fcn.00418c04
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x134], esi
cmp eax, esi
je 0x40361b
push 3
mov ecx, eax
call fcn.00402450
mov esi, eax
mov eax, dword [0x42c638]
mov ecx, dword [0x42c634]
mov edx, dword [0x42c630]
mov dword [esi + 0x28], eax
push esi
lea eax, [esp + 0x28]
push eax
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x18]
push edi
mov dword [esp + 0x140], 0xffffffff
mov dword [esi + 0x20], edx
call fcn.004022b0
mov ecx, dword [0x42c634]
mov edx, dword [ecx + 0x54]
push 0x42c594
push 0x42c62c
push 0x42c400
push edx
mov ecx, esi
call fcn.00402600
mov eax, dword [0x42c5ec]
push 0x42652d
push 0
push 0x181
push eax
call ebx
mov ecx, dword [0x42c5ec]
push esi
push 0
push 0x19a
push ecx
call ebx
inc ebp
jmp 0x40369b
add dword [esp + 0x14], esi
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x40359f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
add eax, ebp
push eax
push edx
lea eax, [esp + 0x30]
push 0x4264f8
push eax
call fcn.0041861e
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x42c5ec]
push 0
push 0
push 0x18b
push edx
mov dword [0x42b008], 0xffffffff
call ebx
mov ebp, eax
xor edi, edi
test ebp, ebp
jle 0x40372b
mov eax, dword [0x42c5ec]
push 0
push edi
push 0x199
push eax
call ebx
mov esi, eax
mov ecx, dword [esi + 0x18]
call fcn.00402230
mov ecx, dword [esi + 0xc]
call fcn.00407400
mov ecx, dword [esi + 0x14]
call fcn.00407780
inc edi
cmp edi, ebp
jl 0x4036fc
mov ecx, dword [0x42c5ec]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x1c]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041869b
add esp, 0x124
ret
Function at 0x403780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x42c630]
push esi
push edi
add eax, 8
push eax
push 0x42c400
lea ecx, [esp + 0x14]
push str._szdmk_s
push ecx
mov dword [esp + 0x18], 0
xor edi, edi
call fcn.0041861e
add esp, 0x10
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403828
mov ecx, dword [0x42c630]
mov edi, ecx
call fcn.0040f4a0
mov dword [edi + 0x1624], 0
mov ecx, dword [0x42c630]
mov edi, ecx
call fcn.0040f4a0
push 0
lea eax, [esp + 0xc]
push eax
push 0xcc
add edi, 0x1624
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push edi
push ecx
mov ecx, dword [0x42c630]
push edx
call fcn.0040fbf0
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret

Function at 0x403860
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push 0x13c
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00418570
push 0x42c400
lea ecx, [esp + 0x154]
push str._szdmk.
push ecx
call fcn.0041861e
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403902
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
cmp byte [esp + 0x34], 0x2e
je 0x4038ee
test byte [esp + 8], 0x10
jne 0x4038ee
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [0x42c630]
call fcn.0040fc50
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
jne 0x4038d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [0x42c63c]
push 0x42c400
call fcn.0040dcb0
mov ecx, dword [0x42c640]
call fcn.0040ba50
mov ecx, dword [esp + 0x248]
pop esi
xor ecx, esp
call fcn.0041869b
add esp, 0x248
ret
Function at 0x403940
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x42c630]
push ebx
push esi
push edi
mov edi, dword [esp + 0x11c]
add eax, 8
push eax
push 0x42c400
lea ecx, [esp + 0x18]
push str._szdmk_s
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0041861e
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4039ee
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x4039e3
push 0xcc
call fcn.00418c04
add esp, 4
test eax, eax
je 0x4039cb
mov ecx, eax
call fcn.00402400
jmp 0x4039cd
xor eax, eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xcc
push eax
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x403a2e
push 0
push 0x42649c
push 0x426558
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x120]
mov ecx, dword [0x42c630]
push edx
push 0
call fcn.0040fb90
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret
mov ecx, dword [0x42c630]
push ebx
mov esi, ecx
call fcn.0040f7a0
mov eax, dword [esp + 0x120]
lea edi, [esi + 0x1624]
mov ecx, 0x33
mov esi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x42c630]
push 1
call fcn.0040fb90
push ebx
call fcn.00418b82
mov ecx, dword [esp + 0x118]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x10c
ret

Function at 0x404070
Capabilities:
Terminate process

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4040b3
mov edx, dword [esp]
push esi
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x4040ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x4044a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor ebx, ebx
push str.Wow64DisableWow64FsRedirection
push esi
mov dword [0x42c484], ebx
mov dword [0x42c478], ebx
mov dword [0x42c480], ebx
call edi
push str.Wow64RevertWow64FsRedirection
push esi
mov dword [0x42c484], eax
call edi
push str.IsWow64Process
push esi
mov dword [0x42c478], eax
call edi
mov dword [0x42c480], eax
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdiplusStartup
lea edx, [esp + 0x20]
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
jmp 0x404540
mov cl, byte [eax + 0x42c400]
mov byte [esp + eax + 0x1b0], cl
inc eax
cmp cl, bl
jne 0x404540
lea eax, [esp + 0x1b0]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404560
mov ecx, dword [str._smp.db]
mov edx, dword [0x426570]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 4
push ebx
mov dword [eax], ecx
push 3
mov dword [eax + 4], edx
push 0xc0000000
lea eax, [esp + 0x1c8]
push eax
call esi
mov dword [0x42c47c], eax
cmp eax, 0xffffffff
jne 0x4045bf
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push str.smp.db
call esi
mov dword [0x42c47c], eax
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x2ac
ret

Function at 0x404690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0x44
call fcn.00418570
add esp, 0xc
xor ecx, ecx
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x404717
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4046fb
push eax
call edi
mov eax, dword [esp + 8]
mov dword [esp + 0xc], 0xffffffff
cmp eax, 0xffffffff
je 0x404727
push eax
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x54
ret
mov edi, dword [esp + 0x68]
test edi, edi
je 0x404729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x404d70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x42c47c]
push esi
push edi
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x42c47c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [0x42c47c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x10]
mov dword [esp + 8], eax
mov dword [edi], eax
inc eax
push eax
call fcn.0041842a
add esp, 4
mov esi, eax
mov eax, dword [esp + 8]
push 0
mov byte [eax + esi], 0
mov edx, dword [esp + 0xc]
mov eax, dword [0x42c47c]
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], 0
jne 0x404e17
test esi, esi
je 0x404dec
push esi
call fcn.00418bde
add esp, 4
push 0x1f4
mov dword [edi], 0x1f4
call fcn.0041842a
mov ecx, dword [edi]
push ecx
mov esi, eax
push 0
push esi
call fcn.00418570
push str.Run_Code_Error
push esi
call fcn.0041861e
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x405660
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x38
cmp eax, 0x3f5
jne 0x40567d
mov eax, dword [esp + 0x3c]
push eax
call fcn.00402e50
add esp, 4
jmp 0x40568e
cmp eax, 0x7ef
jne 0x40568e
mov ecx, 0x42c650
call fcn.00414bf0
push esi
xor esi, esi
cmp dword [0x42b010], esi
je 0x405723
push 0x104
push esi
push 0x42c490
mov dword [esp + 0x50], 0x104
call fcn.00418570
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push 0x42c490
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [esp + 0x44]
push 0x42c490
lea eax, [esp + 8]
push eax
mov ecx, 0x42c650
mov byte [esp + 0xc], 0x1a
mov dword [esp + 0x11], esi
mov dword [esp + 0x3d], esi
mov dword [esp + 0x39], esi
mov dword [esp + 0x35], esi
mov dword [esp + 0x31], esi
mov dword [esp + 0x2d], esi
mov dword [esp + 0x29], esi
mov dword [esp + 0x25], esi
mov dword [esp + 0x1d], esi
mov dword [esp + 0x19], esi
mov dword [esp + 0x15], esi
mov dword [esp + 0x21], 0x3ad7f
mov dword [esp + 0xd], edx
call fcn.00414ce0
mov dword [0x42b010], esi
pop esi
add esp, 0x38
ret
Function at 0x405770
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x154]
push edi
push 0x103
lea eax, [esp + 0x51]
push ebx
push eax
mov byte [esp + 0x20], 1
mov dword [esp + 0x25], ebx
mov dword [esp + 0x4d], ebx
mov dword [esp + 0x49], ebx
mov dword [esp + 0x45], ebx
mov dword [esp + 0x41], ebx
mov dword [esp + 0x3d], ebx
mov dword [esp + 0x39], ebx
mov dword [esp + 0x35], ebx
mov dword [esp + 0x31], ebx
mov dword [esp + 0x2d], ebx
mov dword [esp + 0x29], ebx
mov dword [esp + 0x21], ebx
mov dword [esp + 0x51], 0xf
mov byte [esp + 0x58], bl
call fcn.00418570
add esp, 0xc
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40584c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4057f7
sub eax, edx
cmp eax, 5
jbe 0x4058d9
mov al, 0x77
cmp byte [esi], al
jne 0x40583d
cmp byte [esi + 1], al
jne 0x40583d
cmp byte [esi + 2], al
jne 0x40583d
cmp byte [esi + 3], 0x2e
jne 0x40583d
push ebx
push ebx
push esi
push str.IExplore.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x29], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x19], eax
jmp 0x4058d9
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
cmp dword [0x42c480], ebx
je 0x40587f
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x42c480]
cmp dword [esp + 0x10], ebx
je 0x40587f
lea edx, [esp + 0xc]
push edx
call dword [0x42c484]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405884
sub eax, edx
add eax, esi
cmp byte [eax], 0x5c
je 0x4058a5
mov ecx, edi
dec eax
inc edi
cmp ecx, 0x80
jg 0x4058a5
cmp byte [eax], 0x5c
jne 0x405894
sub eax, esi
push eax
lea edx, [esp + 0x50]
push esi
push edx
call fcn.004186b0
lea eax, [esp + 0x25]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
call fcn.00404690
mov dword [esp + 0x41], eax
mov eax, dword [esp + 0x24]
add esp, 0x18
cmp eax, ebx
je 0x4058d9
push eax
call dword [0x42c478]
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x42c650
call fcn.00414ce0
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x148
ret