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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10005ab8
mov edi, dword [0x1000a0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x100059c7
test byte [0x10006088], 8
jne 0x10005a60
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10006098], 8
jne 0x10005a20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10005969
cmp esi, 3
jbe 0x100059d8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000597a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10008608]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10005969
mov dword [esp], 0x10006098
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10005940
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10005940
mov dword [esp], 0x10006088
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000592b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10005933
mov eax, 0xffffffff
jmp 0x100059c7
Function at 0x10005b50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1000a0c0]
test eax, eax
je 0x10005c08
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10005b90
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10005b7c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10005c3d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1000a0c0], eax
sub esp, 8
test eax, eax
jne 0x10005b6d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10005b7e
Function at 0x10005c50
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10005de0
mov eax, dword [esi]
test eax, eax
je 0x10005dc8
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10005dec
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10005db8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x10005d7c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10005cb6
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10005de2
Function at 0x40a910
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x416190]
cmp ax, 0xcb
je 0x40aa0c
cmp ax, 0xcc
je 0x40aa0c
mov edx, dword [0x4b9030]
test edx, edx
je 0x40a942
mov eax, dword [0x4b8ed0]
call edx
mov ebx, eax
jmp 0x40a947
mov ebx, 0x4b8ed4
cmp word [0x4b8ec0], 0
jle 0x40a96a
mov eax, reloc.winmm.dll_joyGetDevCapsW
call fcn.0040ab80
mov eax, ebx
call fcn.0040a4f0
mov eax, ebx
call fcn.0040a560
mov edi, dword [ebx]
jmp 0x40a98a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40a985
mov edx, edi
mov eax, ebx
call fcn.004099c0
jmp 0x40a988
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40a970
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4b8ec0], 0
jle 0x40aa0c
mov edx, 0x4b8de0
mov eax, ebx
call fcn.00409af0
mov edi, eax
test edi, edi
je 0x40a9df
mov eax, dword [0x4b8e74]
mov dword [edi + 0xc], eax
cmp dword [0x4b8e74], 0
je 0x40a9d4
mov eax, dword [0x4b8e74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4b8e74], eax
sub word [0x4b8ec0], 1
cmp word [0x4b8ec0], 0
sete bl
mov eax, reloc.winmm.dll_joyGetDevCapsW
call fcn.0040ab90
test bl, bl
je 0x40aa0c
mov eax, reloc.winmm.dll_joyGetDevCapsW
call fcn.0040ab70
pop edi
pop esi
pop ebx
ret
Function at 0x40df30
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], reloc.winmm.dll_joyGetDevCapsW
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40e0b5
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40e0a9
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40e00c
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40e0a9
mov eax, ebx
and eax, 0x20000000
je 0x40e01e
mov dword [ebp - 0x68], 1
jmp 0x40e025
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40e037
mov dword [ebp - 0x64], 1
jmp 0x40e03e
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40e050
mov dword [ebp - 0x60], 1
jmp 0x40e057
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40e069
mov dword [ebp - 0x5c], 1
jmp 0x40e070
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40e096
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + reloc.winmm.dll_waveInGetErrorTextA]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40dfb4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov edx, dword [edx + 0x14]
mov eax, dword [eax]
lea eax, [edx + eax]
mov edx, eax
mov edi, ebx
nop
lea eax, [edx + edi]
mov ebx, dword [eax]
mov esi, ecx
xor esi, ebx
mov dword [eax], esi
lea eax, [edi + 4]
mov edi, eax
cmp edi, dword [ebp - 4]
jb 0x414b50
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402a20
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d1a0
mov eax, dword [0x4589a4]
mov ecx, dword [0x458430]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x402b55
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x4589a4], 0x959
jne 0x402b3e
push 0
lea eax, [ebp - 0xc08]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x2008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0x402574
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
push edx
call fcn.00402770
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x402a5e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405200
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4490d8]
jne 0x40520a
repz ret
jmp fcn.00408a7e

Function at 0x4086a5
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.00406625
and dword [ebp - 4], 0
cmp dword [0x44f674], 0
mov ebx, eax
jne 0x408756
push 0x4019a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408807
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40199c
push edi
call esi
test eax, eax
je 0x408807
push eax
call fcn.004065b3
mov dword [esp], 0x40198c
push edi
mov dword [0x44f674], eax
call esi
push eax
call fcn.004065b3
mov dword [esp], 0x401978
push edi
mov dword [0x44f678], eax
call esi
push eax
call fcn.004065b3
mov dword [esp], 0x40195c
push edi
mov dword [0x44f67c], eax
call esi
push eax
call fcn.004065b3
pop ecx
mov dword [0x44f684], eax
test eax, eax
je 0x408756
push 0x401944
push edi
call esi
push eax
call fcn.004065b3
pop ecx
mov dword [0x44f680], eax
mov eax, dword [0x44f680]
cmp eax, ebx
je 0x4087ae
cmp dword [0x44f684], ebx
je 0x4087ae
push eax
call fcn.0040662e
push dword [0x44f684]
mov esi, eax
call fcn.0040662e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087ae
test edi, edi
je 0x4087ae
call esi
test eax, eax
je 0x4087a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087a5
test byte [ebp - 0xc], 1
jne 0x4087ae
or dword [ebp + 0x10], 0x200000
jmp 0x4087e7
mov eax, dword [0x44f678]
cmp eax, ebx
je 0x4087e7
push eax
call fcn.0040662e
pop ecx
test eax, eax
je 0x4087e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4087e7
mov eax, dword [0x44f67c]
cmp eax, ebx
je 0x4087e7
push eax
call fcn.0040662e
pop ecx
test eax, eax
je 0x4087e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f674]
call fcn.0040662e
pop ecx
test eax, eax
je 0x408807
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408809
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x76254996
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
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
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x1a087b0d
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4bb9bc
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4bba00
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4bba00
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4bba97
mov eax, 0x400
call fcn.00402efc
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4bba90
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4c33b8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4bba86
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4bba82
mov byte [esp], 1
jmp 0x4bba86
inc edi
dec ebx
jne 0x4bba69
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402f18
movzx eax, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7ff460ef
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xb31605c
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402f89
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0xc], 0
mov ecx, 5
mov esi, 0x456098
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x94
push 0
lea eax, [ebp - 0x194]
push eax
call fcn.00429b30
add esp, 0xc
mov word [ebp - 0x46], 0x67
mov word [ebp - 0x3e], 0x37
mov word [ebp - 0x3c], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00429b30
add esp, 0xc
push 0
mov edx, dword [ebp - 0x100]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x30]
push eax
push 0x65
call fcn.00401467
add esp, 8
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0x198], 0
jne 0x4030ab
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0x41
je 0x4030ab
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax + 1]
cmp ecx, 0x42
je 0x4030ab
push 4
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00429b90
add esp, 0xc
push 0
push 0x402f64
push 0
mov ecx, dword [ebp - 0x100]
push ecx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov edx, dword [ebp - 0x30]
mov eax, dword [0x452a30]
mov dword [edx + 0x1a0], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x160], 0x44f941e
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040150e
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x12c]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a4], 0
je 0x40311a
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xfc], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x12c]
mov dword [0x4565a0], eax
mov eax, dword [ebp - 4]
jmp 0x403136
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x40], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x401372
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x18], 0
je 0x4013af
cmp dword [ebp - 0x40], 0
jne 0x4013af
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
jne 0x401394
jmp 0x40136a
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401100
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x40136a
cmp dword [ebp - 0x40], 0
jne 0x4013ff
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401410
add esp, 8
mov dword [ebp - 0x30], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x30], 0
je 0x4013ff
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
call ecx
lea edx, [ebp - 0x40]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret