joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c40
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4141b0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push 0x104
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00407f0d
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.00406a40
add esp, 0x14
push 0x80
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x210]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00406f68
add esp, 0x20c
ret

Function at 0x406cb0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push 1
push esi
call fcn.00406a40
add esp, 8
push 0x80
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
mov al, bl
pop ebx
ret

Function at 0x406f68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4141b0]
jne 0x406f72
repz ret
jmp fcn.00409647

Function at 0x409442
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x414478]
je 0x40945d
inc edi
cmp edi, 0x17
jb 0x40944e
cmp edi, 0x17
jae 0x4095dd
push ebp
push 3
call fcn.0040f204
cmp eax, 1
pop ecx
je 0x4095a9
push 3
call fcn.0040f204
test eax, eax
pop ecx
jne 0x409491
cmp dword [0x4141d0], 1
je 0x4095a9
cmp ebx, 0xfc
je 0x4095dc
push 0x402b10
mov ebx, 0x314
push ebx
mov ebp, 0x415360
push ebp
call fcn.0040f19f
add esp, 0xc
test eax, eax
je 0x4094c7
push esi
push esi
push esi
push esi
push esi
call fcn.0040a654
add esp, 0x14
push 0x104
mov esi, 0x415379
push esi
push 0
mov byte [0x41547d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40950b
push 0x402af8
push 0x2fb
push esi
call fcn.0040f19f
add esp, 0xc
test eax, eax
je 0x40950b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a654
add esp, 0x14
push esi
call fcn.0040d920
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x409550
push esi
call fcn.0040d920
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x415674
push 0x402af4
sub ecx, eax
push ecx
push eax
call fcn.0040f0ec
add esp, 0x14
test eax, eax
je 0x409550
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a654
add esp, 0x14
jmp 0x409552
xor esi, esi
push 0x402af0
push ebx
push ebp
call fcn.0040f07b
add esp, 0xc
test eax, eax
je 0x409572
push esi
push esi
push esi
push esi
push esi
call fcn.0040a654
add esp, 0x14
push dword [edi*8 + 0x41447c]
push ebx
push ebp
call fcn.0040f07b
add esp, 0xc
test eax, eax
je 0x409594
push esi
push esi
push esi
push esi
push esi
call fcn.0040a654
add esp, 0x14
push 0x12010
push 0x402ac8
push ebp
call fcn.0040eebe
add esp, 0xc
jmp 0x4095dc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4095dc
cmp ebp, 0xffffffff
je 0x4095dc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41447c]
push dword [esi]
call fcn.0040d920
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40eebe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040bea5
xor ebx, ebx
cmp dword [0x415c48], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40ef94
push 0x402d60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f074
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d54
push edi
call esi
cmp eax, ebx
je 0x40f074
push eax
call fcn.0040be37
mov dword [esp], 0x402d44
push edi
mov dword [0x415c48], eax
call esi
push eax
call fcn.0040be37
mov dword [esp], 0x402d30
push edi
mov dword [0x415c4c], eax
call esi
push eax
call fcn.0040be37
mov dword [0x415c50], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004091cf
test eax, eax
pop ecx
pop ecx
je 0x40ef62
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a654
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40ef94
push 0x402d14
push edi
call esi
push eax
call fcn.0040be37
cmp eax, ebx
pop ecx
mov dword [0x415c58], eax
je 0x40ef94
push 0x402cfc
push edi
call esi
push eax
call fcn.0040be37
pop ecx
mov dword [0x415c54], eax
mov eax, dword [0x415c54]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40f019
cmp dword [0x415c58], ecx
je 0x40f019
push eax
call fcn.0040beae
push dword [0x415c58]
mov esi, eax
call fcn.0040beae
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40f019
cmp edi, ebx
je 0x40f019
call esi
cmp eax, ebx
je 0x40efe6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40efe6
test byte [ebp - 0x18], 1
jne 0x40f019
lea eax, [ebp - 0x10]
push eax
call fcn.00409206
test eax, eax
pop ecx
je 0x40f001
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a654
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40f010
or dword [ebp + 0x10], 0x200000
jmp 0x40f054
or dword [ebp + 0x10], 0x40000
jmp 0x40f054
mov eax, dword [0x415c4c]
cmp eax, dword [ebp - 8]
je 0x40f054
push eax
call fcn.0040beae
cmp eax, ebx
pop ecx
je 0x40f054
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40f054
mov eax, dword [0x415c50]
cmp eax, dword [ebp - 8]
je 0x40f054
push eax
call fcn.0040beae
cmp eax, ebx
pop ecx
je 0x40f054
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415c48]
call fcn.0040beae
cmp eax, ebx
pop ecx
je 0x40f074
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f076
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100014ec
cmp byte [esi + 0x3d], 0
je 0x100014ec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100014da
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100014a1
sub eax, 1
je 0x100014a5
sub eax, 2
jne 0x100014da
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100014c3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100014da
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100244d7
mov esp, ebp
pop ebp
ret
Function at 0x10001f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10001f5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10001f84
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10001f8a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10001ff2
jg 0x10001fa1
test esi, esi
je 0x10001ff2
test ecx, ecx
jl 0x10001fed
jg 0x10001fab
test eax, eax
je 0x10001fed
cmp edi, ecx
jg 0x10001fbf
jl 0x10001fb5
cmp esi, eax
jae 0x10001fbf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10001ff5
mov ecx, dword [ebp + 8]
jmp 0x10001fff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002019
jg 0x10001fff
test esi, esi
je 0x10002019
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002019
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000205c
jl 0x10002050
test ecx, ecx
jne 0x1000205c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002075
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100020c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x100020c9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x100020c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10002136
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100020f2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10002124
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10002136
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10002100
test edi, edi
je 0x10002136
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100024b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100024e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000251c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000251c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100025f3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10002544
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10002550
movsx eax, bl
jmp 0x10002588
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100025b2
sub eax, 1
je 0x100025b2
sub eax, 2
jne 0x100025f3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100025d0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100025f3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100244d7
mov esp, ebp
pop ebp
ret 4
Function at 0x10003160
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.100254b0
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10003ab0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003383
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10003376
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10002fc0
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10002fc0
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10002fc0
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10002fc0
add esp, 0x20
cmp byte [0x10035f38], 0
jne 0x10003339
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x100032b2
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10003339
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x10035b37], al
test al, al
jne 0x100032c0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x10035337], al
test al, al
jne 0x100032e0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x10035f37], al
test al, al
jne 0x10003300
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x10035737], al
test al, al
jne 0x10003320
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1000337c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100244d7
mov esp, ebp
pop ebp
ret
Function at 0x100040a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10034c58], 0xf
mov eax, 0x10034c44
push ebx
push dword [0x10034c54]
cmova eax, dword [0x10034c44]
mov ecx, 0x10034c2c
push eax
call fcn.10002920
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, eax
mov dword [0x10034c1c], edx
sub ecx, dword [0x10034c18]
mov dword [0x10034c20], ecx
cmp ecx, 0x200
jb 0x10004110
cmp byte [0x10034c28], 0
mov dword [0x10034c18], edx
sete al
mov byte [0x10034c28], al
jmp 0x10004115
mov al, byte [0x10034c28]
test al, al
je 0x10004167
mov edx, dword [0x10034c58]
mov eax, edx
mov ecx, dword [0x10034c54]
sub eax, ecx
cmp eax, 1
jb 0x1000414d
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [0x10034c54], eax
mov eax, 0x10034c44
cmova eax, dword [0x10034c44]
mov word [eax + ecx], 0x7c
jmp 0x10004167
push 1
push 0x100286b8
mov byte [ebp - 0x20], 0
mov ecx, 0x10034c44
push dword [ebp - 0x20]
push 1
call fcn.10002cb0
mov eax, dword [0x10034c54]
test eax, eax
je 0x100041e5
cmp eax, 0x10
jae 0x100041e8
cmp dword [0x10034c58], 0xf
mov bl, 0x22
mov edx, 0x10034c44
mov byte [ebp - 0x1d], 0
cmova edx, dword [0x10034c44]
mov al, 7
xor al, bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], al
mov cl, 0x51
push edx
lea eax, [ebp - 0x1f]
mov byte [ebp - 0x1d], 0
push eax
xor cl, bl
push 0x1003a1f4
mov byte [ebp - 0x1e], cl
call fcn.10001370
mov eax, dword [0x10034c60]
add esp, 0xc
add eax, 0xe6
push 0x1003a1f4
push 1
push dword [0x10039e08]
push 0xffe580ff
push dword [0x10034c64]
push eax
call fcn.10003ba0
mov eax, dword [0x10034c54]
add esp, 0x18
cmp eax, 0x10
jbe 0x10004264
movaps xmm0, xmmword [0x1002c880]
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x2f207c6b
mov byte [ebp - 8], 0
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x13
jb 0x10004202
lea eax, [ebp - 0x1b]
mov byte [ebp - 8], 0
push eax
push 0x1003a1b8
call fcn.10001370
mov ecx, dword [0x10034c64]
add esp, 8
mov eax, dword [0x10034c60]
add eax, 0xe6
push ecx
push eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x10039e08]
lea edx, [ebp - 0x18]
push 0xffff0000
push 0x100
push edx
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0x1003a1b8
push 0
push eax
call dword [ecx + 0x38]
cmp dword [0x10034c40], 0xf
mov eax, 0x10034c2c
push dword [0x10034c3c]
cmova eax, dword [0x10034c2c]
mov ecx, 0x10034c44
push eax
call fcn.10002920
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100244d7
mov esp, ebp
pop ebp
ret
Function at 0x10004360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x10036456], 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
je 0x10004542
mov esi, dword [0x10034c74]
mov edi, dword [ebp + 8]
cmp dword [0x10034c5c], esi
jne 0x10004465
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x100043d1
push dword [0x10039ce8]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
test al, 1
je 0x100043bc
mov eax, dword [edi]
cmp eax, dword [ebp - 4]
jge 0x100043d1
inc eax
jmp 0x100043cf
push dword [0x100398a4]
call esi
test al, 1
je 0x100043d1
mov eax, dword [edi]
test eax, eax
jle 0x100043d1
dec eax
mov dword [edi], eax
mov esi, dword [0x10034c74]
cmp dword [0x10034c5c], esi
jne 0x10004465
push ebx
push 1
push dword [0x10039e08]
call fcn.10003b20
push eax
mov eax, dword [0x10034c68]
mov ecx, esi
shl ecx, 4
add eax, 0xffffffd8
sub ecx, esi
add eax, ecx
push eax
mov eax, dword [0x10034c60]
add eax, 0xfffffffd
push eax
call fcn.10003ba0
mov ecx, dword [edi]
add esp, 0x18
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10039e08]
call fcn.10003b20
mov ecx, dword [0x10034c74]
push eax
mov eax, dword [0x10034c68]
shl ecx, 4
add eax, 0xffffffd8
sub ecx, dword [0x10034c74]
add eax, ecx
push eax
mov eax, dword [0x10034c60]
add eax, 0x8c
push eax
call fcn.10003ba0
add esp, 0x18
inc dword [0x10034c74]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10034c68]
mov ecx, esi
shl ecx, 4
add eax, 0xffffffd8
push ebx
sub ecx, esi
push 1
push dword [0x10039e08]
add eax, ecx
cmp dword [edi], 0
jle 0x100044e0
cmp dword [ebp + 0xc], 1
jne 0x100044b5
push 0xffffff33
push eax
mov eax, dword [0x10034c60]
add eax, 0xfffffffd
push eax
call fcn.10003ba0
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10039e08]
push 0xffffff33
jmp 0x1000450f
push 0xff7fff00
push eax
mov eax, dword [0x10034c60]
add eax, 0xfffffffd
push eax
call fcn.10003ba0
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10039e08]
push 0xff7fff00
jmp 0x1000450f
cmp dword [ebp + 0xc], 1
je 0x1000448a
push 0xff00ffff
push eax
mov eax, dword [0x10034c60]
add eax, 0xfffffffd
push eax
call fcn.10003ba0
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10039e08]
push 0xff00ffff
mov ecx, dword [0x10034c74]
mov eax, dword [0x10034c68]
shl ecx, 4
add eax, 0xffffffd8
sub ecx, dword [0x10034c74]
add eax, ecx
push eax
mov eax, dword [0x10034c60]
add eax, 0x8c
push eax
call fcn.10003ba0
add esp, 0x30
inc dword [0x10034c74]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100048c8
mov esi, dword [esi]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jle 0x100048c8
lea eax, [ebp + 0xc]
nop
mov edi, dword [eax + 4]
add eax, 4
push 4
add edi, esi
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100048b5
mov esi, dword [edi]
inc ebx
mov eax, dword [ebp - 0xc]
cmp ebx, dword [ebp + 0xc]
jl 0x10004890
jmp 0x100048cb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100244d7
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100244d7
mov esp, ebp
pop ebp
ret

Function at 0x10004e10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push edi
push 4
push 0x286fb98
mov edi, edx
call esi
test eax, eax
jne 0x10004e6c
mov eax, dword [0x286fb98]
add edi, eax
push 4
push edi
call esi
test eax, eax
jne 0x10004e6c
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
mov eax, dword [ebx]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100244d7
mov esp, ebp
pop ebp
ret