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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 8], 0
jmp 0x4e305e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jae 0x4e3077
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x59a270]
jne 0x4e3075
jmp 0x4e3077
jmp 0x4e3055
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x59a270]
jne 0x4e322a
cmp dword [ebp + 8], 0xfc
je 0x4e30b4
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x59a274]
push eax
push 0
push 0
push 0
push 1
call fcn.004d6630
add esp, 0x14
cmp eax, 1
jne 0x4e30b4
int3
cmp dword [0x60f680], 1
je 0x4e30cf
cmp dword [0x60f680], 0
jne 0x4e313a
cmp dword [0x59772c], 1
jne 0x4e313a
cmp dword [0x60fa60], 0
je 0x4e30f5
mov ecx, dword [0x60fa60]
cmp dword [ecx + 0x48], 0xffffffff
je 0x4e30f5
mov edx, dword [0x60fa60]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x1b4], eax
jmp 0x4e3103
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1b4], eax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x59a274]
push eax
call fcn.004cfcc0
add esp, 4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x59a274]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4e322a
cmp dword [ebp + 8], 0xfc
je 0x4e322a
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e3173
push str._program_name_unknown_
lea edx, [ebp - 0x110]
push edx
call fcn.004cfd40
add esp, 8
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004cfcc0
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x4e31bc
lea edx, [ebp - 0x110]
push edx
call fcn.004cfcc0
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax - 0x3b]
mov dword [ebp - 0xc], edx
push 3
push 0x56c940
mov eax, dword [ebp - 0xc]
push eax
call fcn.004d27e0
add esp, 0xc
push str.Runtime_Error__n_nProgram:
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.004cfd40
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.004cfd50
add esp, 8
push 0x56c8b4
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.004cfd50
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x59a274]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.004cfd50
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
lea edx, [ebp - 0x1b0]
push edx
call fcn.004e4e60
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed8b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x60fa3c], 0
jne 0x4ed902
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ed8dd
mov dword [0x60fa3c], 1
jmp 0x4ed902
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4ed8fb
mov dword [0x60fa3c], 2
jmp 0x4ed902
xor eax, eax
jmp 0x4eda1d
cmp dword [0x60fa3c], 1
jne 0x4ed926
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4eda1d
cmp dword [0x60fa3c], 2
jne 0x4eda1d
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
jne 0x4ed949
mov ecx, dword [0x60f9d0]
mov dword [ebp + 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ed96b
xor eax, eax
jmp 0x4eda1d
push 0x64
push str.aw_loc.c
push 2
mov ecx, dword [ebp - 4]
push ecx
call fcn.004d2e50
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ed990
xor eax, eax
jmp 0x4eda1d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4ed9ac
jmp 0x4eda0d
cmp dword [ebp + 0x14], 0
jne 0x4ed9d5
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ed9d3
jmp 0x4eda0d
jmp 0x4ed9fa
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ed9fa
jmp 0x4eda0d
push 2
mov eax, dword [ebp - 8]
push eax
call fcn.004d38e0
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x4eda1d
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.004d38e0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4eda30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x60fa40], 0
jne 0x4eda82
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4eda5d
mov dword [0x60fa40], 2
jmp 0x4eda82
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4eda7b
mov dword [0x60fa40], 1
jmp 0x4eda82
xor eax, eax
jmp 0x4edbb0
cmp dword [0x60fa40], 2
jne 0x4edaa6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x4edbb0
cmp dword [0x60fa40], 1
jne 0x4edbb0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
jne 0x4edac9
mov ecx, dword [0x60f9d0]
mov dword [ebp + 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4edaeb
xor eax, eax
jmp 0x4edbb0
push 0xd2
push str.aw_loc.c
push 2
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
call fcn.004d2e50
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4edb15
xor eax, eax
jmp 0x4edbb0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4edb31
jmp 0x4edba0
cmp dword [ebp + 0x14], 0
jne 0x4edb61
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0x220
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4edb5f
jmp 0x4edba0
jmp 0x4edb8d
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0x220
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4edb8d
jmp 0x4edba0
push 2
mov eax, dword [ebp - 8]
push eax
call fcn.004d38e0
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x4edbb0
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.004d38e0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4ffa1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
call fcn.00549da2
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ffa76
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ffa90
push 0xea
push str.dlgcore.cpp
call fcn.00542d30
test eax, eax
je 0x4ffa90
int3
xor edx, edx
test edx, edx
jne 0x4ffa76
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004ffaeb
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004c4800
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5007db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x40], 0
je 0x50082e
call fcn.00549da2
mov dword [ebp - 0x10], eax
push 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x500841
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x5008d5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x50088c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x12]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x1c], dx
jmp 0x5008a2
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0xc]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x20]
and ecx, 0x1801
test ecx, ecx
jne 0x5008c8
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x5008c8
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x5008c8
mov dword [ebp - 0x28], 1
jmp 0x5008cf
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
jne 0x5008e7
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x5008f0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004c4800
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x500903
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x500a96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x500ab9
push 0x33f
push str.dlgcore.cpp
call fcn.00542d30
test eax, eax
je 0x500ab9
int3
xor eax, eax
test eax, eax
jne 0x500a9f
call fcn.00549da2
mov dword [ebp - 8], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x500b25
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x500b07
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Cannot_find_dialog_template_named__s._n
call fcn.004effc5
add esp, 8
jmp 0x500b1e
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
call fcn.004effc5
add esp, 8
xor eax, eax
jmp 0x500c4f
cmp dword [ebp + 0xc], 0
jne 0x500b35
mov eax, 1
jmp 0x500c4f
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x500b68
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0x591754
call fcn.004effc5
add esp, 8
mov eax, 1
jmp 0x500c4f
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0xffff
jne 0x500b91
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x500b99
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004c4800
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
test edx, edx
je 0x500bfb
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x500be0
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__s_must_be_invisible._n
call fcn.004effc5
add esp, 8
jmp 0x500bf7
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
call fcn.004effc5
add esp, 8
xor eax, eax
jmp 0x500c4f
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x500c4a
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x500c30
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__s_must_have_the_child_style._n
call fcn.004effc5
add esp, 8
jmp 0x500c46
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
call fcn.004effc5
add esp, 8
xor eax, eax
jmp 0x500c4f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x502b66
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x502b97
push 0x412
push str.wincore.cpp
call fcn.00542d30
test eax, eax
je 0x502b97
int3
xor edx, edx
test edx, edx
jne 0x502b72
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x502be3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0050e4f4
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.0050e480
jmp 0x502bfb
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
call dword [eax + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x502c04
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x502c35
push 0x427
push str.wincore.cpp
call fcn.00542d30
test eax, eax
je 0x502c35
int3
xor edx, edx
test edx, edx
jne 0x502c10
push 0x60f004
mov ecx, dword [ebp + 0xc]
call fcn.0050de7d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0
jne 0x502ca2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x502ca0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0050e4f4
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0050e480
jmp 0x502cc3
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00507521
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x502cc3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00502b66
mov ecx, dword [ebp + 0xc]
call fcn.0053f698
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x506483
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x50650f
call fcn.00549da2
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x50650f
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5064e2
xor eax, eax
jmp 0x506540
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x506509
push 0xce2
push str.wincore.cpp
call fcn.00542d30
test eax, eax
je 0x506509
int3
xor edx, edx
test edx, edx
jne 0x5064ef
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00506549
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x50653d
cmp dword [ebp - 8], 0
je 0x50653d
mov ecx, dword [ebp - 8]
push ecx
call fcn.004c4800
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50aca2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x50ad0d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x70
jne 0x50ad0d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
and eax, 0x4000
test eax, eax
jne 0x50ad0d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x50ad0d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jl 0x50ad0d
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jl 0x50ad0d
mov dword [ebp - 4], 1
jmp 0x50ad14
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x50bd02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0xfd
push str.filecore.cpp
mov eax, dword [ebp - 8]
push eax
call fcn.0050b1e0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
jne 0x50bd3e
push 0xfe
push str.filecore.cpp
call fcn.00542d30
test eax, eax
je 0x50bd3e
int3
xor edx, edx
test edx, edx
jne 0x50bd21
cmp dword [ebp + 0xc], 0
jne 0x50bd4f
jmp 0x50bdf0
cmp dword [ebp + 8], 0
jne 0x50bd69
push 0x103
push str.filecore.cpp
call fcn.00542d30
test eax, eax
je 0x50bd69
int3
xor eax, eax
test eax, eax
jne 0x50bd4f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004eff56
test eax, eax
jne 0x50bd96
push 0x104
push str.filecore.cpp
call fcn.00542d30
test eax, eax
je 0x50bd96
int3
xor eax, eax
test eax, eax
jne 0x50bd6f
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x50bdd3
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.0053f6e2
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005106b0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x50bdf0
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.0053f6e2
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00510890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x50c556
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push str.CLSID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x50c62c
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x50c622
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push str.InProcServer32
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x50c618
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.0050e378
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x60eff4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0050e480
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x50c635
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bdf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
mov dword [ebp - 0x17c], 0
lea ecx, [ebp - 0x10]
call fcn.004c5060
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push 0x800
push 0x160
lea ecx, [ebp - 0x178]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x50c6a2
mov eax, dword [ebp - 0x170]
and eax, 0x10000
test eax, eax
jne 0x50c6c6
mov dword [ebp - 0x180], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050c2b2
mov eax, dword [ebp - 0x180]
jmp 0x50c838
lea ecx, [ebp - 0x18]
push ecx
push 0x568110
push 0
push 0x568100
lea ecx, [ebp - 0x10]
call fcn.0050c2d1
test eax, eax
jge 0x50c706
mov dword [ebp - 0x184], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050c2b2
mov eax, dword [ebp - 0x184]
jmp 0x50c838
lea edx, [ebp - 0x14]
push edx
push 0x5680f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx]
test eax, eax
jl 0x50c80d
cmp dword [ebp + 0xc], 0
jne 0x50c734
mov dword [ebp - 0x190], 0
jmp 0x50c77c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.004cfec0
mov dword [ebp - 0x194], esp
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x194]
push eax
call fcn.0050e997
mov dword [ebp - 0x190], eax
push 0
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 0x14]
test eax, eax
jl 0x50c801
push 2
mov ecx, dword [ebp + 8]
call fcn.0054382c
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 0x4c]
test eax, eax
jl 0x50c801
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 8]
mov dword [ebp - 0x188], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050c2b2
mov eax, dword [ebp - 0x188]
jmp 0x50c838
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 8]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0050c2b2
mov eax, dword [ebp - 0x18c]
lea esp, [ebp - 0x194]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10