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

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x712005c3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x19f17926
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x438c8f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
mov esi, 0x6f870d0
or esi, esi
add esi, 0x16c22fb3
call fcn.00438cd1
sub esi, 0xe184a31
inc esi
xor dword [edx], ecx
add esi, esi
add edx, 1
and esi, edi
mov esi, esi
cmp edx, eax
jne fcn.00438c8f
sub edi, 1
add esi, 0x1eb9c902
or esi, edi
ret
Function at 0x402c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ca7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402cd8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402cd4
cmp esi, eax
jae 0x402cd8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402cc4
cmp esi, eax
jb 0x402cde
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4041d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4041e0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4041f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404770
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x425060]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4047ea
xor eax, eax
cmp ecx, ebp
je 0x4047d2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4047f8
cmp ecx, ebp
je 0x40488b
push ecx
jmp 0x404885
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40485a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00404770
mov ebx, eax
cmp ebx, ebp
jne 0x4048a8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404820
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40486d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404920
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40488b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b677
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4048b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40488d
Function at 0x4053a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x41e410
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x425060]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40541f
call fcn.00403aa0
mov esi, eax
jmp 0x405501
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40543b
call fcn.00403aa0
jmp 0x4054f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x405454
call fcn.00403aa0
jmp 0x4054f8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x405488
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405476
lea eax, [ebp]
call fcn.00404160
lea esi, [ebp - 0x1c]
call fcn.00404220
mov eax, 0x8007000e
jmp 0x405513
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00403a60
mov dword [ebp - 4], 1
jmp 0x4054b1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4054bf
mov esi, 0x8007000e
jmp 0x4054fa
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x4054dd
call fcn.00403aa0
jmp 0x4054f8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00405250
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x405511
lea eax, [ebp]
call fcn.00404160
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040b677
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405fc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push esi
mov edx, ecx
jne 0x4060a0
mov eax, dword [ebp + 0xc]
cmp eax, 0x84
jne 0x405ff3
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xf
jne 0x406010
mov esi, edx
call fcn.00406270
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x202
jne 0x406049
mov edx, dword [edx + 0x28]
cmp dword [edx - 0xc], 0
je 0x406034
push 5
push 0
push 0
push edx
push 0x421008
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x200
jne 0x40607b
lea ecx, [esp + 4]
mov esi, edx
mov dword [esp + 4], 1
call fcn.00406160
cmp dword [esp + 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x4060a0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x4060a9
push 0
mov dword [edx + 0x38], 0
mov edx, dword [edx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x4060d9
lea eax, [esp + 4]
mov esi, edx
mov dword [esp + 4], 1
call fcn.004061d0
cmp dword [esp + 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x4060a0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
jne 0x4060a0
mov esi, dword [ebp + 0x10]
call fcn.00406220
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x407140
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, edi
or ecx, edx
jge 0x40716c
mov ecx, edi
mov eax, esi
call fcn.00405a20
mov eax, dword [esi]
push edi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407193
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x407197
push ecx
push eax
call fcn.0040bc79
add esp, 8
test eax, eax
jl 0x4071ad
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4071ad
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, edi
pop edi
ret
push 0x80070057
call fcn.00405be0
int3
Function at 0x407280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e5e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425060]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x4073b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 3
jne 0x407386
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x40739a
lea eax, [esp + 0x18]
push eax
mov ecx, 0x421f80
call fcn.00402dc0
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0
call fcn.00402400
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40732d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov ebx, eax
call edi
mov esi, eax
cmp ebx, 0xffffffff
je 0x407366
test bl, 0x10
jne 0x407366
lea ecx, [esp + 0x14]
call fcn.00405bc0
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407386
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 2
je 0x40739a
cmp esi, 3
je 0x40739a
cmp esi, 0x7b
je 0x40739a
cmp esi, 0x35
jne 0x40734d
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x407880
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, eax
push edi
call fcn.00407dc0
mov eax, dword [esp + 0x1c]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407947
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xf4240
jg 0x407940
test ebp, ebp
jne 0x4078e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
lea ecx, [ebp + 2]
push ecx
push 1
call fcn.0040c343
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x407940
push 0
lea edx, [esp + 0x18]
push edx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407937
cmp dword [esp + 0x14], ebp
jne 0x407937
push ebp
mov eax, ebx
call fcn.00407960
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040badb
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push ebx
call fcn.0040badb
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x40af60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
jne 0x40af78
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push str.langFileName
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 1
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b004
mov ecx, dword [esp + 0xc]
cmp ecx, 1
je 0x40afba
cmp ecx, 7
je 0x40afba
cmp ecx, 2
jne 0x40b004
push esi
add eax, 2
push eax
push 1
call fcn.0040c343
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40b003
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.langFileName
push edx
call edi
test eax, eax
jne 0x40affa
mov edi, dword [esp + 0x1c]
mov edx, esi
call fcn.00405920
mov ebx, 1
push esi
call fcn.0040badb
add esp, 4
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 8

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

Disassembly:
cmp dword [0x4267c8], 0
push esi
jne 0x40b32b
call fcn.0040b251
test eax, eax
je 0x40b36e
mov eax, dword [0x4267c8]
cmp eax, 1
jne 0x40b34c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40b36e
pop esi
ret
push eax
call dword [0x4267d0]
test eax, eax
jne 0x40b3b6
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 0x40b372
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4267c8]
call dword [0x4267d0]
mov edi, eax
test edi, edi
je 0x40b397
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40b3b3
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4267c8]
call dword [0x4267cc]
add edi, 0x10
cmp edi, esi
jb 0x40b39f
mov eax, edi
pop edi
pop esi
ret
jmp 0x40b318

