joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056eff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10056f58
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10056eff
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10056f0e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1045cbb1
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10056f5f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1003ddd5
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10056ffe
add edi, 4
add eax, 2
dec ecx
jne 0x10056f44
call 0x10056fab
loope 0x10056fa1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10056ffb
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1005700c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10056fbf
cmp eax, ecx
ja 0x10056fbf
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10057049
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1005703f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1003e2b4
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10056f0e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10056f58
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10056eff
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10056f0e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1045cbb1
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10056f5f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1003ddd5
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10056ffe
add edi, 4
add eax, 2
dec ecx
jne 0x10056f44
call 0x10056fab
loope 0x10056fa1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10056ffb
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1005700c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10056fbf
cmp eax, ecx
ja 0x10056fbf
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10057049
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1005703f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1003e2b4
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1e0754e1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3f90ea8
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2d2668fb
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x45bb7304
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub eax, 0x34
imul ebx
rcl edx, 0xd
and ebx, 0xd5
inc ebx
dec edi
mov eax, 0x95
bswap edx
inc edi
neg edi
not ebx
dec esi
not edi
rcl edx, 0xbe
add esi, 0x57
rcr esi, 0x9b
and edi, 0xa1
rol edx, 0x1d
imul ebx
or edx, 0xa
or ebx, 0xcd
ror esi, 0xec
not ebx
add eax, 0x6d
dec ebx
add esi, 0xc7
and eax, 0x26
dec eax
not eax
inc ebx
rcr edx, 0x6e
not ebx
inc eax
and ebx, 0x66
or esi, 0xad
dec ebx
inc edi
rcr edi, 0x5f
or edx, 0xe6
sub eax, 0xef
not edi
bswap eax
sub edx, 0x9c
ror edx, 0xc
dec esi
or edx, 0x3b
rcl edi, 0xa1
mov edx, 0x1a
inc esi
mov edx, 0xe
xor ecx, ecx
xor edi, edi
mov edi, 0xdc
inc edi
and esi, 0xb3
rcl edi, 0x56
dec edx
neg edx
neg ebx
rcr esi, 0xdd
mov eax, 0x3d
add edx, 0x65
mov esi, 0x90
inc esi
ror ebx, 0xd5
sbb ebx, 0xd0
or edi, 0xd5
or esi, 0x5e
add edx, 0x65
dec edi
add edi, 0xcd
sbb ebx, 0x8c
neg eax
neg edi
dec edx
neg edx
dec esi
dec ebx
neg edx
rcr ebx, 0xa5
and esi, 0x70
neg edx
sub ebx, 0x7c
dec edx
or edx, 0xc5
inc edx
imul ebx
imul eax
sub ebx, 0x70
ror eax, 0x83
imul eax
dec esi
add esi, 0x3a
inc ebx
or edi, 0xf9
imul edi
dec edx
sbb esi, 0x50
mov edx, 0x98
rcr eax, 0x29
mov eax, 0x83
ror ebx, 0x73
mov ecx, dword [ebp + 0xc]
not edx
neg ebx
bswap edx
not eax
bswap esi
dec ebx
rol ebx, 0xc0
and edx, 0x38
sbb eax, 0
not ebx
bswap ebx
neg eax
sub ebx, 0x79
dec esi
mov esi, 0xb3
neg edx
and eax, 0xd8
inc edx
imul edx
dec eax
neg eax
add esi, 0x4d
imul edi
dec eax
rol eax, 0x44
add edi, 0xfa
bswap edi
or esi, 0xe0
dec edi
bswap eax
inc ebx
neg ebx
dec ebx
neg esi
imul esi
not eax
neg edx
neg eax
not edx
inc eax
mov edx, 0x46
not eax
mov ebx, 0x93
imul edx
ror ebx, 0xf6
dec edx
imul ebx
bswap edi
imul ebx
inc eax
mov edi, dword [ebp + 8]
xor esi, eax
mov esi, ebx
xor esi, ebx
not byte [edi]
mov eax, esi
mov esi, ebx
mov ebx, eax
xor esi, esi
mov ebx, ebx
xor eax, eax
mov ebx, eax
xor esi, ebx
mov ebx, ebx
add byte [edi], 0x37
xor ebx, ebx
mov eax, esi
xor esi, eax
mov eax, ebx
mov eax, esi
xor esi, esi
mov eax, esi
xor esi, ebx
xor esi, eax
sub byte [edi], 0x75
xor esi, ebx
xor esi, esi
xor eax, ebx
mov ebx, eax
xor eax, eax
xor eax, esi
xor esi, ebx
xor eax, eax
xor eax, esi
imul byte [edi]
inc edi
loop 0x4013cc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10002690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a285
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
cmp byte [eax + 0x1ac], 0
mov edx, dword [eax + 0x2e4]
je 0x100026cf
or edx, 1
jmp 0x100026d2
and edx, 0xfffffffe
mov dword [eax + 0x2e4], edx
mov esi, dword [ebx + 8]
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
call fcn.1001b120
mov edi, dword [ebp + 0xc]
add esi, 0x10c
cmp esi, edi
je 0x1000270b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10002700
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.100036c0
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x10002728
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x1000271f
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.100036c0
movzx eax, byte [edi + 0x30]
mov byte [esi + 0x30], al
movzx eax, byte [edi + 0x31]
mov byte [esi + 0x31], al
movzx eax, byte [edi + 0x32]
mov byte [esi + 0x32], al
movzx eax, byte [edi + 0x33]
mov byte [esi + 0x33], al
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 8]
test esi, esi
je 0x100027c3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100027c3
cmp dword [0x100a063c], 0
je 0x100027bc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100027a4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x100a063c], 0
mov byte [esi + 0x2b8], 0
je 0x100027a4
push 0x1330684
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x100a063c], 0
push 0x1330684
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x100a063c], 0
mov ecx, esi
call fcn.1001d6e0
cmp dword [ebx + 0x1c], 0
jne 0x10002834
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0x10]
mov esi, dword [esi + 0x28]
mov dword [ebp + 0xc], esi
test esi, esi
je 0x100027e7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
test esi, esi
jne 0x100027f8
mov dword [ebp - 4], 0xffffffff
jmp 0x1000282a
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push 0x100805a0
push esi
call dword [eax]
test eax, eax
jne 0x10002816
mov eax, dword [ebp + 8]
push dword [ebx + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov byte [ebp - 4], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x10002834
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [edi + 0x31], 0
lea ecx, [ebx + 4]
mov eax, dword [ecx]
je 0x10002844
push dword [ebx + 0x1c]
jmp 0x10002846
push 0
push ecx
call dword [eax + 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 8
Function at 0x10007f80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1009b01c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
push str._stop_service.bat
mov edx, esi
call fcn.10008420
add esp, 4
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10007fb4
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x10007fbc
mov eax, dword [eax]
push 0
push ecx
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
jb 0x1000800b
mov edx, dword [esp + 4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008001
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008091
push ecx
push edx
call fcn.1004d2eb
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._start_service.bat
mov edx, esi
lea ecx, [esp + 8]
call fcn.10008420
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x1000802e
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x10008036
mov eax, dword [eax]
push 0
push esi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
jb 0x10008081
mov edx, dword [esp + 4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10008077
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008096
push ecx
push edx
call fcn.1004d2eb
add esp, 8
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.1004d2dd
mov esp, ebp
pop ebp
ret
call fcn.1005cf3f
call fcn.1005cf3f
int3
Function at 0x100086e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x1009b01c]
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
push 0x104
lea eax, [ebp - 0x26c]
push eax
push dword [0x100a0638]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push eax
push 0x1008a3f8
push 0x17
push 0
push 0x10080610
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100088ac
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x278]
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 0x284], esi
push edi
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10008850
mov esi, 0xe0200404
nop
cmp esi, 0xe0ff0404
ja 0x1000884a
push esi
push str._08X
lea eax, [ebp - 0x24]
push 9
push eax
call fcn.10008660
add esp, 0x10
lea eax, [ebp - 0x274]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008834
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x40
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push str.Ime_File
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10008834
cmp dword [ebp - 0x280], 1
jne 0x10008834
lea eax, [ebp - 0x64]
push str.weasel.ime
push eax
call fcn.100616b3
add esp, 8
test eax, eax
cmove edi, esi
push dword [ebp - 0x274]
call ebx
add esi, 0x10000
test edi, edi
je 0x100087a0
mov esi, dword [ebp - 0x284]
push dword [ebp - 0x278]
call ebx
push 0
mov eax, dword [esi]
lea ecx, [ebp - 0x26c]
push 1
push 0
push edi
push 0
push dword [ebp - 0x288]
push ecx
push 3
push 0x1008a3dc
push 0x10089fcc
push 0x404
push 0x10089fdc
push esi
call dword [eax + 0x20]
test eax, eax
js 0x100088ac
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x100088a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x100088c5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x100088c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
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.1004d2dd
mov esp, ebp
pop ebp
ret
Function at 0x1000a460
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1009b01c]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov esi, ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
mov dword [esp + 0xc], esi
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 8]
test eax, eax
je 0x1000a4d5
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004d901
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [esp + 8], 0
ja 0x1000a50a
push edi
call fcn.1004d90a
add esp, 4
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x10089df4
mov dword [esi + 0x14], 0
call fcn.10003990
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1004d2dd
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movaps xmmword [esp + 0x10], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a527
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.10003990
push edi
call fcn.1004d90a
mov ecx, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
add esp, 4
mov dword [esi + 0x10], 0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 0x14], 0
mov eax, esi
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.1004d2dd
mov esp, ebp
pop ebp
ret

Function at 0x1000ae40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ae30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea esi, [ecx + 0x20]
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
call fcn.10019470
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push dword [esi + 0x18]
call fcn.1000b220
mov ebx, dword [esi + 0x18]
lea eax, [ebp + 8]
push 0
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000aeea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1000af21
push dword [esi + 0x20]
push 0
push dword [esi + 0x24]
call fcn.100536e0
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push dword [esi + 0x20]
push dword [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000af32
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x10096d54
push eax
call fcn.100530cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x10096d54
push eax
call fcn.100530cb
int3
Function at 0x1000b220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ae80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1009b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edi
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp byte [edi], 0
je 0x1000b277
mov eax, dword [esi + 0x20]
jmp 0x1000b27c
mov eax, 0xc
push 0
lea edx, [ebp - 0x18]
mov dword [ebp + 0xc], eax
push edx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b318
cmp dword [ebp - 0x18], 0
jbe 0x1000b318
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1000b2d9
mov ecx, dword [esi + 0x28]
mov byte [edi], 0
test ecx, ecx
je 0x1000b304
mov dword [esi + 0x28], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], 0
test ecx, ecx
je 0x1000b304
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x10096d54
push eax
call fcn.100530cb
int3