joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402190
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [0x4d1198], 0
push esi
push edi
je 0x4021a3
mov eax, 1
pop edi
pop esi
ret
push 0
call fcn.0044a5fe
mov esi, eax
add esp, 4
mov ecx, esi
sub ecx, dword [0x4d11a0]
mov edi, edx
mov eax, edi
sbb eax, dword [0x4d11a4]
test eax, eax
jg 0x4021d4
jl 0x4021cc
cmp ecx, 3
jae 0x4021d4
mov eax, dword [0x4d1198]
pop edi
pop esi
ret
mov eax, 1
test byte [0x4d1298], al
jne 0x4021ff
or dword [0x4d1298], eax
push 0x4d1280
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x486040
call fcn.0044a512
add esp, 4
push 0x4d1280
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x417970
mov dword [0x4d11a0], esi
mov dword [0x4d11a4], edi
mov dword [0x4d0f3c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x4d0f3c]
push 0x4d1280
mov dword [0x4d1198], eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret

Function at 0x404af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebx + 0x68]
push edi
mov edi, dword [ebx + 0x70]
mov eax, str.6.6.6.6
mov ecx, esi
call fcn.0040e420
test eax, eax
je 0x404b1e
mov eax, str.6.6.6.6.
mov ecx, esi
call fcn.0040e420
test eax, eax
jne 0x404b24
cmp byte [edi], 0x2f
jne 0x404b24
inc edi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push str._dX_d.htm
push edi
call fcn.0044a80c
add esp, 0x10
cmp eax, 2
je 0x404b47
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x218
call fcn.0044a64f
push 0x104
mov esi, eax
push 0
push esi
call fcn.0044f160
lea edx, [ebx + 0xec]
push str.Referer:
push edx
call fcn.0040ee10
add esp, 0x18
test eax, eax
je 0x404b87
push pe_nt_image_headers32
push eax
push esi
call fcn.0044a8e0
add esp, 0xc
lea edx, [esi + 0x105]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404b91
mov eax, dword [ebx + 0xc0]
push esi
mov dword [esi + 0x210], eax
mov ecx, dword [ebx + 0xc4]
push 0
push 0x4048a0
mov dword [esi + 0x214], ecx
call fcn.00449eb4
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4050d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebx + 0x68]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xec]
cmp dword [eax], 0
push esi
push edi
je 0x4050fe
mov ecx, dword [eax]
push ecx
call fcn.00449be1
mov edx, dword [ebx + 0xec]
add esp, 4
mov dword [edx], 0
mov esi, dword [ebx + 0xec]
mov eax, dword [esi]
test eax, eax
je 0x405119
push eax
call fcn.00449be1
add esp, 4
mov dword [esi], 0
mov eax, dword [ebx + 0x58]
push eax
call fcn.0044aa04
push 0x4ba8f4
push esi
mov dword [esi], eax
call fcn.0040e590
mov ecx, dword [ebx + 0x70]
push ecx
push esi
call fcn.0040e590
push 0x4ba8f4
push esi
call fcn.0040e590
mov edx, dword [ebx + 0x60]
push edx
push esi
call fcn.0040e590
push str.Connection:
push ebx
call fcn.0040ff70
push 8
call fcn.00449c1b
mov esi, eax
add esp, 0x30
test esi, esi
je 0x4051a9
xor eax, eax
mov dword [esi], eax
push str.Connection:_close
mov dword [esi + 4], eax
call fcn.0044aa04
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x40518e
push esi
call fcn.00449be1
add esp, 4
jmp 0x4051a9
mov eax, dword [ebx + 0xf0]
test eax, eax
je 0x40519d
mov dword [eax + 4], esi
jmp 0x4051a3
mov dword [ebx + 0xec], esi
mov dword [ebx + 0xf0], esi
lea eax, [ebx + 0xec]
call fcn.0040d540
push 0x118
mov esi, eax
call fcn.0044a64f
mov ecx, dword [ebp - 4]
mov dword [eax + 0x108], esi
mov esi, eax
add esp, 4
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4051d0
mov ecx, dword [ebx + 0xc0]
push eax
mov dword [eax + 0x110], ecx
mov edx, dword [ebx + 0xc4]
push 0
push 0x404bd0
mov dword [eax + 0x114], edx
call fcn.00449eb4
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, eax
je 0x405d1a
push 0xee69
mov dword [edi], 0xee68
call fcn.00449581
mov edi, dword [edi]
push edi
mov esi, eax
push 0x4aaf80
push esi
call fcn.0044d7e0
add esp, 0x10
xor ecx, ecx
test edi, edi
je 0x405d61
mov eax, 0x38e38e39
mul ecx
shr edx, 1
lea eax, [edx + edx*8]
mov edx, ecx
sub edx, eax
mov al, byte [edx + 0x4cae50]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jb 0x405cf6
pop edi
mov eax, esi
pop esi
pop ebp
ret
push 0xbc01
mov dword [edi], 0xbc00
call fcn.00449581
mov edi, dword [edi]
push edi
mov esi, eax
push 0x49f380
push esi
call fcn.0044d7e0
add esp, 0x10
xor ecx, ecx
test edi, edi
je 0x405d61
mov eax, 0x38e38e39
mul ecx
shr edx, 1
lea edx, [edx + edx*8]
mov eax, ecx
sub eax, edx
mov dl, byte [eax + 0x4cae50]
xor byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jb 0x405d43
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x405e40
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x133]
push 0
push eax
mov byte [ebp - 0x134], 0
call fcn.0044f160
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x134]
dec eax
jmp 0x405e90
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405e90
mov edx, dword [str.drivers_]
mov ecx, dword [0x4ba624]
mov dword [eax], edx
mov dx, word [0x4ba628]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x134]
dec eax
jmp 0x405ec0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405ec0
mov ecx, dword [str.kWppProxy]
mov edx, dword [0x4ba618]
mov dword [eax], ecx
mov cx, word [0x4ba61c]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [ebp - 0x134]
dec eax
jmp 0x405ef0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405ef0
mov edx, dword [str..sys]
mov cl, byte [0x4ba630]
mov dword [eax], edx
lea edi, [ebp - 0x134]
mov byte [eax + 4], cl
call fcn.00417ae0
test eax, eax
je 0x405f2f
push eax
lea edx, [ebp - 0x28]
push str.ECHK_d
push edx
call fcn.004495a1
lea eax, [ebp - 0x28]
jmp 0x405fe6
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1a0], 0
call fcn.00405cc0
add esp, 4
lea edx, [ebp - 0x134]
push 0x4ba5c0
push edx
mov edi, eax
call fcn.0044ad72
mov esi, eax
add esp, 8
test esi, esi
je 0x405f89
mov eax, dword [ebp - 0x1a0]
push esi
push 1
push eax
push edi
call fcn.0044ba39
push esi
call fcn.0044b86e
add esp, 0x14
push edi
call fcn.00449be1
add esp, 4
push str.kWppProxy
call fcn.00461d20
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x134]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x405fc6
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00449592
mov esp, ebp
pop ebp
ret
cmp edi, 0x420
je 0x405fb1
push edi
lea edx, [ebp - 0x19c]
push str.EDriver_d
push edx
call fcn.004495a1
lea eax, [ebp - 0x19c]
add esp, 0xc
push eax
mov ecx, 0x49cb08
call fcn.004157a0
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00449592
mov esp, ebp
pop ebp
ret
Function at 0x406210
Capabilities:
Create process memory minidump
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4bda48
push 0x4528d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c2320]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp esi, edi
jne 0x4062b1
mov dword [ebp - 4], edi
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push edi
push edi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
push edi
push edi
lea edx, [ebp - 0x24]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4839b6
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x90], 0
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x9c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40848b
lea ecx, [ebp - 0x90]
push ecx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], edi
mov ecx, ebx
mov byte [ebx], al
call fcn.00402920
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x7c], 0x10
jb 0x4085c1
mov edx, dword [ebp - 0x90]
push edx
jmp 0x4085b9
push edi
call fcn.0044a5fe
mov edi, eax
mov dword [ebp - 0x94], edx
call fcn.0044a546
add eax, edi
push eax
call fcn.0044a534
add esp, 8
call fcn.0044a546
call fcn.0044a546
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x408514
push 0
call fcn.0044a5fe
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
call fcn.0044a546
add eax, dword [ebp - 0x98]
push eax
call fcn.0044a534
add esp, 8
call fcn.0044a546
shl eax, 0x10
mov dword [ebp - 0x94], eax
call fcn.0044a546
add eax, dword [ebp - 0x94]
xor edx, edx
div edi
mov edi, edx
push 0xa
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.00481228
lea eax, [ebp - 0x74]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408527
mov cx, word [0x49cafc]
mov dl, byte [0x49cafe]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x408586
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
lea edx, [edi*8]
sub edx, edi
lea ecx, [eax + edx*4]
push 0
push ecx
lea ecx, [ebp - 0x90]
call fcn.004029a0
lea edx, [ebp - 0x90]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push edx
mov ecx, ebx
mov byte [ebx], 0
call fcn.00402920
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x7c], 0x10
jb 0x4085c1
mov eax, dword [ebp - 0x90]
push eax
call fcn.0044a567
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449592
mov esp, ebp
pop ebp
ret
Function at 0x40a180
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x40a1af
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449592
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1908], ebx
je 0x40a1d9
mov eax, dword [esi + 0x190c]
cmp eax, ebx
je 0x40a1cd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x40a1d9
mov dword [esi + 0x190c], ebx
mov dword [esi + 0x1908], ebx
push edi
mov dword [esi + 0x1804], 0x50
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi + 0x1910], eax
cmp eax, ebx
je 0x40a19d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
xor eax, eax
mov edx, 2
mov dword [ebp - 0x14], eax
push 0x50
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x190c]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x128]
push eax
push 0x8004667e
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, 1
push ecx
mov dword [ebp - 0x128], ebx
call edi
test eax, eax
jne 0x40a19d
mov eax, dword [esi + 0x190c]
push 0x10
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40a278
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40a19d
mov eax, dword [esi + 0x190c]
lea ecx, [ebp - 0x130]
push ecx
push 0
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x11c], eax
push 0
inc eax
push eax
mov dword [ebp - 0x130], 5
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x120], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40a19d
mov ecx, dword [esi + 0x190c]
lea eax, [ebp - 0x124]
push eax
push 0x8004667e
push ecx
mov dword [ebp - 0x124], 0
call edi
test eax, eax
jne 0x40a19d
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x1908], ebx
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00449592
mov esp, ebp
pop ebp
ret
Function at 0x40b950
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
push 1
push edi
mov word [edi + 0xbc], ax
call fcn.0040f1a0
add esp, 8
test eax, eax
je 0x40b976
mov eax, 4
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + 0x40]
test al, 2
je 0x40b99a
test eax, 0x4000
je 0x40b99a
xor ecx, ecx
and eax, 0xffffbfff
mov dword [edi + 0x118], ecx
mov dword [edi + 0x11c], ecx
mov dword [edi + 0x40], eax
mov ecx, dword [edi + 0x40]
test cl, 2
je 0x40b9f6
test ecx, 0x4000
jne 0x40b9f6
mov edx, dword [edi + 0xa0]
mov eax, edx
sub eax, dword [edi + 0x9c]
cmp eax, 5
jl 0x40b9f6
cmp dword [edx - 5], 0xd0a0d30
jne 0x40b9f6
cmp byte [edx - 1], 0xa
jne 0x40b9f6
cdq
mov dword [edi + 0xd4], edx
mov edx, eax
mov dword [edi + 0xd0], eax
mov eax, dword [edi + 0xd4]
or ecx, 0x4000
mov dword [edi + 0x118], edx
mov dword [edi + 0x11c], eax
mov dword [edi + 0x40], ecx
mov ecx, dword [edi + 0x58]
mov eax, 0x4ba2f0
call fcn.0040e420
test eax, eax
jne 0x40bac6
cmp dword [edi + 0x100], eax
je 0x40baad
mov esi, dword [edi + 0xc8]
mov ebx, dword [edi + 0x5c]
call fcn.004011d0
mov ecx, eax
call fcn.00412510
test eax, eax
je 0x40ba36
push esi
call fcn.00412630
cmp dword [edi + 0x100], 0
je 0x40baad
cmp dword [edi + 0xd8], 0
jne 0x40baad
mov eax, dword [edi + 0x84]
test eax, eax
je 0x40ba65
push eax
call fcn.00449be1
add esp, 4
mov dword [edi + 0x84], 0
call fcn.00401240
mov ecx, eax
call fcn.00406e00
mov dword [edi + 0x84], eax
test eax, eax
je 0x40baad
mov edx, dword [edi + 0xc8]
mov ecx, 2
push edx
mov word [edi + 0xbc], cx
call fcn.00401240
call fcn.00407250
test eax, eax
jne 0x40baa4
or word [edi + 0xbc], 4
xor eax, eax
mov word [edi + 0xba], ax
mov esi, edi
call fcn.00406a50
test eax, eax
je 0x40bad4
or word [edi + 0xbc], 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
cmp dword [edi + 0x58], 0
jne 0x40bad4
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40d120
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x4c2320]
xor eax, esp
mov dword [esp + 0x1f0], eax
push esi
call fcn.0040d810
mov dword [0x4cec04], eax
lea eax, [esp + 0x60]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40d174
push 0x52010
push str.Error
push str.Cannot_initialize_WinSock_library
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0044ceab
call fcn.00401380
push 0
mov dword [esp + 8], vtable.EventHandler.0
call dword [sym.imp.ole32.dll_OleInitialize]
lea ecx, [esp + 0x60]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00405d70
test eax, eax
jne 0x40d1a9
push str.EDriver
jmp 0x40d1c9
call fcn.00462b30
lea edx, [esp + 4]
push edx
push str.kWppProxy
call fcn.004677c0
add esp, 8
test eax, eax
je 0x40d1e9
push str.EINIT
mov ecx, 0x49cb08
call fcn.004157a0
mov ecx, dword [esp + 0x1f8]
add esp, 4
pop esi
xor ecx, esp
call fcn.00449592
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x401860
call fcn.00449eb4
add esp, 0xc
push 0
push 0
push 0x414230
call fcn.00449eb4
add esp, 0xc
push 0x53
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0044f160
add esp, 0xc
push 0x50
mov dword [esp + 0x5b], 0x12
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 8]
push 1
push ecx
mov word [esp + 0x1b], ax
mov dword [esp + 0x10], 6
call fcn.00462710
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
mov edi, edi
push 0x2710
call esi
jmp 0x40d250

Function at 0x40d910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d928
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d95a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40d956
cmp esi, eax
jae 0x40d95a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d948
cmp esi, eax
jb 0x40d960
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x410a10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x410a1a
mov ecx, dword [eax]
jmp 0x410a1c
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
mov eax, 0x811c9dc5
cmp ecx, edx
je 0x410a41
push esi
jmp 0x410a30
movsx esi, byte [ecx]
imul eax, eax, 0x1000193
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x410a30
pop esi
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.0044d123
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
mov eax, edx
jns 0x410a6b
add eax, 0x7fffffff
ret
Function at 0x413800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor al, al
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov byte [ebp - 1], al
cmp al, 0xa
je 0x413883
push 0
push 1
lea eax, [ebp - 1]
push eax
push ebx
call edi
test eax, eax
jle 0x413867
mov al, byte [ebp - 1]
cmp al, 0xd
jne 0x41385e
push 2
push 1
lea ecx, [ebp - 1]
push ecx
push ebx
call edi
test eax, eax
jle 0x413859
cmp byte [ebp - 1], 0xa
jne 0x413859
push 0
push 1
lea edx, [ebp - 1]
push edx
push ebx
call edi
mov al, byte [ebp - 1]
mov ecx, dword [ebp + 8]
mov byte [esi + ecx], al
inc esi
jmp 0x41386c
mov al, 0xa
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
mov byte [esi + ecx], al
inc esi
jmp 0x41386c
mov al, 0xa
mov byte [ebp - 1], al
cmp esi, 0x3ff
jl 0x413813
mov edx, dword [ebp + 8]
pop edi
mov byte [esi + edx], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4138a0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push str.HTTP_1.0_200_OK_r_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0044d5e1
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4138d5
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
sub eax, edx
push eax
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
push str.Server:_bd_httpd_0.1.0_r_n
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.0044d5e1
lea eax, [ebp - 0x404]
add esp, 0xc
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413920
push 0
sub eax, edi
push eax
lea eax, [ebp - 0x404]
push eax
push esi
call ebx
push str.Content_Type:_text_html_r_n
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00449625
lea eax, [ebp - 0x404]
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413958
push 0
sub eax, edi
push eax
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
mov eax, dword [ebp + 0xc]
push eax
push str.Content_Length:__d_r_n
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00449625
lea eax, [ebp - 0x404]
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413994
push 0
sub eax, edi
push eax
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
mov ecx, 9
mov esi, str.Date:_Wed__08_Apr_2015_09:41:54_GMT_r_n
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x404]
movsw word es:[edi], word [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4139c7
mov ecx, dword [ebp + 8]
push 0
sub eax, esi
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call ebx
mov ecx, 0xb
mov esi, str.Cache_Control:_max_age5400_s_maxage5400_r_n
lea edi, [ebp - 0x404]
lea eax, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 1]
jmp 0x413a00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a00
push 0
sub eax, esi
mov esi, dword [ebp + 8]
push eax
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
push 0x49cafc
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0044d5e1
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x413a40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a40
push 0
sub eax, edx
push eax
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449592
mov esp, ebp
pop ebp
ret
Function at 0x413a70
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push str.HTTP_1.0_200_OK_r_n
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0044d5e1
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413aa5
push esi
mov esi, dword [sym.imp.WS2_32.dll_send]
push 0
sub eax, edx
push eax
lea ecx, [ebp - 0x404]
push ecx
push edi
call esi
push str.Server:_bd_httpd_0.1.0_r_n
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.0044d5e1
lea eax, [ebp - 0x404]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413ae4
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call esi
push str.Content_Type:_text_html_r_n
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00449625
lea eax, [ebp - 0x404]
add esp, 0xc
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413b20
push 0
sub eax, ecx
push eax
lea edx, [ebp - 0x404]
push edx
push edi
call esi
mov eax, dword [ebp + 8]
push eax
push str.Content_Length:__d_r_n
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00449625
lea eax, [ebp - 0x404]
add esp, 0x10
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413b60
push 0
sub eax, ecx
push eax
lea edx, [ebp - 0x404]
push edx
push edi
call esi
push 0x49cafc
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0044d5e1
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413b98
push 0
sub eax, edx
push eax
lea ecx, [ebp - 0x404]
push ecx
push edi
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449592
mov esp, ebp
pop ebp
ret