joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4093c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, ecx
lea esi, [ecx + 1]
jmp 0x4093e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4093e0
sub ecx, esi
mov dword [ebp - 0x7c], 0
push ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.00408af0
add esp, 4
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x14]
call fcn.00408bc0
xor esi, esi
lea edi, [ebp - 0x37]
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea eax, [edi - 1]
push str._02x
push eax
call fcn.00411a42
shl bl, 4
movzx eax, bl
push eax
push str._02x
push edi
call fcn.00411a42
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x409441
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x43cd30
call fcn.00413180
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x43cd30
pop edi
pop esi
pop ebx
call fcn.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x40a190
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b2f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
call fcn.00405510
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 1
call fcn.00405510
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00405490
lea ecx, [ebp + 8]
xor edi, edi
call fcn.00401d10
test eax, eax
je 0x40a25b
lea ecx, [ebp + 8]
call fcn.004056d0
mov ecx, ebx
lea esi, [eax + edi*2]
call fcn.004056d0
lea ecx, [eax + edi*2]
mov ax, word [ebp - 0x2c]
shr ax, 8
xor ax, word [esi]
mov word [ecx], ax
mov ecx, ebx
call fcn.004056d0
movzx ecx, byte [eax + edi*2]
add cx, word [ebp - 0x2c]
lea eax, [eax + edi*2]
inc edi
mov eax, 0x3193
imul cx, ax
mov eax, 0x58bf
sub ax, cx
lea ecx, [ebp + 8]
movzx eax, ax
mov dword [ebp - 0x2c], eax
call fcn.00401d10
cmp edi, eax
jb 0x40a202
push ebx
lea ecx, [ebp + 8]
call fcn.00405490
push 0
mov ecx, ebx
call fcn.00405c70
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], esi
call fcn.00401d10
test eax, eax
je 0x40a2ef
mov edi, edi
lea ecx, [ebp + 8]
call fcn.004056d0
movzx edi, byte [eax + esi*2]
lea ecx, [ebp - 0x28]
push 0x437048
lea eax, [eax + esi*2]
call fcn.00401cf0
mov eax, 0x4ec4ec4f
lea ecx, [ebp - 0x28]
imul edi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
call fcn.004056d0
mov ecx, eax
lea eax, [esi + 0x41]
mov word [ecx], ax
lea ecx, [ebp - 0x28]
imul eax, esi, 0x1a
sub edi, eax
add edi, 0x41
call fcn.004056d0
mov ecx, ebx
mov word [eax + 2], di
lea eax, [ebp - 0x28]
push eax
call fcn.004021e0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp + 8]
inc esi
mov dword [ebp - 0x2c], esi
call fcn.00401d10
cmp esi, eax
jb 0x40a280
lea ecx, [ebp - 0x28]
call fcn.00405560
lea ecx, [ebp + 8]
call fcn.00405560
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x40cf40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40cf4c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0040cf60

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x40ea85
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x40ea9d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x40eacc
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x40eb0e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x40ebe2
sub edx, 0x10000
js 0x40ebe2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x40eaf4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x40eaf4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x40eb65
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x40eb62
add edx, 8
jne 0x40eb49
jmp 0x40ebd3
add edx, 4
test eax, 0xffff
jne 0x40eb72
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x40ebd3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x40eba6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x40eaf4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x40ebe2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x40eaf4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x40ebf3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x424d57
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43a790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00416f9b
mov dword [ebp - 0x14], eax
cmp dword [0x43ccdc], esi
jne 0x424e4a
push 0x800
push esi
push 0x43508c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x424dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424f2a
push esi
push esi
push 0x43508c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x424f2a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424f2a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ccdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43cce0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43cce4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ccec], eax
test eax, eax
je 0x424e47
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43cce8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x424e6f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424e62
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x424e84
push 4
pop eax
jmp 0x424f2c
cmp dword [ebp - 0x14], esi
je 0x424e84
push dword [0x43ccdc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424e69
mov eax, dword [0x43cce8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x424ee2
cmp dword [0x43ccec], edi
je 0x424ee2
push eax
call ebx
push dword [0x43ccec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424ee2
test eax, eax
je 0x424ee2
call ecx
test eax, eax
je 0x424ed7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x424ed7
test byte [ebp - 8], 1
jne 0x424ee2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x424f12
mov eax, dword [0x43cce0]
cmp eax, edi
je 0x424f0f
push eax
call ebx
test eax, eax
je 0x424f0f
call eax
mov esi, eax
test esi, esi
je 0x424f0f
mov eax, dword [0x43cce4]
cmp eax, edi
je 0x424f0f
push eax
call ebx
test eax, eax
je 0x424f0f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ccdc]
call ebx
test eax, eax
je 0x424f2a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x424f2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041103f
mov esp, ebp
pop ebp
ret
Function at 0x100021c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001e448
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10029540]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x10029540]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [esp + 4]
lea ecx, [esp + 0xc]
push dword [ebp + 0x14]
mov dword [esp + 0x24], 0xf
push dword [ebp + 0x10]
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.10002510
mov dword [esp + 0x30], 0
cmp dword [0x1002b9ac], 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, 0x1002b998
cmovae edx, dword [0x1002b998]
test ecx, ecx
jne 0x10002245
xor ecx, ecx
jmp 0x10002247
sub ecx, eax
test eax, eax
je 0x1000224d
sub eax, edx
sub esp, 8
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.100022a0
cmp dword [esp + 0x1c], 0x10
jb 0x1000226f
push dword [esp + 8]
call fcn.1000c7d2
add esp, 4
mov eax, 0x1002b998
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1000bd47
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100026a0
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100026c5
or eax, eax
pop edi
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret

Function at 0x10002740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10029540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x100027b9
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002788
sub edi, esi
sub edi, 5
mov byte [esi], 0xe8
mov dword [esi + 1], edi
jmp 0x10002797
push esi
push edi
push str.FAILED_to_hook_function___08x__at___08x_
call fcn.1000c871
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100027b9
push esi
push str.FAILED_to_restore_protection_at__p
call fcn.1000c871
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000bd47
mov esp, ebp
pop ebp
ret
Function at 0x10003910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
sub esp, 0x54
mov edi, esp
push 0x100254d0
mov ecx, 0x15
mov esi, ebx
push str._s_PES2014_Get_Uni_Color____08x_n
rep movsd dword es:[edi], dword [esi]
call fcn.1000cb42
push dword [ebx + 0x18]
push 0x10025504
push str._s_UniColor_path____s_n
call fcn.1000cb42
add esp, 0x68
push dword [ebx + 0x40]
push 0x1002552c
push str._s_color_data_ptr1____08x_n
call fcn.1000cb42
push dword [ebx + 0x50]
push 0x10025558
push str._s_color_data_ptr2____08x_n
call fcn.1000cb42
push dword [ebx + 0x38]
push 0x10025584
push str._s_size____08x_n
call fcn.1000cb42
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
add esp, 0x24
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.10003600
Function at 0x100047d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10029540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x28
push 0x10026090
push 0x1002c7b8
call fcn.100084a0
push str.u0000p1
push 0x10
push 0x1002c7e0
call fcn.1000da9f
push str.u0000p1_back
push 0x10
push 0x1002c7f0
call fcn.1000da9f
push 0x10024376
push 0x10
push 0x1002c800
call fcn.1000da9f
push str.u0000p1_leg
push 0x10
push 0x1002c810
call fcn.1000da9f
push str.u0000p1_name
push 0x10
push 0x1002c820
call fcn.1000da9f
mov esi, 0x1008f138
add esp, 0x48
cmp esi, 0x1002b980
je 0x10004867
push 0xffffffffffffffff
push 0
push 0x1002b980
mov ecx, esi
call fcn.10001b70
push edi
push 8
push str.GDBuni_
mov ecx, esi
call fcn.10001640
mov edi, 0x1008f0f0
cmp edi, 0x1002b980
je 0x10004893
push 0xffffffffffffffff
push 0
push 0x1002b980
mov ecx, edi
call fcn.10001b70
push 0xf
push str.GDBunimap.txt
mov ecx, edi
call fcn.10001640
mov esi, 0x1008f108
cmp esi, 0x1002b980
je 0x100048be
push 0xffffffffffffffff
push 0
push 0x1002b980
mov ecx, esi
call fcn.10001b70
push 0xc
push str.UniColor.log
mov ecx, esi
call fcn.10001640
mov esi, 0x1008f120
cmp esi, 0x1002b980
je 0x100048e9
push 0xffffffffffffffff
push 0
push 0x1002b980
mov ecx, esi
call fcn.10001b70
push 0xd
push str.KitLoader.log
mov ecx, esi
call fcn.10001640
movzx eax, byte [0x1008f16c]
cmp dword [0x1008f150], 0
mov ecx, 1
cmove eax, ecx
cmp dword [0x1008f104], 8
push 0x100262f0
cmovae edi, dword [0x1008f0f0]
mov byte [0x1008f16c], al
lea eax, [ebp - 0xc]
push edi
push eax
mov byte [0x1008f16d], cl
mov dword [ebp - 0xc], 0
call fcn.1000cd34
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
test eax, eax
je 0x1000495d
push eax
mov ecx, 0x1008f150
call fcn.10005800
push dword [ebp - 0xc]
call fcn.1000d22c
add esp, 4
cmp dword [0x1008f134], 8
push 0
cmovae esi, dword [0x1008f120]
push 0x80
push 2
push 0
push 5
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1002ae24], eax
pop esi
cmp eax, 0xffffffff
je 0x100049ac
push 0
lea ecx, [ebp - 8]
push ecx
push 3
lea ecx, [ebp - 0xc]
push ecx
push eax
mov word [ebp - 0xc], 0xbbef
mov byte [ebp - 0xa], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10026170
push 0x1002615c
call fcn.10008190
push str.Debug_log_begin
push 0x100261f0
call fcn.10008190
push 0x78
push str.Kit_config_size___08x
push 0x10026234
call fcn.10008190
push 0x10026248
push 0x100262a8
call fcn.10008190
call fcn.10004550
push str.Debug_log_end.
push str.Kitloader
call fcn.10008190
mov eax, dword [0x1002ae24]
add esp, 0x2c
cmp eax, 0xffffffff
je 0x10004a12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100039d0
push 1
mov dword [0x1002ae24], 0xffffffff
call dword [sym.imp.dsound.dll_void___cdecl_AddCallChain_enum_HOOKS__void__]
push 0x10007e60
call dword [sym.imp.dsound.dll_void___cdecl_AddCallBeforeReadFile_void__]
push 0x10007ae0
call dword [sym.imp.dsound.dll_void___cdecl_AddCallAfterReadFile_void__]
push 0x400000
call fcn.1000b8b6
push 0x400000
call fcn.1000a167
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x18
call fcn.1000bd47
mov esp, ebp
pop ebp
ret
Function at 0x10005800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.1000ced2
add esp, 0xc
test eax, eax
je 0x1000582c
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.1000d5fc
mov esi, eax
add esp, 4
test esi, esi
js 0x1000581e
jne 0x10005848
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10008491
mov edi, eax
add esp, 4
test edi, edi
jne 0x10005863
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
call fcn.1000ced2
push ebx
push esi
push 1
push edi
call fcn.1000d114
add esp, 0x1c
cmp eax, esi
je 0x10005895
push edi
call fcn.1000df36
mov eax, 0xfffffffd
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.10005940
push edi
mov esi, eax
call fcn.1000df36
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100080f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x10029540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.10014730
add esp, 0xc
cmp dword [0x1002ae24], 0xffffffff
je 0x1000817e
push edi
push esi
push str.__s___s_r_n
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.1000cc99
add esp, 0x14
lea ecx, [ebp - 0x804]
call fcn.10007fa0
mov esi, eax
lea eax, [ebp - 0x808]
push 0
push eax
mov ecx, esi
call fcn.10007f40
push eax
push esi
push dword [0x1002ae24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000bd47
mov esp, ebp
pop ebp
ret
Function at 0x1001a5de
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10029540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10012371
mov dword [ebp - 0x14], eax
cmp dword [0x1002c73c], edi
jne 0x1001a6cf
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1001a65c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001a7af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1001a7af
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001a7af
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1002c73c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1002c740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1002c744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002c74c], eax
test eax, eax
je 0x1001a6cc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002c748], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1001a6f4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001a6e7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1001a709
push 4
pop eax
jmp 0x1001a7b1
cmp dword [ebp - 0x14], edi
je 0x1001a709
push dword [0x1002c73c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1001a6ee
mov eax, dword [0x1002c748]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1001a767
cmp dword [0x1002c74c], esi
je 0x1001a767
push eax
call ebx
push dword [0x1002c74c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1001a767
test eax, eax
je 0x1001a767
call ecx
test eax, eax
je 0x1001a75c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1001a75c
test byte [ebp - 8], 1
jne 0x1001a767
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1001a797
mov eax, dword [0x1002c740]
cmp eax, esi
je 0x1001a794
push eax
call ebx
test eax, eax
je 0x1001a794
call eax
mov edi, eax
test edi, edi
je 0x1001a794
mov eax, dword [0x1002c744]
cmp eax, esi
je 0x1001a794
push eax
call ebx
test eax, eax
je 0x1001a794
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1002c73c]
call ebx
test eax, eax
je 0x1001a7af
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1001a7b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bd47
leave
ret
Function at 0x10006a00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push 0
push 0x10006aa0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [esp + 0x2c]
push 0x65
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x1000f5fc], eax
jne 0x10006a2b
add esp, 0x1c
ret
push esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
test eax, eax
je 0x10006a8e
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_PostQuitMessage]
cmp eax, 0xffffffff
jne 0x10006a6c
push 0
call edi
jmp 0x10006a7a
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
test eax, eax
jne 0x10006a61
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x10008250
Capabilities:
Allocate or change rwx memory
Get file size
Parse pe header
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000827d
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x10008290
pop edi
pop esi
pop ebx
ret
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [esp + 0x18]
push 0
mov edi, eax
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100082c2
pop edi
pop esi
pop ebx
ret
cmp word [edi], 0x5a4d
je 0x100082cf
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [edi + 0x3c]
cmp dword [edx + edi], 0x4550
je 0x100082e1
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
mov dword [ecx], edi
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x100085b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x10008610
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x10011410]
test ah, 0x80
mov eax, dword [esp + 0xc]
je 0x100085fc
test eax, ecx
jne 0x10008610
or ecx, eax
mov eax, 1
mov dword [0x10011410], ecx
pop ecx
ret
test eax, ecx
je 0x10008610
mov ecx, dword [0x10011410]
not eax
and ecx, eax
mov dword [0x10011410], ecx
xor eax, eax
pop ecx
ret

Function at 0x100086b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x408]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40c]
push eax
push ecx
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret