joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x401786
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push 0xa
push str.GAMEDATA
push esi
call edi
test eax, eax
jne 0x4017a9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x401840
push 0xa
push 0x462b88
push esi
call edi
mov edi, eax
test edi, edi
je 0x401840
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401840
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp + 8], 0
mov edi, eax
je 0x401840
test edi, edi
je 0x401840
push edi
call dword [sym.imp.MSVCR120.dll_malloc]
push edi
push dword [ebp + 8]
mov esi, eax
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0x10
lea ecx, [ebp - 0xc]
push ebx
call fcn.00401ad0
lea ecx, [edi - 1]
push ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.00401b00
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push esi
call fcn.004011a0
add esp, 0xc
push esi
test al, al
jne 0x401849
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x40185b
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov esi, ecx
test edi, edi
je 0x401b74
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [edx + ebx]
mov al, byte [esi + 4]
xor al, cl
mov byte [edx + ebx], al
inc edx
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x1001
add eax, 0x7ed55d16
mov ecx, eax
shr ecx, 0x13
xor ecx, eax
xor ecx, 0xc761c23c
mov eax, ecx
add ecx, 0x165667b1
shl eax, 5
add eax, ecx
lea ecx, [eax - 0x2c5d9b94]
shl eax, 9
xor ecx, eax
lea eax, [ecx*8 - 0x28fb93b]
add eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
xor ecx, 0xb55a4f09
mov dword [esi + 4], ecx
cmp edx, edi
jb 0x401b14
pop ebx
pop edi
mov al, 1
pop esi
pop ebp
ret 8

Function at 0x401c40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x492984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x401d3a
movzx eax, word [ebx]
test ax, ax
je 0x401d3a
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x401c80
cmp ax, 0x5c
jne 0x401c82
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x401c74
cmp edi, ebx
je 0x401cd0
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy]
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x401d4a
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00401c40
add esp, 8
lea ecx, [ebp - 0x414]
sub ecx, esi
jmp 0x401ce0
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x401ce0
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401cf2
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x401d10
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401d10
mov ecx, ebx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004580b8
mov esp, ebp
pop ebp
ret
call fcn.00457fd5
int3
Function at 0x402270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x402309
cmp dword [esi + 4], 0xffffffff
jne 0x402309
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4022a0
cmp dword [ebp + 0x10], 1
mov eax, dword [0x464658]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x4022d3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4022d3
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00404c70
add esp, 0x10
test eax, eax
jne 0x4022f3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00405380
add esp, 4
mov dword [esi], eax
mov eax, dword [0x493ca8]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x404db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x404dee
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404de2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x404dff
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call sub.MSVCR120.dll_memcpy
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404e80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x404e8e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x404f63
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
dec edi
jne 0x404ea6
pop edi
test esi, esi
je 0x404f82
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x462c28]
dec esi
jne 0x404f67
not eax
pop esi
pop ebp
ret
Function at 0x405c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x405c45
cmp byte [edi + 1], 0
je 0x405c3e
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x405c4b
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x405c70
cmp byte [edi + 1], 0
je 0x405c69
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x405c73
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x405c82
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
cmp ebx, eax
jae 0x405c85
mov dword [ebp + 8], ebx
push esi
push 0x404
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x405ca1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 4
mov dword [ebp - 0xc], 0
cmp ecx, eax
jbe 0x405dab
jmp 0x405cc0
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x18], edx
sub ebx, ecx
mov dword [ebp - 0x14], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x405d0a
cmp byte [edi + 1], 0
je 0x405dab
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x405d0d
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x405d35
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405d30
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x405d5e
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x405d48
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x405dab
lea eax, [ebx - 3]
test eax, eax
jle 0x405d9a
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x405d8c
cmp byte [eax + esi + 1], 0x4b
jne 0x405d8c
cmp byte [eax + esi + 2], 5
jne 0x405d8c
cmp byte [eax + esi + 3], 6
je 0x405d92
test eax, eax
jg 0x405d70
jmp 0x405d9a
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jne 0x405dab
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
cmp eax, ecx
jb 0x405cc0
push esi
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [ebp - 0xc]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x419140
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
test eax, eax
je 0x419151
mov byte [eax], 0
mov edi, dword [ebp + 8]
push edi
call fcn.00419270
mov edx, eax
cmp edx, 0xffffffff
je 0x419185
cmp dword [ebp + 0x14], 0
je 0x419193
test edx, edx
js 0x41925b
cmp edx, dword [ebx + 8]
jge 0x41925b
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*4]
cmp dword [eax + ecx*4 + 0xc], 0
jne 0x419193
test byte [ebp + 0xc], 1
jne 0x4191df
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
test edx, edx
js 0x41925b
cmp edx, dword [ebx + 8]
jge 0x41925b
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4]
test ecx, ecx
je 0x419185
mov eax, dword [ebp + 0xc]
test al, 1
je 0x4191c0
pop edi
mov eax, ecx
pop ebx
pop ebp
ret 0x10
cmp edi, 8
je 0x4191cf
cmp edi, 0xd
je 0x4191cf
cmp edi, 0x20
jne 0x4191b8
test al, 2
mov eax, 0
pop edi
cmovne eax, ecx
pop ebx
pop ebp
ret 0x10
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov ecx, 1
mov eax, 0
cmovs eax, ecx
push 0x11
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, dword [ebp + 0xc]
jns 0x41920d
or eax, 2
cmp edi, 0x100
jae 0x419221
lea eax, [eax + edi*4]
mov al, byte [eax*4 + 0x494550]
jmp 0x419223
xor al, al
mov byte [ebp + 0xf], al
movzx eax, al
push eax
call dword [sym.imp.MSVCR120.dll_isprint]
add esp, 4
test eax, eax
je 0x41918b
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp + 0xf]
test eax, eax
je 0x419247
mov byte [eax], cl
push dword [ebp + 0x14]
movsx eax, cl
mov ecx, ebx
push eax
call fcn.004190e0
pop edi
pop ebx
pop ebp
ret 0x10
call sub.mfc120u.dll_Ordinal_2341
int3
Function at 0x419b50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b1a2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x492984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call sub.mfc120u.dll_Ordinal_10353
call sub.mfc120u.dll_Ordinal_2204
push 0x89
push 0xe
push 0x89
call sub.mfc120u.dll_Ordinal_2173
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.byondcore.dll_public:_bool___thiscall_DMString::IsEmpty_void_const]
lea ecx, [esi + 0xac]
call ebx
test al, al
jne 0x419c11
push dword [esi + 0xac]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
add esp, 8
push dword [eax]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov ecx, esi
call sub.mfc120u.dll_Ordinal_13997
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [esi + 0xa8]
call ebx
xor ecx, ecx
test al, al
sete cl
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
push 0x461
call sub.mfc120u.dll_Ordinal_5327
mov ecx, eax
call sub.mfc120u.dll_Ordinal_14094
xor ebx, ebx
mov ecx, esi
cmp dword [ebp - 0x18], ebx
sete bl
push ebx
push 0x3f6
call sub.mfc120u.dll_Ordinal_5327
mov ecx, eax
call sub.mfc120u.dll_Ordinal_14094
push ebx
push 0x3f3
mov ecx, esi
call sub.mfc120u.dll_Ordinal_5327
mov ecx, eax
call sub.mfc120u.dll_Ordinal_14094
push 0
mov ecx, esi
call sub.mfc120u.dll_Ordinal_14367
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b3ea
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x492984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0xffff
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x28], xmm0
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::constructor_void_]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call esi
mov esi, dword [ebp + 0x14]
xor edi, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
test esi, esi
je 0x41b468
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x14]
push str._u__d
push eax
call dword [sym.imp.byondcore.dll_public:_struct_DMString____cdecl_DMString::Format_char_const__]
movsx eax, byte [ebp + 0xc]
add esp, 0x10
dec eax
je 0x41b422
dec eax
jne 0x41b45f
push str..wav
jmp 0x41b427
push str..midi
lea ecx, [ebp - 0x10]
call dword [sym.imp.byondcore.dll_public:_struct_DMString____thiscall_DMString::operator_char_const__]
push esi
call dword [sym.imp.MSVCR120.dll_malloc]
push dword [ebp + 0x10]
mov edi, eax
push esi
push 1
push edi
mov dword [ebp - 0x44], edi
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x14
cmp eax, esi
je 0x41b464
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
jmp 0x41b468
mov byte [ebp - 0x37], 1
mov eax, dword [ebp + 8]
sub esp, 0x30
mov dword [ebp - 0x48], eax
mov ecx, esp
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ecx + 4], 0
call fcn.0041af30
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx + 0x1c]
call fcn.0041b0e0
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMString::destructor_void_]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call esi
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bad9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x492984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
jne 0x4208d1
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wunlink]
add esp, 0xc
lea ecx, [ebp + 0xc]
call dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.byondcore.dll_void___cdecl_MakeFileWriteable_char_const__]
cmp dword [ebp + 0x14], 0
mov ecx, 0x4662e0
mov esi, dword [sym.imp.byondcore.dll_struct_DMWideStringStub___cdecl_Utf82Wide_char_const__]
mov eax, 0x467c14
cmove eax, ecx
push eax
lea eax, [ebp - 0x14]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push ebx
push eax
call esi
push dword [edi]
push dword [eax]
call dword [sym.imp.MSVCR120.dll__wfopen]
mov esi, dword [sym.imp.byondcore.dll_public:_void___thiscall_DMWideStringStub::destructor_void_]
lea ecx, [ebp - 0x10]
mov edi, eax
add esp, 0x1c
test edi, edi
sete bl
call esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call esi
test bl, bl
jne 0x420965
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
test eax, eax
jns 0x420950
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420947
sub eax, esi
push edi
push eax
push 1
push edx
call dword [sym.imp.MSVCR120.dll_fwrite]
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d0b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
test al, 1
push edi
mov edi, ecx
mov ecx, 1
cmovne esi, ecx
test al, 2
je 0x42d0cd
or esi, 2
test al, 0x10
je 0x42d0d4
or esi, 4
test al, 8
jne 0x42d0e1
cmp byte [edi + 0x743], 0
je 0x42d0e4
or esi, 8
test al, 4
jne 0x42d0f1
cmp byte [edi + 0x742], 0
je 0x42d0f4
or esi, 0x10
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x42d10f
cmp byte [edi + 0x744], 0
je 0x42d112
or esi, 0x20
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x43ebd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
cmp edx, 0xffff
je 0x43ebf7
mov eax, dword [ebp + 0xc]
test al, al
je 0x43ebf7
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
add ecx, 0x23d8
pop ebp
jmp fcn.0041b360
pop ebp
ret 0x10
Function at 0x456980
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x492984]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4966e4], 0
je 0x4569b5
xor eax, eax
cmp dword [0x4966d8], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x88], 2
push 0x468e0c
sete al
mov dword [0x4966e8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x456a9e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x468e1c
push esi
call edi
mov dword [0x4966c8], eax
test eax, eax
je 0x456a9e
push str.MonitorFromWindow
push esi
call edi
mov dword [0x4966cc], eax
test eax, eax
je 0x456a9e
push str.MonitorFromRect
push esi
call edi
mov dword [0x4966d0], eax
test eax, eax
je 0x456a9e
push str.MonitorFromPoint
push esi
call edi
mov dword [0x4966d4], eax
test eax, eax
je 0x456a9e
push str.EnumDisplayMonitors
push esi
call edi
mov dword [0x4966dc], eax
test eax, eax
je 0x456a9e
push str.EnumDisplayDevicesW
push esi
call edi
mov dword [0x4966e0], eax
test eax, eax
je 0x456a9e
cmp dword [0x4966e8], 0
je 0x456a86
push str.GetMonitorInfoW
jmp 0x456a8b
push str.GetMonitorInfoA
push esi
call edi
mov dword [0x4966d8], eax
test eax, eax
je 0x456a9e
mov eax, 1
jmp 0x456ae6
mov dword [0x4966c8], 0
xor eax, eax
mov dword [0x4966cc], 0
mov dword [0x4966d0], 0
mov dword [0x4966d4], 0
mov dword [0x4966d8], 0
mov dword [0x4966dc], 0
mov dword [0x4966e0], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x4966e4], 1
pop esi
call fcn.004580b8
mov esp, ebp
pop ebp
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
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1002aaee
pop dword [ebp - 0x44]
mov eax, 0x790c4f8d
sub eax, 0x6909a49f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x426041b8
sub dword [ebp - 0x54], 0xf40dfc6d
mov dword [ebp - 0x50], 0xd2224063
sub dword [ebp - 0x50], 0x9feef41e
mov dword [ebp - 0x4c], 0x3ac287d
add dword [ebp - 0x4c], 0x48a01bb1
mov dword [ebp - 0x48], 0x9fdadc15
add dword [ebp - 0x48], 0x602523eb
lea eax, [ebp - 0x54]
push eax
mov eax, 0x4e7f1c69
add eax, 0xc183a3cf
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xe2c1c487
sub dword [ebp - 0x54], 0x6e4f5b31
mov dword [ebp - 0x50], 0x21ffda46
add dword [ebp - 0x50], 0x1f6c872f
mov dword [ebp - 0x4c], 0xf86844ed
add dword [ebp - 0x4c], 0x6b07277f
mov dword [ebp - 0x48], 0x220b1b95
add dword [ebp - 0x48], 0xddf4e46b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xa00e6332
sub eax, 0x900ba30a
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x33e3c
push 0
call eax
mov ecx, 0x18a47dff
add ecx, 0xe75bbfb1
mov edi, eax
mov edx, 0x10039600
add edx, dword [ebp - 0x44]
mov esi, 0x5c5ebb1e
sub dword [ebp - 0x30], ecx
mov ebx, dword [edx]
sub dword [ebp - 0x30], ecx
add ebx, esi
xor dword [ebp - 0x34], 0x37f04ef7
mov dword [edi], ebx
add dword [ebp - 0x1c], 0x3cd5eb9a
add edi, 4
add edx, 4
loop 0x1002ac04
add eax, 0x4dd1f6dd
sub eax, 0x4dd10d4a
xor ebx, ebx
add ebx, eax
add eax, 0x2286b478
add eax, 0xdd794b8d
mov ecx, 0x8f5a8ff
add ecx, 0x70a5701
add ecx, dword [ebp - 0x44]
call ebx
leave
ret