joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10021ff0
push 0x10021aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10023f34]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
mov ecx, esi
call fcn.10009b70
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xd
je 0x10009ff6
lea ecx, [ebx - 0x10]
cmp ecx, 1
ja 0x10009ffd
mov eax, dword [ebp + 8]
or dword [eax + 0x38], 2
push 0x200
push 0
push dword [0x10025d40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x1000a025
push eax
movzx eax, word [esi + 0xc]
push eax
push ebx
jmp 0x1000a138
mov edx, 0x200
mov ecx, edi
mov esi, 0x10001dd4
sub esi, edi
lea eax, [edx + 0x7ffffdfe]
test eax, eax
je 0x1000a04c
mov al, byte [esi + ecx]
test al, al
je 0x1000a04c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000a033
test edx, edx
jne 0x1000a051
dec ecx
mov byte [ecx], 0
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a060
sub ecx, edx
movzx esi, cx
mov dword [ebp - 0x30], esi
mov eax, 0x200
sub eax, esi
movzx ebx, ax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xc]
movsx eax, bx
push eax
movsx eax, si
add eax, edi
push eax
movsx eax, cx
push eax
push edx
push 4
push 0x11
push dword [ebp + 8]
call fcn.10030d2f
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000a0d2
test eax, eax
je 0x1000a0dd
cmp eax, 0x804eeeee
jne 0x1000a0f8
movsx eax, bx
push eax
movsx eax, si
add eax, edi
push eax
push 0x2330
push dword [0x10025d38]
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, edi
lea ecx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000a100
sub esi, ecx
je 0x1000a128
jmp 0x1000a110
movzx eax, byte [edi + esi - 1]
push eax
call dword [sym.imp.msvcrt.dll_isspace]
add esp, 4
test eax, eax
je 0x1000a128
sub esi, 1
jne 0x1000a110
mov byte [esi + edi], 0
push edi
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
push eax
push dword [ebp - 0x34]
push 0
push 0
xor edx, edx
mov ecx, dword [ebp - 0x20]
call fcn.10009e90
add esp, 0x14
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b269
Capabilities:
Encode data using xor

Disassembly:
call 0x1002b1e2
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1002b212
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1002b22e
xor edx, 0
jmp 0x1002b239
xor edx, edx
jmp 0x1002b250
jmp 0x1002b25c
xor eax, eax
push 0x8427d7c0
call 0x1002b269
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1002b2a5
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1002b27e
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1002b2bc
add eax, 0
jno 0x1002b2c1
add esi, 0
ret 0x10

Function at 0x1002c02a
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1002c04c
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1002c1ee
cmp edi, dword [ebp + 0x10]
jb 0x1002c1ee
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1002bb16
inc edi
jmp 0x1002c0d5
jmp 0x1002c0e2
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1002bb16
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1002bb16
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1002c136
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1002c11a
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1002c164
add dword [eax], 0x39
jle 0x1002c140
sub al, 0xf5
mov ch, al
call fcn.1002c179
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10
Function at 0x1002de51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1002de67
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1002de78
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1002deb9
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x10030225
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1003016e
add ebx, 0
push ecx
call 0x10030183
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73b97056
sub ebx, dword [0x73bb6895]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73bb6885
call fcn.1002bc4d
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1002b15b
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100302e1
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100302e1
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x10030298
mov eax, 1
lock xchg dword [0x73bb6891], eax
push 0x3dd1fc71
call 0x10030225
push esi
add esp, 8
cmp eax, 0
jne 0x1003020e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10030234
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10030249
cmp ecx, edx
cmp eax, 0
je 0x1003026e
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10030258
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10030287
dec eax
loope 0x1003028a
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73bb6891], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100302be
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100302d3
jmp 0x100302de
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100301cc
Function at 0x10037346
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1003761c
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x73ba3509
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x73b9a4cf
push 0xffffffffffffffff
call fcn.1002e546
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x100373b0
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100373c8
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10037610
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100375e4
Function at 0x10046e16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10046e38
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10046e38
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10046e38
ret
cmp word [ebx + 4], 0x14c
jne 0x10046e38
test word [ebx + 0x16], 2
je 0x10046e38
test word [ebx + 0x16], 0x100
je 0x10046e38
cmp word [ebx + 0x18], 0x10b
jne 0x10046e38
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10046e38
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10046ec4
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10046e58
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1002dda3
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10046e38
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10046ec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10046e38
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10046e38
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10046e38
ret
cmp word [ebx + 4], 0x14c
jne 0x10046e38
test word [ebx + 0x16], 2
je 0x10046e38
test word [ebx + 0x16], 0x100
je 0x10046e38
cmp word [ebx + 0x18], 0x10b
jne 0x10046e38
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10046e38
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10046ec4
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10046e58
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1002dda3
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10046e38
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10046f7b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10046fd4
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10046f7b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10046f8a
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 0x1044cc2d
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 0x10046fdb
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.1002de51
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004707a
add edi, 4
add eax, 2
dec ecx
jne 0x10046fc0
call 0x10047027
loope 0x1004701d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10047077
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 0x10047088
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 0x1004703b
cmp eax, ecx
ja 0x1004703b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100470c5
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100470bb
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1002e330
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10046f8a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10046fd4
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10046f7b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10046f8a
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 0x1044cc2d
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 0x10046fdb
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.1002de51
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004707a
add edi, 4
add eax, 2
dec ecx
jne 0x10046fc0
call 0x10047027
loope 0x1004701d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10047077
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 0x10047088
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 0x1004703b
cmp eax, ecx
ja 0x1004703b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100470c5
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100470bb
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1002e330
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10008cbb
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10008cf6
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10008cdd
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10008cee
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10008cf8
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10008cd3
xor eax, eax
pop edi
pop esi
ret
Function at 0x413360
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [0x7fc108]
sub esp, 0x10
test eax, eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
push edi
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
je 0x4133df
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [0x7fbdc8]
mov ecx, dword [esp + 8]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [0x7fc108]
imul ecx, dword [0x7fc11c]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov eax, dword [0x7fc108]
mov ecx, dword [0x7fbedc]
cmp dword [eax], ecx
jge 0x4133b9
mov dword [eax], ecx
mov eax, dword [0x7fc108]
mov ecx, dword [0x7fc120]
mov edx, dword [eax]
cmp edx, ecx
jle 0x4133c7
mov dword [eax], ecx
mov eax, dword [0x7fc0a0]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [0x7fbdc8]
cdq
sub eax, edx
sar eax, 1
push eax
call edi
mov eax, dword [0x7fc124]
test eax, eax
je 0x413465
lea edx, [esp + 0x10]
push edx
call esi
mov eax, dword [0x7fbdc8]
fild dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 8], eax
mov eax, dword [0x7fc124]
fisub dword [esp + 8]
fmul dword [0x7fc128]
fadd dword [eax]
fstp dword [eax]
mov ecx, dword [0x7fc124]
fld dword [ecx]
fcomp dword [0x7fbed8]
fnstsw ax
test ah, 1
je 0x413436
mov eax, dword [0x7fbed8]
mov dword [ecx], eax
mov ecx, dword [0x7fc124]
fld dword [ecx]
fcomp dword [0x7fbecc]
fnstsw ax
test ah, 0x41
jne 0x41344d
mov edx, dword [0x7fbecc]
mov dword [ecx], edx
mov eax, dword [0x7fc0a0]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [0x7fbdc8]
cdq
sub eax, edx
sar eax, 1
push eax
call edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x413590
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x104
push esi
push 0
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4135f6
push edi
mov edi, dword [esp + 0x110]
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
push esi
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
test eax, eax
pop edi
je 0x4135f6
mov eax, dword [esp + 4]
and eax, 0xffff
jl 0x4135f6
cmp eax, 0xff
jle 0x4135f8
xor al, al
pop esi
add esp, 0x104
ret

Function at 0x4139e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [0x4282a8]
sub esp, 8
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
je 0x413a1e
push 0x7fbdb8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x413a0d
call dword [sym.imp.WINMM.dll_timeGetTime]
pop esi
add esp, 8
ret
push 0x7fc0b0
call esi
mov dword [0x4282a8], 0
lea eax, [esp + 4]
push eax
call esi
mov ecx, dword [esp + 4]
mov edx, dword [0x7fc0b0]
mov eax, dword [0x7fc0b4]
sub ecx, edx
mov edx, dword [esp + 8]
push 0
sbb edx, eax
push 0x3e8
push edx
push ecx
call fcn.0041b210
mov ecx, dword [0x7fbdbc]
push ecx
mov ecx, dword [0x7fbdb8]
push ecx
push edx
push eax
call fcn.0041b160
pop esi
add esp, 8
ret
Function at 0x413be0
Capabilities:
Create process on windows

Disassembly:
call fcn.0041a410
call fcn.004123a0
mov eax, dword [0x7fc744]
test eax, eax
je 0x413bfa
call fcn.00411e20
jmp 0x413bff
call fcn.00412190
mov al, byte [0x7fc138]
test al, al
je 0x413c24
mov eax, dword [0x7fbdc4]
push 1
push 0x7f9fbc
push 0
push 0x7fc138
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x418a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [0x7fc7b8]
cmp ebp, 0xff
jge 0x418aa7
lea eax, [ebp + ebp*4]
shl eax, 4
sub eax, ebp
lea eax, [eax*4 + 0x7fde38]
cmp dword [eax - 4], 0xffffffff
jne 0x418a9a
cmp dword [eax], 0xffffffff
je 0x418aab
add eax, 0x13c
inc ebp
cmp eax, 0x8118fc
jl 0x418a8f
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [esp + 0xc]
lea ecx, [ebp + ebp*4]
push esi
mov eax, dword [ebx + 8]
push edi
shl ecx, 4
sub ecx, ebp
test eax, eax
lea esi, [ecx*4 + 0x7fdd00]
jne 0x418ada
mov edx, dword [ebx + 4]
push 0
push edx
call fcn.00410cf0
add esp, 8
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x418af1
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x418af1
push eax
call fcn.004110f0
add esp, 4
mov eax, dword [esi + 0x134]
mov edx, dword [esi + 0x138]
mov dword [esp + 0x14], eax
mov ecx, 0x4f
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x138], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x134], ecx
or ecx, 0xffffffff
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x28], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov edx, dword [ebx]
mov dword [esi + 0x48], edx
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x50], 4
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], edx
fild dword [ebx + 0xc]
test eax, eax
fstp dword [esi + 0x78]
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x7c], edx
mov edx, dword [ebx + 0x14]
mov dword [esi + 0x80], edx
je 0x418b81
mov dword [eax + 0x14], esi
mov dword [eax + 8], ecx
push esi
call fcn.00418820
add esp, 4
inc ebp
mov dword [0x7fc7b8], ebp
mov eax, dword [esi + 0x48]
test eax, eax
je 0x418ba0
push 0
push esi
call eax
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42041d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428850
cmp edx, dword [eax]
je 0x42043f
add eax, 8
inc ecx
cmp eax, 0x4288e0
jl 0x420430
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428850]
jne 0x42056d
mov eax, dword [0x8121c0]
cmp eax, 1
je 0x420547
test eax, eax
jne 0x420470
cmp dword [0x4285a4], 1
je 0x420547
cmp edx, 0xfc
je 0x42056d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4204a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00420c10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4204ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425a58
push edi
call fcn.00422b80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00420c10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00420c20
lea eax, [ebp - 0xa0]
push 0x425a38
push eax
call fcn.00420c20
push dword [esi + 0x428854]
lea eax, [ebp - 0xa0]
push eax
call fcn.00420c20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00422af0
add esp, 0x2c
pop edi
jmp 0x42056d
lea eax, [ebp + 8]
lea esi, [esi + 0x428854]
push 0
push eax
push dword [esi]
call fcn.0041d2c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret