joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10282ac0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
lea ecx, [esi + 0x70]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x1011aff0
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor ecx, ecx
lea eax, [esi + 0x19]
mov dword [eax + 3], ecx
mov dword [eax - 1], 0x25
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push dword [edx + 4]
push 1
push ecx
push eax
call fcn.10288c60
add esp, 0x10
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov byte [ebx + 0xc], 0xff
sub esp, 0x1c
mov edi, esp
lea eax, [edi + 8]
push eax
call fcn.101278c0
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0xd
lea eax, [esi + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.1011c6e0
add esp, 0x1c
mov esp, dword [esi + 8]
lea edi, [esi + eax]
add edi, 0x20
push dword [ebp + 0x10]
push edi
push ebx
call fcn.10282a30
add esp, 0xc
mov dword [esi + 8], eax
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x30]
movdqu xmmword [ebx + 0x1e], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea ecx, [esi + 0x14]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10127750
lea eax, [esi + 0x70]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
push edi
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.101119f0
add esp, 0x1c
mov ebx, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
movzx edx, word [ebp + 0x14]
test eax, eax
jne 0x10282bfb
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x78], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x78], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x30]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10110d80
add esp, 0x1c
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x10282ca0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
lea ecx, [esi + 0xb0]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x1011b000
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor ecx, ecx
lea eax, [esi + 0x19]
mov dword [eax + 3], ecx
mov dword [eax - 1], 0x25
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
push dword [edx + 4]
push 1
push ecx
push eax
call fcn.10288c60
add esp, 0x10
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx], xmm0
sub esp, 0x20
mov edi, esp
lea eax, [edi + 8]
push eax
call fcn.101278c0
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0x18
lea eax, [esi + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.1011c6e0
add esp, 0x20
mov esp, dword [esi + 8]
lea edi, [esi + eax]
add edi, 0x20
push dword [ebp + 0x10]
push edi
push ebx
call fcn.10282a30
add esp, 0xc
mov dword [esi + 8], eax
lea ebx, [esi + 0x40]
pcmpeqd xmm0, xmm0
movdqu xmmword [ebx + 0x4a], xmm0
movdqa xmmword [ebx + 0x40], xmm0
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea ecx, [esi + 0x14]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10127750
lea eax, [esi + 0xb0]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
push edi
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.101119f0
add esp, 0x1c
mov ebx, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
movzx edx, word [ebp + 0x14]
test eax, eax
jne 0x10282dfe
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xb8], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x40]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10110d80
add esp, 0x1c
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x10282eb0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
lea ecx, [esi + 0x70]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x1011b010
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor edx, edx
lea eax, [esi + 0x19]
mov dword [eax + 3], edx
mov dword [eax - 1], 0x25
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push dword [ebx + 4]
push edx
push ecx
push eax
call fcn.10288c60
add esp, 0x10
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov byte [ebx + 0xc], 0xff
sub esp, 0x1c
mov edi, esp
lea eax, [edi + 8]
push eax
call fcn.101278c0
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0xd
lea eax, [esi + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.1011c6e0
add esp, 0x1c
mov esp, dword [esi + 8]
lea edi, [esi + eax]
add edi, 0x20
push dword [ebp + 0x10]
push edi
push ebx
call fcn.10282a30
add esp, 0xc
mov dword [esi + 8], eax
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x30]
movdqu xmmword [ebx + 0x1e], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea ecx, [esi + 0x14]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10127750
lea eax, [esi + 0x70]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
push edi
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.101119f0
add esp, 0x1c
mov ebx, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
movzx edx, word [ebp + 0x14]
test eax, eax
jne 0x10282fea
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x78], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x78], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x30]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10110d80
add esp, 0x1c
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x10283090
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
lea ecx, [esi + 0xb0]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x1011b020
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor edx, edx
lea eax, [esi + 0x19]
mov dword [eax + 3], edx
mov dword [eax - 1], 0x25
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
push dword [ebx + 4]
push edx
push ecx
push eax
call fcn.10288c60
add esp, 0x10
mov dword [esi + 8], esp
lea eax, [esi + 0x20]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [eax], xmm0
mov ebx, eax
sub esp, 0x20
mov edi, esp
lea eax, [edi + 8]
push eax
call fcn.101278c0
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0x18
lea eax, [esi + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.1011c6e0
add esp, 0x20
mov esp, dword [esi + 8]
lea ebx, [esi + eax]
add ebx, 0x20
push dword [ebp + 0x10]
push ebx
lea eax, [esi + 0x20]
push eax
call fcn.10282a30
add esp, 0xc
mov dword [esi + 8], eax
lea edi, [esi + 0x40]
pcmpeqd xmm0, xmm0
movdqu xmmword [edi + 0x4a], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ecx, [esi + 0x14]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10127750
lea eax, [esi + 0xb0]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push edi
push ebx
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.101119f0
add esp, 0x1c
mov ebx, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
movzx edx, word [ebp + 0x14]
test eax, eax
jne 0x102831f2
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xb8], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x40]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10110d80
add esp, 0x1c
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x406ad2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x22c
cmp ecx, 0x200
je 0x406b19
cmp ecx, 0x400
je 0x406b44
cmp ecx, 0x100
jne 0x406bee
mov dword [esp + 4], 0x9c42
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push edi
mov dword [esp + 4], 5
jmp 0x406b34
mov dword [esp + 4], 0x9c42
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
jmp 0x406bee
mov edi, edx
mov dword [esp + 4], 0x9c4a
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push edx
push edx
lea edx, [ebp - 0x218]
mov esi, eax
mov dword [esp], ebx
lea ebx, [ebp - 0x118]
mov dword [esp + 8], edx
mov dword [ebp - 0x21c], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x9c42
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x100
mov dword [esp], edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 0x21c]
sub esp, 0xc
mov dword [esp + 4], 0xa
mov dword [esp], edx
call sub.msvcrt.dll_strrchr
inc eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
mov ebx, eax
xor eax, eax
mov dword [esp], esi
test ebx, ebx
sete al
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
push ecx
push ecx
jne 0x406bee
mov dword [esp], esi
call dword [sym.imp.USER32.dll_SetFocus]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407e1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
test byte [ebp + 8], 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x1acd3970
mov dword [ebp - 0x14], 0xfbe85246
jne 0x407e4e
mov dword [ebp - 0x18], 0xe8579632
mov dword [ebp - 0x14], 0xd34c027b
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
test cl, cl
mov edi, eax
mov esi, edx
je 0x407e8d
xor ecx, ecx
mov edx, dword [ebx + ecx*4]
mov eax, esi
mov dword [ebp - 0x1c], ecx
call fcn.00407da4
mov ecx, dword [ebp - 0x1c]
xor edi, eax
mov eax, edi
add ecx, 2
mov edx, dword [ebx + ecx*4 - 4]
mov dword [ebp - 0x1c], ecx
call fcn.00407da4
mov ecx, dword [ebp - 0x1c]
xor esi, eax
cmp ecx, 0x10
jne 0x407e5e
jmp 0x407ebf
mov ecx, 0xf
mov edx, dword [ebx + ecx*4]
mov eax, esi
mov dword [ebp - 0x1c], ecx
call fcn.00407da4
mov ecx, dword [ebp - 0x1c]
xor edi, eax
mov eax, edi
sub ecx, 2
mov edx, dword [ebx + ecx*4 + 4]
mov dword [ebp - 0x1c], ecx
call fcn.00407da4
mov ecx, dword [ebp - 0x1c]
xor esi, eax
cmp ecx, 0xffffffff
jne 0x407e92
mov eax, esi
sub eax, dword [ebp - 0x18]
mov edx, edi
sbb edx, dword [ebp - 0x14]
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407ed1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, ecx
mov ebx, edx
sub esp, 0xc
cmp byte [ebp + 8], 0
mov dword [ebp - 0x14], eax
je 0x407f26
xor esi, esi
mov eax, esi
movzx ecx, byte [esi + 0x40db90]
and eax, 3
mov edx, dword [edi + eax*4]
mov eax, dword [ebp - 0x14]
call fcn.00407cc5
xor ebx, eax
lea eax, [esi + 1]
movzx ecx, byte [esi + 0x40db91]
add esi, 2
and eax, 3
mov edx, dword [edi + eax*4]
mov eax, ebx
call fcn.00407cc5
xor dword [ebp - 0x14], eax
cmp esi, 0x10
jne 0x407ee9
jmp 0x407f66
mov esi, 0xf
mov eax, esi
movzx ecx, byte [esi + 0x40db90]
and eax, 3
mov edx, dword [edi + eax*4]
mov eax, dword [ebp - 0x14]
call fcn.00407cc5
xor ebx, eax
lea eax, [esi - 1]
movzx ecx, byte [esi + 0x40db8f]
sub esi, 2
and eax, 3
mov edx, dword [edi + eax*4]
mov eax, ebx
call fcn.00407cc5
xor dword [ebp - 0x14], eax
cmp esi, 0xffffffff
jne 0x407f2b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ae10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040ae70
Function at 0x40ae70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x40f3c0]
test esi, esi
jle 0x40af5d
mov edi, dword [0x40f3c4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40aea4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40af56
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40ae90
mov dword [esp], eax
mov esi, eax
call fcn.0040b7c0
test eax, eax
mov edi, eax
je 0x40af9a
mov esi, dword [0x40f3c4]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.0040b8d0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x40f3c4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40af7a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40af4f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40af4f
mov eax, dword [esp + 0x20]
add ebx, dword [0x40f3c4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40af64
add dword [0x40f3c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x40aeae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040ae10
mov eax, dword [0x40f3c4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040ae10
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040ae10
lea esi, [esi]

Function at 0x40b430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40f3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40f3d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40b485
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40b47e
test esi, esi
je 0x40b47e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b460
mov dword [esp], 0x40f3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
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
nop
mov ebx, 0x40de38
mov ecx, 0x78ae0f91
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x21762ee8
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40cfc9
Capabilities:
Set current directory

Disassembly:
sub esp, 0x140
push ebx
xor ebx, ebx
cmp byte [0x46436c], bl
push ebp
push esi
je 0x40d132
cmp byte [0x462069], bl
je 0x40d132
cmp dword [0x4644e8], ebx
jne 0x40d132
cmp dword [0x4644d8], ebx
jg 0x40d132
cmp byte [0x4644dc], bl
jne 0x40d132
cmp byte [0x46436d], bl
je 0x40d132
mov eax, dword [0x4644d4]
cmp eax, dword [0x462078]
jge 0x40d132
mov esi, dword [0x46526c]
xor ebp, ebp
cmp esi, ebx
je 0x40d132
push edi
cmp byte [esi + 0x14], bl
je 0x40d111
cmp byte [esi + 0xc], 1
jae 0x40d111
mov eax, dword [esi + 8]
cmp eax, dword [0x464264]
jl 0x40d111
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
sub eax, dword [esi + 0x10]
cmp eax, dword [esi + 4]
jb 0x40d111
cmp ebp, ebx
jne 0x40d0b0
mov ecx, dword [0x464c98]
inc dword [0x4644d4]
push 0x80
call fcn.00401c8a
push eax
push 0x4642cc
call fcn.0043880f
push 0x140
lea eax, [esp + 0x20]
push 0x464238
push eax
call fcn.00454280
add esp, 0x18
mov dword [esi + 0x10], edi
inc ebp
cmp dword [0x4644f4], ebx
je 0x40d0c7
push 0x464ca0
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [esi]
mov eax, dword [eax + 4]
movzx eax, byte [eax]
push eax
push ebx
push ebx
push dword [esi + 8]
call fcn.0040bd3e
mov eax, dword [esi]
add esp, 0x10
inc byte [esi + 0xc]
mov ecx, dword [eax + 4]
push ebx
push ebx
push 1
call fcn.00405839
dec byte [esi + 0xc]
cmp byte [0x4644c9], bl
je 0x40d111
push 0xa
push dword [0x464380]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x40d111
mov byte [0x4644c9], bl
mov esi, dword [esi + 0x18]
cmp esi, ebx
jne 0x40d03e
cmp ebp, ebx
pop edi
je 0x40d132
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0040bc5b
pop ecx
pop ecx
mov al, 1
jmp 0x40d134
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x40f11d
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
lea eax, [esi + 0x14]
jne 0x40f142
lea eax, [ebp + 0x17]
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
jne 0x40f184
push 0x458bf0
push edi
call fcn.00438acb
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40f184
push 0x457858
push ebx
call fcn.00401aa2
pop ecx
push eax
call fcn.00441439
test eax, eax
pop ecx
pop ecx
jne 0x40f184
test esi, esi
je 0x40f181
mov byte [esi + 0x18], 1
mov byte [ebx], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 1
lea eax, [ebp - 1]
push eax
push edi
call fcn.00413c75
mov bl, al
add esp, 0x14
test bl, bl
mov byte [ebp + 0x14], bl
je 0x40f28e
cmp byte [ebp + 0x10], 0
je 0x40f240
cmp bl, 0x9e
je 0x40f1c3
cmp bl, 0x9f
jne 0x40f25d
cmp byte [ebp + 0x18], 0
je 0x40f1e4
push 1
push 0
push 0xffffffffffffffff
push 0x458bec
mov ecx, dword [0x464c98]
call fcn.0040152b
jmp 0x40f2fe
push edi
push str.__s__is_not_allowed_as_a_prefix_key.
mov esi, 0x200
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040aa6c
add esp, 0x10
cmp byte [0x4652ac], 0
lea eax, [ebp - 0x210]
je 0x40f222
push str.__The_current_thread_will_exit.
push esi
push eax
call fcn.0040ab07
add esp, 0xc
jmp 0x40f2e8
push 0
fldz
push ecx
push ecx
fstp qword [esp]
push 0
push 0x10000
push eax
call fcn.0043b17b
add esp, 0x18
jmp 0x40f2fe
test esi, esi
je 0x40f25d
push 2
push 0x458ba0
push edi
call fcn.0044147c
add esp, 0xc
neg eax
sbb al, al
inc al
mov byte [esi + 0x19], al
push dword [ebp + 0x14]
call fcn.004440c9
test byte [ebp - 1], 0x30
pop ecx
mov byte [ebp - 2], al
je 0x40f31a
cmp bl, 0x41
jb 0x40f31a
cmp bl, 0x5a
ja 0x40f31a
and byte [ebp - 1], 0xcf
jmp 0x40f31a
push edi
call fcn.00413a1d
test ax, ax
pop ecx
jne 0x40f329
push 1
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00422348
add esp, 0xc
test ax, ax
mov dword [ebp - 0xc], eax
jne 0x40f302
cmp byte [ebp + 0x18], al
je 0x40f2ca
push 1
push 0
push 0xffffffffffffffff
push 0x458b9c
jmp 0x40f1d4
test esi, esi
je 0x40f2fe
push edi
push str.__s__is_not_a_valid_key_name.__The_current_thread_will_exit.
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0040aa6c
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x4575d8
mov ecx, 0x464e00
push eax
call fcn.0044a384
xor eax, eax
jmp 0x40f364
mov eax, dword [ebp - 8]
inc dword [0x46604c]
mov byte [eax], 4
mov eax, dword [ebp - 0x10]
mov bl, al
mov byte [eax + 0x46603c], 1
cmp byte [ebp - 2], 0
je 0x40f326
mov eax, dword [ebp - 8]
mov byte [eax], 2
mov eax, dword [ebp - 0xc]
cmp byte [ebp + 0x10], 0
je 0x40f33c
test esi, esi
je 0x40f361
mov byte [esi + 0x13], bl
mov word [esi + 0xa], ax
jmp 0x40f361
test esi, esi
je 0x40f361
mov word [esi + 8], ax
xor eax, eax
mov al, byte [ebp - 1]
mov byte [esi + 0x12], bl
and eax, 0xffffffd5
push eax
call fcn.00410556
or dword [esi + 0xc], eax
mov al, byte [ebp - 1]
and al, 0x2a
or byte [esi + 0x10], al
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret