joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520c93
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, dword [esi]
push dword [edx + 0x78]
call dword [eax + 4]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x520da7
mov eax, dword [esi + 4]
push ebx
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [esi]
push dword [ecx + 0x78]
mov ecx, esi
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x520da3
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
ja 0x520ceb
movzx edi, bx
jmp 0x520d8b
mov eax, dword [esi]
push dword [ecx + 0x20]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0xc], edx
mov edi, edx
mov ecx, dword [ecx + 0x18]
lea eax, [edx + ecx*4]
mov dword [ebp - 4], eax
cmp edx, eax
je 0x520da3
sub eax, edi
sar eax, 2
mov eax, eax
test eax, eax
jns 0x520d1e
add eax, 1
sar eax, 1
lea ecx, [edi + eax*4]
mov eax, dword [esi]
push dword [ecx]
mov dword [ebp + 8], ecx
mov ecx, esi
call dword [eax + 4]
mov dl, byte [ebx]
mov ecx, ebx
jmp 0x520d3d
cmp dl, byte [eax]
jne 0x520d41
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x520d35
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x520d66
test ecx, ecx
jle 0x520d5a
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, 4
jmp 0x520d60
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp edi, eax
jne 0x520d10
jmp 0x520d69
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x520da3
mov ebx, dword [ebp - 8]
mov ecx, esi
mov eax, dword [esi]
push dword [ebx + 0x24]
call dword [eax + 4]
sub edi, dword [ebp - 0xc]
sar edi, 2
mov ax, word [eax + edi*2]
add ax, word [ebx + 0x10]
movzx edi, ax
mov ebx, dword [ebp - 0x10]
mov ecx, esi
mov eax, dword [esi]
push dword [ebx + 0x1c]
call dword [eax + 4]
movzx ecx, di
sub ecx, dword [ebx + 0x10]
lea eax, [eax + ecx*4]
jmp 0x520da5
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x520f0d
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x520f1d
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x520f1a
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x520f1a
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret

Function at 0x523f7c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5710bc
push 0x5710b4
push str.FlsAlloc
push 0
call fcn.00523efc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x523fae
push dword [ebp + 8]
mov ecx, esi
call fcn.004dc705
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x523ff1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5710cc
push 0x5710c4
push str.FlsGetValue
push 2
call fcn.00523efc
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x524022
mov ecx, esi
call fcn.004dc705
call esi
jmp 0x524028
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret
Function at 0x52402b
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5710d4
push 0x5710cc
push str.FlsSetValue
push 3
call fcn.00523efc
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x52405f
mov ecx, esi
call fcn.004dc705
call esi
jmp 0x524065
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x53605c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00535ed9

Function at 0x53a77b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053a41d
Function at 0x401ab0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x424e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
push esi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0xc], esi
call fcn.00403d10
lea ecx, [esi + 0x3bc]
mov dword [esp + 0x10], 0
call fcn.00404810
mov byte [esp + 0x10], 1
mov dword [esi], method.CDialog.virtual_0
mov dword [esi + 0x5c], 0x426810
call fcn.00421eed
call fcn.00421eed
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0x18]
lea edx, [esi + 0x458]
push ecx
push edx
mov dword [esi + 0x454], eax
call dword [sym.imp.USER32.dll_CopyRect]
push 0x78
call fcn.00419a2e
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x10], 2
je 0x401b50
push esi
mov ecx, eax
call fcn.00404fa0
jmp 0x401b52
xor eax, eax
mov ecx, dword [esp + 8]
mov dword [esi + 0x450], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x402120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.00421eed
mov esi, dword [eax + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402189
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x402189
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402189
push ebp
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402195
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4021ba
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402189
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x4021f7
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 4], edi
mov eax, dword [esp + 0x10]
push edi
push eax
call fcn.00402220
add esp, 8
mov dword [esi + 4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x411871
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4314b8
cmp edx, dword [eax]
je 0x411893
add eax, 8
inc ecx
cmp eax, 0x431548
jl 0x411884
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4314b8]
jne 0x4119c1
mov eax, dword [0x4345ac]
cmp eax, 1
je 0x41199b
test eax, eax
jne 0x4118c4
cmp dword [0x430fb0], 1
je 0x41199b
cmp edx, 0xfc
je 0x4119c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4118fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411d60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41193e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429554
push edi
call fcn.00413540
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411d60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411d70
lea eax, [ebp - 0xa0]
push 0x429534
push eax
call fcn.00411d70
push dword [esi + 0x4314bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411d70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004134b5
add esp, 0x2c
pop edi
jmp 0x4119c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4314bc]
push 0
push eax
push dword [esi]
call fcn.00411e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x418aa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e500
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418b6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x418b6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418b1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418b29
or bh, 8
and edi, 0x8000000
je 0x418b44
mov eax, dword [0x435d3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x418b6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x418f6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x418f8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x418faa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41d87d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41d8bf
call fcn.00421eed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d8bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d8b6
xor eax, eax
jmp 0x41d8c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d8cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x422697
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4226c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4226e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004225fd
jmp 0x4226e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4226e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004225fd
test edi, edi
mov eax, edi
jne 0x4226cd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x424172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4241a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4241a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x424dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00424f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00424f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00424eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00424f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00424ecb
push ecx
push dword [ebp + 8]
call fcn.00424f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00424f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00424ecb
push ecx
push dword [ebp + 8]
call fcn.00424f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00424f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00424ecb
push ecx
push dword [ebp + 8]
call fcn.00424f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00424f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00424ecb
cmp ecx, 0x2b
jne 0x424e0f
leave
ret 0xc

Function at 0x4264b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x426544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x16470
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4265d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x16470
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x16470
call fcn.004263fa
push 0x16470
push dword [ebp + 0xc]
call fcn.004241a8
test eax, eax
jne 0x4265b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x16470
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004265dd
test eax, eax
je 0x4265d6
jmp 0x426574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4265d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x469172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4691a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4691a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x469dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00469f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00469f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00469eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00469f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00469ecb
push ecx
push dword [ebp + 8]
call fcn.00469f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00469f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00469ecb
push ecx
push dword [ebp + 8]
call fcn.00469f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00469f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00469ecb
push ecx
push dword [ebp + 8]
call fcn.00469f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00469f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00469ecb
cmp ecx, 0x2b
jne 0x469e0f
leave
ret 0xc

Function at 0x46b4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x46b544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x5b140
push 0
call dword [eax + 0x20]
test eax, eax
je 0x46b5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x5b140
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x5b140
call fcn.0046b3fa
push 0x5b140
push dword [ebp + 0xc]
call fcn.004691a8
test eax, eax
jne 0x46b5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x5b140
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0046b5dd
test eax, eax
je 0x46b5d6
jmp 0x46b574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x46b5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x46b60b
Capabilities:
Terminate process

Disassembly:
call fcn.0046b618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x492140
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49c15b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4bc660]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc660]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.004020ed
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x492207
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4921ec
call fcn.00466787
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4921fb
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x4a83ec
je 0x49220c
mov edx, 0x4a83e4
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492211
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040aa73
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x49223e
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x492281
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x492264
call edi
mov esi, eax
call fcn.004914c0
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x492303
mov eax, dword [esp + 0x24]
push eax
jmp 0x4922fb
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x492290
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492290
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004023c0
test byte [esp + 0x3c], 0x10
je 0x4922cb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4922df
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4c0550]
mov dword [ebp], eax
mov ecx, dword [0x4c0554]
mov dword [ebp + 4], ecx
jb 0x492303
mov edx, dword [esp + 0x24]
push edx
call fcn.00464a2b
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004648e8
add esp, 0x288
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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