joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409870
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x449763
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebp, ebp
mov dword [edi + 4], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
mov dword [esp + 0x34], ebp
fldz
lea esi, [edi + 0x48]
fstp dword [edi + 0x3c]
fld dword [0x454048]
push esi
push ebp
fstp dword [edi + 0x40]
mov ebx, 1
mov dword [edi], vtable.CProgressBarEx.0
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], 0x64
mov dword [edi + 0x34], ebp
mov dword [edi + 0x38], ebp
mov dword [edi + 0x44], ebx
push ebp
mov dword [esi], ebp
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esi + 4], eax
mov byte [esp + 0x34], bl
mov ecx, dword [esi]
push ebx
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x40990b
mov dword [esi + 4], eax
mov edx, dword [esi]
push ebx
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x40991b
mov dword [esi + 4], eax
mov eax, 0x82
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.004097d0
mov ebx, dword [esp + 0x24]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x40996b
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x40996d
xor esi, esi
mov dword [edi + 0x2c], esi
mov eax, 0x83
lea esi, [esp + 0x18]
call fcn.004097d0
mov ebx, dword [esp + 0x24]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x4099b0
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x4099b2
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [edi + 0x28], esi
cmp eax, ebp
je 0x4099c5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4099d4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x40a980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40a990
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40a9a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40a9d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40aa4a
xor eax, eax
cmp ecx, ebp
je 0x40aa32
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40aa58
cmp ecx, ebp
je 0x40aaeb
push ecx
jmp 0x40aae5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40aaba
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a9d0
mov ebx, eax
cmp ebx, ebp
jne 0x40ab08
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x40aa80
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40aacd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040a8c0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40aaeb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042bbc1
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ab17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40aaed
Function at 0x40afd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x449980
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4594d4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40b04f
call fcn.004014a0
mov esi, eax
jmp 0x40b131
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40b06b
call fcn.004014a0
jmp 0x40b128
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40b084
call fcn.004014a0
jmp 0x40b128
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40b0b8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40b0a6
lea eax, [ebp]
call fcn.0040e4c0
lea esi, [ebp - 0x1c]
call fcn.0040e0f0
mov eax, 0x8007000e
jmp 0x40b143
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040e150
mov dword [ebp - 4], 1
jmp 0x40b0e1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40b0ef
mov esi, 0x8007000e
jmp 0x40b12a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40b10d
call fcn.004014a0
jmp 0x40b128
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040be40
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40b141
lea eax, [ebp]
call fcn.0040e4c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0042bbc1
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d1b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
xor ecx, ecx
push edi
lea edi, [ecx + 8]
lea esp, [esp]
mov esi, dword [eax]
mov ebp, esi
lea ebx, [esi + ecx - 0x61c88647]
shr ebp, 5
shl esi, 4
add ebp, 0x54
xor ebx, ebp
add esi, 0x12
xor ebx, esi
add dword [edx], ebx
mov esi, dword [edx]
mov ebp, esi
lea ebx, [esi + ecx - 0x61c88647]
shl ebp, 4
shr esi, 5
add ebp, 8
xor ebx, ebp
add esi, 2
xor ebx, esi
add dword [eax], ebx
mov esi, dword [eax]
mov ebp, esi
lea ebx, [esi + ecx + 0x3c6ef372]
shr ebp, 5
shl esi, 4
add ebp, 0x54
xor ebx, ebp
add esi, 0x12
xor ebx, esi
mov esi, dword [edx]
add esi, ebx
mov dword [edx], esi
mov ebp, esi
lea ebx, [esi + ecx + 0x3c6ef372]
shl ebp, 4
shr esi, 5
add ebp, 8
xor ebx, ebp
add esi, 2
xor ebx, esi
add dword [eax], ebx
mov esi, dword [eax]
mov ebp, esi
lea ebx, [esi + ecx - 0x255992d5]
shr ebp, 5
shl esi, 4
add ebp, 0x54
xor ebx, ebp
add esi, 0x12
xor ebx, esi
mov esi, dword [edx]
add esi, ebx
mov ebp, esi
mov dword [edx], esi
lea ebx, [esi + ecx - 0x255992d5]
shl ebp, 4
add ebp, 8
xor ebx, ebp
shr esi, 5
add esi, 2
xor ebx, esi
add dword [eax], ebx
mov esi, dword [eax]
mov ebp, esi
lea ebx, [esi + ecx + 0x78dde6e4]
shr ebp, 5
add ebp, 0x54
xor ebx, ebp
shl esi, 4
add esi, 0x12
xor ebx, esi
mov esi, dword [edx]
add esi, ebx
mov ebp, esi
shl ebp, 4
lea ebx, [esi + ecx + 0x78dde6e4]
mov dword [edx], esi
add ebp, 8
shr esi, 5
xor ebx, ebp
add esi, 2
xor ebx, esi
add dword [eax], ebx
add ecx, 0x78dde6e4
sub edi, 1
jne 0x40d1c0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d2d0
Capabilities:
Check for peb beingdebugged flag
Get disk information
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4496b6
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push esi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x664]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x4e]
xor eax, eax
push ebx
mov dword [esp + 0x14], ebx
push ecx
mov word [esp + 0x54], ax
call fcn.0042d120
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x48]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
jmp 0x40d360
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d360
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
lea esi, [esp + 0x30]
call fcn.00406a40
mov ecx, esi
push ecx
mov ecx, 3
xor edx, edx
lea esi, [esp + 0x14]
mov dword [esp + 0x670], ebx
call fcn.0040e350
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x674], 1
call fcn.00405a90
mov byte [esp + 0x66c], bl
cmp dword [esp + 0x28], 8
jb 0x40d3c6
mov edx, dword [esp + 0x14]
push edx
call fcn.0042bbb6
add esp, 4
push 0x206
lea ecx, [esp + 0x45e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x464], ax
call fcn.0042d120
push 0x206
lea eax, [esp + 0x262]
xor edx, edx
push ebx
push eax
mov word [esp + 0x268], dx
call fcn.0042d120
mov eax, dword [esp + 0x48]
add esp, 0x18
cmp dword [esp + 0x44], 8
jae 0x40d412
lea eax, [esp + 0x30]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x464]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40d450
mov eax, dword [esp + 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea edx, [esp + 0x258]
push str._04X__04X
push edx
call fcn.0042bffa
add esp, 0x10
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], ax
lea eax, [esp + 0x250]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d470
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x254]
mov esi, edi
call fcn.00406a40
cmp dword [esp + 0x44], 8
jb 0x40d4a2
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042bbb6
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x664]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x664
ret
Function at 0x40d4d0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x288
mov esi, ecx
mov dword [esp + 0xc], 0
call fcn.0042cbac
mov edi, eax
add esp, 4
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40d52c
push edi
call fcn.0042cacf
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0042cbac
add esp, 8
mov edi, eax
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call fcn.0042d120
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40d5b4
mov eax, edi
test edi, edi
je 0x40d5b4
jmp 0x40d560
lea edx, [eax + 0x194]
test edx, edx
jne 0x40d572
mov eax, dword [eax]
test eax, eax
jne 0x40d560
jmp 0x40d5b4
movzx ecx, byte [eax + 0x199]
movzx edx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push edx
movzx edx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
push edx
movzx edx, byte [eax + 0x194]
push ecx
push edx
lea eax, [esp + 0x24]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0042bffa
add esp, 0x20
push edi
call fcn.0042cacf
add esp, 4
xor ecx, ecx
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
lea edx, [eax + 2]
jmp 0x40d5e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d5e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00406a40
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042bbc1
add esp, 0x210
ret
Function at 0x413000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x413055
mov eax, dword [esp]
cmp al, 2
jne 0x41304f
shr eax, 8
cmp al, 2
jne 0x41304f
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0042bbc1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.0042bbc1
mov esp, ebp
pop ebp
ret
Function at 0x4184f0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 4
mov edi, eax
mov esi, dword [edi]
movzx eax, byte [esi + 0x28e]
lea ecx, [esp + 0xc]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41853a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.00428720
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov ecx, esi
call fcn.00418f30
add esp, 0xc
pop edi
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
mov ecx, esi
call fcn.00418f30
add esp, 4
pop edi
pop esi
pop ecx
ret

Function at 0x418550
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x18], 0x4020
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x418593
mov edx, dword [esp]
cmp edx, dword [esp + 4]
jg 0x4185ab
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x418a30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [ecx + 0x480]
cmp eax, 0xffffffff
je 0x418a7a
mov ecx, dword [ecx + 0x474]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x418a7a
mov eax, dword [eax]
mov ecx, dword [eax + 0xc8]
mov dword [esi], ecx
cmp byte [eax + 0xd0], 0
jne 0x418a7a
mov eax, dword [eax + 0xc8]
push 2
push 1
lea edx, [esp + 0xb]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x418a80
mov dword [esi], 0xffffffff
xor eax, eax
pop ecx
ret

Function at 0x4190c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [ebx + eax*4 + 0xc8]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41910b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4190ef
xor eax, eax
pop esi
ret
push edi
push ebx
mov edi, eax
call fcn.00428720
push eax
mov eax, dword [ebx]
push str.Send_failure:__s
call fcn.00418ff0
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret

Function at 0x419160
Capabilities:
Send data
Send data on socket

Disassembly:
xor eax, eax
cmp ecx, dword [ebx + 0xcc]
mov ecx, dword [esp + 4]
push esi
sete al
push 0
push edx
push ecx
mov eax, dword [ebx + eax*4 + 0xc8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4191c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4191ac
mov edx, dword [esp + 0xc]
xor esi, esi
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [edx], esi
pop esi
dec eax
and eax, 0x37
ret
push edi
push ebx
mov edi, eax
call fcn.00428720
push eax
mov eax, dword [ebx]
push str.Send_failure:__s
call fcn.00418ff0
add esp, 0xc
pop edi
mov edx, dword [esp + 0xc]
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [edx], esi
pop esi
dec eax
and eax, 0x37
ret
Function at 0x419380
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x419395
cmp byte [eax + 0x5c], 0
mov byte [esp + 3], 1
jne 0x41939a
mov byte [esp + 3], 0
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp ebx, dword [esi + 0xcc]
push ebp
sete cl
cmp byte [esp + 7], 0
push edi
mov dword [eax], 0
mov ebp, ecx
je 0x419419
mov eax, dword [esi + 0x180]
mov edi, dword [esi + 0x184]
sub edi, eax
cmp edi, edx
jb 0x4193ce
mov edi, edx
test edi, edi
jbe 0x419402
mov ecx, dword [esi + 0x17c]
mov edx, dword [esp + 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004315f0
add dword [esi + 0x180], edi
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi + 0x131], 0
mov dword [eax], edi
pop edi
xor eax, eax
pop ebp
pop ecx
ret
mov eax, edx
cmp edx, 0x4000
jb 0x419411
mov eax, 0x4000
mov ecx, dword [esi + 0x17c]
jmp 0x419441
mov ecx, dword [esi]
mov eax, dword [ecx + 0x234]
mov ecx, eax
test eax, eax
jne 0x41942c
mov ecx, 0x4000
cmp edx, ecx
jge 0x419434
mov eax, edx
jmp 0x41943d
test eax, eax
jne 0x41943d
mov eax, 0x4000
mov ecx, dword [esp + 0x10]
cmp dword [esi + ebp*8 + 0xd4], 2
jne 0x419452
pop edi
or eax, 0xffffffff
pop ebp
pop ecx
ret
cmp dword [esi + 0x164], 0
jne 0x4194b6
push 0
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419484
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
pop edi
dec eax
pop ebp
pop ecx
ret
test edi, edi
jl 0x4194b6
cmp byte [esp + 0xb], 0
je 0x4194b0
mov edx, dword [esi + 0x17c]
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
call fcn.004315f0
add esp, 0xc
mov dword [esi + 0x184], edi
mov dword [esi + 0x180], edi
mov eax, dword [esp + 0x14]
add dword [eax], edi
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x4194c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp byte [esi + 0x260], 0
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xac]
push edi
je case.default.0x419510
test eax, eax
je case.default.0x419510
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x419510
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x419510
jmp dword [edx*4 + 0x41963c]
mov ecx, str.Header
mov edx, str.from
jmp 0x41952d
mov ecx, str.Header
mov edx, 0x450d50
push eax
push edx
push ecx
push str.__s__s__s_
mov ecx, 0xa0
lea eax, [esp + 0x18]
call fcn.0041f380
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419550
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x144]
test eax, eax
je 0x4195ba
mov ecx, dword [esi + 0xe4]
push ecx
push edi
lea edx, [esp + 0x10]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x419625
mov eax, dword [esi + 0x144]
test eax, eax
je 0x4195e8
mov ecx, dword [esi + 0xe4]
mov edx, dword [esp + 0xb4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
pop edi
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0042bbc1
add esp, 0xa4
ret
mov eax, dword [esi + 0xe0]
push eax
push 1
push 2
push 0x44e764
call fcn.0042ce39
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0042ce39
add esp, 0x20
jmp case.default.0x419510
test ebx, ebx
jl 0x419623
cmp ebx, 2
jg 0x419623
mov eax, dword [esi + 0xe0]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x44e764]
push 2
push ecx
call fcn.0042ce39
mov edx, dword [esi + 0xe0]
mov eax, dword [esp + 0xc4]
push edx
push 1
push eax
push ebp
call fcn.0042ce39
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
xor ecx, esp
call fcn.0042bbc1
add esp, 0xa4
ret
Function at 0x4201b0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
mov ebx, dword [edi + 0xc0]
sub ecx, edx
imul ecx, ecx, 0x3e8
sub ecx, dword [edi + 0xc4]
mov eax, 0x10624dd3
imul ecx
sub esi, ebx
imul esi, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
cmp ecx, ebp
jg 0x4202c0
lea ecx, [ecx]
mov ebx, dword [esp + 0x14]
mov eax, ebp
push 0xffffffffffffffff
sub eax, ecx
push ebx
call fcn.00421a00
add esp, 8
test eax, eax
jle 0x4202c0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
push esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4202c8
cmp esi, eax
je 0x4202e0
test eax, eax
je 0x4202c0
add dword [esp + 0x18], eax
add dword [esp + 0x24], eax
sub esi, eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
mov ebx, dword [edi + 0xc0]
sub ecx, edx
imul ecx, ecx, 0x3e8
sub ecx, dword [edi + 0xc4]
mov eax, 0x10624dd3
imul ecx
sub esi, ebx
imul esi, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
cmp ecx, ebp
jle 0x420220
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
dec eax
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
pop esi
add eax, ecx
pop ebp
mov dword [edx], eax
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x422b80
Capabilities:
Parse pe header

Disassembly:
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x422b8b
jmp dword [ecx*4 + 0x422be0]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x422da0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0042f727
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x422e05
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x422e05
lea edx, [esp]
push edx
call dword [0x45a1b4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0042bbc1
add esp, 0x108
ret