Function at 0x40b677
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425060]
jne 0x40b681
repz ret
jmp fcn.0040cd8c

Function at 0x41311e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x413158
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x413153
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
add al, dh
add byte [eax], al
add al, dh
add byte [eax], al
cmp edx, 0x3000
jne 0x41313d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x413145
cmp edx, ebx
jne 0x413293
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x413114
add eax, dword [eax + 4]
jmp 0x413101
mov dword [ebp + 0xc], ebx
jmp 0x413163
Function at 0x4131d3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41317b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x413199
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4131f7
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4131de
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4131e7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4131f1
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe fcn.004131d3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41315d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x413244
dec eax
je 0x41323b
sub eax, 3
je 0x413232
mov dword [ebp - 4], 0x40
jmp 0x413261
mov dword [ebp - 4], 4
jmp 0x413247
mov dword [ebp - 4], 0x20
jmp 0x413247
invalid
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x413293
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x413213
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00412aa4
push ebp
scasb al, byte es:[edi]
or al, 0x7b
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x41329f
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
Function at 0x413330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0x55fffffc
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00412ab4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00412a69
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00412ab4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
sbb dh, dh
invalid
Function at 0x4152bf
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.0040cf04
and dword [ebp - 4], 0
cmp dword [0x4273e8], 0
mov ebx, eax
jne 0x415370
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415421
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x415421
push eax
call fcn.0040ce92
mov dword [esp], 0x420568
push edi
mov dword [0x4273e8], eax
call esi
push eax
call fcn.0040ce92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4273ec], eax
call esi
push eax
call fcn.0040ce92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4273f0], eax
call esi
push eax
call fcn.0040ce92
pop ecx
mov dword [0x4273f8], eax
test eax, eax
je 0x415370
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ce92
pop ecx
mov dword [0x4273f4], eax
mov eax, dword [0x4273f4]
cmp eax, ebx
je 0x4153c8
cmp dword [0x4273f8], ebx
je 0x4153c8
push eax
call fcn.0040cf0d
push dword [0x4273f8]
mov esi, eax
call fcn.0040cf0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4153c8
test edi, edi
je 0x4153c8
call esi
test eax, eax
je 0x4153bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4153bf
test byte [ebp - 0xc], 1
jne 0x4153c8
or dword [ebp + 0x10], 0x200000
jmp 0x415401
mov eax, dword [0x4273ec]
cmp eax, ebx
je 0x415401
push eax
call fcn.0040cf0d
pop ecx
test eax, eax
je 0x415401
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x415401
mov eax, dword [0x4273f0]
cmp eax, ebx
je 0x415401
push eax
call fcn.0040cf0d
pop ecx
test eax, eax
je 0x415401
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4273e8]
call fcn.0040cf0d
pop ecx
test eax, eax
je 0x415421
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415423
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100074d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov ecx, 0x401000
call fcn.10007700
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10007a60
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000752d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
cmp esi, 0x53ec8b55
jne 0x10007540
mov eax, 0x3e9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10007700
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10007a60
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000758f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
cmp esi, 0x16197be9
jne 0x100075a2
mov eax, 0x3ea
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10007a00
cmp eax, 0x94bf
jne 0x100075be
mov eax, 0x3f3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10007a00
cmp eax, 0x94bf
jne 0x100075da
mov eax, 0x44d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10007a00
cmp eax, 0x94bf
jne 0x100075f6
mov eax, 0x457
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10007a00
cmp eax, 0x3539f633
jne 0x10007612
mov eax, 0xc80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10007a00
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop edi
cmove ecx, edx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret