joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c49
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x24
mov eax, 0x417158
call fcn.004092e2
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00404012
mov edi, 0x10000
push edi
call fcn.00406137
pop ecx
mov dword [ebp - 0x30], eax
call fcn.004011b1
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
or eax, dword [ebp - 0x1c]
jne 0x404cb6
call fcn.00404012
xor eax, eax
call fcn.00409384
ret
mov eax, dword [ebp + 0xc]
call fcn.00403a3c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x1c]
jne 0x404cfc
mov eax, dword [ebp + 0xc]
call fcn.00403a3c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
inc ebx
lea esi, [ebp - 0x30]
call fcn.00404012
mov eax, ebx
jmp 0x404cb0
mov edi, 0x10000
cmp dword [ebp - 0x1c], ebx
ja 0x404d06
cmp dword [ebp - 0x20], edi
jb 0x404d0b
mov dword [ebp - 0x10], edi
jmp 0x404d11
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
xor edi, edi
lea eax, [ebp - 0x30]
call fcn.004010fc
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404ceb
mov eax, dword [ebp + 0xc]
call fcn.00403a3c
mov esi, dword [eax]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
add esi, 8
call fcn.004010fc
mov ecx, dword [ebp - 0x14]
push eax
call dword [esi]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
sbb dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
or eax, dword [ebp - 0x1c]
jne 0x404cf7
jmp 0x404ccd
Function at 0x404d68
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x417158
call fcn.004092e2
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00404012
mov edi, 0x10000
push edi
call fcn.00406137
pop ecx
mov dword [ebp - 0x30], eax
call fcn.004011b1
push 1
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
call fcn.00403a3c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x404e0f
mov eax, dword [ebp + 0xc]
call fcn.00403a3c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
inc ebx
lea esi, [ebp - 0x30]
call fcn.00404012
mov eax, ebx
call fcn.00409384
ret
mov edi, 0x10000
cmp dword [ebp + 0x14], ebx
ja 0x404e1b
mov eax, dword [ebp + 0x10]
cmp eax, edi
jb 0x404e20
mov dword [ebp - 0x10], edi
jmp 0x404e23
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
xor edi, edi
lea eax, [ebp - 0x30]
call fcn.004010fc
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404dfa
mov eax, dword [ebp + 0xc]
call fcn.00403a3c
mov esi, dword [eax]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
add esi, 8
call fcn.004010fc
mov ecx, dword [ebp - 0x14]
push eax
call dword [esi]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10]
sbb dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
or eax, dword [ebp + 0x14]
jne 0x404e0a
jmp 0x404dd7

Function at 0x405078
Capabilities:
Hash data using sha256

Disassembly:
xor edx, edx
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x6c], edx
lea eax, [ecx + 4]
xor ecx, ecx
mov edx, dword [ecx + 0x41dbd4]
mov dword [eax], edx
add ecx, 4
add eax, 4
cmp ecx, 0x20
jb 0x405088
ret
Function at 0x405194
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
lea esi, [eax + 4]
push 8
mov dword [ebp - 0x10], esi
pop ecx
lea edi, [ebp - 0x134]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea esi, [eax + 0x2c]
mov ecx, dword [esi]
call fcn.00405037
mov dword [ebp + edi*4 - 0x114], eax
inc edi
add esi, 4
cmp edi, 0x10
jb 0x4051b6
lea esi, [ebp - 0xdc]
mov dword [ebp - 4], 0x30
mov edi, dword [esi]
push 0x11
push edi
call fcn.0040847c
push 0x13
push edi
mov dword [ebp - 8], eax
call fcn.0040847c
mov ebx, dword [esi - 0x34]
push 7
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040847c
push 0x12
push ebx
mov dword [ebp - 0x14], eax
call fcn.0040847c
shr edi, 0xa
xor edi, dword [ebp - 0xc]
shr ebx, 3
xor edi, dword [ebp - 8]
xor eax, ebx
xor eax, dword [ebp - 0x14]
add esp, 0x20
add eax, edi
add eax, dword [esi - 0x38]
add esi, 4
add eax, dword [esi - 0x18]
dec dword [ebp - 4]
mov dword [esi + 4], eax
jne 0x4051da
and dword [ebp - 4], 0
lea edi, [ebp - 0x124]
mov ebx, dword [edi]
push 6
push ebx
call fcn.0040847c
push 0xb
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040847c
push 0x19
push ebx
mov dword [ebp - 8], eax
call fcn.0040847c
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
xor eax, dword [ebp - 8]
xor esi, ecx
xor eax, dword [ebp - 0xc]
and esi, ebx
mov ebx, dword [edi - 0x10]
xor esi, ecx
add esi, eax
mov eax, dword [ebp - 4]
add esi, dword [eax + 0x41dbf8]
push 2
add esi, dword [ebp + eax - 0x114]
push ebx
add esi, dword [edi + 0xc]
call fcn.0040847c
push 0xd
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040847c
mov ebx, dword [edi - 0xc]
push 0x16
push dword [edi - 0x10]
mov dword [ebp - 8], eax
call fcn.0040847c
xor eax, dword [ebp - 8]
add dword [ebp - 4], 4
xor eax, dword [ebp - 0xc]
mov ecx, ebx
or ecx, dword [edi - 8]
and ebx, dword [edi - 8]
and ecx, dword [edi - 0x10]
add eax, esi
or ecx, ebx
add ecx, eax
mov dword [edi - 0x14], ecx
add edi, 0xfffffffc
add dword [edi], esi
add esp, 0x30
cmp dword [ebp - 4], 0x100
jb 0x405239
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ecx
pop ebx
mov edx, dword [ebp + ecx*4 - 0x234]
add dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jb 0x4052e1
leave
ret
Function at 0x4053e4
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
cmp ebp, ebx
jne 0x4053f7
xor eax, eax
jmp 0x4054c9
cmp word [ebp], bx
jne 0x405405
xor eax, eax
inc eax
jmp 0x4054c9
push ebp
call fcn.004054d7
test eax, eax
pop ecx
jne 0x4053fd
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4053fd
push esi
push edi
mov ecx, ebp
call fcn.00405a7c
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406137
mov esi, eax
lea eax, [edi + edi + 2]
push eax
push ebp
push esi
call fcn.00406610
xor eax, eax
add esp, 0x10
cmp word [esi], ax
je 0x4054b7
mov edi, esi
movzx ecx, word [edi]
cmp cx, 0x5c
mov dword [esp + 0x14], ecx
je 0x40546b
cmp cx, 0x2f
jne 0x4054aa
cmp ax, 0x3a
je 0x4054aa
test ax, ax
je 0x4054aa
and word [edi], 0
push esi
call fcn.004054d7
test eax, eax
pop ecx
jne 0x40549e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40549e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4054cc
mov ax, word [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov word [edi], ax
inc ebx
lea edi, [esi + ebx*2]
cmp word [edi], 0
movzx eax, cx
jne 0x405458
push esi
call fcn.004064e2
pop ecx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004064e2
pop ecx
xor eax, eax
jmp 0x4054c7

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4054e9
xor eax, eax
ret
shr eax, 4
and eax, 1
ret

Function at 0x4054f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4201d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [edi], 0
push ebx
push esi
lea ecx, [ebp - 0x14c]
push ecx
push eax
lea eax, [ebp - 0x4c]
call fcn.00405652
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x405528
xor eax, eax
jmp 0x405592
movzx eax, word [ebp - 0x146]
xor ecx, ecx
push 0x28
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406137
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 0x50]
push eax
movzx eax, word [ebp - 0x146]
imul eax, eax, 0x28
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx edx, word [ebp - 0x146]
xor eax, eax
test edx, edx
jle 0x405577
lea ecx, [esi + 0x10]
add eax, dword [ecx]
add ecx, 0x28
dec edx
jne 0x40556f
mov ecx, dword [ebp - 0xf8]
add eax, ecx
push esi
mov dword [edi], eax
call fcn.004064e2
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040657b
leave
ret
Function at 0x405652
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 4], edi
je 0x40574c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40
mov dword [ebp - 8], eax
jb 0x405743
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
cmp word [esi], 0x5a4d
je 0x4056f6
cmp dword [esi], 0x4550
jne 0x405743
push 0x40
push esi
push dword [ebp + 0xc]
call fcn.00406610
add esp, 0xc
cmp dword [ebp - 8], 0xf8
jb 0x405743
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0xb8
add eax, 0x40
push eax
push dword [ebp - 4]
call edi
call fcn.0040560f
jmp 0x405730
mov eax, dword [esi + 0x3c]
cmp dword [ebp - 8], eax
jb 0x405743
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x3c]
mov eax, 0xf8
add ecx, eax
cmp dword [ebp - 8], ecx
jb 0x405743
mov esi, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push dword [ebp - 4]
call edi
cmp dword [esi], 0x4550
jne 0x405743
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x54]
jb 0x405743
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x40574c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40657b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4201d0]
jne 0x406585
repz ret
jmp fcn.00409dee
Function at 0x40a640
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4201f8]
je 0x40a65b
inc edi
cmp edi, 0x17
jb 0x40a64c
cmp edi, 0x17
jae 0x40a7db
push ebp
push 3
call fcn.0040ff2a
cmp eax, 1
pop ecx
je 0x40a7a7
push 3
call fcn.0040ff2a
test eax, eax
pop ecx
jne 0x40a68f
cmp dword [0x42005c], 1
je 0x40a7a7
cmp ebx, 0xfc
je 0x40a7da
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421a48
push ebp
call fcn.00409a87
add esp, 0xc
test eax, eax
je 0x40a6c5
push esi
push esi
push esi
push esi
push esi
call fcn.004061c1
add esp, 0x14
push 0x104
mov esi, 0x421a61
push esi
push 0
mov byte [0x421b65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a709
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409a87
add esp, 0xc
test eax, eax
je 0x40a709
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004061c1
add esp, 0x14
push esi
call fcn.004064f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a74e
push esi
call fcn.004064f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x421d5c
push 0x418884
sub ecx, eax
push ecx
push eax
call fcn.0040fe77
add esp, 0x14
test eax, eax
je 0x40a74e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004061c1
add esp, 0x14
jmp 0x40a750
xor esi, esi
push 0x418880
push ebx
push ebp
call fcn.0040fe06
add esp, 0xc
test eax, eax
je 0x40a770
push esi
push esi
push esi
push esi
push esi
call fcn.004061c1
add esp, 0x14
push dword [edi*8 + 0x4201fc]
push ebx
push ebp
call fcn.0040fe06
add esp, 0xc
test eax, eax
je 0x40a792
push esi
push esi
push esi
push esi
push esi
call fcn.004061c1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040fc49
add esp, 0xc
jmp 0x40a7da
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40a7da
cmp ebp, 0xffffffff
je 0x40a7da
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4201fc]
push dword [esi]
call fcn.004064f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40fc49
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409508
xor ebx, ebx
cmp dword [0x4220c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40fd1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40fdff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40fdff
push eax
call fcn.0040949a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4220c0], eax
call esi
push eax
call fcn.0040949a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4220c4], eax
call esi
push eax
call fcn.0040949a
mov dword [0x4220c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040d2f4
test eax, eax
pop ecx
pop ecx
je 0x40fced
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004061c1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40fd1f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040949a
cmp eax, ebx
pop ecx
mov dword [0x4220d0], eax
je 0x40fd1f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040949a
pop ecx
mov dword [0x4220cc], eax
mov eax, dword [0x4220cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40fda4
cmp dword [0x4220d0], ecx
je 0x40fda4
push eax
call fcn.00409511
push dword [0x4220d0]
mov esi, eax
call fcn.00409511
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40fda4
cmp edi, ebx
je 0x40fda4
call esi
cmp eax, ebx
je 0x40fd71
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40fd71
test byte [ebp - 0x18], 1
jne 0x40fda4
lea eax, [ebp - 0x10]
push eax
call fcn.0040d32b
test eax, eax
pop ecx
je 0x40fd8c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004061c1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40fd9b
or dword [ebp + 0x10], 0x200000
jmp 0x40fddf
or dword [ebp + 0x10], 0x40000
jmp 0x40fddf
mov eax, dword [0x4220c4]
cmp eax, dword [ebp - 8]
je 0x40fddf
push eax
call fcn.00409511
cmp eax, ebx
pop ecx
je 0x40fddf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40fddf
mov eax, dword [0x4220c8]
cmp eax, dword [ebp - 8]
je 0x40fddf
push eax
call fcn.00409511
cmp eax, ebx
pop ecx
je 0x40fddf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4220c0]
call fcn.00409511
cmp eax, ebx
pop ecx
je 0x40fdff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40fe01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x101
mov byte [esi + 0x1c], 0
mov byte [esi + 0x1d], 1
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4023c8
mov byte [esi + 0x1d], 0
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x402410
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x1010
call fcn.00404cb0
mov ax, word [0x4085a4]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov word [esp + 0x20], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [ebp + 0x1d]
test al, al
jne 0x402450
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
jne 0x402472
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
mov ebx, dword [esp + 0x1024]
mov word [esp + 0x10], 2
mov cx, word [ebx + 0x100]
push ecx
call sub.WSOCK32.dll_htons
push ebx
mov word [esp + 0x16], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4024d5
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4024ba
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
lea edi, [esp + 0x14]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x402500
pop edi
mov dword [ebp], 1
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
mov ax, word [ebx + 0x202]
push eax
call sub.WSOCK32.dll_htons
lea esi, [ebx + 0x102]
mov word [ebp + 0xa], ax
push esi
call sub.WSOCK32.dll_inet_addr
lea ebx, [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x402560
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x402547
pop edi
mov dword [ebp], 8
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
mov edi, ebx
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebp + 0xa]
mov edx, dword [ebx]
lea eax, [esp + 0x20]
mov word [esp + 0x22], cx
push 9
push eax
mov ecx, ebp
mov byte [esp + 0x28], 4
mov byte [esp + 0x29], 1
mov dword [esp + 0x2c], edx
call fcn.00402ba0
cmp eax, 9
je 0x4025a2
pop edi
mov dword [ebp], 2
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
lea ecx, [esp + 0x20]
push 8
push ecx
mov ecx, ebp
call fcn.00402b40
cmp eax, 0xffffffff
jne 0x4025cb
pop edi
mov dword [ebp], 3
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
cmp byte [esp + 0x21], 0x5a
je 0x4025e8
pop edi
mov dword [ebp], 4
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1010
ret 4
pop edi
mov byte [ebp + 0x1c], 1
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1010
ret 4
Function at 0x402b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
xor ebp, ebp
mov ebx, ecx
test edi, edi
jle 0x402b86
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
push 0
push eax
mov eax, dword [ebx + 4]
lea edx, [esi + ecx]
push edx
push eax
call sub.WSOCK32.dll_recv
test eax, eax
je 0x402b8f
jle 0x402b74
add esi, eax
jmp 0x402b7d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0xa
jg 0x402b8f
cmp esi, edi
jl 0x402b52
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
Function at 0x402bd0
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x40
push esi
push edi
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov esi, dword [esp + 0x54]
mov cl, byte [eax]
mov byte [esp + 8], 0x41
shr ecx, 2
mov byte [esp + 9], 0x42
mov byte [esp + 0xa], 0x43
mov byte [esp + 0xb], 0x44
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x46
mov byte [esp + 0xe], 0x47
mov byte [esp + 0xf], 0x48
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x4a
mov byte [esp + 0x12], 0x4b
mov byte [esp + 0x13], 0x4c
mov byte [esp + 0x14], 0x4d
mov byte [esp + 0x15], 0x4e
mov byte [esp + 0x16], 0x4f
mov byte [esp + 0x17], 0x50
mov byte [esp + 0x18], 0x51
mov byte [esp + 0x19], 0x52
mov byte [esp + 0x1a], 0x53
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x55
mov byte [esp + 0x1d], 0x56
mov byte [esp + 0x1e], 0x57
mov byte [esp + 0x1f], 0x58
mov byte [esp + 0x20], 0x59
mov byte [esp + 0x21], 0x5a
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0x63
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x66
mov byte [esp + 0x28], 0x67
mov byte [esp + 0x29], 0x68
mov byte [esp + 0x2a], 0x69
mov byte [esp + 0x2b], 0x6a
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2d], 0x6c
mov byte [esp + 0x2e], 0x6d
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0x71
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x75
mov byte [esp + 0x37], 0x76
mov byte [esp + 0x38], 0x77
mov byte [esp + 0x39], 0x78
mov byte [esp + 0x3a], 0x79
mov byte [esp + 0x3b], 0x7a
mov byte [esp + 0x3c], 0x30
mov byte [esp + 0x3d], 0x31
mov byte [esp + 0x3e], 0x32
mov byte [esp + 0x3f], 0x33
mov byte [esp + 0x40], 0x34
mov byte [esp + 0x41], 0x35
mov byte [esp + 0x42], 0x36
mov byte [esp + 0x43], 0x37
mov byte [esp + 0x44], 0x38
mov byte [esp + 0x45], 0x39
mov byte [esp + 0x46], 0x2b
mov byte [esp + 0x47], 0x2f
mov dl, byte [esp + ecx + 8]
mov byte [esi], dl
mov cl, byte [eax]
xor edx, edx
and ecx, 3
mov dl, byte [eax + 1]
shl ecx, 4
shr edx, 4
lea edx, [esp + edx + 8]
mov cl, byte [edx + ecx]
mov edi, dword [esp + 0x50]
mov byte [esi + 1], cl
cmp edi, 1
jne 0x402d5b
mov al, 0x3d
pop edi
mov byte [esi + 3], al
mov byte [esi + 2], al
pop esi
add esp, 0x40
ret
mov dl, byte [eax + 1]
xor ecx, ecx
mov cl, byte [eax + 2]
and edx, 0xf
shr ecx, 6
cmp edi, 2
lea ecx, [esp + ecx + 8]
mov dl, byte [ecx + edx*4]
mov byte [esi + 2], dl
jne 0x402d82
mov byte [esi + 3], 0x3d
pop edi
pop esi
add esp, 0x40
ret
mov al, byte [eax + 2]
pop edi
and eax, 0x3f
mov cl, byte [esp + eax + 4]
mov byte [esi + 3], cl
pop esi
add esp, 0x40
ret