joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011b4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x4020a0
call fcn.004014e8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4011ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4011ef
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401207
cmp eax, 0x20b
je 0x4011f4
mov dword [ebp - 0x1c], edi
jmp 0x40121b
cmp dword [ecx + 0x84], 0xe
jbe 0x4011ef
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401215
cmp dword [ecx + 0x74], 0xe
jbe 0x4011ef
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x403030], 0xffffffff
or dword [0x403034], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x403024]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x403020]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40302c], eax
call fcn.004013f3
call fcn.004014bb
cmp dword [0x403010], edi
jne 0x40127b
push 0x4014b3
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00401491
push 0x40300c
push 0x403008
call sub.MSVCR71.dll__initterm
push 0x40143c
call fcn.004013dc
mov eax, dword [0x40301c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x403018]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x4012cf
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x403004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401010
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x40130b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x401340
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401523
ret

Function at 0x40106a
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4010aa
mov dword [0x4030e0], ecx
xor edi, edi
xor eax, eax
cld
mov esi, dword [0x4030e0]
lodsw ax, word [esi]
test ax, ax
je 0x40109e
ror edi, 0xd
add edi, eax
jmp 0x401090
mov dword [0x4030e8], edi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x401078
xor eax, eax
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0xe644fd2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x5ff5744b
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4025e1
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fa32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], 0
push 0x43d6c0
push 0xd2
push 0
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x402641
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004256ba
jmp 0x4027c9
mov eax, dword [ebp - 0x128]
push eax
push 0
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x128]
push ecx
push 0
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x402688
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004256ba
jmp 0x4027c9
mov edx, dword [ebp - 0x120]
push edx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4026b4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004256ba
jmp 0x4027c9
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.kernel32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00416080
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x100
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0x43d6c4
lea ecx, [ebp - 0x114]
push ecx
call fcn.00415ee0
add esp, 8
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x402747
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004256ba
jmp 0x4027c9
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
push 0x442088
lea ecx, [ebp + 8]
call fcn.00402fe0
push eax
lea eax, [ebp - 0x114]
push eax
push 0x43d6d0
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40279e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004256ba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x403e1b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
mov ecx, dword [0x44208c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov edx, dword [0x44208c]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x403e58
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x403e71
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x43d7f0]
mov byte [ecx], al
jmp 0x403e4f
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 5
mov eax, dword [0x44208c]
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret

Function at 0x403e8b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
mov ecx, dword [0x44208c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov edx, dword [0x44208c]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x403ec8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x403ee1
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x43d7f8]
mov byte [ecx], al
jmp 0x403ebf
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 5
mov eax, dword [0x44208c]
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x406323
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 5
push 0
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x54
call fcn.00402fe0
push eax
push 0x43d958
mov ecx, dword [ebp - 8]
call fcn.00406780
mov ecx, eax
call fcn.004066b0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jg 0x406374
push 0
push 0
push 0x43d960
call fcn.004294cd
xor eax, eax
jmp 0x406379
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x406950
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43001e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x114]
add ecx, 4
call fcn.00402fe0
push eax
push 0x100
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp + 0x14]
call fcn.00402fe0
push eax
lea ecx, [ebp + 0x10]
call fcn.00402fe0
push eax
lea ecx, [ebp + 0xc]
call fcn.00402fe0
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00425728
mov edx, dword [ebp - 0x110]
or edx, 1
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004256ba
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004256ba
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004256ba
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406a16
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43003a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402fe0
push eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402fe0
push eax
lea ecx, [ebp + 8]
call fcn.00402fe0
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004256ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004256ba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4073d3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x4073fa
cmp dword [ebp + 0xc], 0
je 0x4073fa
cmp dword [ebp + 0x10], 0
je 0x4073fa
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + 0x54]
test ecx, ecx
jne 0x407401
xor al, al
jmp 0x40749b
push 0x1020
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
push 0x14
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00415e70
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1c
push edx
call fcn.00415b30
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 0x1c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x101c], 1
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x407499
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407499
xor al, al
jmp 0x40749b
mov al, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4077e7
Capabilities:
Get system information on windows
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cl, byte [eax + 0x54]
test ecx, ecx
jne 0x407801
jmp 0x4078ab
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov dword [ebp - 0x28], 0
jmp 0x40781d
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx + 2]
cmp dword [ebp - 0x28], edx
jae 0x40783e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_PostQueuedCompletionStatus]
jmp 0x407814
push 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
push 0xa
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x58]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x58]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0x2c]
call fcn.00407661
mov eax, dword [ebp - 0x2c]
add eax, 0x3c
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x54], 0
mov esp, ebp
pop ebp
ret
Function at 0x421649
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42166b
cmp dword [edi + 0x3c], 0
jne 0x42166b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042de83
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00421698
pop edi
pop esi
pop ebx
ret 8

Function at 0x422ca0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x422cd8
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.00425aa7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00425a7f
jmp 0x422ce4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x422ce8
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x443c28
mov ecx, edi
call fcn.004257f7
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x422d3b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x422d4e
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00425aa7
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00425a7f
jmp 0x422d4e
mov ecx, esi
call fcn.00424c6e
test eax, eax
je 0x422d4e
push edi
mov ecx, eax
call fcn.00422ca0
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x424496
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 0x4244d8
call fcn.0042de83
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4244d8
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4244cf
xor eax, eax
jmp 0x4244e0
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004244e6
pop edi
pop esi
pop ebx
ret 4
Function at 0x42eca8
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 0x42ecd6
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x42ecf4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ec0e
jmp 0x42ecf4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ecf4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042ec0e
test edi, edi
mov eax, edi
jne 0x42ecde
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x468390
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4683bc
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004055f0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4683e1
call fcn.00410348
xor eax, eax
push ebp
push 0x468418
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x468401
call fcn.00410348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46841f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x474520
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x494c60], 0
mov eax, dword [0x495838]
cmp dword [eax], 2
jne 0x4746f9
mov eax, dword [0x495378]
cmp dword [eax], 5
jl 0x4746f9
call fcn.0046c178
test al, al
jne 0x474551
call fcn.0046c184
call fcn.0046c170
mov dword [0x494c68], eax
push 0x4746fc
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c2c], eax
cmp dword [0x494c2c], 0
jne 0x4745ac
mov edx, 0x8000
mov eax, 0x474710
call fcn.004109a4
mov dword [0x494c64], eax
mov eax, dword [0x494c64]
mov dword [0x494c68], eax
push 0x4746fc
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c2c], eax
cmp dword [0x494c2c], 0
je 0x4746f4
push 0x47471c
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c30], eax
cmp dword [0x494c30], 0
je 0x4746f4
push 0x474728
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c34], eax
cmp dword [0x494c34], 0
je 0x4746f4
mov byte [0x494c60], 1
push 0x474738
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c38], eax
push 0x474744
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c3c], eax
push 0x474750
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c40], eax
push 0x474760
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c44], eax
push 0x474770
mov eax, dword [0x494c68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c48], eax
mov edx, 0x8000
mov eax, 0x474788
call fcn.004109a4
mov dword [0x494c6c], eax
cmp dword [0x494c6c], 0
je 0x4746f9
push 0x474798
mov eax, dword [0x494c6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c4c], eax
push 0x4747b4
mov eax, dword [0x494c6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c50], eax
push 0x4747d4
mov eax, dword [0x494c6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c54], eax
push 0x4747f0
mov eax, dword [0x494c6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c58], eax
push 0x474808
mov eax, dword [0x494c6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x494c5c], eax
ret
call fcn.004744a0
ret