joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470ea6
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x470f3e
push 0x4a1594
push 4
push eax
call fcn.00486bc0
push eax
call fcn.00404870
add esp, 0x10
push ebx
push edi
call fcn.00486f46
mov edi, dword [eax]
call fcn.00486f46
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00485401
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.00486f46
cmp dword [eax], ebx
je 0x470f55
call fcn.00486f46
push dword [eax]
call fcn.00467428
pop ecx
jmp 0x470f5c
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x470ef2
jmp 0x470fce
call fcn.00486f46
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x470fca
cmp dword [ebp - 0x3c], esi
jae 0x470fca
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00487460
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x470fbc
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x470fbc
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x470fbc
push ebx
push ebx
push esi
jmp 0x470fc2
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x470fcc
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.00483c76
add ebp, 0xe0
leave
ret
Function at 0x471bd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x471c1e
call fcn.00470214
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x471c1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x471c61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x471c4a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x471c4a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x471c5e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x474773
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 0x4747a1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4747bf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004746dd
jmp 0x4747bf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4747bf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004746dd
test edi, edi
mov eax, edi
jne 0x4747a9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c3850]
test ecx, ecx
je 0x474882
jmp 0x474772
ret 8

Function at 0x483c76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bfdd0]
jne 0x483c80
repz ret
jmp fcn.0048a164
Function at 0x48f615
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c0618]
je 0x48f630
inc edi
cmp edi, 0x17
jb 0x48f621
cmp edi, 0x17
jae 0x48f7b0
push ebp
push 3
call fcn.00495370
cmp eax, 1
pop ecx
je 0x48f77c
push 3
call fcn.00495370
test eax, eax
pop ecx
jne 0x48f664
cmp dword [0x4bfc50], 1
je 0x48f77c
cmp ebx, 0xfc
je 0x48f7af
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c4160
push ebp
call fcn.00486bc0
add esp, 0xc
test eax, eax
je 0x48f69a
push esi
push esi
push esi
push esi
push esi
call fcn.00486160
add esp, 0x14
push 0x104
mov esi, 0x4c4179
push esi
push 0
mov byte [0x4c427d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48f6de
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00486bc0
add esp, 0xc
test eax, eax
je 0x48f6de
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00486160
add esp, 0x14
push esi
call fcn.00486e80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48f723
push esi
call fcn.00486e80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c4474
push 0x4ae65c
sub ecx, eax
push ecx
push eax
call fcn.004874da
add esp, 0x14
test eax, eax
je 0x48f723
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00486160
add esp, 0x14
jmp 0x48f725
xor esi, esi
push 0x4a3a38
push ebx
push ebp
call fcn.004893ac
add esp, 0xc
test eax, eax
je 0x48f745
push esi
push esi
push esi
push esi
push esi
call fcn.00486160
add esp, 0x14
push dword [edi*8 + 0x4c061c]
push ebx
push ebp
call fcn.004893ac
add esp, 0xc
test eax, eax
je 0x48f767
push esi
push esi
push esi
push esi
push esi
call fcn.00486160
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004951b3
add esp, 0xc
jmp 0x48f7af
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48f7af
cmp ebp, 0xffffffff
je 0x48f7af
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c061c]
push dword [esi]
call fcn.00486e80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4951b3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048ad05
xor ebx, ebx
cmp dword [0x4c45f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x495289
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x495369
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4ad0
push edi
call esi
cmp eax, ebx
je 0x495369
push eax
call fcn.0048ac97
mov dword [esp], 0x4a4ac0
push edi
mov dword [0x4c45f8], eax
call esi
push eax
call fcn.0048ac97
mov dword [esp], 0x4a4aac
push edi
mov dword [0x4c45fc], eax
call esi
push eax
call fcn.0048ac97
mov dword [0x4c4600], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004890b2
test eax, eax
pop ecx
pop ecx
je 0x495257
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486160
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x495289
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048ac97
cmp eax, ebx
pop ecx
mov dword [0x4c4608], eax
je 0x495289
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048ac97
pop ecx
mov dword [0x4c4604], eax
mov eax, dword [0x4c4604]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49530e
cmp dword [0x4c4608], ecx
je 0x49530e
push eax
call fcn.0048ad0e
push dword [0x4c4608]
mov esi, eax
call fcn.0048ad0e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49530e
cmp edi, ebx
je 0x49530e
call esi
cmp eax, ebx
je 0x4952db
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4952db
test byte [ebp - 0x18], 1
jne 0x49530e
lea eax, [ebp - 0x10]
push eax
call fcn.004890e9
test eax, eax
pop ecx
je 0x4952f6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486160
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x495305
or dword [ebp + 0x10], 0x200000
jmp 0x495349
or dword [ebp + 0x10], 0x40000
jmp 0x495349
mov eax, dword [0x4c45fc]
cmp eax, dword [ebp - 8]
je 0x495349
push eax
call fcn.0048ad0e
cmp eax, ebx
pop ecx
je 0x495349
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x495349
mov eax, dword [0x4c4600]
cmp eax, dword [ebp - 8]
je 0x495349
push eax
call fcn.0048ad0e
cmp eax, ebx
pop ecx
je 0x495349
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c45f8]
call fcn.0048ad0e
cmp eax, ebx
pop ecx
je 0x495369
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49536b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x499e97
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00499dd6
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00487460
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x499ee6
cmp dword [ebp - 0x1c], 5
jb 0x499efe
jmp 0x499efa
cmp dword [ebp - 0x10], 1
jne 0x499efe
cmp dword [ebp - 0x1c], 4
ja 0x499efa
jne 0x499efe
cmp dword [ebp - 0x18], 0
jbe 0x499efe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a536c
call fcn.00499c89
test eax, eax
jge 0x499f1f
mov byte [0x4c48b8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00483c76
add ebp, 0x78
leave
ret
Function at 0x4097d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43eac8]
jne 0x4097de
repz ret
jmp fcn.0040bb3e

