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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x421008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x41a614
lea eax, [ebp - 0x10]
push str.mob_proto
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x40c045
push str.mob_proto
push str.cannot_open__s_for_writing_n
jmp 0x40c1e4
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x54504d4d
push 4
push eax
call ebx
push dword [ebp - 0x10]
mov eax, dword [0x423f20]
push 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
call ebx
mov word [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0x101
push str.sizeof_TMobTable___d_n
mov dword [ebp - 4], 0
call fcn.0040b370
imul eax, dword [0x423f20], 0x101
add esp, 0x28
push 0x421020
push eax
push dword [0x423f1c]
lea eax, [ebp - 0x34]
push eax
call fcn.00415060
mov edi, dword [ebp - 0x34]
test al, al
jne 0x40c0f1
push str.cannot_compress_n
call fcn.0040b370
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x40c172
cmp byte [ebp - 0x24], 0
mov esi, dword [ebp - 0x2c]
je 0x40c10e
mov eax, dword [esi + 4]
test eax, eax
je 0x40c106
add eax, 0x14
jmp 0x40c111
mov eax, dword [esi + 8]
add eax, 0x14
jmp 0x40c111
mov eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi + 8]
push dword [esi + 0xc]
push dword [0x423f20]
push str.MobProto_count__u_n_u___Compress_____u___Encrypt_____u__GetSize__u_n
call fcn.0040b370
add esp, 0x18
cmp byte [ebp - 0x24], 0
je 0x40c148
mov eax, dword [esi + 4]
test eax, eax
je 0x40c140
add eax, 0x14
jmp 0x40c14b
mov eax, dword [esi + 8]
add eax, 0x14
jmp 0x40c14b
mov eax, dword [esi + 0xc]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 1
push 4
push eax
call ebx
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x14]
push edi
call ebx
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x24
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x30]
test edi, edi
je 0x40c1da
cmp byte [ebp - 0x23], 0
jne 0x40c1da
mov dword [ebp - 0x20], edi
push esi
push edi
cmp esi, 0x10000
jae 0x40c1c4
push str.lzo.reuse_free_t_p__d__n
call fcn.0040b370
mov eax, dword [0x423f2c]
add esp, 0xc
cmp eax, dword [0x423f30]
je 0x40c1b8
mov dword [eax], edi
add dword [0x423f2c], 4
jmp 0x40c1da
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00415200
jmp 0x40c1da
push str.lzo.real_free_t_p__d__n
call fcn.0040b370
add esp, 0xc
push edi
call fcn.0041704d
add esp, 4
test esi, esi
je 0x40c1ec
push esi
push str.lzo.free__d_n
call fcn.0040b370
add esp, 8
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 0x410870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edi, edx
mov eax, dword [0x423f70]
mov ebx, ecx
cmp eax, dword [esi + 4]
jle 0x4108c7
push 0x423f70
call fcn.00416b9d
add esp, 4
cmp dword [0x423f70], 0xffffffff
jne 0x4108c7
push 0x41afd4
push str.debug.log
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0x423f70
mov dword [0x424178], eax
call fcn.00416b53
add esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push edi
test eax, eax
je 0x4108ea
push eax
push str.ERROR:___d___d___s_n
push 0x200
push 0x423f78
call fcn.0040b3e0
add esp, 0x18
jmp 0x410901
push str.ERROR:___d___s_n
push 0x200
push 0x423f78
call fcn.0040b3e0
add esp, 0x14
mov ecx, 0x423f78
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410910
push dword [0x424178]
sub ecx, edx
push ecx
push 1
push 0x423f78
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x415060
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, esi
shr eax, 6
add eax, 0x2f
add eax, esi
push eax
mov dword [edi + 4], eax
call fcn.00414ab0
push dword [edi + 4]
mov dword [edi], eax
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi]
add esp, 0xc
mov dword [edi + 8], eax
mov ecx, edi
mov dword [eax], 0x5a4f434d
mov eax, dword [edi + 8]
mov dword [eax + 0xc], 0
mov eax, dword [edi + 8]
mov dword [eax + 8], 0
mov eax, dword [edi + 8]
mov dword [eax + 4], 0
mov eax, dword [edi + 8]
mov dword [eax + 0xc], esi
call fcn.00414c20
test al, al
je 0x4151b9
cmp byte [edi + 0x10], 0
je 0x4151b9
mov eax, dword [edi + 8]
mov ebx, dword [edi]
add ebx, 0x10
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax + 8]
add ecx, 0x13
mov eax, ecx
and eax, 0x80000007
jns 0x415101
dec eax
or eax, 0xfffffff8
add eax, 1
mov esi, ecx
je 0x415122
sub esi, eax
add esi, 8
mov eax, esi
mov dword [ebp - 4], esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x415125
mov dword [ebp - 4], ecx
mov ecx, esi
sar ecx, 3
mov dword [ebp + 0x10], ecx
test ecx, ecx
jle 0x4151a8
mov esi, dword [ebx]
xor eax, eax
mov edi, dword [ebx + 4]
mov ebx, 0x20
nop dword [eax]
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x14]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp - 8]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x415140
mov ebx, dword [ebp + 0xc]
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], ebx
jne 0x415131
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [eax + 4], esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 0x8000
push 0
lea eax, [esi + 0xc96b]
mov dword [ebp - 0xc], esi
mov dword [esi + 0x160], eax
lea eax, [esi + 0x47168]
push eax
mov dword [esi], 0xbfff
mov dword [esi + 4], 0x800
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0x800
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x15c], 0xc7ff
mov dword [esi + 0x164], 0xbfff
call sub.VCRUNTIME140.dll_memset
push 0x20000
lea eax, [esi + 0x4f168]
push 0xff
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [esi + 0xb4]
add esp, 0x18
mov dword [esi + 0x150], 0
mov edx, 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x168], 0
mov ecx, dword [ebx + 0x24]
sub ecx, dword [ebx + 0x1c]
mov dword [esi + 0x24], ecx
je 0x415498
mov eax, dword [esi + 4]
cmp ecx, eax
jbe 0x415468
mov dword [esi + 0x24], eax
mov ecx, eax
push ecx
push dword [ebx + 0x1c]
lea edi, [esi + 0x16c]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0xb4]
add esp, 0xc
mov eax, dword [esi + 0x24]
add dword [ecx + 0x1c], eax
mov ecx, dword [esi + 0x24]
add dword [esi + 0x150], ecx
mov edx, dword [esi + 0x150]
jmp 0x41549e
lea edi, [esi + 0x16c]
mov eax, dword [esi + 0x150]
xor ebx, ebx
cmp edx, dword [esi + 0x15c]
cmove eax, ebx
mov dword [esi + 0x150], eax
cmp ecx, 2
jb 0x415562
mov ebx, dword [esi + 0x14c]
test ebx, ebx
je 0x415562
mov eax, dword [esi]
sub eax, ebx
mov dword [esi + 0x168], 0
mov dword [esi + 0x164], eax
lea eax, [esi + 0x2e16a]
mov dword [ebp - 4], eax
mov eax, 0xfffffe94
sub eax, esi
mov dword [ebp - 8], eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 5
xor ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 5
xor ecx, eax
imul edx, ecx, 0x9f5f
mov ecx, dword [ebp - 4]
shr edx, 5
and edx, 0x3fff
movzx eax, word [esi + edx*2 + 0xd16c]
mov word [ecx - 0x18ffe], ax
mov ecx, dword [ebp - 8]
add ecx, edi
mov word [esi + edx*2 + 0xd16c], cx
movzx eax, word [esi + 4]
mov esi, dword [ebp - 4]
inc ax
add dword [ebp - 4], 2
mov word [esi], ax
mov esi, dword [ebp - 0xc]
inc word [esi + edx*2 + 0x47168]
movzx eax, word [edi]
inc edi
mov word [esi + eax*2 + 0x4f168], cx
sub ebx, 1
jne 0x4154f3
mov ecx, dword [esi + 0x168]
mov edx, dword [esi + 0x164]
cmp ecx, edx
jb 0x415583
sub ecx, edx
xor eax, eax
pop edi
mov dword [esi + 0x158], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15c]
sub eax, edx
add eax, ecx
pop edi
mov dword [esi + 0x158], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417403
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417442
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417442
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417442
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417442
cmp dword [ecx + 0x74], 0xe
jbe 0x417442
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10010526
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10010557
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x43bc
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
call fcn.100105a5
add esp, 0x10
jmp 0x100105a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10010583
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10010581
push 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x100105a1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x100105a1
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esp, ebp
pop ebp
ret
Function at 0x10017731
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100177c4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10017777
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10017775
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x100177c2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100177a5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x100177c2
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.1000adff
mov dword [eax], 0x8b9dbea5
jmp 0x1001779a
jmp 0x100177e6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push 0
push 0x44e3
push 0x25ea
push dword [ebp - 0x24]
push 0x1f2d
call fcn.100248a0
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x1001f921
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001f9d2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001f99f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001f983
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x1001f99d
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1000adff
or dword [eax], 0xffffffff
jmp 0x1001f978
jmp 0x1001f9d0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1001f9d0
push 0x2288
push 0
push 0x239e
push 0x13e9
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1001f9eb
push 0x1233
push 0
push 0x36b5
push 0x5f15
call fcn.1001673f
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x1001fd2d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001fdec
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1001fdcc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0x1d
jmp 0x1001fd8f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffe4
jne 0x1001fdca
mov dword [ebp - 8], 0
jmp 0x1001fda7
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1001fdba
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x38], 0x779e
jmp 0x1001fda0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + eax - 0x38]
mov dword [ecx], eax
jmp 0x1001fd84
jmp 0x1001fdea
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1001fdea
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1001fdfa
push 0xf66
push 1
call fcn.1000fe2f
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100243e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10024458
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1002444c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push 0x7ad2
push 0
push dword [ebp - 0x1c]
push 0x504b
push 0x3410
push 0x1511
push 1
call fcn.10025303
add esp, 0x20
jmp 0x10024456
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x10024483
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 1
push dword [ebp - 0x20]
push 0x2f2e
push 0x4e96
push dword [ebp - 0x24]
push 0x25cf
call fcn.1001f79c
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x100244a6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100245d6
lea eax, [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x100244ea
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x100245d4
mov dword [ebp - 0x2c], 0x154c
cmp dword [ebp - 0x2c], 0x588
jge 0x100245cc
lea eax, [ebp - 0x10]
push eax
push 0x10007750
call fcn.10049deb
pop ecx
pop ecx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100454bb
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
and dword [ebp - 0xc], 0
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
jmp 0x10024544
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jge 0x10024573
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax*4]
push eax
push 0x10007750
call fcn.10049deb
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x1002453d
mov eax, dword [ebp - 0xc]
and eax, 0x80000001
jns 0x10024582
dec eax
or eax, 0xfffffffe
inc eax
mov dword [ebp - 0x34], eax
and dword [ebp - 8], 0
jmp 0x10024592
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jge 0x100245bd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
and eax, 0x80000001
jns 0x100245af
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, dword [ebp - 0x34]
jne 0x100245bb
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x1002458b
push dword [ebp - 0x18]
push 0x100077c4
call fcn.1004a17c
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1002460b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
push 0x6d09
push dword [ebp - 0x38]
push 0
push 0x32f8
push 0x128c
push 0x5a52
push dword [ebp - 0x3c]
push 0x38bb
call fcn.10024b4d
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x100439f6
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x10063adf
call fcn.10062338
sub esp, 0x18
push ebx
push esi
mov dword [ebp - 0x1c], 0x5771
cmp dword [ebp - 0x1c], 0x5b54
push edi
mov dword [ebp - 0x10], esp
jle 0x10043a88
push 0x14c
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp - 0x14], edi
and dword [ebp - 0x24], 0
mov ecx, edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
shl esi, cl
mov ecx, edi
mov eax, esi
sar eax, cl
and eax, ebx
cdq
push edx
push eax
call fcn.10043d6e
inc edi
cmp edi, 0x5d3e
jl 0x10043a3e
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x4ac2
jl 0x10043a30
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x211e
jl 0x10043a2b
inc ebx
cmp ebx, 0x1314
jl 0x10043a26
push 0
push 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x5495
jge 0x10043aa4
mov edx, 0x10007d00
mov ecx, 0x10653d18
call fcn.1002c75b
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005dff5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10068750]
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.1004fa88
mov dword [ebp - 0x14], eax
cmp dword [0x10654e40], esi
jne 0x1005e0e8
push 0x800
push esi
push 0x100075e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1005e075
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005e1c8
push esi
push esi
push 0x100075e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1005e1c8
push 0x10007600
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005e1c8
push eax
call ebx
push 0x1000760c
push edi
mov dword [0x10654e40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000761c
push edi
mov dword [0x10654e44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007630
push edi
mov dword [0x10654e48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10654e50], eax
test eax, eax
je 0x1005e0e5
push 0x1000764c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10654e4c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1005e10d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1005e100
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1005e122
push 4
pop eax
jmp 0x1005e1ca
cmp dword [ebp - 0x14], esi
je 0x1005e122
push dword [0x10654e40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1005e107
mov eax, dword [0x10654e4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1005e180
cmp dword [0x10654e50], edi
je 0x1005e180
push eax
call ebx
push dword [0x10654e50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1005e180
test eax, eax
je 0x1005e180
call ecx
test eax, eax
je 0x1005e175
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 0x1005e175
test byte [ebp - 8], 1
jne 0x1005e180
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1005e1b0
mov eax, dword [0x10654e44]
cmp eax, edi
je 0x1005e1ad
push eax
call ebx
test eax, eax
je 0x1005e1ad
call eax
mov esi, eax
test esi, esi
je 0x1005e1ad
mov eax, dword [0x10654e48]
cmp eax, edi
je 0x1005e1ad
push eax
call ebx
test eax, eax
je 0x1005e1ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10654e40]
call ebx
test eax, eax
je 0x1005e1c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1005e1ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d20d
mov esp, ebp
pop ebp
ret