joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d85d
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x43311f
call fcn.0042fc6e
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x42d971
cmp byte [ebx + 0x49], 0
je 0x42d971
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x43d41c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
jne 0x42d89e
xor al, al
jmp 0x42d973
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0042c532
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x42d8ce
lea edx, [ebp - 0x2c]
mov ecx, edx
mov edi, dword [ebx + 0x44]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x4c]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x43d41c]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x42d904
sub eax, 1
je 0x42d908
dec eax
sub eax, 1
je 0x42d95f
xor bl, bl
jmp 0x42d961
mov byte [ebx + 0x49], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
cmp eax, 0x10
jae 0x42d918
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x42d941
cmp eax, 0x10
jae 0x42d927
lea ecx, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x42d900
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x42d95f
test esi, esi
jne 0x42d8c2
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409a4a
jmp 0x42d8bc
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040c0c6
mov al, bl
jmp 0x42d973
mov al, 1
call fcn.0042fc1d
ret
Function at 0x42f613
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x437358
call fcn.00430078
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x43cc88
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x42f658
cmp eax, esi
jne 0x42f64b
xor esi, esi
inc esi
mov edi, esi
jmp 0x42f65b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f62f
xor esi, esi
inc esi
cmp dword [0x43cc8c], esi
jne 0x42f66d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x42f6a7
cmp dword [0x43cc8c], ebx
jne 0x42f6a1
mov dword [0x43cc8c], esi
push 0x401f64
push 0x401f58
call fcn.0042f78c
pop ecx
pop ecx
test eax, eax
je 0x42f6a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42f77c
mov dword [0x438880], esi
cmp dword [0x43cc8c], esi
jne 0x42f6ca
push 0x401f54
push 0x401f0c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x43cc8c], 2
test edi, edi
jne 0x42f6d7
xor eax, eax
mov ecx, 0x43cc88
xchg dword [ecx], eax
cmp dword [0x43cc98], 0
je 0x42f703
push 0x43cc98
call fcn.0042fed0
pop ecx
test eax, eax
je 0x42f703
push ebx
push 2
push ebx
mov esi, dword [0x43cc98]
mov ecx, esi
call dword [0x43d41c]
call esi
push dword [0x43888c]
push dword [0x438888]
push dword [0x438884]
call fcn.00422476
add esp, 0xc
mov dword [0x43887c], eax
cmp dword [0x438894], 0
jne 0x42f761
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x438880], 0
jne 0x42f775
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x43887c]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004e0000
jmp 0x42f613

Function at 0x42fdc4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x437398
call fcn.00430078
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x42fe24
cmp eax, 0xffffffff
je 0x42fe24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x42fe1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x42fe1d
cmp edx, 0x10000000
jae 0x42fe1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x42fe1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42fe80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42febe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42feb6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42fec0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42fea6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42ff90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42ffc1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42ffc1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x42ffc1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405a09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ddac]
jne 0x405a13
repz ret
jmp fcn.00408ffc