Function at 0x409cb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43eac8]
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.00407bdd
and dword [ebp - 0x14], 0
cmp dword [0x456158], 0
mov dword [ebp - 0x18], eax
jne 0x409d63
push 0x402360
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409e0b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402354
push ebx
call edi
test eax, eax
je 0x409e0b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402344
push ebx
mov dword [0x456158], eax
call edi
push eax
call esi
push 0x402330
push ebx
mov dword [0x45615c], eax
call edi
push eax
call esi
push 0x402314
push ebx
mov dword [0x456160], eax
call edi
push eax
call esi
mov dword [0x456168], eax
test eax, eax
je 0x409d63
push 0x4022fc
push ebx
call edi
push eax
call esi
mov dword [0x456164], eax
mov eax, dword [0x456164]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409dbc
cmp dword [0x456168], ecx
je 0x409dbc
push eax
call esi
push dword [0x456168]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409dbc
test ebx, ebx
je 0x409dbc
call edi
test eax, eax
je 0x409db3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409db3
test byte [ebp - 8], 1
jne 0x409dbc
or dword [ebp + 0x10], 0x200000
jmp 0x409def
mov eax, dword [0x45615c]
cmp eax, dword [ebp - 0x18]
je 0x409def
push eax
call esi
test eax, eax
je 0x409def
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409def
mov eax, dword [0x456160]
cmp eax, dword [ebp - 0x18]
je 0x409def
push eax
call esi
test eax, eax
je 0x409def
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x456158]
call esi
test eax, eax
je 0x409e0b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409e0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097d4
leave
ret
Function at 0x10001d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
xor eax, eax
push esi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
push edi
mov ecx, 0x3d69ca38
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], 0
call fcn.1001ac00
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
sete al
test al, al
je 0x10001db3
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x1002588c
sub edi, 0x7e80af00
lea esi, [ebp - 0x230]
call fcn.1001ac80
lea edx, [ebp - 0x108]
push edx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x234], eax
jmp 0x10001de1
mov ecx, 0x3d69ca38
lea eax, [ebp - 0x218]
call fcn.1001ac00
push eax
call esi
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
cmp dword [ebp - 0x234], 0
jne 0x10001e18
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
pop edi
mov dword [ebx + 8], ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x238]
push edx
call esi
mov edi, 0x4bdde6d5
lea esi, [ebp - 0x230]
mov dword [ebp - 0x238], eax
call fcn.1001acc0
push eax
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x238]
push 0xc
lea ecx, [ebp - 0x244]
mov esi, eax
xor eax, eax
push ecx
push edx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x21c], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [ebx + 8], edx
mov eax, ebx
pop esi
call fcn.1001ea11
mov esp, ebp
pop ebp
ret 4

Function at 0x10002cb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], ecx
call ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10029bb8
push 0x1001f059
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002d018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], 0
push 0xa
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi]
mov dword [esi], edx
mov al, byte [edi + 4]
mov byte [esi + 4], al
add esi, 5
mov byte [esi], 0xe9
mov ecx, edi
sub ecx, esi
mov dword [esi + 1], ecx
lea edx, [ebp - 0x1c]
push edx
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [edi], 0xe9
sub ebx, edi
sub ebx, 5
mov dword [edi + 1], ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esi - 5]
jmp 0x10002dc9
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [esi + 5]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [esi + 5]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [esi + 5]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
push ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea edx, [ebp - 4]
push edx
add ebx, esi
push 0x40
mov eax, edi
sub eax, ebx
push esi
lea ecx, [eax + esi - 5]
push edi
mov byte [ebx], 0xe9
mov dword [ebx + 1], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edi
mov byte [edi], 0xe9
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, ebx
sub eax, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002e90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
push eax
push esi
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002ee0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002f26
push str.Error:_Unable_to_create_toolhelp_snapshot_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002f14
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x10002f50
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002f78
test dl, dl
je 0x10002f74
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002f78
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002f58
xor eax, eax
jmp 0x10002f7d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002f9f
lea ecx, [ebp - 0x130]
push ecx
push esi
call ebx
test eax, eax
jne 0x10002f50
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ea11
mov esp, ebp
pop ebp
ret
Function at 0x100030b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020f2e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x10160eb0], 1
jne 0x1000314b
or dword [0x10160eb0], 1
mov edi, 0x1023694d
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.1001b000
mov esi, eax
mov ecx, 0x10236961
lea eax, [ebp - 0x1c]
call fcn.1001af80
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001e620
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10160eac], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], al
mov dword [ebp - 4], 0xffffffff
push 0
push 0xffffffffffffffff
call dword [0x10160eac]
test eax, eax
jne 0x10003160
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret
Function at 0x1000ab90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fb48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edx, edx
mov ecx, 0x49
xor eax, eax
mov bl, byte [eax + 0x1002630c]
xor bl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x30], bl
jns 0x1000abdf
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1c
jl 0x1000abc2
mov byte [ebp - 0x14], dl
mov dword [ebp - 4], edx
mov ecx, dword [0x1016051c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x30]
push edx
call eax
add eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
add eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret 8

Function at 0x1000ae10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fb18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edx, edx
mov ecx, 0x1f
xor eax, eax
mov bl, byte [eax + str.Vfira_nuINF_OY]
xor bl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2c], bl
jns 0x1000ae5f
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x17
jl 0x1000ae42
mov byte [ebp - 0x15], dl
mov dword [ebp - 4], edx
mov ecx, dword [0x1016051c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x2c]
push edx
call eax
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fa38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edx, edx
mov ecx, 0x8d
xor eax, eax
mov bl, byte [eax + 0x10027968]
xor bl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x24], bl
jns 0x1000b2bf
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x13
jl 0x1000b2a2
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], edx
mov ecx, dword [0x1016051c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x24]
push edx
call eax
fld dword [ebp + 8]
mov eax, dword [eax + esi + 0xc]
fstp dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001ea11
mov esp, ebp
pop ebp
ret 4