joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c31fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4c3214
add esp, 0xfffffff0
call fcn.00405430
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4c332e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.004043ac
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4c3318
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004bebac
xor eax, eax
push ebp
push 0x4c3305
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004bebac
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040732c
jmp 0x4c32d6
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407658
mov eax, dword [ebx + 4]
call fcn.00406dc4
dec eax
jle 0x4c32ea
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4c32c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c330c
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3335
lea eax, [ebp - 4]
call fcn.00406968
ret
Function at 0x466aa6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x466ab5
pop dword [ebp - 0x44]
mov eax, 0x95f2e231
add eax, 0x6a538884
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xd0db0956
sub dword [ebp - 0x54], 0x8288c40b
mov dword [ebp - 0x50], 0xe5191b0
add dword [ebp - 0x50], 0x23e1ba95
mov dword [ebp - 0x4c], 0x37bab21c
add dword [ebp - 0x4c], 0x14919212
mov dword [ebp - 0x48], 0x7dd1412f
add dword [ebp - 0x48], 0x822ebed1
lea eax, [ebp - 0x54]
push eax
mov eax, 0x641712da
sub eax, 0x63cd8286
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x6ec2bac0
sub dword [ebp - 0x54], 0xfa50516a
mov dword [ebp - 0x50], 0x851cdaff
sub dword [ebp - 0x50], 0x43b0798a
mov dword [ebp - 0x4c], 0xccd227c3
sub dword [ebp - 0x4c], 0x6962bb57
mov dword [ebp - 0x48], 0x89774a9e
sub dword [ebp - 0x48], 0x89774a9e
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x848cefe
add eax, 0xf800c126
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x7214b
push 0
call eax
mov ecx, 0x542f6e9
sub ecx, 0x5429d02
xor edi, edi
add edi, eax
mov edx, 0x4c5e00
add edx, dword [ebp - 0x44]
mov esi, 0xfb2e4de0
add esi, 0xe1c1db9f
add dword [ebp - 0x30], eax
mov ebx, dword [edx]
sub dword [ebp - 0x20], edi
xor ebx, esi
add dword [ebp - 0x30], 0x55c0a8b3
mov dword [edi], ebx
xor dword [ebp - 0x18], 0xe8a2c0ab
add edi, 4
add edx, 4
loop 0x466bd3
add eax, 0x15a6f
xor ebx, ebx
add ebx, eax
add eax, 0x25cd2712
add eax, 0xda32d8f3
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4a2c25
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4b1800
call fcn.004a6f80
call fcn.004a6c51
movzx esi, ax
push 2
call fcn.004a6a51
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.comdlg32.dll_GetSaveFileNameW], ax
je 0x4a2adc
xor ebx, ebx
jmp 0x4a2b0f
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.comdlg32.dll_GetSaveFileNameW], 0x4550
jne 0x4a2ad8
mov ecx, 0x10b
cmp word [eax + sym.imp.ole32.dll_OleUninitialize], cx
jne 0x4a2ad8
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4a2b0f
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004a6473
or eax, eax
jne 0x4a2b23
push 0x1c
call fcn.004a2bfe
pop ecx
call fcn.004a5ed6
or eax, eax
jne 0x4a2b34
push 0x10
call fcn.004a2bfe
pop ecx
call fcn.004a6b38
and dword [ebp - 4], 0
call fcn.004a6488
or eax, eax
jns 0x4a2b4e
push 0x1b
call fcn.004a2bfe
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x5c1d30], eax
call fcn.004a6b78
mov dword [0x5bc4c8], eax
call fcn.004a6736
or eax, eax
jns 0x4a2b74
push 8
call fcn.004a5fb1
pop ecx
call fcn.004a696f
or eax, eax
jns 0x4a2b85
push 9
call fcn.004a5fb1
pop ecx
push 1
call fcn.004a5feb
pop ecx
or eax, eax
je 0x4a2b98
push eax
call fcn.004a5fb1
pop ecx
call fcn.004a6f28
push esi
push eax
push 0
push sym.imp.comdlg32.dll_GetSaveFileNameW
call main
push eax
pop esi
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x4a2bba
push esi
call fcn.004a6247
call fcn.004a5fdc
jmp 0x4a2bef
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.004a6fc5
ret
call fcn.004a6a9e
jmp 0x4a2aae
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x401be5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x104]
push 0x104
xor edi, edi
push eax
push edi
push str.Path
push str.Redirect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x104]
test ecx, ecx
je 0x401ca2
mov cl, byte [ebp - 0x104]
test cl, cl
je 0x401ca2
cmp cl, 0x20
je 0x401c51
cmp cl, 9
jne 0x401c57
mov cl, byte [eax + 1]
inc eax
jmp 0x401c43
lea eax, [ebp - 0x104]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x401c8c
cmp byte [ebp - 0x104], 0x5c
je 0x401c8c
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
mov ecx, ebx
push dword [ebp + 0xc]
push eax
push esi
call fcn.00401e7a
jmp 0x401ccc
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
mov ecx, ebx
push dword [ebp + 0xc]
push eax
call fcn.00401be5
jmp 0x401ccc
cmp dword [ebp + 0xc], edi
je 0x401ccc
cmp dword [ebp + 0x10], edi
jle 0x401ccc
cmp esi, edi
je 0x401ccc
push esi
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x10]
pop ecx
jae 0x401ccc
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x40401c]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40240d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4024b9
mov esi, 0x400
lea ecx, [ebp - 0x400]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40246e
lea eax, [ebp - 0x400]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x40246e
mov byte [eax + 1], bl
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x4024b9
push esi
lea eax, [ebp - 0x400]
push str.UpdateUpdate.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0xc
test eax, eax
je 0x4024b9
push 1
push ebx
lea eax, [ebp - 0x400]
push str._CreateResourceOnly
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
pop eax
jmp 0x4024bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5d8ab3
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x5d87dc
inc edx
mov edx, 0xbd323588
call fcn.005d8b01
or edx, edx
sub edx, eax
add eax, 0x258e2d40
xor dword [ebx], ecx
or edx, edx
sub eax, edx
mov edx, 0x9ae88738
add ebx, 2
dec edx
mov edx, 0x933b5dd9
cmp ebx, edi
jl fcn.005d8ab3
add eax, 0x3a86d09b
sub edx, 1
ret
Function at 0x401140
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
test bl, 1
je 0x401153
mov ecx, 0x80
mov eax, ebx
shr eax, 1
test al, 1
je 0x40115e
or ecx, 0x40
shr eax, 1
test al, 1
je 0x401167
or ecx, 0x20
shr eax, 1
test al, 1
je 0x401170
or ecx, 0x10
shr eax, 1
test al, 1
je 0x401179
or ecx, 8
shr eax, 1
test al, 1
je 0x401182
or ecx, 4
shr eax, 1
test al, 1
je 0x40118b
or ecx, 2
test al, 2
je 0x401192
or ecx, 1
shl ecx, 0x18
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov dword [esi + ebx*4], ecx
mov eax, ecx
xor edx, edx
mov ecx, 0x1f
lea ecx, [ecx]
test al, 1
je 0x40125d
mov edi, 1
shl edi, cl
or edx, edi
shr eax, 1
dec ecx
cmp ecx, 0xffffffff
jg 0x401250
mov dword [esi + ebx*4], edx
inc ebx
cmp ebx, 0xff
jle 0x401147
pop edi
pop esi
pop ebx
ret