Function at 0x40882c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402b62
and dword [ebp - 4], 0
cmp dword [0x43265c], 0
mov ebx, eax
jne 0x4088dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40898e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40898e
push eax
call fcn.00402af0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43265c], eax
call esi
push eax
call fcn.00402af0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432660], eax
call esi
push eax
call fcn.00402af0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432664], eax
call esi
push eax
call fcn.00402af0
pop ecx
mov dword [0x43266c], eax
test eax, eax
je 0x4088dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402af0
pop ecx
mov dword [0x432668], eax
mov eax, dword [0x432668]
cmp eax, ebx
je 0x408935
cmp dword [0x43266c], ebx
je 0x408935
push eax
call fcn.00402b6b
push dword [0x43266c]
mov esi, eax
call fcn.00402b6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408935
test edi, edi
je 0x408935
call esi
test eax, eax
je 0x40892c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40892c
test byte [ebp - 0xc], 1
jne 0x408935
or dword [ebp + 0x10], 0x200000
jmp 0x40896e
mov eax, dword [0x432660]
cmp eax, ebx
je 0x40896e
push eax
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40896e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40896e
mov eax, dword [0x432664]
cmp eax, ebx
je 0x40896e
push eax
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40896e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43265c]
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40898e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408990
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x406ced
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.00585000
call fcn.00406fd0
cmp dword [0x40d320], ebx
jne 0x406db9
push fcn.00406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406fbe
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret
Function at 0x401e60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ed0
xor eax, eax
jmp 0x401fb1
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401ee8
xor eax, eax
jmp 0x401fb1
push ebp
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
call fcn.004018b0
mov esp, ebp
pop ebp
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x2d68288d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x50dd0083
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
sub esp, 0x28
sub ebx, 0xffffffc0
mov dword [esp + 8], 0x17
lea eax, [esp + 0x34]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sym._fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401770
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov dword [esp + 8], 0x1c
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebp
mov ebp, edx
mov edi, ecx
call sym._VirtualQuery_12
sub esp, 0xc
or eax, eax
je 0x401866
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x4017e0
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sym._memcpy
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
sub esp, 0xffffffa4
ret
cmp eax, 0x40
je 0x4017b5
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x20]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
cmp eax, 0x40
mov dword [esp + 4], ebp
mov dword [esp], ebx
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sym._memcpy
cmp byte [esp + 0x1f], 0
je 0x4017c5
cmp byte [esp + 0x1e], 0
je 0x4017c5
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4017c5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
nop

Function at 0x401b00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
add esp, 0xffffffec
mov dword [esp], 0x405030
call sym._EnterCriticalSection_4
sub esp, 4
mov esi, dword [0x405048]
test esi, esi
je 0x401b4b
nop
mov eax, dword [esi]
mov dword [esp], eax
call sym._TlsGetValue_4
add esp, 0xfffffffc
mov ebx, eax
call sym._GetLastError_0
or eax, eax
jne 0x401b44
or ebx, ebx
je 0x401b44
mov eax, dword [esi + 4]
mov dword [esp], ebx
call eax
mov esi, dword [esi + 8]
or esi, esi
jne 0x401b20
mov dword [esp], 0x405030
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x5eb13598
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x641b352b
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
push 0x40a128
xor ebp, ebp
xor ebx, ebx
call fcn.004020a7
mov eax, dword [esp + 0x118]
add esp, 4
cmp eax, 1
mov edi, 2
jg 0x40104f
push 0x40a104
call fcn.004020a7
push 0x40a0e8
call fcn.004020a7
push edi
mov dword [0x40a03c], edi
call fcn.00401fd2
add esp, 0xc
mov esi, dword [esp + 0x118]
push 0x40a0e4
mov eax, dword [esi + 4]
push eax
call fcn.00401f92
add esp, 8
cmp eax, ebp
mov dword [0x40cf28], eax
jne 0x401092
mov ecx, dword [esi + 4]
push ecx
push 0x40a0d0
call fcn.004020a7
push edi
mov dword [0x40a03c], edi
call fcn.00401fd2
mov eax, dword [0x40cf28]
add esp, 0xc
push ebp
push ebp
push eax
call fcn.00401ee6
mov eax, dword [0x40cf28]
lea edx, [esp + 0x1c]
push 0xc8
push edx
push 9
push 0x40a0c4
push eax
call fcn.004012a0
add esp, 0x20
test eax, eax
je 0x4010e6
mov ecx, dword [esi + 4]
push ecx
push 0x40a0a4
call fcn.004020a7
mov edx, dword [0x40cf28]
push edx
call fcn.00401e90
push edi
mov dword [0x40a03c], edi
call fcn.00401fd2
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x40a094
call fcn.004020a7
lea ecx, [esp + 0x18]
push ecx
call fcn.004013a0
push eax
push 0x40a08c
call fcn.004020a7
add esp, 0x14
mov dword [0x40a030], edi
call fcn.00401450
test eax, eax
mov esi, 3
je 0x401130
push esi
mov dword [0x40a03c], esi
call fcn.00401fd2
add esp, 4
lea edx, [esp + 0x10]
push 0xda90
push edx
push ebp
call fcn.004014a0
add esp, 0xc
cmp eax, ebp
mov dword [0x40d340], eax
jge 0x40115b
push esi
mov dword [0x40a03c], esi
call fcn.00401fd2
add esp, 4
mov eax, dword [0x40cf28]
push ebp
push ebp
push eax
mov dword [0x40a030], ebp
call fcn.00401ee6
add esp, 0xc
mov esi, 4
mov eax, dword [0x40a030]
mov edi, 1
cmp eax, edi
jne 0x4011c0
mov ecx, dword [0x40d340]
push ecx
call fcn.00401580
mov edx, dword [0x40cf28]
push edx
call fcn.00401e90
mov eax, dword [0x40cf2c]
add esp, 8
cmp eax, ebp
je 0x4011b1
push eax
call fcn.00401e90
add esp, 4
push esi
mov dword [0x40a03c], esi
call fcn.00401fd2
add esp, 4
mov ecx, dword [0x40cf28]
lea eax, [esp + 0x10]
push 0xc8
push eax
push esi
push 0x40a084
push ecx
call fcn.004012a0
add esp, 0x14
test eax, eax
jne 0x4011e8
cmp ebx, 0x3c
jl 0x401225
push ebx
push 0x40a068
call fcn.004020a7
add esp, 8
cmp ebx, ebp
je 0x4011ff
call fcn.00401c90
mov edx, dword [0x40d340]
push edx
call fcn.00401580
mov eax, dword [0x40cf28]
push eax
call fcn.00401e90
push ebp
mov dword [0x40a03c], ebp
call fcn.00401fd2
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x40a0e4
push ecx
call fcn.00401f92
add esp, 8
cmp eax, ebp
mov dword [0x40cf2c], eax
jne 0x401257
lea edx, [esp + 0x10]
push edx
push 0x40a054
call fcn.004020a7
add esp, 8
jmp 0x401176
inc ebx
call fcn.00401ba0
cmp dword [0x40cf24], edi
jne 0x40127c
lea eax, [esp + 0x10]
push eax
push 0x40a040
call fcn.004020a7
add esp, 8
call fcn.00401590
mov ecx, dword [0x40cf2c]
push ecx
call fcn.00401e90
add esp, 4
mov dword [0x40cf2c], ebp
jmp 0x401176
Function at 0x401450
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1e0
lea eax, [esp + 0x50]
push esi
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov esi, eax
test esi, esi
je 0x401493
push esi
lea ecx, [esp + 8]
push 0x40a188
push ecx
call fcn.004021c5
lea edx, [esp + 0x10]
push 0x40a180
push edx
push 0x40a178
call fcn.004020a7
add esp, 0x18
mov eax, esi
pop esi
add esp, 0x1e0
ret

Function at 0x4014a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4014ca
push 0x40a1b8
call fcn.004020a7
add esp, 4
or eax, esi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
test ax, ax
je 0x401513
push eax
mov word [esp + 8], 2
mov dword [esp + 0xc], 0
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_bind
test eax, eax
je 0x401513
push 0x40a1ac
call fcn.004020a7
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 4], ecx
push edx
mov dword [esp + 0xc], ecx
mov word [esp + 8], 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004013a0
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
push eax
call sub.WSOCK32.dll_htons
lea ecx, [esp + 4]
push 0x10
push ecx
push esi
mov word [esp + 0x12], ax
call sub.WSOCK32.dll_connect
test eax, eax
jge 0x401578
push esi
call sub.WSOCK32.dll_closesocket
push 0x40a198
call fcn.004020a7
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret