joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a160
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x144]
test ecx, ecx
je 0x41a182
mov edx, dword [0x42b19c]
mov dword [ebp - 8], edx
jmp 0x41a18e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x120]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x41a1a0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x124], 0
jne 0x41a1c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x425724
mov eax, dword [ebp - 4]
add eax, 0x145
push eax
call fcn.0040632a
add esp, 0xc
or eax, 0xffffffff
jmp 0x41a210
mov ecx, dword [ebp - 4]
add ecx, 0x128
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a1ed
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x12c]
jmp 0x41a210
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x425744
mov edx, dword [ebp - 4]
add edx, 0x145
push edx
call fcn.0040632a
add esp, 0xc
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret

Function at 0x41a350
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
push 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x124]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a410
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
je 0x41a3d8
cmp dword [ebp - 0x10], 0x420
je 0x41a3a3
cmp dword [ebp - 0x10], 0x42d
je 0x41a3bf
jmp 0x41a3f1
push 0x425664
mov eax, dword [ebp - 0xc]
add eax, 0x145
push eax
call fcn.0040632a
add esp, 8
mov al, 1
jmp 0x41a412
push 0x425678
mov ecx, dword [ebp - 0xc]
add ecx, 0x145
push ecx
call fcn.0040632a
add esp, 8
jmp 0x41a40c
push 0x425694
mov edx, dword [ebp - 0xc]
add edx, 0x145
push edx
call fcn.0040632a
add esp, 8
jmp 0x41a40c
mov eax, dword [ebp - 8]
push eax
push 0x4256b0
mov ecx, dword [ebp - 0xc]
add ecx, 0x145
push ecx
call fcn.0040632a
add esp, 0xc
xor al, al
jmp 0x41a412
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41a6b0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0041a420
movzx eax, al
test eax, eax
jne 0x41a6d1
xor al, al
jmp 0x41a75a
push 0x10020
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41a707
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x41a75a
mov eax, dword [ebp - 0x10]
add eax, 0x128
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 8], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x41aac0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x19c], 1
mov eax, 0x202
mov word [ebp - 0x1b4], ax
lea ecx, [ebp - 0x198]
push ecx
movzx edx, word [ebp - 0x1b4]
push edx
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x41ab31
push 0x4257b8
mov eax, dword [ebp - 0x1c0]
add eax, 4
push eax
call fcn.0040632a
add esp, 8
or eax, 0xffffffff
jmp 0x41ad0b
movzx ecx, word [ebp - 0x198]
and ecx, 0xff
movzx edx, cl
cmp edx, 2
jne 0x41ab5d
movzx eax, word [ebp - 0x198]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x41ab81
call sub.WS2_32.dll_WSACleanup
push 0x4257cc
mov edx, dword [ebp - 0x1c0]
add edx, 4
push edx
call fcn.0040632a
add esp, 8
or eax, 0xffffffff
jmp 0x41ad0b
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
jne 0x41abc1
call sub.WS2_32.dll_WSACleanup
push 0x4257e0
mov eax, dword [ebp - 0x1c0]
add eax, 4
push eax
call fcn.0040632a
add esp, 8
mov eax, 0xfffffffe
jmp 0x41ad0b
mov dword [ebp - 0x1bc], 0
mov ecx, 2
mov word [ebp - 0x1b0], cx
push 0x42b2a0
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x1ac], eax
movzx edx, word [0x42a40c]
push edx
call sub.WS2_32.dll_htons
mov word [ebp - 0x1ae], ax
push 0x10
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call sub.WS2_32.dll_connect
test eax, eax
je 0x41ac3f
push 0x4257f0
mov edx, dword [ebp - 0x1c0]
add edx, 4
push edx
call fcn.0040632a
add esp, 8
mov dword [ebp - 0x1bc], 0xfffffffd
jmp 0x41acf4
lea eax, [ebp - 0x19c]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x1a0]
push ecx
call sub.WS2_32.dll_ioctlsocket
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x1c0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [eax]
call edx
test eax, eax
je 0x41ac8a
mov dword [ebp - 0x1bc], 0xfffffffc
jmp 0x41acf4
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x1c0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c0]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0xb
jge 0x41acf4
cmp dword [ebp - 0x1bc], 0
jle 0x41acea
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0x425800
mov edx, dword [ebp - 0x1c0]
add edx, 4
push edx
call fcn.0040632a
add esp, 0xc
mov dword [ebp - 0x1bc], 0xfffffffb
mov eax, dword [ebp - 0x1a0]
push eax
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ad20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0x42576c
push 0x40
push 0x42b2a0
push 0x424d7b
push 0x425778
push 0x42577c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42b2a0
call fcn.00405e60
add esp, 4
cmp eax, 1
jae 0x41ad68
push 0x42b0f4
push 0x42b2a0
call fcn.00406aa0
add esp, 8
push 0x425784
push 0x1b58
push str.PORT
push str.BANK
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x42a40c], ax
pop ebp
ret

Function at 0x41b570
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x5410]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 0x41af30
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41b5d0
or eax, 0xffffffff
jmp 0x41b684
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x41b0a0
push 0
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41b60f
push 2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x41b684
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 0x41add0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41b664
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x41b684
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41b980
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x41b99b
cmp dword [ebp + 0xc], 0
je 0x41b99b
cmp dword [ebp + 0x10], 1
jge 0x41b9b7
push 0x425870
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
call fcn.0040632a
add esp, 8
or eax, 0xffffffff
jmp 0x41bb71
push 0x2800
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x408
push ecx
call fcn.004062b0
add esp, 0xc
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp ecx, dword [edx + 0x404]
jge 0x41bab3
push 0
mov eax, 0x2800
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx + 0x408]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41ba4c
cmp dword [ebp - 0x14], 0xffffffff
jne 0x41ba56
mov eax, 0xffffffd4
jmp 0x41bb71
cmp dword [ebp - 0x14], 0
jle 0x41ba67
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x41ba6f
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 4
jl 0x41ba92
cmp dword [ebp - 8], 0
jne 0x41ba92
push 4
mov eax, dword [ebp - 0x18]
add eax, 0x408
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00406730
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x41baa5
mov edx, dword [ebp - 0x10]
sub edx, 4
cmp edx, dword [ebp - 8]
jl 0x41baa5
jmp 0x41bab3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
jmp 0x41ba06
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x404]
jl 0x41bae2
push 0x425888
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
call fcn.0040632a
add esp, 8
mov eax, 0xfffffffe
jmp 0x41bb71
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x408
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
call edx
movzx eax, al
test eax, eax
jne 0x41bb22
push 0x4258a0
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.0040632a
add esp, 8
mov eax, 0xfffffffd
jmp 0x41bb71
mov edx, dword [ebp - 8]
sub edx, 4
cmp edx, dword [ebp + 0x10]
jle 0x41bb35
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x41bb3e
mov ecx, dword [ebp - 8]
sub ecx, 4
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x40c
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406730
add esp, 0xc
push 0x4258bc
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
call fcn.0040632a
add esp, 8
mov eax, dword [ebp - 8]
sub eax, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bb80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x41bb9b
cmp dword [ebp + 0xc], 0
je 0x41bb9b
cmp dword [ebp + 0x10], 1
jge 0x41bbb7
push 0x425830
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.0040632a
add esp, 8
or eax, 0xffffffff
jmp 0x41bc92
push 0x2800
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x2c08
push ecx
call fcn.004062b0
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 4
mov dword [ebp + 0x10], edx
push 4
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x2c08
push ecx
call fcn.00406730
add esp, 0xc
mov edx, dword [ebp + 0x10]
sub edx, 4
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x2c0c
push ecx
call fcn.00406730
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
add eax, 0x2c08
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
add eax, 0x2c08
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41bc59
mov eax, 0xffffffd4
jmp 0x41bc92
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jge 0x41bc7c
push 0x425848
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.0040632a
add esp, 8
mov eax, 0xfffffffe
jmp 0x41bc92
push 0x425860
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.0040632a
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ccf0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x50104
call fcn.0041b540
movzx ecx, al
test ecx, ecx
jne 0x41cd1a
or eax, 0xffffffff
jmp 0x41cdce
push 0x3c
mov ecx, dword [ebp - 0x14]
add ecx, 0x50104
call fcn.0041b440
push 0x1e
mov ecx, dword [ebp - 0x14]
add ecx, 0x50104
call fcn.0041b490
push 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x50104
call fcn.0041b500
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x14]
add edx, 0xf563c
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x41c390
push 0x100000
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41cd93
mov eax, 0xfffffffe
jmp 0x41cdce
mov ecx, dword [ebp - 0x14]
add ecx, 0x50104
call fcn.0041b570
test eax, eax
je 0x41cdc2
push 3
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x41cdce
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41d540
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x140], ecx
mov eax, dword [ebp - 0x140]
push eax
call fcn.00405e60
add esp, 4
cmp eax, 1
jae 0x41d575
or eax, 0xffffffff
jmp 0x41d692
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x41d597
mov eax, 0xfffffffe
jmp 0x41d692
mov dword [ebp - 0x130], 0x128
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x41d5cf
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x41d692
mov byte [ebp - 0x131], 0
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00405e60
add esp, 4
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x140]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.004060c5
add esp, 8
test eax, eax
jne 0x41d618
mov byte [ebp - 0x131], 1
jmp 0x41d62f
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41d5e0
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0x131]
test ecx, ecx
je 0x41d690
mov edx, dword [ebp - 0x140]
cmp dword [edx + 0x124], 0
je 0x41d669
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x128]
push edx
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 0x140]
mov dword [ecx + 0x124], eax
mov eax, 1
jmp 0x41d692
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret

Function at 0x41d880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.0041d540
test eax, eax
jle 0x41d904
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], eax
push 0x2710
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax + 0x124], 0
cmp dword [ebp - 4], 0
je 0x41d8f6
mov eax, 1
jmp 0x41d906
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
sub ecx, eax
mov eax, ecx
jmp 0x41d906
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
jne 0x41d937
or eax, 0xffffffff
jmp 0x41d97b
push str.jkmapp.ini
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x424d8b
mov ecx, dword [ebp - 0x114]
push ecx
push str.AppPath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x41d979
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.0041d6a0
jmp 0x41d97b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret

Function at 0x41d990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp - 0x210]
push eax
call fcn.00405e60
add esp, 4
cmp eax, 1
jae 0x41d9c8
mov eax, 0xffffffdf
jmp 0x41daa7
mov ecx, dword [ebp - 0x210]
call fcn.0041d540
test eax, eax
jle 0x41d9e1
mov eax, 1
jmp 0x41daa7
mov ecx, dword [ebp - 0x210]
add ecx, 0x20
push ecx
call fcn.00405e60
add esp, 4
cmp eax, 1
jae 0x41da12
mov ecx, dword [ebp - 0x210]
call fcn.0041d910
cmp eax, 1
jge 0x41da12
mov eax, 0xffffffde
jmp 0x41daa7
mov edx, dword [ebp - 0x210]
add edx, 0x20
push edx
call fcn.00405e60
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x210]
push eax
call fcn.00405e60
add esp, 4
sub esi, eax
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x210]
add edx, 0x20
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.00406510
add esp, 0xc
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x208], 0
push 0xa
lea edx, [ebp - 0x208]
push edx
push 0x424d8e
mov eax, dword [ebp - 0x210]
add eax, 0x20
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0x20
jle 0x41da9f
mov eax, 2
jmp 0x41daa7
xor eax, eax
sub eax, dword [ebp - 0x20c]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret

Function at 0x41e710
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x200
push eax
call fcn.004062b0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x200], 0x40
mov edx, dword [ebp - 4]
add edx, 0x200
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esp, ebp
pop ebp
ret
Function at 0x41e750
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x228], ecx
push 0x200
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004062b0
add esp, 0xc
push 0x200
push 0
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.004062b0
add esp, 0xc
mov dword [ebp - 4], 0
lea edx, [ebp - 0x220]
push edx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x41e879
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41e84a
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x228]
push edx
call fcn.00406aa0
add esp, 8
push 0
push 0x100000
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00422060
mov edx, dword [ebp - 4]
shl edx, 4
mov ecx, dword [ebp - 0x228]
mov dword [ecx + edx + 8], eax
push 0
push 0x100000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00422060
mov ecx, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ebp - 0x228]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x224]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
test edx, edx
je 0x41e868
jmp 0x41e84a
mov ecx, dword [ebp - 0x224]
movsx edx, byte [ecx]
test edx, edx
jne 0x41e7c2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret

Function at 0x41e9e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 8
push 0
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call fcn.004062b0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x67452301
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x41f5f0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x429044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0x100
lea eax, [ebp + 0xc]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.0040628f
add esp, 0x10
mov dword [ebp - 0x110], 0
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
push 0x42b118
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41f690
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x41f69d
push str.reg_svc_error_
call fcn.00406117
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405e4a
mov esp, ebp
pop ebp
ret