Function at 0x401280
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov edx, dword [edx]
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
je 0x4012af
push ebx
push edi
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ecx + edi*4]
shr eax, 8
xor eax, ebx
inc edx
dec esi
jne 0x401294
pop edi
pop ebx
not eax
pop esi
ret 8
Function at 0x401480
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4354a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push ebx
push ebp
push edi
push 0
push 0x8000000
push 3
push 0
push 3
push SysReAllocString
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
jne 0x4014ed
push 0
push 0x437690
push str.Failed_to_open_the_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 0x20
lea ecx, [esp + 0x2c]
call fcn.004013c0
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x401532
push esi
lea ecx, [esp + 0x28]
call fcn.00401320
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x401555
xor eax, eax
jmp 0x40156f
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401560
sub eax, edi
js 0x401618
cmp eax, dword [edx - 8]
jg 0x401618
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x24]
mov byte [eax + edx], 0
cmp esi, dword [esp + 0x10]
je 0x4015d3
push 0
push 0x437690
push str.Failed_to_read_the_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4015bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00401280
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x80070057
call fcn.00401010
int3

Function at 0x402580
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
neg eax
push 4
sbb eax, eax
lea edx, [esp + 8]
push edx
add eax, 0x1006
push eax
mov eax, dword [ecx + 0x91c]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4025c4
push 0
push 0x437948
push str.setsockopt__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x4025d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x928]
test eax, eax
jne 0x402685
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
mov byte [esp + 0x13], 0
xor edi, edi
mov dword [esi + 0x92c], 0xffffffff
mov bl, 0xa
mov edi, edi
cmp edi, 0x400
jge 0x40266d
mov ecx, dword [esi + 0x91c]
push 0
push 1
lea eax, [esp + 0x1b]
push eax
push ecx
call ebp
mov dl, byte [esp + 0x13]
mov byte [esi + edi + 0x14], dl
inc edi
cmp edi, 4
jl 0x402600
cmp byte [esi + 0x14], 0x48
je 0x402640
cmp byte [esi + 0x15], 0x54
je 0x402640
cmp byte [esi + 0x16], 0x54
je 0x402640
cmp byte [esi + 0x17], 0x50
jne 0x40265c
cmp byte [edi + esi + 0x10], 0xd
jne 0x402600
cmp byte [edi + esi + 0x11], bl
jne 0x402600
cmp byte [edi + esi + 0x12], 0xd
jne 0x402600
cmp byte [edi + esi + 0x13], bl
jne 0x402600
jmp 0x40266d
mov eax, dword [esp + 0x18]
mov ecx, esi
mov dword [eax], 0xffffffff
call fcn.00402530
mov dword [esi + 0x92c], edi
mov byte [edi + esi + 0x14], 0
pop edi
pop ebp
mov dword [esi + 0x928], 1
pop ebx
mov ecx, dword [esi + 0x92c]
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x14]
mov dword [edx], ecx
pop esi
pop ecx
ret 4

Function at 0x402740
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4472e0]
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
push esi
mov dword [esp + 0x18], eax
mov esi, ecx
jne 0x40276b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
call fcn.00419e6b
add esp, 0x14
ret 8
mov eax, dword [esi + 0x918]
test eax, eax
je 0x40277c
mov ecx, esi
call fcn.00402530
push edi
mov edi, dword [esp + 0x28]
push ebx
mov dword [esi + 0x814], edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esi + 0x920], eax
jne 0x4027be
push eax
push 0x437948
push str.gethostbyname__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
call fcn.00419e6b
add esp, 0x14
ret 8
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebx, dword [ecx]
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edx
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, byte [esp + 0x26]
mov word [esp + 0xe], ax
movzx eax, byte [esp + 0x27]
push eax
push ecx
movzx edx, bh
push edx
movzx eax, bl
push eax
lea ecx, [esi + 0x818]
push str._d._d._d._d
push ecx
mov dword [esp + 0x28], ebx
call fcn.0041a23c
mov eax, dword [esi + 0x91c]
add esp, 0x18
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4027aa
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop edi
mov dword [esi + 0x918], eax
pop esi
pop ebx
call fcn.00419e6b
add esp, 0x14
ret 8
Function at 0x402860
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x918]
test eax, eax
je 0x4028c4
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x40287c
lea edi, [esi + 0x414]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402899
lea eax, [esi + 0x414]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402890
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x91c]
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop edi
jne 0x4028ca
push 0
push 0x437948
push str.send__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
ret 8
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004025d0
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, 0xffffffff
setne al
pop esi
ret 8

Function at 0x4028f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x918]
test eax, eax
jne 0x402903
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x91c]
push edi
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jg 0x40292a
mov ecx, esi
call fcn.00402530
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x403470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403489
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40349d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4034be
cmp esi, eax
jae 0x403497
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4034b0
cmp esi, eax
jae 0x403497
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
call fcn.004276cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, esi
mov edx, 1
sub edx, eax
mov eax, dword [ebp - 8]
inc ecx
sub eax, ecx
or eax, edx
mov dword [esp + 0x20], ebx
jge 0x404030
push ecx
lea ecx, [esp + 0x14]
call fcn.00401320
mov ebp, dword [esp + 0x10]
cmp esi, edi
jg 0x4040a5
mov ecx, dword [esp + 0x14]
mov al, byte [esi + ecx]
cmp al, 0x26
jne 0x40409a
xor edi, edi
mov eax, dword [edi*4 + 0x4460cc]
mov edx, dword [esp + 0x30]
sub edx, eax
cmp esi, edx
jg 0x404070
mov ecx, dword [edi*4 + 0x4460b8]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esi + eax + 1]
push edx
push ecx
call fcn.0041a60d
add esp, 0xc
test eax, eax
je 0x404078
inc edi
cmp edi, 5
jl 0x404041
jmp 0x40408f
mov eax, dword [0x4460b4]
mov cl, byte [eax + edi]
mov byte [ebx + ebp], cl
mov edx, dword [edi*4 + 0x4460cc]
inc ebx
lea esi, [esi + edx + 1]
cmp edi, 5
jne 0x40409f
mov byte [ebx + ebp], 0x26
jmp 0x40409d
mov byte [ebx + ebp], al
inc ebx
inc esi
cmp esi, dword [esp + 0x30]
jle 0x404034
cmp ebx, 0xffffffff
mov eax, ebx
jne 0x4040c9
test ebp, ebp
jne 0x4040b4
xor eax, eax
jmp 0x4040d1
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4040c0
sub eax, edx
test eax, eax
jl 0x40417b
cmp eax, dword [ebp - 8]
jg 0x40417b
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
add ebp, 0xfffffff0
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x404108
cmp eax, dword [ebp]
jne 0x404108
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40413b
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x40411d
call fcn.00401080
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404164
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
push 0x80070057
call fcn.00401010
int3