joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Set file attributes

Disassembly:
push ecx
mov ecx, eax
call 0x402280
cmp eax, 0xffffffff
je 0x401596
and al, 0xfe
test dl, 0x80
jne 0x401586
or al, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
je 0x401596
xor eax, eax
pop ecx
ret
call fcn.00402380
pop ecx
ret

Function at 0x401910
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x14
mov dword [esp], eax
mov esi, edx
mov ebp, edx
test eax, eax
jl 0x4019a9
cmp eax, dword [0x4083f8]
jae 0x4019a9
call fcn.00403140
mov eax, dword [esp]
call fcn.00403050
mov edx, eax
mov dword [esp + 4], eax
test eax, eax
je 0x4019a9
test al, 1
je 0x4019ba
mov eax, dword [esp]
call fcn.00402530
mov dword [esp + 0xc], eax
test dl, 0x40
jne 0x4019cb
mov eax, dword [esp]
mov dword [esp + 0x10], ebx
call dword [0x4083b8]
xor esi, esi
mov bh, 0x1a
push 0
lea eax, [esp + 0xc]
push eax
mov ecx, dword [esp + 0x18]
push ecx
push ebp
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4019f5
cmp dword [esp + 8], 0
jne 0x401a16
mov eax, dword [esp]
call dword [0x4083bc]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
mov eax, 4
call fcn.004030e6
mov eax, 0xffffffff
jmp 0x4019a1
mov eax, 6
call fcn.004030e6
mov eax, 0xffffffff
jmp 0x4019a1
push 0
lea edx, [esp + 0xc]
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, dword [esp + 8]
test eax, eax
jne 0x40199f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x40199f
call fcn.00402380
jmp 0x4019a1
mov eax, dword [esp]
call dword [0x4083bc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x40199f
call fcn.00402380
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
mov eax, ebp
xor ecx, ecx
xor edx, edx
cmp dword [esp + 8], 0
jbe 0x401a3d
mov bl, byte [eax]
cmp bh, bl
je 0x401a6c
cmp bl, 0xd
je 0x401a35
mov edi, edx
inc esi
inc edx
mov byte [edi + ebp], bl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jb 0x401a23
sub dword [esp + 0x10], edx
add ebp, edx
test byte [esp + 5], 0x20
jne 0x401996
cmp dword [esp + 0x10], 0
jne 0x40196f
mov eax, dword [esp]
call dword [0x4083bc]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
mov ebx, dword [esp + 8]
mov edx, ecx
mov eax, dword [esp]
sub edx, ebx
mov ebx, 1
inc edx
call fcn.004031a0
mov eax, dword [esp]
call dword [0x4083bc]
mov eax, esi
add esp, 0x14
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x401aa0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x214
call fcn.00402530
push 1
lea ebx, [esp + 0x210]
push ebx
xor edi, edi
push edi
mov ebp, eax
push eax
mov dword [esp + 0x218], edi
mov dword [esp + 0x21c], edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
cmp eax, 0xffffffff
je 0x401b2c
test edi, edi
jne 0x401b1a
push 2
lea eax, [esp + 0x208]
push eax
push edi
mov dword [esp + 0x214], ebx
push ebp
mov dword [esp + 0x210], edi
mov dword [esp + 0x214], edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x401b16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test edi, edi
je 0x401b36
mov eax, 0xffffffff
add esp, 0x214
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x401adc
mov eax, esp
mov dword [esp + 0x200], ebx
xor edx, edx
mov ebx, 0x200
call fcn.004031e0
mov eax, dword [esp + 0x204]
mov edx, dword [esp + 0x20c]
cmp eax, edx
jb 0x401b77
jne 0x401c1c
mov eax, dword [esp + 0x200]
cmp eax, dword [esp + 0x208]
jae 0x401c1c
mov ebx, dword [esp + 0x200]
mov esi, dword [esp + 0x20c]
add ebx, 0x200
mov eax, dword [esp + 0x204]
adc eax, 0
cmp eax, esi
jb 0x401bac
jne 0x401c4b
cmp ebx, dword [esp + 0x208]
jae 0x401c4b
mov ebx, 0x200
push 0
lea eax, [esp + 0x214]
push eax
push ebx
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test esi, esi
je 0x401b1a
mov esi, dword [esp + 0x200]
mov edx, dword [esp + 0x204]
mov ecx, dword [esp + 0x20c]
xor eax, eax
add esi, ebx
adc edx, eax
mov dword [esp + 0x200], esi
mov dword [esp + 0x204], edx
mov eax, esi
cmp edx, ecx
jb 0x401b77
jne 0x401c1c
cmp eax, dword [esp + 0x208]
jb 0x401b77
mov eax, dword [esp + 0x20c]
cmp eax, dword [esp + 0x204]
jne 0x401c5e
mov eax, dword [esp + 0x208]
cmp eax, dword [esp + 0x200]
jne 0x401c5e
xor eax, eax
add esp, 0x214
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov ebx, dword [esp + 0x208]
sub ebx, dword [esp + 0x200]
jmp 0x401bb1
push 0
lea eax, [esp + 0x210]
push eax
mov ebx, dword [esp + 0x210]
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401c84
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test edi, edi
je 0x401c3c
mov eax, 0xffffffff
add esp, 0x214
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4029e0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x409064], eax
mov dword [0x4083b0], edx
call fcn.00402600
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [0x40849e], eax
xor eax, eax
mov dword [0x409684], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x4084a4], al
shr eax, 0x10
push 0x104
mov word [0x4084a6], ax
xor eax, eax
mov ebx, 0x208
mov ax, word [0x4084a6]
and edx, 0xffff
mov dword [0x4084a8], eax
xor eax, eax
sar edx, 8
mov al, byte [0x4084a4]
and edx, 0xff
mov dword [0x4084ac], eax
xor eax, eax
mov byte [0x4084a5], dl
mov al, dl
mov edx, dword [0x4084ac]
push 0x409068
shl edx, 8
push 0
or edx, eax
mov dword [0x4084b0], eax
mov dword [0x4084b4], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40916c
xor eax, eax
mov dword [0x40846c], 0x409068
call fcn.004035a0
mov dword [0x408478], 0x40916c
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00403640
mov edx, eax
mov bl, byte [eax]
mov dword [0x409060], eax
cmp bl, 0x22
je 0x402ad4
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402171], 2
je 0x402aec
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402171], 2
je 0x402af3
inc eax
jmp 0x402ac4
inc eax
cmp bl, byte [eax]
je 0x402ae4
cmp byte [eax], 0
je 0x402ae4
inc eax
cmp byte [eax], 0x22
jne 0x402ad9
cmp byte [eax], 0
je 0x402ac4
inc eax
jmp 0x402ac4
test dl, dl
je 0x402ac4
inc eax
jmp 0x402ab7
mov dword [0x408468], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x402b67
call fcn.00403680
mov edx, eax
mov bx, word [eax]
mov dword [0x40905c], eax
cmp bx, 0x22
je 0x402b3a
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402171], 2
je 0x402b5c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402171], 2
je 0x402b6c
add eax, 2
jmp 0x402b28
add eax, 2
cmp bx, word [eax]
je 0x402b51
cmp word [eax], 0
je 0x402b51
add eax, 2
cmp word [eax], 0x22
jne 0x402b42
cmp word [eax], 0
je 0x402b28
add eax, 2
jmp 0x402b28
cmp word [eax], 0
je 0x402b28
add eax, 2
jmp 0x402b1b
mov eax, 0x4029a0
mov dword [0x408474], eax
test edi, edi
jne 0x402b7e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x409374
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x409478
mov eax, esi
mov dword [0x408470], 0x409374
call fcn.004035a0
mov dword [0x40847c], 0x409478
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x402fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
sub esp, 4
mov dword [esp], eax
mov eax, dword [0x4084dc]
test eax, eax
je 0x402fbc
cmp dword [0x408464], 0xfffffffe
jne 0x402fc2
xor eax, eax
add esp, 4
pop edx
pop ecx
ret
mov eax, esp
call fcn.00402f50
test eax, eax
je 0x402fbc
push 0x40
push 0x1000
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
test eax, eax
je 0x402fbc
mov eax, dword [esp]
sub eax, 4
cmp eax, dword [esp]
ja 0x402fba
mov dword [esp], eax
cmp eax, 0x38
jb 0x402fba
mov dword [edx], eax
mov eax, edx
call fcn.00402ed0
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], eax
or al, 1
mov dword [ecx], eax
mov dword [edx + 0x14], 0
lea eax, [ecx + 4]
inc dword [edx + 0x18]
call fcn.00401f50
mov eax, 1
add esp, 4
pop edx
pop ecx
ret

Function at 0x404720
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x404737
inc edx
jmp 0x40472c
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x402c80

Function at 0x4055e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x405674
cmp eax, dword [0x4083f8]
jae 0x405674
call fcn.00402530
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.00403050
test al, 0x80
je 0x405638
mov eax, esi
call dword [0x4083b8]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x405685
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x405699
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x405665
mov eax, esi
call dword [0x4083bc]
mov eax, edx
call fcn.00402340
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
mov eax, 4
call fcn.004030e6
mov eax, 0xffffffff
jmp 0x40566c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov eax, esi
call dword [0x4083bc]
mov eax, ebx
jmp 0x405667
cmp edi, dword [esp]
je 0x4056a8
mov eax, 0xc
call fcn.004030e6
cmp ebx, 1
jne 0x4056b5
mov eax, esi
call dword [0x4083bc]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x4059d0
Capabilities:
Set environment variable

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x14
mov ebp, eax
mov dword [esp], 2
mov edx, 0x3d
mov dword [esp + 4], 1
call fcn.00405ec0
mov ebx, eax
test eax, eax
je 0x4059fe
cmp eax, ebp
jne 0x405a0d
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
sub eax, ebp
mov dword [esp + 0xc], eax
inc eax
call fcn.004017f0
mov edx, eax
mov dword [esp + 8], eax
test eax, eax
je 0x4059fe
mov ecx, dword [esp + 0xc]
mov esi, ebp
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
lea esi, [ebx + 1]
mov byte [edx + eax], 0
mov eax, esi
call fcn.00405f20
mov ebx, eax
test eax, eax
je 0x405ad3
inc eax
call fcn.004017f0
mov dword [esp + 0x10], eax
test eax, eax
je 0x405abd
mov ecx, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, edi
mov byte [ebx], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00401f50
mov eax, dword [esp + 0x10]
call fcn.00401f50
test edx, edx
jne 0x405ad9
cmp dword [esp + 0x10], 0
jne 0x4059fe
xor eax, eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, edx
call fcn.00401f50
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov dword [esp + 0x10], eax
jmp 0x405a7e
mov eax, ebp
call fcn.00405c60
test eax, eax
jne 0x4059fe
cmp dword [0x409688], 0
je 0x405a03
mov eax, ebp
call fcn.00405f20
lea ebx, [eax + 1]
mov eax, dword [esp]
imul eax, ebx
call fcn.004017f0
mov ecx, eax
test eax, eax
je 0x405b41
imul ebx, dword [esp + 4]
mov edx, ebp
call fcn.00405f50
cmp eax, 0xffffffff
jne 0x405b5a
mov eax, ecx
call fcn.00401f50
mov eax, 0xe
call fcn.004030e6
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, 5
call fcn.004030e6
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ecx
call fcn.004061f0
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4309d4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [fcn.0040e020]
test eax, eax
je 0x430a13
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430a13
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430a13
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x430a13
cmp dword [ecx + 0x74], 0xe
jbe 0x430a13
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43beb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43bedd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43bedd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001520
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1002f808], 0
je 0x10001539
mov eax, dword [0x1002f808]
jmp 0x100016d6
mov dword [0x1002f808], 0x1002f7e0
push 0x28
push 0
push 0x1002f7e0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1002f7e0], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002f7e4], eax
cmp dword [0x1002f7e4], 0
jne 0x1000157f
xor eax, eax
jmp 0x100016d6
push str.ImagehlpApiVersionEx
mov eax, dword [0x1002f7e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f7e8], eax
push str.SymInitialize
mov ecx, dword [0x1002f7e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f7ec], eax
push str.SymSetOptions
mov edx, dword [0x1002f7e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f7f0], eax
push str.SymGetOptions
mov eax, dword [0x1002f7e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f7f4], eax
push str.SymLoadModule
mov ecx, dword [0x1002f7e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f7f8], eax
push str.SymGetModuleInfo
mov edx, dword [0x1002f7e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f7fc], eax
push str.SymGetSymFromName
mov eax, dword [0x1002f7e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f800], eax
push str.BindImage
mov ecx, dword [0x1002f7e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f804], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x1002f7e8], 0
je 0x1000165d
lea eax, [ebp - 8]
push eax
call dword [0x1002f7e8]
cmp dword [0x1002f7e8], 0
je 0x1000166f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x1000168a
mov edx, dword [0x1002f7e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1002f7e4], 0
xor eax, eax
jmp 0x100016d6
cmp dword [0x1002f7ec], 0
je 0x100016a3
push 0
push 0
mov eax, dword [0x1002f7e0]
push eax
call dword [0x1002f7ec]
cmp dword [0x1002f7f4], 0
je 0x100016d1
cmp dword [0x1002f7f0], 0
je 0x100016d1
call dword [0x1002f7f4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1002f7f0]
mov eax, dword [0x1002f808]
mov esp, ebp
pop ebp
ret
Function at 0x100054b0
Capabilities:
Contain obfuscated stackstrings
Create thread
Set console window title

Disassembly:
sub esp, 0x24
mov eax, dword [0x1002f00c]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], 1
push esi
mov esi, dword [esp + 0x2c]
jne 0x1000563e
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10005533
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
lea eax, [esp + 0xc]
mov word [esp + 0xc], 0x7477
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x12], 0
push eax
mov dword [esp + 0x18], 0x4f4e4f43
mov dword [esp + 0x1c], 0x245455
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0x10
push 0x100094aa
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 7
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xa4
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + 0x1002d45c]
xor al, cl
inc ecx
mov byte [esp + edx + 0x14], al
and ecx, 0x800000ff
jns 0x1000555d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10005540
push 0x10005370
lea eax, [esp + 0x18]
mov byte [esp + 0x24], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x72657375
push eax
mov dword [esp + 0x18], 0x642e3233
mov word [esp + 0x1c], 0x6c6c
mov byte [esp + 0x1e], 0
call fcn.10001750
push eax
call fcn.100010f0
mov dword [0x1002fe04], eax
mov ecx, 0x10
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + str.WtfPagexjIuh]
xor al, cl
inc ecx
mov byte [esp + edx + 0x14], al
and ecx, 0x800000ff
jns 0x100055cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x100055b0
push 0x100053c0
lea eax, [esp + 0x18]
mov byte [esp + 0x24], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x72657375
push eax
mov dword [esp + 0x18], 0x642e3233
mov word [esp + 0x1c], 0x6c6c
mov byte [esp + 0x1e], 0
call fcn.10001750
push eax
call fcn.100010f0
push 0x104
push 0x1002fe08
push esi
mov dword [0x1002fe00], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push esi
push 0x100049a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1002f818], esi
mov ecx, dword [esp + 0x24]
mov eax, 1
pop esi
xor ecx, esp
call fcn.1000609e
add esp, 0x24
ret 0xc
Function at 0x4015ce
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.00420f40
and byte [ebp - 0x24], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
and byte [ebp - 0x18], 0
lea esi, [ecx + 0x1c]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00402c9d
push dword [esi + 4]
mov ebx, str.Languages
push 1
push str.count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp - 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [edi + 0x5c], eax
jle 0x401681
lea eax, [edi + 0x60]
mov dword [ebp - 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00402c9d
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
lea eax, [ebp - 0x24]
push str.0x0009
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.00419fc2
inc dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], ax
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x5c]
jl 0x40162d
mov ecx, esi
call fcn.00402c9d
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push str.0x0009
push str.Default
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.00419fc2
and byte [ebp - 0x424], 0
pop ecx
mov word [edi + 0x58], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402c9d
push dword [esi + 4]
lea eax, [ebp - 0x424]
mov edi, 0x451a40
push 0x400
push eax
push edi
push str.RequireExactLangMatch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x424]
test ecx, ecx
lea ebx, [ebp - 0x424]
je 0x40174a
mov ecx, dword [ebp - 0xc]
add ecx, 0x128
mov dword [ebp - 8], ecx
mov cl, byte [ebx]
test cl, cl
je 0x40174a
cmp cl, 0x2c
je 0x401725
inc ebx
jmp 0x401746
and byte [ebx], 0
add eax, 2
push eax
call fcn.00419fc2
test eax, eax
pop ecx
je 0x401743
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 2
mov word [ecx], ax
inc ebx
mov eax, ebx
test ebx, ebx
jne 0x401717
add eax, 2
push eax
call fcn.00419fc2
test eax, eax
pop ecx
je 0x401766
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 0x128], ax
mov ecx, esi
call fcn.00402c9d
push dword [esi + 4]
lea eax, [ebp - 0x1424]
push 0x1000
push eax
push edi
push str.cmdline
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1424]
push eax
call fcn.0040129d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysReAllocStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x401fac
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x451a40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40200d
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x401fe1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x401ff5
cmp esi, ebx
je 0x401ff5
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x402015
cmp dword [ebp - 4], ebx
je 0x402007
cmp esi, ebx
je 0x402007
push dword [ebp - 4]
call esi
mov ax, 0x409
jmp 0x402032
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00419fc2
cmp dword [ebp - 4], ebx
pop ecx
mov edi, eax
je 0x40202f
cmp esi, ebx
je 0x40202f
push dword [ebp - 4]
call esi
mov ax, di
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036e2
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [ebp + 0x30], 0
push ebx
push esi
push edi
mov edi, 0x4465a0
mov esi, 0x446598
mov ebx, 0x451a54
je 0x403754
mov eax, str._ispackdel.ini
mov dword [ebp - 0x28], edi
mov ecx, eax
mov dword [ebp - 8], esi
test ecx, ecx
jne 0x403713
mov eax, ebx
lea ecx, [ebp + 0x33]
push 0
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403f24
sub esp, 0x28
lea ecx, [ebp - 0x28]
mov eax, esp
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00403fca
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
push 1
push eax
call fcn.0040cd48
call fcn.004037da
add esp, 0x50
lea ecx, [ebp - 0x28]
call fcn.00403643
mov eax, str._isdel.ini
mov dword [ebp - 0x28], edi
mov ecx, eax
mov dword [ebp - 8], esi
test ecx, ecx
jne 0x403767
mov eax, ebx
lea ecx, [ebp + 0x33]
push 0
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403f24
sub esp, 0x28
lea ecx, [ebp - 0x28]
mov eax, esp
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00403fca
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
push 1
push eax
call fcn.0040cd48
call fcn.004037da
add esp, 0x50
lea ecx, [ebp - 0x28]
call fcn.00403643
lea ecx, [ebp + 8]
call fcn.00404ff5
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp byte [ebp + 0x38], 0
je 0x4037c9
push 0
call fcn.00403b08
pop ecx
mov bl, al
jmp 0x4037cb
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00403643
pop edi
mov al, bl
pop esi
pop ebx
leave
ret