joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4083b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
cmp esi, esp
call fcn.00414df0
test eax, eax
je 0x4083e3
mov ecx, 5
int 0x29
push 1
push 0xc0000417
push 2
call fcn.00408090
add esp, 0xc
mov esi, esp
push 0xc0000417
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.00414df0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.00414df0
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.00414df0
mov esp, ebp
pop ebp
ret

Function at 0x40de80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
call fcn.0040dfe0
movzx eax, al
test eax, eax
je 0x40dec6
mov esi, esp
mov eax, dword [ebp + 8]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.00414df0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.00414df0
mov eax, dword [ebp + 8]
push eax
call fcn.0040e060
add esp, 4
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40df20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp esi, esp
call fcn.00414df0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40df59
xor al, al
jmp 0x40dfbe
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40df6b
xor al, al
jmp 0x40dfbe
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x40df86
xor al, al
jmp 0x40dfbe
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x40df99
xor al, al
jmp 0x40dfbe
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x74], 0xe
ja 0x40dfa6
xor al, al
jmp 0x40dfbe
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx + 0x78], 0
jne 0x40dfbc
xor al, al
jmp 0x40dfbe
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.00414df0
mov esp, ebp
pop ebp
ret
Function at 0x4011c7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x412030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c07
leave
ret
Function at 0x4026fa
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff94]
mov eax, 0x10014
call fcn.00402c20
mov eax, dword [0x412030]
xor eax, ebp
mov dword [ebp + 0xff90], eax
push ebx
mov ebx, dword [ebp + 0xff9c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
push 1
lea edx, [ebp - 0x80]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push ebx
xor edi, edi
call esi
test eax, eax
je 0x40279d
cmp dword [ebp + 0xffa0], edi
je 0x402757
push edi
push edi
xor eax, eax
push eax
push dword [ebp + 0xffa0]
push ebx
call esi
test eax, eax
je 0x40279d
mov dword [ebp - 0x74], edi
cmp dword [ebp + 0xffa4], edi
jbe 0x402792
mov edi, 0x10000
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402790
cmp dword [ebp - 0x78], edi
jne 0x402790
add dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp + 0xffa4]
jb 0x402767
xor edi, edi
push edi
push edi
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push ebx
call esi
mov ecx, dword [ebp + 0xff90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c07
add ebp, 0xff94
leave
ret

Function at 0x402c07
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412030]
jne 0x402c11
repz ret
jmp fcn.00406bb6
Function at 0x409edc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x412030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004054bd
and dword [ebp - 0x14], 0
cmp dword [0x413dbc], 0
mov dword [ebp - 0x18], eax
jne 0x409f8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a037
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f794
push ebx
call edi
test eax, eax
je 0x40a037
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x413dbc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x413dc0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x413dc4], eax
call edi
push eax
call esi
mov dword [0x413dcc], eax
test eax, eax
je 0x409f8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x413dc8], eax
mov eax, dword [0x413dc8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409fe8
cmp dword [0x413dcc], ecx
je 0x409fe8
push eax
call esi
push dword [0x413dcc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409fe8
test ebx, ebx
je 0x409fe8
call edi
test eax, eax
je 0x409fdf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409fdf
test byte [ebp - 8], 1
jne 0x409fe8
or dword [ebp + 0x10], 0x200000
jmp 0x40a01b
mov eax, dword [0x413dc0]
cmp eax, dword [ebp - 0x18]
je 0x40a01b
push eax
call esi
test eax, eax
je 0x40a01b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a01b
mov eax, dword [0x413dc4]
cmp eax, dword [ebp - 0x18]
je 0x40a01b
push eax
call esi
test eax, eax
je 0x40a01b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x413dbc]
call esi
test eax, eax
je 0x40a037
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a039
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c07
leave
ret
Function at 0x1006c05
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp byte [0x100a2ac], bl
jne 0x1006c1e
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x1006c28
mov eax, 0x3eb
jmp 0x1006d86
push esi
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.010066ce
push dword [ebp - 4]
mov esi, dword [sym.imp.WSOCK32.dll_ntohs]
call esi
mov edi, dword [ebp + 0x14]
push edi
call esi
cmp dword [ebp + 8], ebx
mov dword [ebp + 0x14], ebx
je 0x1006c6b
push dword [ebp + 8]
call fcn.0100679a
test al, al
jne 0x1006c6b
mov eax, 0x3eb
jmp 0x1006d84
mov esi, dword [ebp + 0x18]
cmp esi, ebx
jne 0x1006c95
call fcn.010079d4
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x14], esi
jne 0x1006c95
cmp dword [ebp + 8], ebx
je 0x1006c8d
push dword [ebp + 8]
call fcn.010067cb
push 8
pop eax
jmp 0x1006d84
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x20]
push ebx
push ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov word [esi + 0x36], di
push 1
mov dword [esi + 0x2c], ebx
mov word [esi + 0x34], 2
mov dword [esi + 0x38], eax
lea edi, [esi + 0x54]
push ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [esi + 0x50], eax
je 0x1006d1f
push 9
push 0xffffffffffffffff
push esi
push 0x10068de
push eax
push edi
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x1006d1f
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp + 0x24]
push 0x30
mov dword [ecx], eax
push dword [esi + 0x50]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1006d0a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
jmp 0x1006d25
push ebx
push ebx
push ebx
push ebx
push 0x10
lea eax, [esi + 0x34]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAConnect]
jmp 0x1006d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1006d42
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebp + 0xc], eax
jne 0x1006d42
mov dword [ebp + 0xc], ebx
jmp 0x1006d81
cmp dword [ebp + 0xc], ebx
je 0x1006d81
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
mov edi, dword [edi]
cmp edi, ebx
je 0x1006d59
push edi
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
mov esi, dword [esi + 0x50]
cmp esi, ebx
je 0x1006d67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x1006d74
push dword [ebp + 0x14]
call fcn.01007a82
cmp dword [ebp + 8], ebx
je 0x1006d81
push dword [ebp + 8]
call fcn.010067cb
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x401eca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x401eca
lcall 0x5de5, 0x8b10c483
jmp loc.00855414
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4d647ba0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x525d3c81
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x438400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43842d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43842d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401ee0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4575d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x46e780]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x64c]
cmp eax, 1
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
jne 0x401f2c
push 0x45f238
call fcn.004024e0
mov dword [esp + 0x1c], 0
jmp 0x401f3e
push 0x45f254
call fcn.004024e0
mov dword [esp + 0x1c], 1
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x45f23c
call fcn.004024e0
mov dword [esp + 0x20], 0xffffffff
call fcn.0040aff0
add esp, 8
push 0
lea ecx, [esi + 0x3cc]
call fcn.00422fe4
push 0
lea ecx, [esi + 0x478]
call fcn.00422fe4
push 0
lea ecx, [esi + 0x144]
call fcn.00423020
push 5
push 0x3f2
mov ecx, esi
call fcn.00422e48
mov ecx, eax
call fcn.00422fe4
push 5
lea ecx, [esi + 0x2e0]
call fcn.00422fe4
push 0
lea ecx, [esi + 0x5d0]
call fcn.00422fe4
push 0
lea ecx, [esi + 0x680]
call fcn.00422fe4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str._r_nQiyiShellParser::ExecUninstall________________________________r_n
call fcn.004024e0
push 0x472bc8
call fcn.00406b90
lea eax, [esp + 8]
push eax
push 0
add esi, 0x2cc
push esi
push 0x414100
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x402720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402739
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402770
lea ebx, [ebx]
cmp esi, eax
jae 0x402774
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402760
cmp esi, eax
jb 0x40277a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406b90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x456598
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46e780]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
cmp dword [eax + 0x210], edi
je 0x406bdb
lea ecx, [eax + 0x20c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
push esi
call edx
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x406bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x406c20
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x210], 0xffffffff
je 0x406c5e
mov edx, dword [ebp + 0x20c]
mov eax, dword [edx + 0x48]
lea esi, [ebp + 0x20c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov esi, dword [ebp + 0xe0]
cmp esi, dword [ebp + 0xe4]
lea edi, [ebp + 0xdc]
jbe 0x406c77
call fcn.0043bb0f
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x406c84
call fcn.0043bb0f
cmp edi, edi
je 0x406c8d
call fcn.0043bb0f
cmp esi, ebx
je 0x406cd1
cmp esi, dword [edi + 8]
jb 0x406c9b
call fcn.0043bb0f
mov ecx, dword [esi]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406cc2
cmp esi, dword [edi + 8]
jb 0x406cb7
call fcn.0043bb0f
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp esi, dword [edi + 8]
jb 0x406ccc
call fcn.0043bb0f
add esi, 4
jmp 0x406c77
mov eax, dword [ebp + 0x224]
test eax, eax
je 0x406ce1
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0
mov dword [ebp + 0x224], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, ebp
call fcn.004252a8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.00424fa2
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x45f534
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x406dc9
pop edi
pop esi
pop ecx
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x406de9
pop ebx
pop edi
pop esi
pop ecx
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043c150
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x406e40
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x406e42
xor esi, esi
mov edx, dword [esp + 0x18]
push edi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x40aed0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4564d1
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x46e780]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov ebp, 1
mov dword [esp + 0x1c], ebp
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40af23
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edi, dword [0x472c84]
mov ecx, ebp
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x10], ebp
jge 0x40af58
push 0x104
mov ecx, esi
call fcn.004013d0
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x2c]
push 0x104
push eax
push 0x460114
push edi
push 0x460910
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi]
test ecx, ecx
jne 0x40af80
xor eax, eax
jmp 0x40af96
mov eax, ecx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40af85
sub eax, ebp
sar eax, 1
js 0x40afdc
cmp eax, dword [ecx - 8]
jg 0x40afdc
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40afc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push 0x80070057
call fcn.00401350
int3
Function at 0x40bbf0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x234
mov eax, dword [0x46e780]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40bc6b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00439c98
add esp, 0x234
ret
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov edi, dword [esp + 0x248]
je 0x40bdc5
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, edi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call fcn.004024e0
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x40bcc4
push esi
lea ecx, [esp + 0x14]
call fcn.004013d0
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0043b89c
add esp, 8
test esi, esi
jl 0x40be01
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x40be01
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
mov word [edx + esi*2], 0
mov esi, dword [edi - 0xc]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, esi
or eax, ecx
jge 0x40bd1b
push esi
lea ecx, [esp + 0x24c]
call fcn.004013d0
mov edi, dword [esp + 0x248]
lea edx, [esi + 1]
push edx
push edi
call fcn.0043b89c
add esp, 8
test esi, esi
jl 0x40be01
cmp esi, dword [edi - 8]
jg 0x40be01
mov dword [edi - 0xc], esi
mov word [edi + esi*2], 0
mov eax, dword [esp + 0x10]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd6e
test dx, dx
je 0x40bd6a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd6e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bd48
xor eax, eax
jmp 0x40bd73
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bd92
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x1f0fff
call ebp
test eax, eax
je 0x40bd92
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bc90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bde8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x234]
pop ebx
xor ecx, esp
call fcn.00439c98
add esp, 0x234
ret
push 0x80070057
call fcn.00401350
int3