joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50dae4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
ja 0x50db10
cmp dword [esp + 4], 5
jne 0x50db0c
cmp dword [esp + 8], 1
jae 0x50db10
xor eax, eax
jmp 0x50db12
mov al, 1
mov byte [0x574fcc], al
add esp, 0x94
ret

Function at 0x511228
Capabilities:
Log keystrokes via polling

Disassembly:
push 2
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x511249
push 1
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
test ah, 0x80
jne 0x511249
xor eax, eax
ret
mov al, 1
ret

Function at 0x51256c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x5125d0
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040582c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040a86c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5125d7
lea eax, [ebp - 0xc]
call fcn.004055bc
ret

Function at 0x5128ac
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5129d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [0x56d724]
cmp dword [eax], 2
jne 0x5129bc
cmp dword [ebp - 0x20], 0x10f
jne 0x5129bc
test byte [ebp - 0x17], 8
je 0x5129bc
mov eax, dword [ebp - 8]
push eax
call sub.imm32.dll_ImmGetContext
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5129bc
xor eax, eax
push ebp
push 0x512985
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 1
push 0
push 0
push 0x800
mov eax, dword [ebp - 0x10]
push eax
call sub.imm32.dll_ImmGetCompositionStringW
mov edx, eax
sar edx, 1
jns 0x512940
adc edx, 0
lea eax, [ebp - 4]
call fcn.004060a0
mov eax, dword [ebp - 4]
call fcn.00405f7c
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.00405f6c
push eax
push 0x800
mov eax, dword [ebp - 0x10]
push eax
call sub.imm32.dll_ImmGetCompositionStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51298c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.imm32.dll_ImmReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5129d9
lea eax, [ebp - 4]
call fcn.00405dc4
ret
Function at 0x512fbc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51307f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0045c6fc
test al, al
je 0x512ff1
mov eax, ebx
call fcn.0045c35c
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x513024
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0045426c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00405f5c
mov eax, dword [0x56d724]
cmp dword [eax], 2
jne 0x513069
mov edx, dword [esi]
mov eax, ebx
call fcn.00512c90
mov edx, dword [eax + 0x30]
mov eax, esi
call fcn.00405e00
jmp 0x513069
mov eax, ebx
call fcn.0045c35c
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, esi
call fcn.004060a0
mov eax, dword [esi]
call fcn.00405f7c
push eax
mov eax, dword [esi]
call fcn.00405f6c
push eax
mov eax, ebx
call fcn.0045c35c
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [esi]
call fcn.00405f7c
mov edx, eax
dec edx
mov eax, esi
call fcn.004060a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513086
lea eax, [ebp - 4]
call fcn.004055bc
ret
Function at 0x524b34
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x524b50
cmp dword [esi + 4], 0
je 0x524b7d
test byte [ebx + 0x55], 1
jne 0x524b6f
mov eax, ebx
call fcn.00458290
test eax, eax
jne 0x524b6f
mov edx, esi
mov eax, ebx
call fcn.0045e498
jmp 0x524c8d
mov edx, esi
mov eax, ebx
call fcn.00459a54
jmp 0x524c8d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x524c86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045c35c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00455564
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00524b34
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045c35c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524c8d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54c960
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
test dl, dl
je 0x54c977
add esp, 0xfffffff0
call fcn.004049a0
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.004c4598
mov dl, 1
mov eax, esi
call fcn.004c4f78
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x90], 5
ja 0x54c9c2
cmp dword [ebp - 0x90], 5
jne 0x54c9be
cmp dword [ebp - 0x8c], 1
jae 0x54c9c2
xor eax, eax
jmp 0x54c9c4
mov al, 1
mov byte [esi + 0x1b9], al
mov eax, esi
test bl, bl
je 0x54c9df
call fcn.004049f8
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56351c
Capabilities:
Terminate process

Disassembly:
push 0
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
ret

Function at 0x56364c
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
push edx
push 0
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_PostMessageA
cmp eax, 1
sbb eax, eax
inc eax
pop ebx
ret
Function at 0x564908
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x564910
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405a3c
mov esi, 0x575084
xor eax, eax
push ebp
push 0x564b3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [0x56cfd8]
cmp byte [eax], 6
jbe 0x564965
lea edx, [ebp - 0x10]
mov eax, dword [0x56cff0]
mov eax, dword [eax]
call fcn.0040aed0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x564b54
call fcn.004058d4
jmp 0x564987
lea eax, [ebp - 0x14]
call fcn.00476574
push dword [ebp - 0x14]
push 0x564b68
push 0x564b54
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405950
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41a764]
call fcn.0041fba0
mov dword [ebp - 0xc], eax
cmp dword [esi], 0
je 0x5649aa
mov eax, dword [esi]
call fcn.0040463c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49d20c]
call fcn.0047a308
mov dword [esi], eax
xor eax, eax
push ebp
push 0x5649df
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
call fcn.0049d790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x564a0b
mov eax, dword [esi]
call fcn.0048ef5c
mov eax, dword [esi]
call fcn.0040463c
xor eax, eax
mov dword [esi], eax
mov esi, dword [0x56cfb4]
mov esi, dword [esi]
mov edx, dword [0x56cfb4]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x564b9c
call fcn.004058d4
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405a4c
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405a4c
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x56cfb4]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.00564884
test al, al
je 0x564aa5
mov edx, dword [0x56cfb4]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x564b9c
call fcn.004058d4
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00405a4c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x564ae8
mov edx, dword [0x56cfb4]
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov ecx, 0x564b9c
call fcn.004058d4
mov esi, dword [ebp - 0x28]
mov edi, dword [0x56cfb4]
mov edi, dword [edi]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405a4c
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405a4c
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
call fcn.0040463c
mov eax, dword [ebp - 8]
call fcn.00405a4c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x564b42
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004055e0
lea eax, [ebp - 0x18]
call fcn.004055bc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004055e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055e0
ret
Function at 0x418010
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x631038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x63103c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x631050]
fstp qword [0x631050]
je 0x418063
mov eax, dword [0x634800]
test eax, eax
je 0x418057
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dl, byte [0x631042]
mov cl, byte [0x631049]
xor cl, dl
mov edx, dword [0x631030]
mov byte [0x631049], cl
mov ecx, dword [0x631034]
and ecx, 4
and eax, 0xc
add edx, ecx
mov esi, dword [0x631038]
mov dword [0x631030], edx
mov edx, dword [0x631048]
and edx, 0xff
push ebp
imul eax, edx
xor esi, eax
push edi
lea eax, [esp + 0x14]
push 0x50
push eax
mov dword [0x631038], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x63104e]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x631040]
push edx
and cl, al
mov byte [0x631040], cl
mov cl, byte [str.jfw_]
or cl, 2
shr cl, 1
and ecx, 0xff
mov dword [esp + 0x6c], ecx
and al, 0x6c

Function at 0x46bbdd
Capabilities:
Encode data using xor

Disassembly:
lea esi, [ecx - 0x55]
dec esp
sbb eax, 0xfcaf8e6a
scasb al, byte es:[edi]
sub edi, dword [edi + 0x12ad829b]
fdiv qword [eax - 0x5a919739]
jge 0x46bc51
aas
jbe 0x46bc6d
pop es
cwde
push esi
lea ecx, [ebx + 0x74]
adc esp, dword [edx - 0x4d198f1d]
das
mov al, byte [0xb0b0d7ed]
invalid
pop edx
mov dword [eax], 0xefad3dd4
fstp qword [ebx + 0x5b3cf2d3]
rcr byte [eax], 0xb3
call 0x6de7cb16
xor eax, 0xd22510f1
pop esp
cmp byte [esp + ebx*8 + 0x258ad0f5], dh
lds ecx, [0x6a9c5a3d]
cdq
shr byte [edi - 0x2f], cl
out dx, al
xor byte [ecx + edi + 0x9595ef6], cl
inc ebp
mov byte [0x29fc2be2], al
popfd
xchg byte [ebp + 0x13], al
clc
pop ecx
or dword [ebp - 0x5e], eax
loop 0x46bc82
cld
sub dword [ebp - 0x7ecba7a], ebx
push cs
or bh, dh
inc eax
jge 0x46bc1f
scasd eax, dword es:[edi]
lock add byte [esi], 0x9b
out 0x26, eax
xchg edi, eax
and al, 0xb2
stosd dword es:[edi], eax
push eax
mov edx, 0xb43012cc
cdq
std
add eax, 0x2c1193d1
and dword [esi - 0x6bde5e0e], 0xeba47e3d
std
rcl dword [ebx - 0x597ed3ef]
mov eax, dword [0x7e3d9421]
xchg esp, eax
cmp eax, 0xfdeba47e
movsb byte es:[edi], byte [esi]
jmp 0x46bc85
xor ebx, dword [edi + edx*8 - 0x7b76375c]
mov ebx, 0x3e3fea52
in al, dx
call 0x9dbd042c
add eax, 0xb39f67d4
loop 0x46bcf3
pop ebp
jb 0x46bc79
inc ebp
aas
push ds
xchg ebp, eax
sbb ebx, dword [ebp - 0x925573]
outsd dx, dword [esi]
fdivr qword [edi - 0x5a]
ret 0x57ad
test byte [ebp + ebx - 0x70d2fc79], cl
hlt
Function at 0x49669d
Capabilities:
Encode data using xor

Disassembly:
sti
mov bh, 0x32
xor dword [esi], esp
mov bh, 0x8c
push ds
xchg edx, eax
add edi, esi
dec esp
push eax
js 0x4966ea
dec edx
adc byte [esi - 0x1dca261], bl
stosd dword es:[edi], eax
dec ebp
lodsb al, byte [esi]
daa
xor eax, 0xb6aacabd
and ebx, ebx
lodsb al, byte [esi]
cmp eax, 0x792b2588
pop es
shl byte [ebp + 0x449f3a16], cl
inc esi
retf 0x2032
cmc
mov al, 0x4c
popfd
dec edx
add dword [ebp + 0x6c30fded], eax
sbb byte [edi], 0x77
pop edi

Function at 0x4a700e
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
out dx, al
add dword [edx + 0x50], edx
mov eax, dword [edx]
push edx
call dword [eax]
add byte [ebx - 0x7aff70f8], cl
mov dword [ecx], 0x18bc301
push ecx
call dword [eax]
add byte [ebx - 0x76367af8], cl
sbb eax, 0x18b0601
push ecx
call dword [eax + 8]
add byte [eax], al
ror byte [edi], cl
test byte [edi + edi*8 - 0x76a8fea4], dh
invalid

Function at 0x62a5e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313d0
cmp edx, dword [eax]
je 0x62a60b
add eax, 8
inc ecx
cmp eax, 0x631460
jl 0x62a5fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313d0]
jne 0x62a739
mov eax, dword [0x637d70]
cmp eax, 1
je 0x62a713
test eax, eax
jne 0x62a63c
cmp dword [0x6312f8], 1
je 0x62a713
cmp edx, 0xfc
je 0x62a739
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a673
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062afd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062b460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a6b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062b460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f644
push edi
call fcn.0062d330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062afd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062afe0
lea eax, [ebp - 0xa0]
push 0x62f624
push eax
call fcn.0062afe0
push dword [esi + 0x6313d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062afe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062d2a4
add esp, 0x2c
pop edi
jmp 0x62a739
lea eax, [ebp + 8]
lea esi, [esi + 0x6313d4]
push 0
push eax
push dword [esi]
call fcn.0062b460
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 0x40c4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c4a7
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408ca3
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c42d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c44d
inc esi
cmp esi, 0xc
jl 0x40c4ff
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c53a
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c546
or eax, 0xffffffff
jmp 0x40c58b
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c568
mov edx, dword [0x40f920]
jg 0x40c564
cmp eax, edx
jbe 0x40c568
mov edi, edx
jmp 0x40c56a
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c584
dec edi
call fcn.0040c42d
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c44d
inc esi
test edi, edi
jne 0x40c572
xor eax, eax
pop edi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x6fd370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6fd38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x726074
push ecx
mov edi, eax
call fcn.00711198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6fd3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0071102e
push esi
call fcn.00710fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x700850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x7008ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x72b720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7008ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.007111e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x7008ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x72b720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x70092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00712082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x700957
mov word [eax], si
add eax, 2
push eax
call fcn.00712030
add esp, 4
jmp 0x700959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x7008ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7008b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x700ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x701080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7010c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x726458
push ecx
call fcn.007111e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007111e1
add esp, 0x10
jmp 0x7010d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0071120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00710dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00701050
mov eax, dword [0x72b728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x70113b
push esi
call fcn.00700fb0
add esp, 4
mov dword [0x72b728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x70114c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00700ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x704440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7044b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x70448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x704471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x70447e
add edx, ecx
cmp ebx, edx
jb 0x70448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x704467
xor ecx, ecx
jmp 0x7044a2
test eax, eax
jne 0x704492
xor ecx, ecx
jmp 0x7044a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.007043c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7048f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x704921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x704946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x70496e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x704993
push ecx
push esi
call fcn.007044c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret