joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42094b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x420979
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420997
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004208b5
jmp 0x420997
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420997
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004208b5
test edi, edi
mov eax, edi
jne 0x420981
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42d864]
test ecx, ecx
je 0x420a4a
jmp 0x42094a
ret 8
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403e9a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x40
lea eax, [ebp - 0x40]
push eax
push str.username
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x403ec3
mov byte [0x417040], 0
jmp 0x403ed4
lea ecx, [ebp - 0x40]
push ecx
push 0x417040
call fcn.00407c20
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x403ed8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], str.ISQLUSER
mov dword [ebp - 0xc], str.ISQLPASSWORD
mov dword [ebp - 8], str.ISQLSERVER
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x403f0d
cmp dword [ebp - 0x18], 1
je 0x403f1d
cmp dword [ebp - 0x18], 2
je 0x403f2d
jmp 0x403f3b
mov dword [ebp - 4], 0x4176c0
mov dword [ebp - 0x14], 0x1e
jmp 0x403f3b
mov dword [ebp - 4], 0x4175e0
mov dword [ebp - 0x14], 0x1e
jmp 0x403f3b
mov dword [ebp - 4], 0x417800
mov dword [ebp - 0x14], 0x3d
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + ecx*4 - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403f64
xor eax, eax
jmp 0x403f8a
cmp dword [ebp + 8], 1
jne 0x403f85
push 0x413184
mov eax, dword [ebp - 4]
push eax
call fcn.00409030
add esp, 8
test eax, eax
jne 0x403f85
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4048da
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0x413f10
call fcn.004079b8
add esp, 4
push 0x413f30
call fcn.004079b8
add esp, 4
push 0
push 0x404853
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp dword [0x416ce0], 1
jne 0x404925
cmp dword [ebp + 8], 0xffffffff
jne 0x40491c
mov dword [ebp + 8], 0xffffffff
jmp 0x404923
mov dword [ebp + 8], 0
jmp 0x40493b
cmp dword [0x416d0c], 0x7f
je 0x40493b
cmp dword [ebp + 8], 0xffffffff
jne 0x40493b
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404c50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 4]
push ecx
push 0x413f30
call fcn.00408388
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
call fcn.004088d4
mov esp, ebp
pop ebp
ret

Function at 0x405483
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.004080d0
add esp, 4
mov dword [0x416d30], eax
push 0x413f30
call fcn.004079b8
add esp, 4
push 0x413f10
call fcn.004079b8
add esp, 4
push 0
push 0x416d34
mov ecx, dword [0x416d30]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x417600]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4054d8
call fcn.00404c50
pop ebp
ret
Function at 0x405505
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.004080d0
add esp, 4
mov dword [0x416d2c], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x416d2c]
jae 0x40552d
mov edx, dword [ebp + 0xc]
mov dword [0x416d2c], edx
push 0x413f30
call fcn.004079b8
add esp, 4
push 0x413f10
call fcn.004079b8
add esp, 4
push 0
push 0x416d28
mov eax, dword [0x416d2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x417600]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40556e
call fcn.00404c50
pop ebp
ret

Function at 0x409de1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x414448
cmp edx, dword [eax]
je 0x409e03
add eax, 8
inc ecx
cmp eax, 0x4144d8
jl 0x409df4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x414448]
jne 0x409f31
mov eax, dword [0x416d44]
cmp eax, 1
je 0x409f0b
test eax, eax
jne 0x409e34
cmp dword [0x413eec], 1
je 0x409f0b
cmp edx, 0xfc
je 0x409f31
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409e6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407c20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004080d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409eae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004080d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x412514
push edi
call fcn.004081f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407c20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407c30
lea eax, [ebp - 0xa0]
push 0x4124f4
push eax
call fcn.00407c30
push dword [esi + 0x41444c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407c30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e46f
add esp, 0x2c
pop edi
jmp 0x409f31
lea eax, [ebp + 8]
lea esi, [esi + 0x41444c]
push 0
push eax
push dword [esi]
call fcn.004080d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40a5a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a5c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040da88
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a5e2
test byte [esp + 8], 2
je 0x40a5e2
mov dword [0x416d78], 0xd
mov dword [0x416d7c], 5
jmp 0x40a5bd
xor eax, eax
ret
Function at 0x401e70
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x402800
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1905c
call fcn.00414b70
push ebx
push esi
mov esi, dword [esp + 0x19068]
mov bl, 0x10
test byte [esi + 0xc], bl
je 0x402825
pop esi
xor eax, eax
pop ebx
add esp, 0x1905c
ret
lea eax, [esp + 8]
push eax
call fcn.00401e70
mov al, byte [esi + 0xc]
add esp, 4
test bl, al
jne 0x40286f
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x19000
lea ecx, [esp + 0x6c]
push 1
push ecx
call edi
add esp, 0x10
test eax, eax
jle 0x402869
push eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401ea0
add esp, 0xc
test byte [esi + 0xc], bl
je 0x402840
pop edi
lea ecx, [esp + 8]
push 0x41df0c
push ecx
call fcn.00401d30
add esp, 8
mov eax, 0x41df0c
pop esi
pop ebx
add esp, 0x1905c
ret
Function at 0x4037a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x28]
mov bl, 3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft_1
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::TrimRight_1
mov edi, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetSize
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::FindOneOf
mov esi, eax
test esi, esi
jl 0x4038a4
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esi + 1]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft_1
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::TrimRight_1
jmp 0x4038c0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x41df08
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft_1
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::TrimRight_1
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow
test esi, esi
jge 0x403819
mov edi, dword [edi + 8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404010
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
setne al
pop ecx
ret

Function at 0x404bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push 0x20019
push ebp
push eax
push edx
mov dword [esp + 0x24], ebp
call dword [0x41701c]
mov esi, eax
cmp esi, ebp
jne 0x404c5a
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [section..rdata]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push ebp
push eax
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x404c5a
mov eax, dword [esp + 0x10]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x404c2c
mov esi, 8
jmp 0x404c5a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push ebp
mov byte [ecx + ebp - 1], 0
mov edi, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
push 0
push 0
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x404c5a
mov ecx, dword [esp + 0x1c]
push ebp
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404c69
push eax
call dword [0x417018]
test ebp, ebp
je 0x404c76
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x404cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
test eax, eax
push edi
mov ebx, ecx
mov dword [esp + 8], 0
je 0x404d67
mov edi, dword [esp + 0x14]
test edi, edi
je 0x404d67
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ebp
lea ecx, [esp + 0xc]
push esi
push ecx
push 0x20019
push 0
push eax
push edx
call dword [0x41701c]
mov esi, eax
test esi, esi
jne 0x404d4e
mov eax, dword [ebx + 0xc]
mov ebp, dword [section..rdata]
push edi
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x404d4e
mov ecx, dword [edi]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x404d2f
mov esi, 8
jmp 0x404d4e
mov ebx, dword [ebx + 0xc]
push edi
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push ebx
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [edi]
mov edx, dword [ecx]
mov byte [edx + eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404d5d
push eax
call dword [0x417018]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret 8
pop edi
mov eax, 0x57
pop ebx
pop ecx
ret 8
Function at 0x404d80
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push edx
mov dword [esp + 0x2c], 0
call dword [0x417010]
mov edi, eax
test edi, edi
jne 0x404dd6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push edi
push esi
push eax
call dword [0x417014]
mov edi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x404de5
push eax
call dword [0x417018]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x405c00
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [0x4173f0]
test eax, eax
jl 0x405c83
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [0x4173ec]
test eax, eax
je 0x405c83
lea ecx, [esp]
push esi
push ecx
call dword [0x4173f4]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x118]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x41c280
mov ecx, esi
call fcn.004148d8
mov eax, 1
pop esi
add esp, 0x10c
ret 8
xor eax, eax
add esp, 0x10c
ret 8
Function at 0x4087f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
xor ebp, ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebp
call sub.MFC42.DLL_CString::CString_3
push str.filecmdwhere
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x28], 2
cmp ebx, ebp
je 0x408953
mov eax, dword [edi + 0x10]
cmp eax, ebp
mov dword [esp + 0x1c], eax
jle 0x40890d
push esi
mov eax, dword [edi + 0xc]
lea ecx, [eax + ebp*4]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004112f0
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x41c4c8
push ecx
call sub.MFC42.DLL_operator_1
push 0x41c4c8
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::Find_1
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
jl 0x4088ee
push 0x41c280
push 0x41c27c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [edi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call dword [eax + 0x20]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x408859
pop esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x40e280
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40e28f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x41ca1c]
test eax, eax
je 0x40e29d
call fcn.0040e130
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x40e391
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x41e070]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41e070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x41e070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41e070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x41e070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41e070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x41e070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41e070]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x40e2b7
pop edi
pop ebx
test edx, edx
je 0x40e3b1
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41e070]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x40e395
not eax
pop esi
ret 0xc
Function at 0x41be60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49921b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048d995
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41bee2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048b2bd
mov eax, dword [eax]
push 0x5931fc
push eax
call fcn.004722b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048dc20
test bl, bl
je 0x41bee2
push 0x5931fc
lea ecx, [esp + 0xc]
call fcn.0048dfb0
push 0x596d88
lea ecx, [esp + 0xc]
call fcn.0048dfb0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41bf1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048dc20
jmp 0x41bfe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41bfa2
lea edx, [esp + 0x7c]
push 0x596d84
push edx
call fcn.004722b4
add esp, 8
test eax, eax
je 0x41bfa2
lea eax, [esp + 0x7c]
push 0x596d80
push eax
call fcn.004722b4
add esp, 8
test eax, eax
je 0x41bfa2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41bf32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048dc20
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41c7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41c842
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc