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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x5009e4
xor eax, eax
jmp 0x5009ff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052c46e
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x507b31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x507b55
cmp dword [edi + 0x54], 0
jne 0x507b55
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00512fe3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00507af2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50d650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x50d697
call fcn.00512fe3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x50d697
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x50d6b3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0050d1c8
mov esi, eax
test edi, edi
je 0x50d6b1
test ebx, ebx
je 0x50d6b1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x50e4ff
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57232d
call fcn.0052fb9e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x50e524
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x50e56a
lea ecx, [ebp - 0x10]
call fcn.00402510
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050dd6a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040d5b0
mov eax, esi
call fcn.0052fc76
ret 8
Function at 0x511c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x511c68
call fcn.00512fe3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x511c68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x511cab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x511c94
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x511c94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x511ca8
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x525f29
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xfc6800]
jne 0x525f33
repz ret
jmp fcn.00532c6c

Function at 0x541a74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x541aa5
call fcn.0052c874
mov dword [eax], esi
call fcn.0052c861
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0052680e
add esp, 0x14
push 0x16
pop eax
jmp 0x541afa
test dword [ebp + 0xc], 0xfffffff9
jne 0x541a81
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x541ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052c887
pop ecx
call fcn.0052c861
mov eax, dword [eax]
jmp 0x541afa
test al, 0x10
jne 0x541af8
test al, 1
je 0x541af8
test byte [ebp + 0xc], 2
je 0x541af8
call fcn.0052c874
mov dword [eax], 5
call fcn.0052c861
mov dword [eax], 0xd
jmp 0x541ac9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x546470
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.005318d5
and dword [ebp - 4], 0
cmp dword [0x1026c64], 0
mov ebx, eax
jne 0x546521
push 0xf9f1f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5465d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf9f1e8
push edi
call esi
test eax, eax
je 0x5465d2
push eax
call fcn.00531863
mov dword [esp], 0xf9f1d8
push edi
mov dword [0x1026c64], eax
call esi
push eax
call fcn.00531863
mov dword [esp], 0xf9f1c4
push edi
mov dword [0x1026c68], eax
call esi
push eax
call fcn.00531863
mov dword [esp], 0xf9f1a8
push edi
mov dword [0x1026c6c], eax
call esi
push eax
call fcn.00531863
pop ecx
mov dword [0x1026c74], eax
test eax, eax
je 0x546521
push 0xf9f190
push edi
call esi
push eax
call fcn.00531863
pop ecx
mov dword [0x1026c70], eax
mov eax, dword [0x1026c70]
cmp eax, ebx
je 0x546579
cmp dword [0x1026c74], ebx
je 0x546579
push eax
call fcn.005318de
push dword [0x1026c74]
mov esi, eax
call fcn.005318de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x546579
test edi, edi
je 0x546579
call esi
test eax, eax
je 0x546570
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x546570
test byte [ebp - 0xc], 1
jne 0x546579
or dword [ebp + 0x10], 0x200000
jmp 0x5465b2
mov eax, dword [0x1026c68]
cmp eax, ebx
je 0x5465b2
push eax
call fcn.005318de
pop ecx
test eax, eax
je 0x5465b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5465b2
mov eax, dword [0x1026c6c]
cmp eax, ebx
je 0x5465b2
push eax
call fcn.005318de
pop ecx
test eax, eax
je 0x5465b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1026c64]
call fcn.005318de
pop ecx
test eax, eax
je 0x5465d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5465d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x555160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x55530a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x5551b8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x5551cb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x5551df
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x555226.3
jmp 0x5551f0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x5551fc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x555201
mov esi, 1
inc eax
cmp eax, edi
jl 0x5551f0
cmp si, cx
je case.0x555226.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x555226.3
movzx eax, byte [eax + 0x555324]
jmp dword [eax*4 + 0x555310]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x555226.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x555240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x555226.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x555280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x555226.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x5552a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x555226.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x5552d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x55b3d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0xfc6800]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x55b45a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x55b406
test byte [esi + 0x230], 1
jne 0x55b42e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x55b42e
push 0xfa3a30
push esi
call fcn.0054e9d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00525f29
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push 0xfa1cb8
push esi
mov byte [esp + 0x18], dl
call fcn.0055a5b0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00525f29
add esp, 0xc
ret
test al, 2
je 0x55b4ee
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.005595c0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.005595c0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.005595c0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x55b4c8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x55b4c8
push 0xfa39f0
push esi
call fcn.0054e9d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00525f29
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push 0xfa1cb8
push esi
call fcn.0055a5b0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00525f29
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x55b522
push 0xfa39b0
push esi
call fcn.0054e9d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00525f29
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.005595c0
push 2
lea ecx, [esp + 0x14]
push ecx
push 0xfa1cb8
push esi
call fcn.0055a5b0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.00525f29
add esp, 0xc
ret
Function at 0x55eea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push ebp
push esi
mov ebp, dword [edi + 0x34]
sub ebp, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x55ef1e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00526850
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x55eef1
sub eax, ebx
jmp 0x55eef3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x55eee2
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x55ef12
sub eax, ebx
jmp 0x55ef14
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x55ef03
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x55ef79
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, ebp
add edx, dword [edi + 0x30]
push edx
call fcn.0055eba0
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x55ef65
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x55ef79
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x55eea6
pop esi
pop ebp
pop ebx
ret
Function at 0x5603d0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5603ea
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x5604fa
push ebp
jmp 0x560400
mov eax, ebx
cmp ebx, 0x15b0
jb 0x56040f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5604bb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x560430
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x560430
test eax, eax
je 0x5604cd
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x5604c0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x560400
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
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
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401289
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401307
push str.CreateEventA
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40652c], eax
push str.ResetEvent
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406528], eax
push str.WaitForSingleObject
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406524], eax
push str.CreateThread
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406520], eax
push str.VirtualAlloc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40651c], eax
push str.Ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4013ab
push str.WSAStartup
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406514], eax
push str.WSACleanup
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406510], eax
push str.socket
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40650c], eax
push str.closesocket
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406508], eax
push str.connect
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406504], eax
push str.recv
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406500], eax
push str.gethostbyname
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x406518], eax
push str.msvcrt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4013d3
push str.memcpy
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4064fc], eax
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4013fb
push str.send
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4064f8], eax
mov esp, ebp
pop ebp
ret
Function at 0x401cec
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
push str._02d:_02d:_02d
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov byte [ebp - 0x2c], 0x33
mov byte [ebp - 0x2b], 0x32
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x28], 0x33
mov byte [ebp - 0x27], 0x32
mov byte [ebp - 0x26], 0
push 3
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x138580
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x3c], 0
je 0x401da3
mov ecx, dword [ebp - 0x3c]
call fcn.00401439
mov dword [ebp - 0x40], eax
jmp 0x401daa
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
call fcn.00401512
test eax, eax
je 0x401df3
push 0
push 9
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 3
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x9c2d0], 0
jne 0x401e09
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401df3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x186a0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4029df
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403b30
push 0x402b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x406620], 0xffffffff
or dword [0x406624], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x406618]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x406614]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40661c], eax
call fcn.00402b17
cmp dword [0x4064f0], 0
jne 0x402a62
push 0x402b14
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402b02
push 0x405020
push 0x40501c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x406610]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40660c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x405018
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401cec
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret