joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f620
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c6373
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b98ca
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004bef60
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c047c
test eax, eax
je 0x46f73c
mov ecx, dword [esp + 0x3c]
call fcn.004bef8d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46f700
push edi
mov ecx, esi
call fcn.004bc5fa
mov ecx, esi
call fcn.0046f8e0
cmp dword [esp + 0x38], 1
jne 0x46f735
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004bc735
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x471930
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x471963
push esi
call fcn.0047fbb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47195c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4719e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4719d2
mov eax, dword [esi + 8]
test eax, eax
je 0x471987
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4719ce
cmp eax, 2
je 0x4719d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47197a
cmp eax, 3
je 0x4719ad
cmp eax, 1
jne 0x47197a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47197a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47197a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00471a10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4719f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00471a10
add esp, 4
pop esi
ret

Function at 0x472280
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4722a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4722a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4722a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x48de20
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x763894]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x48de33
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x48de74
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x76393c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x48dea6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48deaa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48de9b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x48dec8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48decc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48debd
xor ecx, ecx
mov eax, 0x7638a4
xor ebx, ebx
mov bl, byte [ecx + 0x76394c]
cmp byte [esp + ebx + 0x14], 0
je 0x48def7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x763964]
cmp byte [esp + ebx + 0x14], 0
je 0x48df0e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48dede
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x48de67
lea edx, [esp + 0x84]
push edx
call fcn.0048df50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x492730
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7914f4]
xor edx, edx
cmp eax, edx
jne 0x492756
xor eax, eax
mov byte [eax + 0x7913f4], al
inc eax
cmp eax, 0x100
jl 0x49273e
mov dword [0x7914f4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7913f4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4927e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4927ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x492788
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x492860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4928b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49289a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c687e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00499b60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x748fbc
call fcn.004b805a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4992d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b805a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4992cc
push 0
mov ecx, eax
call fcn.00490370
mov dword [esi + 0xc], eax
jmp 0x4992d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4992d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4ba6c0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ba6f8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b8774
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b874c
jmp 0x4ba704
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bbdb7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bbdf9
call fcn.004c1867
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bbdf9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bbdf0
xor eax, eax
jmp 0x4bbe01
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bbe07
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c1d97
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c1dc5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c1de3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c1cfd
jmp 0x4c1de3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c1de3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c1cfd
test edi, edi
mov eax, edi
jne 0x4c1dcd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401bb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bf4
test esi, esi
je 0x401bf4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401bd0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401de0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f08
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e6e
cmp eax, 4
jne 0x401e90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e7e
cmp edx, 4
je 0x401e7e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401de0
Function at 0x401320
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x42012c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x198]
push eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
push 0x202
mov dword [esi], vtable.CTcpSocket.0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x3c]
push ecx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], edi
xor ecx, ebp
mov dword [esi + 0x54], 0xffffffff
mov eax, esi
pop edi
call fcn.0040a37f
mov esp, ebp
pop ebp
ret
Function at 0x401410
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42012c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push edi
mov edi, dword [ebp + 8]
call edx
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov word [esi + 0x4c], ax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
push 6
push 1
push 2
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
jne 0x40148c
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a37f
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x24], eax
inc eax
push eax
call fcn.0040a8dc
add esp, 4
push 0
mov ebx, eax
mov eax, dword [ebp - 0x24]
push 0
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x24]
push ebx
mov byte [ebx + ecx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
call fcn.0040a81d
add esp, 4
pop ebx
test edi, edi
je 0x401478
mov eax, dword [ebp + 0xc]
mov edx, 2
push eax
mov word [ebp - 0x20], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [esi + 0x54]
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x401478
mov ecx, dword [esi + 0x54]
push 4
lea eax, [ebp - 0x2c]
push eax
push 8
push 0xffff
mov edi, 1
push ecx
mov dword [ebp - 0x2c], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40157c
mov ecx, dword [esi + 0x54]
push eax
push eax
lea edx, [ebp - 0x30]
push edx
push eax
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x2bf20
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push edi
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edx, [ebp - 0x28]
push edx
push 0
push esi
push 0x4015c0
push 0
push 0
mov dword [ebp - 0x28], 0
call fcn.0040aa21
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 0x50], eax
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040a37f
mov esp, ebp
pop ebp
ret 8
Function at 0x401750
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x4017ad
jmp 0x401770
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401791
inc edi
cmp edi, 0xf
jl 0x401772
cmp edi, 0xf
je 0x4017de
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x401770
test ebx, ebx
jle 0x4017d6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x54]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4017ce
inc edi
cmp edi, 0xf
jl 0x4017b3
cmp edi, 0xf
je 0x4017de
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x4017e1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4019b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa2e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42012c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea eax, [esi + 0x50]
mov dword [ebp - 4], edi
mov dword [eax], vtable.CUdpClientListener.0
mov dword [esi], vtable.CUdpSocket.0
mov dword [eax], vtable.CUdpSocket.1.0
push eax
mov dword [esi + 0x54], vtable.CHPObjectPtr_class_DualInterface_class_IArqClient__class_IUdpClient___class_IUdpClientListener__struct_UdpArqClient_Creator_.0
call fcn.00405260
add esp, 4
mov dword [esi + 0x58], eax
push edi
lea eax, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
mov dword [esi + 0x38], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x34], eax
call ebx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x5c], eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x70]
add ecx, 4
push edi
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x74]
add ecx, 4
push edi
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0xa
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 2
call eax
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x5c]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x3c]
push ebx
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov word [esi + 0x4c], ax
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
add ecx, 4
mov dword [esi + 0x44], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
cmp eax, 3
je 0x401c47
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
add ecx, 4
call eax
mov ecx, dword [esi + 0x58]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 0
push 0
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x5c]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401c9f
cmp eax, 0x102
je 0x401c90
cmp eax, 0xffffffff
jne 0x401c96
mov ecx, dword [esi + 0x5c]
push ecx
call edi
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edx, dword [esi + 0x5c]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x5c]
push eax
call edi
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x401ce0
push 0
push 0
call fcn.0040aa21
add esp, 0x18
pop edi
mov dword [esi + 0x60], eax
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x402310
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
cmp dword [0x4250d0], 0
push ebx
mov ebx, ecx
jg 0x4024b6
mov ecx, 1
push esi
cmp dword [ebp + 0xc], ecx
jne 0x402435
cmp dword [ebx + 0x118], 0
lea eax, [ebx + 0x118]
jne 0x4024b5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
push 0x1e4
lea ecx, [ebp - 0xa26]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa40], 0x5f55767b
mov dword [ebp - 0xa3c], 0x57576a21
mov dword [ebp - 0xa38], 0x64002e
mov dword [ebp - 0xa34], 0x6c006c
mov dword [ebp - 0xa30], 0x62005f
mov dword [ebp - 0xa2c], 0x6e0069
mov word [ebp - 0xa28], ax
call fcn.0040b660
push 0x64
lea eax, [ebp - 0x838]
xor edx, edx
push esi
push eax
mov word [ebp - 0x842], dx
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x83c], esi
call fcn.0040b660
push 0x7d0
lea ecx, [ebp - 0x7d4]
push esi
push ecx
call fcn.0040b660
push 0xa45
mov dword [ebp - 4], esi
call fcn.0040aaeb
mov esi, eax
push 0xa44
lea edx, [ebp - 0xa44]
push edx
lea eax, [esi + 1]
push eax
mov byte [esi], 4
call fcn.0040b9f0
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
add esp, 0x34
push 0xa45
push esi
mov ecx, ebx
call eax
push esi
call fcn.0040a81d
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov dword [ebx + 0x11c], ecx
xor ecx, ecx
cmp dword [ebx + 0x120], ecx
push edi
setne cl
push 0x40
inc esi
mov edi, 0x422d10
push 0x3000
inc ecx
mov dword [0x4250d0], ecx
mov ecx, 0x291
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x422f18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [0x422f18]
push eax
add ecx, 0xa45
push ecx
push esi
call fcn.0040b9f0
push 0
push 0
push esi
push 0x402190
push 0
push 0
call fcn.0040aa21
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8