joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4185a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46731d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4b6100]
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
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
push 0x58
mov dword [ebp - 0x18], esi
call fcn.004640b5
mov ecx, dword [esi]
mov ebx, eax
add esi, 8
lea edi, [ebx + 8]
add esp, 4
mov dword [ebx], ecx
mov dword [edi + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x418625
cmp ecx, esi
jne 0x41861b
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov dword [edi + 0x24], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x418625
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
jmp 0x41861e
mov dword [edi + 0x24], ecx
mov dword [esi + 0x24], 0
mov esi, dword [ebp - 0x18]
lea edi, [ebx + 0x30]
add esi, 0x30
mov dword [edi + 0x24], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x418669
cmp ecx, esi
jne 0x41865f
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov dword [edi + 0x24], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x418669
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
jmp 0x418662
mov dword [edi + 0x24], ecx
mov dword [esi + 0x24], 0
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
lea esi, [edi + 4]
push esi
push 0
push ebx
push 0x418720
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x41869f
push 6
mov dword [esi], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
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.004640a7
mov esp, ebp
pop ebp
ret 4
Function at 0x422290
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.0043e020
test eax, eax
je 0x4222a4
call fcn.0043e250
mov esi, dword [eax + 0x6c]
jmp 0x4222a6
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4222c9
mov dword [esi], eax
pop esi
ret
Function at 0x427970
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 8
ja 0x427a7f
test byte [edi], 2
jne 0x427a7f
mov eax, dword [edi + 0x468]
lea esi, [esi + esi*2]
mov ecx, dword [edi + 0x50]
movss xmm2, dword [esi*8 + 0x46b000]
movss xmm4, dword [esi*8 + 0x46b004]
lea edx, [eax*8]
sub edx, eax
movzx eax, word [ecx + edx*4 + 4]
movd xmm5, eax
movzx eax, word [ecx + edx*4 + 6]
cvtdq2ps xmm5, xmm5
movd xmm3, eax
addss xmm5, dword [esi*8 + 0x46aff8]
mov eax, dword [esp + 0x14]
cvtdq2ps xmm3, xmm3
movaps xmm1, xmm5
addss xmm3, dword [esi*8 + 0x46affc]
movss dword [eax + 4], xmm4
movss dword [eax], xmm2
mov ecx, dword [esi*8 + 0x46b008]
mov edx, dword [esi*8 + 0x46b00c]
mov eax, dword [esp + 0x10]
addss xmm4, xmm3
movaps xmm0, xmm3
mov dword [eax], ecx
mov dword [eax + 4], edx
mulss xmm1, dword [edi + 0x2c]
mov eax, dword [esp + 0x18]
mulss xmm0, dword [edi + 0x30]
movss dword [eax], xmm1
movaps xmm1, xmm2
movss dword [eax + 4], xmm0
addss xmm1, xmm5
addss xmm5, dword [0x46e080]
movaps xmm0, xmm4
mulss xmm0, dword [edi + 0x30]
mulss xmm1, dword [edi + 0x2c]
movss dword [eax + 0xc], xmm0
movaps xmm0, xmm5
addss xmm5, xmm2
movss dword [eax + 8], xmm1
mulss xmm0, dword [edi + 0x2c]
mov eax, dword [esp + 0x1c]
mulss xmm3, dword [edi + 0x30]
movss dword [eax], xmm0
movss dword [eax + 4], xmm3
mulss xmm5, dword [edi + 0x2c]
mulss xmm4, dword [edi + 0x30]
pop edi
movss dword [eax + 8], xmm5
pop esi
movss dword [eax + 0xc], xmm4
mov al, 1
ret 0x14
pop edi
xor al, al
pop esi
ret 0x14

Function at 0x42c0d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x42c0f7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.004415b0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42c11c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.004415b0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x42c141
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.004415b0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x42c182
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.004415b0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x42c1a7
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.004415b0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x42c1cc
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.004415b0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.004277d0
Function at 0x43e0a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea edx, [esp + 0x10]
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x46e0e8]
sub esi, 1
jne 0x43e0c0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x43e0f6
push esi
push dword [esp + 0x14]
push 4
push ebx
call fcn.0043bc00
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x43e160
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, ecx
push esi
push edi
lea esi, [esp + 8]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [esp + 0xc], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [esp + 0x14], xmm0
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x46e0e8]
sub edi, 1
jne 0x43e1d1
pop edi
not edx
pop esi
mov eax, edx
add esp, 0x10
ret 4

Function at 0x43efd0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
not ebx
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
test edi, edi
je 0x43f032
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x43f016
cmp edi, 2
jb 0x43f016
cmp byte [esi], cl
jne 0x43f016
cmp byte [esi + 1], cl
jne 0x43f016
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x46e0e8]
jmp 0x43efe7
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x46e0e8]
test edi, edi
jne 0x43efe7
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x43f068
nop dword [eax]
cmp cl, 0x23
jne 0x43f04f
cmp byte [esi], cl
jne 0x43f04f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x46e0e8]
test cl, cl
jne 0x43f040
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x43f2a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x43f2c1
cmp eax, ebp
jae 0x43f42b
mov bl, byte [eax]
test bl, bl
je 0x43f42b
movzx ecx, bl
mov edx, ebp
shr ecx, 3
movsx edi, byte [ecx + 0x46efe0]
xor ecx, ecx
test edi, edi
mov dword [esp + 0x14], edi
sete cl
add ecx, edi
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x43f2f2
lea edx, [ecx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, bl
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x43f30b
mov bl, byte [esi]
mov byte [esp + 0x28], bl
jmp 0x43f310
mov byte [esp + 0x28], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x43f31b
mov ch, byte [esi]
jmp 0x43f31d
xor ch, ch
lea ebx, [eax + 3]
mov byte [esp + 0x12], ch
cmp ebx, edx
jae 0x43f32c
mov bl, byte [ebx]
jmp 0x43f32e
xor bl, bl
mov edi, dword [edi*4 + 0x46f000]
movzx esi, byte [esp + 0x28]
movzx edx, ch
movzx ecx, cl
and edi, ecx
mov byte [esp + 0x11], bl
shl edi, 6
mov ecx, esi
and ecx, 0x3f
movzx ebx, bl
or edi, ecx
and esi, 0xc0
shl edi, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or edi, ecx
mov ecx, ebx
and ecx, 0x3f
shr ebx, 2
or ebx, edx
shl edi, 6
or edi, ecx
shr ebx, 2
mov ecx, dword [esp + 0x14]
or ebx, esi
mov esi, dword [esp + 0x14]
shr ebx, 2
mov ecx, dword [ecx*4 + 0x46f028]
shr edi, cl
cmp edi, dword [esi*4 + 0x46f014]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or ebx, ecx
mov ecx, edi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or ebx, edx
cmp ecx, edi
sbb ecx, ecx
and ecx, 0x100
or ebx, ecx
mov ecx, dword [esi*4 + 0x46f03c]
xor ebx, 0x2a
sar ebx, cl
test ebx, ebx
je 0x43f41b
xor edx, edx
cmp byte [esp + 0x11], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x12], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x28], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp dword [esp + 0x18], edx
cmovl edx, dword [esp + 0x18]
mov ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x43f2b1
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
jmp 0x43f2b1
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
Function at 0x43f490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
dec eax
push ebp
mov ebp, edx
mov dword [esp + 0x10], ebp
lea eax, [edx + eax*2]
mov dword [esp + 0x14], eax
cmp edx, eax
mov eax, dword [esp + 0x24]
jae 0x43f664
push esi
mov esi, dword [esp + 0x2c]
push ebx
push edi
nop dword [eax]
test esi, esi
je 0x43f4cc
cmp eax, esi
jae 0x43f65d
mov cl, byte [eax]
mov byte [esp + 0x2c], cl
test cl, cl
je 0x43f65d
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x46efe0]
test ecx, ecx
mov dword [esp + 0x18], ecx
sete bl
add ebx, ecx
test esi, esi
jne 0x43f4fd
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [esp + 0x2c]
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x43f518
mov ch, byte [esi]
mov byte [esp + 0x11], ch
jmp 0x43f51d
mov byte [esp + 0x11], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x43f52c
mov ch, byte [esi]
mov byte [esp + 0x2c], ch
jmp 0x43f531
mov byte [esp + 0x2c], 0
lea esi, [eax + 3]
cmp esi, edx
jae 0x43f53c
mov ch, byte [esi]
jmp 0x43f53e
xor ch, ch
mov ebp, dword [esp + 0x18]
movzx esi, byte [esp + 0x11]
movzx edx, byte [esp + 0x2c]
movzx edi, ch
mov ebp, dword [ebp*4 + 0x46f000]
mov byte [esp + 0x12], ch
movzx ecx, cl
and ebp, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [esp + 0x14], ebp
shl dword [esp + 0x14], 6
and esi, 0xc0
or dword [esp + 0x14], ecx
mov ecx, edx
shl dword [esp + 0x14], 6
and ecx, 0x3f
or dword [esp + 0x14], ecx
and edx, 0xc0
shl dword [esp + 0x14], 6
mov ecx, edi
mov ebp, dword [esp + 0x14]
and ecx, 0x3f
or ebp, ecx
shr edi, 2
mov ecx, dword [esp + 0x18]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x46f028]
shr ebp, cl
mov esi, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
cmp esi, dword [ebp*4 + 0x46f014]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebp*4 + 0x46f03c]
mov ebp, dword [esp + 0x1c]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x43f642
xor edx, edx
mov esi, 0xfffd
cmp byte [esp + 0x12], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x2c], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x11], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
mov word [ebp], si
add eax, ebx
mov esi, dword [esp + 0x34]
add ebp, 2
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x20]
jb 0x43f4c0
mov edx, dword [esp + 0x28]
pop edi
pop ebx
pop esi
xor ecx, ecx
mov word [ebp], cx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x43f674
mov dword [ecx], eax
sub ebp, edx
sar ebp, 1
mov eax, ebp
pop ebp
add esp, 0x14
ret
Function at 0x441420
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5e2c], 0
lea esi, [edi + 0x5e30]
je 0x44149a
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x441454
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00424470
push dword [esp + 0x14]
mov ecx, esi
mov dword [esi], 0
push dword [esp + 0x14]
call fcn.0044ecb0
mov edx, dword [esi]
mov ecx, 0x4b8784
push dword [edi + 0x5e2c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e38]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
ret
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.0044ecb0
pop edi
pop esi
ret
Function at 0x4494f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x4b8788]
push esi
mov esi, dword [esp + 8]
mov dword [eax + 0x5dc0], 0
test esi, esi
je 0x44954a
lea eax, [esp + 8]
mov dword [esp + 8], 0
push edi
push eax
call fcn.00449550
push 0x46f860
push esi
mov edi, eax
call fcn.0043ec90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x449549
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
ret
Function at 0x4638c1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4638e8
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4638eb
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0046389d
pop esi
leave
ret 8

Function at 0x464e81
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x1001e030]
jne 0x10007f38
repz ret
jmp fcn.10008e91

Function at 0x1000910b
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 + 0x1001e040]
je 0x10009126
inc edi
cmp edi, 0x17
jb 0x10009117
cmp edi, 0x17
jae 0x100092a6
push ebp
push 3
call fcn.1000d1a7
cmp eax, 1
pop ecx
je 0x10009272
push 3
call fcn.1000d1a7
test eax, eax
pop ecx
jne 0x1000915a
cmp dword [0x1001f4e4], 1
je 0x10009272
cmp ebx, 0xfc
je 0x100092a5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001f818
push ebp
call fcn.10008f95
add esp, 0xc
test eax, eax
je 0x10009190
push esi
push esi
push esi
push esi
push esi
call fcn.100081b5
add esp, 0x14
push 0x104
mov esi, 0x1001f831
push esi
push 0
mov byte [0x1001f935], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100091d4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10008f95
add esp, 0xc
test eax, eax
je 0x100091d4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100081b5
add esp, 0x14
push esi
call fcn.10008960
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10009219
push esi
call fcn.10008960
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001fb2c
push 0x10016784
sub ecx, eax
push ecx
push eax
call fcn.1000d0f4
add esp, 0x14
test eax, eax
je 0x10009219
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100081b5
add esp, 0x14
jmp 0x1000921b
xor esi, esi
push 0x10016780
push ebx
push ebp
call fcn.1000d083
add esp, 0xc
test eax, eax
je 0x1000923b
push esi
push esi
push esi
push esi
push esi
call fcn.100081b5
add esp, 0x14
push dword [edi*8 + 0x1001e044]
push ebx
push ebp
call fcn.1000d083
add esp, 0xc
test eax, eax
je 0x1000925d
push esi
push esi
push esi
push esi
push esi
call fcn.100081b5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000cec6
add esp, 0xc
jmp 0x100092a5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100092a5
cmp ebp, 0xffffffff
je 0x100092a5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001e044]
push dword [esi]
call fcn.10008960
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 0x1000cec6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100093be
xor ebx, ebx
cmp dword [0x1001fe20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000cf9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000d07c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000d07c
push eax
call fcn.10009350
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001fe20], eax
call esi
push eax
call fcn.10009350
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001fe24], eax
call esi
push eax
call fcn.10009350
mov dword [0x1001fe28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10009b32
test eax, eax
pop ecx
pop ecx
je 0x1000cf6a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100081b5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000cf9c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10009350
cmp eax, ebx
pop ecx
mov dword [0x1001fe30], eax
je 0x1000cf9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10009350
pop ecx
mov dword [0x1001fe2c], eax
mov eax, dword [0x1001fe2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000d021
cmp dword [0x1001fe30], ecx
je 0x1000d021
push eax
call fcn.100093c7
push dword [0x1001fe30]
mov esi, eax
call fcn.100093c7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000d021
cmp edi, ebx
je 0x1000d021
call esi
cmp eax, ebx
je 0x1000cfee
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000cfee
test byte [ebp - 0x18], 1
jne 0x1000d021
lea eax, [ebp - 0x10]
push eax
call fcn.10009b69
test eax, eax
pop ecx
je 0x1000d009
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100081b5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000d018
or dword [ebp + 0x10], 0x200000
jmp 0x1000d05c
or dword [ebp + 0x10], 0x40000
jmp 0x1000d05c
mov eax, dword [0x1001fe24]
cmp eax, dword [ebp - 8]
je 0x1000d05c
push eax
call fcn.100093c7
cmp eax, ebx
pop ecx
je 0x1000d05c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000d05c
mov eax, dword [0x1001fe28]
cmp eax, dword [ebp - 8]
je 0x1000d05c
push eax
call fcn.100093c7
cmp eax, ebx
pop ecx
je 0x1000d05c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001fe20]
call fcn.100093c7
cmp eax, ebx
pop ecx
je 0x1000d07c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d07e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ad4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040412c
test esi, esi
jne 0x402b0a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040421c
jmp 0x402b28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e8
mov edi, eax
test esi, esi
je 0x402b28
cmp dword [ebx], 0
je 0x402b28
dec esi
jmp 0x402b11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x476020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403260
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403240
xor eax, eax
push ebp
push 0x403239
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40327c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403240
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x476020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x476020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47804c], 0
je 0x403f8d
cmp word [0x478220], 0xd7b2
jne 0x403f55
cmp dword [0x478228], 0
jbe 0x403f55
mov eax, 0x47821c
call dword [fcn.00478238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476030], 0
jne 0x403fa9
push 0
push 0x476064
push 0x47606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402774
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040a8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc