joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
movzx esi, dx
push 0x10036d3c
mov edi, eax
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x100192b5
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10019362
push 0x2000
push ebp
push ebp
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx + 4], eax
xor eax, eax
mov esi, ebx
call fcn.10018c80
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100192d0
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
push esi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
xor esi, esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1001935b
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x1001935b
push eax
push ebx
call fcn.10018890
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
xor edi, edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
call fcn.10019170
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x10021f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x51c
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp edi, ebx
jne 0x10021f6b
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x51c
ret
push esi
push 0x3ff
lea eax, [esp + 0x129]
push ebx
push eax
mov byte [esp + 0x130], bl
call sub.MSVCR90.dll_memset
push 0xfe
lea edx, [esp + 0x36]
xor ecx, ecx
push ebx
mov esi, 0x400
push edx
mov dword [esp + 0x28], esi
mov word [esp + 0x3c], cx
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x3c]
add esp, 0x18
lea ecx, [edi + 8]
test eax, eax
je 0x10021fde
cmp ecx, ebx
je 0x10021fde
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10021fc0
sub eax, esi
inc eax
push eax
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push 0xffffffffffffffff
shr esi, 1
push esi
mov esi, dword [sym.imp.MSVCR90.dll__snwprintf_s]
lea ecx, [esp + 0x134]
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x130]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10022040
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x51c
ret
push 0x400
lea ecx, [esp + 0x128]
push ebx
push ecx
mov dword [esp + 0x20], ebx
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.PnpInstanceID
push edx
call edi
test eax, eax
jne 0x10022138
lea ecx, [esp + 0x124]
push ecx
push 0x10037330
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push 4
push edx
mov word [esp + 0x30], ax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
call esi
lea eax, [esp + 0x30]
push 4
push eax
call dword [sym.imp.MSVCR90.dll__wcslwr_s]
lea ecx, [esp + 0x38]
push 0x10037338
push ecx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 0x24
test eax, eax
jne 0x10022138
call fcn.10021ed0
test al, al
je 0x100220e7
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x1a0], 6
jmp 0x10022134
push 0x400
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.MediaSubType
push ecx
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x10022138
cmp dword [esp + 0x124], 1
jne 0x10022138
mov bl, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x524]
pop esi
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.1002dfc6
add esp, 0x51c
ret
Function at 0x1002d8c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10044890], 0
push esi
jne 0x1002d839
call fcn.1002d75f
test eax, eax
je 0x1002d87c
mov eax, dword [0x10044890]
cmp eax, 1
jne 0x1002d85a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1002d87c
pop esi
ret
push eax
call dword [0x10044898]
test eax, eax
jne 0x1002d8c4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1002d880
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10044890]
call dword [0x10044898]
mov edi, eax
test edi, edi
je 0x1002d8a5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1002d8c1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10044890]
call dword [0x10044894]
add edi, 0x10
cmp edi, esi
jb 0x1002d8ad
mov eax, edi
pop edi
pop esi
ret
jmp 0x1002d826

Function at 0x1002dfc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004304c]
jne 0x1002dfd0
repz ret
jmp fcn.1002e6b0

Function at 0x427432
Capabilities:
Encode data using xor

Disassembly:
pop ebp
clc
pushal
lea edi, [ebp + 0x42]
mov si, 0x256
cld
mov cl, byte [edi]
xor cl, 0x59
rol cl, 0xc4
xor cl, 0x18
mov byte [edi], cl
inc edi
dec si
jne 0x42743d
jmp 0x427495
fmul st(0)
fdivr dword [esi + 0x7d0c6bc0]
invalid
Function at 0x4033b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov esi, esp
push 3
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDCEx]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4033ff
xor eax, eax
jmp 0x403564
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x40341a
call fcn.00403170
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40343e
cmp dword [ebp - 4], 0
je 0x403437
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.0040a650
xor eax, eax
jmp 0x403564
mov dword [ebp - 0xc], 0
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0x18]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
mov esi, esp
push edx
push 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4034c6
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.0040a650
xor eax, eax
jmp 0x403564
mov esi, esp
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0x14], eax
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.0040a650
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00403260
mov dword [ebp - 0x18], eax
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.0040a650
mov eax, dword [ebp - 0x18]
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.0040a650
mov esp, ebp
pop ebp
ret 4
Function at 0x405590
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov esi, esp
push 3
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDCEx]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4055e7
xor eax, eax
jmp 0x405728
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp esi, esp
call fcn.0040a650
add eax, 1
mov dword [ebp - 0x10], eax
jne 0x405617
xor eax, eax
jmp 0x405728
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0x18]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
mov esi, esp
push edx
push 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405666
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.0040a650
xor eax, eax
jmp 0x405728
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.0040a650
mov esi, esp
push 0
push 0
push 0x31
mov edi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp edi, esp
call fcn.0040a650
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, esp
call fcn.0040a650
mov esi, esp
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00403260
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0x18]
mov dword [ebp - 0x1c], eax
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.0040a650
mov eax, dword [ebp - 4]
pop edi
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.0040a650
mov esp, ebp
pop ebp
ret 4
Function at 0x405740
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
lea edi, [ebp - 0x5c]
mov ecx, 0x17
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x401324]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x48], ax
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call sub.MSVCR110D.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov esi, esp
push 0x20
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4057ae
xor eax, eax
jmp 0x405859
mov esi, esp
push 3
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4057d5
xor eax, eax
jmp 0x405859
mov esi, esp
push 0
push 0
push 0x31
mov edi, esp
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
cmp edi, esp
call fcn.0040a650
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, esp
call fcn.0040a650
mov esi, esp
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.0040a650
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.00403260
mov dword [ebp - 0x5c], eax
mov esi, esp
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.0040a650
mov esi, esp
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.0040a650
mov eax, dword [ebp - 0x5c]
add eax, 0x2b
push edx
mov ecx, ebp
push eax
lea edx, [0x405888]
call fcn.0040a5f0
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a680
add esp, 0x5c
cmp ebp, esp
call fcn.0040a650
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a301
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40a308
xor eax, eax
jmp 0x40a41a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x40a32e
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x40a335
xor eax, eax
jmp 0x40a41a
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x16]
and eax, 0x100
je 0x40a352
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x16]
and edx, 0x14c
jne 0x40a359
xor eax, eax
jmp 0x40a41a
mov eax, dword [ebp - 8]
add eax, 0x78
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x40a37f
cmp dword [ebp - 0x10], 0
jne 0x40a386
xor eax, eax
jmp 0x40a41a
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
jmp 0x40a3cc
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x18]
jae 0x40a417
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
cmp esi, esp
call fcn.0040a650
test eax, eax
jne 0x40a415
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
xor eax, eax
je 0x40a417
jmp 0x40a3c3
mov eax, dword [ebp - 0x28]
pop edi
pop esi
add esp, 0x2c
cmp ebp, esp
call fcn.0040a650
mov esp, ebp
pop ebp
ret 8
Function at 0x40a500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0xa0]
mov dword [ebp - 0xc], eax
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, esp
call fcn.0040a650
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
sub edx, 0x10
mov dword [ebp - 8], edx
jmp 0x40a570
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
sub ecx, 0x10
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
je 0x40a5b4
cmp dword [ebp - 8], 0
je 0x40a5b4
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], 0
je 0x40a5b4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx + 0x10]
je 0x40a5b4
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [ebp + 8]
cmp esi, esp
call fcn.0040a650
movzx eax, al
test eax, eax
je 0x40a5b4
jmp 0x40a564
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0xa0]
mov dword [ebp - 0x10], eax
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, esp
call fcn.0040a650
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.0040a650
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x8f72e33
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x1c3a3812
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10002230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov byte [ebp - 1], 0xe9
push eax
push 1
lea eax, [ebp - 1]
push eax
push 0x4558ec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call esi
mov eax, 0x100021d0
sub eax, 0x4558f1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x4558ed
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push 0x4558f1
call esi
mov eax, 0x4558f1
mov byte [eax], 0x90
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push 1
push 0x4558f1
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push 0x7eb840
call esi
mov byte [0x7eb840], 0xe9
mov eax, 0x100046c0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0xff8147bb
mov dword [0x7eb841], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 5
push 0x7eb840
call esi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push 0x43cf4c
call esi
mov byte [0x43cf4c], 0xe9
mov eax, 0x100046f0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0xffbc30af
mov dword [0x43cf4d], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 5
push 0x43cf4c
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004f90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
cmp eax, 1
jne 0x100050a7
push ebx
push esi
push edi
call fcn.1001eee0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x586d00
call ebx
mov byte [0x586d00], 0xe9
mov eax, 0x1001eec0
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, 0xffa792fb
mov dword [0x586d01], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 5
push 0x586d00
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp + 0xc]
push 0
push 1
push eax
push 0x50a3e5
mov byte [ebp + 0xc], 0xeb
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call esi
push 0
push 1
lea eax, [ebp + 0xc]
mov byte [ebp + 0xc], 0xeb
push eax
push 0x4ff1e4
call edi
push eax
call esi
push 0
push 1
lea eax, [ebp + 0xc]
mov byte [ebp + 0xc], 0xeb
push eax
push 0x50a448
call edi
push eax
call esi
push 0
push 1
lea eax, [ebp + 0xc]
mov byte [ebp + 0xc], 0xeb
push eax
push 0x510cb7
call edi
push eax
call esi
push 0
push 1
lea eax, [ebp + 0xc]
mov byte [ebp + 0xc], 0xeb
push eax
push 0x510ace
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push 0x4ff0b6
call ebx
mov eax, 0x4ff0b6
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 6
push 0x4ff0b6
call ebx
call fcn.10004cf0
pop edi
pop esi
pop ebx
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x100050b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc