joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c3a3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c440
push ebx
push esi
call fcn.0040c36c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c300
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c3ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c43f
push edi
push eax
call fcn.0040cfc0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c40d
call fcn.0040ae61
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c43e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c300
add esp, 0x20
test eax, eax
jne 0x40c42c
push edi
call fcn.0040ae61
jmp 0x40c434
push ebx
call fcn.0040ae61
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d73d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a330
push 0x46a328
push str.FlsAlloc
push 0x1f
call fcn.0040d5fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d771
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
jmp 0x40d777
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7bb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a340
push 0x46a338
push str.FlsGetValue
push 0x21
call fcn.0040d5fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d7fa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a348
push 0x46a340
push str.FlsSetValue
push 0x22
call fcn.0040d5fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d834
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412c90
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x10005f90
call fcn.10005d30
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x10008938
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10006200
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.10002f7f
mov dword [ebp - 0x5c], edi
mov esi, 0x10006208
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x10002f3c
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10005d00
push dword [ebp - 0x18]
call fcn.10005d00
pop ecx
mov dword [ebp - 0x28], 0x10006200
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10003141
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x1000308a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
ret
Function at 0x100032c5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003302
cmp byte [ebp - 0x190], 2
jne 0x100032fc
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x100032fc
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x100033bc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003403
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003403
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10003407
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003425
xor eax, eax
jmp 0x10003464
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003462
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10003464
mov eax, esi
pop esi
leave
ret
Function at 0x10003638
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10092be8], esi
jne 0x1000366d
push edi
push esi
push esi
push esi
push 0x100039a2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003665
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x10003dc6
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10003d5f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x10004375
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x100043c5
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x1000438a
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x10004af9
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x10092df4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x10092cf0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10092bec
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x10092ef8
push esi
push ebx
push 0
call edi
mov eax, dword [0x10093204]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x10004b54
push esi
mov esi, 0x10093100
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.10004b70
push eax
push 0x10092ffc
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10004c6d
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
call fcn.10004b85
pop ecx
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10004ca7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10004ca7
test esi, esi
je 0x10004cab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004c6e
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x10004e0d
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x10004e9f
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x10005970
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x100059b8
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x100059b8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000599f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100059c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8

Function at 0x10005a34
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x10005a83
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10005a7b
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x100087dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x401000
Capabilities:
Copy file
Create tcp socket
Create udp socket
Get common file path
Initialize winsock library
Persist via run registry key
Resolve dns
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7dc
mov eax, dword [0x409004]
xor eax, esp
mov dword [esp + 0x7d8], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x3d0]
push eax
push 0x104
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.SHAMple.dat
lea ecx, [esp + 0x3d4]
push ecx
call ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x3e8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401088
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7d8]
xor ecx, esp
call fcn.00401256
mov esp, ebp
pop ebp
ret 0x10
mov al, 0x6e
push 0
mov byte [esp + 0x1c8], al
lea eax, [esp + 0x18]
push eax
push 9
lea ecx, [esp + 0x1c8]
push ecx
push esi
mov dword [esp + 0x1d0], 0x466e7546
mov dword [esp + 0x1d4], 0x75466e75
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40106e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareSHAMple
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40106e
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40106e
push str.www.shample.ru
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x104
lea edx, [esp + 0x5dc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c8]
push eax
push 0x104
call edi
push str.system.exe
lea ecx, [esp + 0x1cc]
push ecx
call ebx
push 0
lea edx, [esp + 0x1cc]
push edx
lea eax, [esp + 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40106e
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40106e
lea eax, [esp + 0x1c8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011a4
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax*4 + 4]
push edx
lea eax, [esp + 0x1cc]
push eax
push 1
push 0
push str.System
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
push edx
call esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40106e
mov eax, 2
push 0x50
mov word [esp + 0x1c], ax
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40106e
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, dword [esp + 0x7e4]
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
xor ecx, esp
dec eax
call fcn.00401256
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401256
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409004]
jne 0x401260
repz ret
jmp fcn.00401405

Function at 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
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.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40a744], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403456
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a744], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a748], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a74c], eax
call edi
push eax
call esi
mov dword [0x40a754], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a750], eax
mov eax, dword [0x40a750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40a754], ecx
je 0x403407
push eax
call esi
push dword [0x40a754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403407
test ebx, ebx
je 0x403407
call edi
test eax, eax
je 0x4033fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40a748]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40343a
mov eax, dword [0x40a74c]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a744]
call esi
test eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401256
leave
ret
Function at 0x4286af
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4478e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x428723
push 0x228
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00433c90
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42871c
lea eax, [ebp - 0x230]
push eax
push esi
inc edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x428705
cmp edi, 0x3c
jg 0x428723
push 1
call fcn.00434619
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004330ad
leave
ret

Function at 0x4330ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4478e0]
jne 0x4330b7
repz ret
jmp fcn.00435d6c
Function at 0x43c057
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4478e0]
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.00435765
and dword [ebp - 0x14], 0
cmp dword [0x44ba00], 0
mov dword [ebp - 0x18], eax
jne 0x43c10a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43c1b2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x442f74
push ebx
call edi
test eax, eax
je 0x43c1b2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44ba00], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44ba04], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44ba08], eax
call edi
push eax
call esi
mov dword [0x44ba10], eax
test eax, eax
je 0x43c10a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44ba0c], eax
mov eax, dword [0x44ba0c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43c163
cmp dword [0x44ba10], ecx
je 0x43c163
push eax
call esi
push dword [0x44ba10]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43c163
test ebx, ebx
je 0x43c163
call edi
test eax, eax
je 0x43c15a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43c15a
test byte [ebp - 8], 1
jne 0x43c163
or dword [ebp + 0x10], 0x200000
jmp 0x43c196
mov eax, dword [0x44ba04]
cmp eax, dword [ebp - 0x18]
je 0x43c196
push eax
call esi
test eax, eax
je 0x43c196
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43c196
mov eax, dword [0x44ba08]
cmp eax, dword [ebp - 0x18]
je 0x43c196
push eax
call esi
test eax, eax
je 0x43c196
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44ba00]
call esi
test eax, eax
je 0x43c1b2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43c1b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004330ad
leave
ret
Function at 0x401a20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
push ecx
push 0x18
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401aa9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401aa9
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax]
lea eax, [esp + 0x30]
push str.ac_client.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x401aa1
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x401a80
jmp 0x401aa9
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401ac9
mov esp, ebp
pop ebp
ret

Function at 0x40236c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4023ab
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4023ab
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.KERNEL32.dll_InitializeSListHead
jne 0x4023ab
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4023ab
cmp dword [ecx + 0x74], 0xe
jbe 0x4023ab
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret