joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013ef
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
imul ebx, ebx, 0x2c
add ebx, dword [0x10079610]
push esi
push edi
test byte [ebx + 0x14], 1
mov edi, dword [ebx]
push 5
mov esi, edx
pop eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
je 0x10001424
sub edi, eax
push 7
pop eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000143b
push 0xa
pop eax
jmp 0x100014b8
test esi, esi
je 0x1000145c
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10001479
mov eax, dword [ebx]
mov word [eax], 0xf9eb
jmp 0x10001479
test byte [ebx + 0x14], 1
je 0x1000146e
lea esi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
jmp 0x10001479
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
mov al, byte [ebx + 0x10]
mov byte [edi + 4], al
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov al, byte [ebx + 0x14]
and dl, 1
mov cl, dl
add cl, cl
and al, 0xfd
or cl, al
and cl, 0xfb
shl dl, 2
or cl, dl
mov byte [ebx + 0x14], cl
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001b79
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10079600]
push esi
xor esi, esi
jmp 0x10001b8b
cmp dword [edx + 4], esi
jne 0x10001bd8
mov edx, dword [edx]
test edx, edx
jne 0x10001b84
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10001be9
lea ecx, [edx + 0x20]
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov esi, ecx
sub esi, edx
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov dword [edx + 4], ecx
add esi, 0x20
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x10001bb5
mov eax, dword [0x10079600]
mov dword [edx], eax
mov dword [0x10079600], edx
test edx, edx
je 0x10001be9
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret
Function at 0x10009240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b938
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10075988]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x10009365
cmp byte [ebx + 0x45], 0
je 0x10009365
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10009294
xor al, al
jmp 0x10009367
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100092fe
dec eax
je 0x10009302
sub eax, 2
je 0x1000934e
xor bl, bl
jmp 0x10009350
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x10009334
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.10021760
add esp, 0x10
cmp esi, eax
jne 0x100092fa
cmp byte [ebx + 0x45], 0
je 0x1000934e
test esi, esi
jne 0x100092c4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.100098d0
jmp 0x100092c4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x10009361
push dword [ebp - 0x28]
call fcn.1001f75f
add esp, 4
mov al, bl
jmp 0x10009367
mov al, 1
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.1001fee4
mov esp, ebp
pop ebp
ret
Function at 0x10012ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d127
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10075988]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x10012bf4
mov dword [edi], 0x1003f074
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea esi, [edi + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.10006900
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.10003720
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x50], 0
mov eax, dword [0x10077070]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10012f10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x10077a54]
mov eax, dword fs:[0x2c]
push esi
mov eax, dword [eax + ecx*4]
push 0x10077078
lea esi, [eax + 8]
push 0x140
push esi
call fcn.10021deb
push dword [ebp + 8]
push 0x140
push esi
call fcn.10021e40
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x10012f60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0x400
push eax
push 0
push 0x1300
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push dword [ebp + 8]
mov esi, eax
call edi
add esi, 0x28
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov edi, eax
push dword [ebp - 8]
push dword [ebp + 8]
push str._s_failed_with_error__d:__s
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
push edi
call fcn.10012df0
add esp, 0x18
push 0
push str.Error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10016080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
test edi, edi
jle 0x1001614d
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001614d
push ebx
mov ebx, edi
sar edi, 2
and ebx, 3
test edi, edi
jle 0x100160d4
lea ebx, [ebx]
movzx ecx, word [esi]
movzx edx, word [esi + 2]
add eax, ecx
mov ecx, eax
shl ecx, 5
xor edx, ecx
shl edx, 0xb
xor eax, edx
mov ecx, eax
shr ecx, 0xb
dec edi
add esi, 4
add eax, ecx
test edi, edi
jg 0x100160b0
dec ebx
je 0x1001610a
dec ebx
je 0x100160f7
dec ebx
jne 0x1001611c
movzx ecx, word [esi]
add eax, ecx
movsx ecx, byte [esi + 2]
shl ecx, 2
xor ecx, eax
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 0xb
jmp 0x1001611a
movzx ecx, word [esi]
add eax, ecx
mov ecx, eax
shl ecx, 0xb
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
jmp 0x1001611a
movsx ecx, byte [esi]
add eax, ecx
mov ecx, eax
shl ecx, 0xa
xor eax, ecx
mov ecx, eax
shr ecx, 1
add eax, ecx
lea ecx, [eax*8]
xor eax, ecx
mov ecx, eax
shr ecx, 5
add eax, ecx
mov ecx, eax
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add eax, ecx
mov ecx, eax
shl ecx, 0x19
xor eax, ecx
mov ecx, eax
pop ebx
shr ecx, 6
pop edi
add eax, ecx
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1001bb50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d61d
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x10075988]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x378], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x374], 1
jbe 0x1001bcf7
cmp dword [esi + 0x14], 0x10
jb 0x1001bbcf
mov eax, dword [esi]
jmp 0x1001bbd1
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.1001b1e0
add esp, 0x10
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001bcc2
cmp dword [esi + 0x14], 0x10
jb 0x1001bc10
mov eax, dword [esi]
jmp 0x1001bc12
mov eax, esi
lea ecx, [ebp - 0x344]
push ecx
push eax
lea eax, [ebp - 0x114]
push 0x1003f4a4
push eax
call fcn.1001b1e0
add esp, 0x10
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
jne 0x1001bc56
xor eax, eax
jmp 0x1001bc69
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001bc60
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.10002550
lea eax, [ebp - 0x230]
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1001c000
cmp dword [ebp - 0x21c], 0x10
mov byte [ebp - 4], 0
jb 0x1001bcac
push dword [ebp - 0x230]
call fcn.1001f75f
add esp, 4
lea eax, [ebp - 0x370]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001bc06
mov ecx, dword [edi + 4]
mov esi, dword [edi]
mov edx, ecx
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ecx
push esi
call fcn.1001a7c0
push dword [ebp - 0x378]
push dword [edi + 4]
push dword [edi]
call fcn.1001a760
add esp, 0x18
mov eax, edi
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.1001fee4
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push str..bak
lea eax, [ebp - 0x10]
push eax
call fcn.1001bb50
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [0x100774d4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x1001c10e
mov edi, ecx
push ebx
lea ebx, [edi + edi*2]
shl ebx, 3
jmp 0x1001c0d3
mov edi, dword [ebp - 4]
cmp dword [ebx + esi + 0x14], 0x10
lea eax, [ebx + esi]
jb 0x1001c0df
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0x10]
inc edi
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 0x18
cmp dword [ebp - 4], eax
jb 0x1001c0d0
pop ebx
test esi, esi
je 0x1001c14a
cmp esi, edi
je 0x1001c141
cmp dword [esi + 0x14], 0x10
jb 0x1001c126
push dword [esi]
call fcn.1001f75f
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x1001c116
mov esi, dword [ebp - 0x10]
push esi
call fcn.1001f75f
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001d100
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d768
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10075988]
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 ebx, ecx
mov dword [ebp - 0x74], ebx
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d2a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push str.PrevLocaleName
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x1001d181
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001d2a5
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push str.LocaleName
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x1001d173
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.1001c4b0
cmp byte [ebp - 0x20], 0
mov esi, eax
jne 0x1001d1b2
xor ecx, ecx
jmp 0x1001d1c1
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d1b8
sub ecx, edx
push ecx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.10009f80
test eax, eax
sete bl
cmp dword [ebp - 0x24], 0x10
jb 0x1001d1e5
push dword [ebp - 0x38]
call fcn.1001f75f
add esp, 4
push dword [ebp - 0x6c]
test bl, bl
jne 0x1001d176
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x6c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
lea eax, [ebp - 0x6c]
push eax
push 0x20006
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d2a5
push dword [ebp - 0x70]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push str.PrevLocaleName
push dword [ebp - 0x6c]
call ebx
test eax, eax
jne 0x1001d2a0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x50]
push eax
call fcn.1001c4b0
mov esi, eax
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 4], 0
call fcn.1001c4b0
mov ecx, eax
mov eax, dword [esi + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x1001d26d
mov ecx, dword [ecx]
inc eax
push eax
push ecx
push 1
push 0
push str.LocaleName
push dword [ebp - 0x6c]
call ebx
test eax, eax
lea ecx, [ebp - 0x68]
setne bl
call fcn.100021f0
lea ecx, [ebp - 0x50]
call fcn.100021f0
push dword [ebp - 0x6c]
test bl, bl
jne 0x1001d2a3
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x6c]
call edi
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.1001fee4
mov esp, ebp
pop ebp
ret
Function at 0x1001d3f0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10075988]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d4c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.PrevLocaleName
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001d458
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001fee4
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x18]
push eax
push 0x20006
push 0
push str.Control_PanelInternational
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d4c5
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push str.LocaleName
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001d4c0
push str.PrevLocaleName
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x18]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001fee4
mov esp, ebp
pop ebp
ret
Function at 0x10034556
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10075988]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1002c28b
mov dword [ebp - 0x14], eax
cmp dword [0x10078450], edi
jne 0x10034647
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x100345d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10034727
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10034727
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10034727
push eax
call ebx
push 0x1006efd8
push esi
mov dword [0x10078450], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10078454], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10078458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10078460], eax
test eax, eax
je 0x10034644
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007845c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1003466c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1003465f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10034681
push 4
pop eax
jmp 0x10034729
cmp dword [ebp - 0x14], edi
je 0x10034681
push dword [0x10078450]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10034666
mov eax, dword [0x1007845c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x100346df
cmp dword [0x10078460], esi
je 0x100346df
push eax
call ebx
push dword [0x10078460]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100346df
test eax, eax
je 0x100346df
call ecx
test eax, eax
je 0x100346d4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100346d4
test byte [ebp - 8], 1
jne 0x100346df
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1003470f
mov eax, dword [0x10078454]
cmp eax, esi
je 0x1003470c
push eax
call ebx
test eax, eax
je 0x1003470c
call eax
mov edi, eax
test edi, edi
je 0x1003470c
mov eax, dword [0x10078458]
cmp eax, esi
je 0x1003470c
push eax
call ebx
test eax, eax
je 0x1003470c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10078450]
call ebx
test eax, eax
je 0x10034727
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10034729
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001fee4
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x40100a
repz ret
jmp fcn.004011ef

Function at 0x4030bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040206e
and dword [ebp - 0x14], 0
cmp dword [0x42caac], 0
mov dword [ebp - 0x18], eax
jne 0x40316e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403216
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403216
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42caac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cab0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cab4], eax
call edi
push eax
call esi
mov dword [0x42cabc], eax
test eax, eax
je 0x40316e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cab8], eax
mov eax, dword [0x42cab8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4031c7
cmp dword [0x42cabc], ecx
je 0x4031c7
push eax
call esi
push dword [0x42cabc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4031c7
test ebx, ebx
je 0x4031c7
call edi
test eax, eax
je 0x4031be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4031be
test byte [ebp - 8], 1
jne 0x4031c7
or dword [ebp + 0x10], 0x200000
jmp 0x4031fa
mov eax, dword [0x42cab0]
cmp eax, dword [ebp - 0x18]
je 0x4031fa
push eax
call esi
test eax, eax
je 0x4031fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4031fa
mov eax, dword [0x42cab4]
cmp eax, dword [ebp - 0x18]
je 0x4031fa
push eax
call esi
test eax, eax
je 0x4031fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42caac]
call esi
test eax, eax
je 0x403216
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403218
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054c0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42ab10]
sub esp, 0x10
push esi
mov esi, dword [0x471e70]
push edi
mov edi, dword [0x47214c]
push eax
call fcn.004053c0
add esp, 4
cmp dword [0x47214c], 0x2f
jne 0x405520
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00405410
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4057a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x47214c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x4057c2
push 0
push 0
call edi
mov eax, dword [0x47214c]
cmp esi, 0x845013
jne 0x4057d9
mov eax, dword [0x42b930]
add eax, 0xa231
mov dword [0x47214c], eax
cmp eax, 0x141
jne 0x4057f4
mov dword [0x42cfe8], 0xec58acac
mov dword [0x42cfec], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x4057b0
call fcn.00405530
pop edi
xor eax, eax
pop esi
ret 0x10