joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe42c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048dc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4fe5a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0047fe1c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0047fe3c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4fe572
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040469c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040975c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040877c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040877c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404838
je 0x4fe54c
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040469c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040877c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040877c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404838
jne 0x4fe563
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0047fe5c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4fe4ad
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe5ad
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404450
lea eax, [ebp - 4]
call fcn.0040442c
ret
Function at 0x407d16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427690]
jne 0x407d20
repz ret
jmp fcn.0040b505

Function at 0x40ae57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405cea
and dword [ebp - 4], 0
cmp dword [0x429420], 0
mov ebx, eax
jne 0x40af08
push 0x4022a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40afb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402298
push edi
call esi
test eax, eax
je 0x40afb9
push eax
call fcn.00405c78
mov dword [esp], 0x402288
push edi
mov dword [0x429420], eax
call esi
push eax
call fcn.00405c78
mov dword [esp], 0x402274
push edi
mov dword [0x429424], eax
call esi
push eax
call fcn.00405c78
mov dword [esp], 0x402258
push edi
mov dword [0x429428], eax
call esi
push eax
call fcn.00405c78
pop ecx
mov dword [0x429430], eax
test eax, eax
je 0x40af08
push 0x402240
push edi
call esi
push eax
call fcn.00405c78
pop ecx
mov dword [0x42942c], eax
mov eax, dword [0x42942c]
cmp eax, ebx
je 0x40af60
cmp dword [0x429430], ebx
je 0x40af60
push eax
call fcn.00405cf3
push dword [0x429430]
mov esi, eax
call fcn.00405cf3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40af60
test edi, edi
je 0x40af60
call esi
test eax, eax
je 0x40af57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40af57
test byte [ebp - 0xc], 1
jne 0x40af60
or dword [ebp + 0x10], 0x200000
jmp 0x40af99
mov eax, dword [0x429424]
cmp eax, ebx
je 0x40af99
push eax
call fcn.00405cf3
pop ecx
test eax, eax
je 0x40af99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40af99
mov eax, dword [0x429428]
cmp eax, ebx
je 0x40af99
push eax
call fcn.00405cf3
pop ecx
test eax, eax
je 0x40af99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429420]
call fcn.00405cf3
pop ecx
test eax, eax
je 0x40afb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40afbb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x514
push ebp
push esi
mov esi, dword [esp + 0x520]
mov edx, ecx
test esi, esi
push edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
jne 0x401373
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, edx
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
cmp byte [esp + 0x14], 0xff
jne 0x401362
mov esi, dword [esp + 0x16]
mov ecx, dword [esp + 0x15]
and esi, 0xff
and ecx, 0xff
shl esi, 0x10
or esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 2
and esi, 0xffff
jmp 0x40137d
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push 2
push edx
jmp 0x40137e
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401397
pop edi
pop esi
pop ebp
add esp, 0x514
ret 4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x4013c6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x514
ret 4
cmp word [ebp + 0xe], 8
je 0x4013db
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x514
ret 4
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0xc]
test esi, esi
mov dword [ecx + 0x48], eax
je 0x40140a
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x401426
mov eax, dword [ebp + 4]
test al, 1
je 0x40141d
inc eax
test al, 1
jne 0x401418
mov edx, dword [ebp + 8]
imul edx, eax
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x20]
mov edx, 0x100
test eax, eax
jne 0x401435
mov dword [ebp + 0x20], edx
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp]
mov ecx, dword [ebp + 0x14]
mov edi, dword [esp + 0x10]
lea esi, [esi + eax*4]
mov eax, ecx
add esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x11d]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0x118], 0x300
mov word [esp + 0x11a], dx
lea ecx, [ebp + 0x29]
mov esi, edx
mov dl, byte [ecx + 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 5]
mov byte [eax + 1], dl
mov byte [eax + 2], 0
add eax, 4
dec esi
jne 0x401473
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [esp + 0xc]
push eax
add ecx, 0x40
call sub.MFC42.DLL_CGdiObject::Attach
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x514
ret 4
Function at 0x401c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412123
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
xor edi, edi
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 4]
mov byte [esp + 0x28], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], edi
mov byte [esp + 0x28], 2
cmp dword [eax - 8], 0xf
jge 0x401cfa
lea ecx, [esp + 0x10]
push 8
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x10]
call fcn.00411236
jmp 0x401d87
push ebp
push 2
lea edx, [esp + 0x20]
push 9
push edx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::Mid
mov edi, eax
push 2
lea eax, [esp + 0x1c]
push 0xe
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::Mid
mov ebp, eax
push 3
lea ecx, [esp + 0x18]
push 3
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::Mid
mov edx, dword [edi]
mov ecx, dword [ebp]
push edx
mov edx, dword [eax]
push ecx
push edx
push 0x41b078
push esi
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call fcn.00411236
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call fcn.00411236
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.00411236
pop ebp
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401db2
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
lea ecx, [esp + 0x30]
mov dword [esi + 0x18], 1
mov dword [esp + 0x28], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x403f70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x412528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov dword [esp + 0x1c], ecx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString
xor esi, esi
mov dword [esp + 0x18], esi
push 0x41b26c
push 0x41b038
lea eax, [esp + 0x18]
push 0x41b030
push eax
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push 0xf003f
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4040c8
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push 0x41b25c
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], 4
call ebp
mov edi, eax
cmp edi, ebx
jne 0x404060
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push 0x41b24c
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], 4
call ebp
mov edi, eax
cmp esi, ebx
pop ebp
je 0x404072
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
cmp edi, ebx
jne 0x4040c8
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4040c8
mov eax, dword [esp + 0x20]
cmp eax, 1
jbe 0x4040aa
cmp eax, 3
jne 0x4040c8
cmp ecx, 1
jne 0x4040c8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
push 0xf00d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
jmp 0x404104
cmp ecx, 2
jne 0x4040c8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
push 0xf00e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
jmp 0x404104
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x24]
push 1
call fcn.00404190
cmp eax, 1
jne 0x4040f1
push 0xf00c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
jmp 0x404104
push eax
lea eax, [esp + 0x10]
push 0xf00b
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
mov ecx, dword [esp + 0x24]
push 0x7e8
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edi, eax
cmp edi, ebx
je 0x404132
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], ebx
je 0x404132
push eax
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 5
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
cmp esi, ebx
je 0x40413d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], bl
call fcn.00411236
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x404270
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb0
xor ecx, ecx
mov eax, 0x414ee9
push ebx
push esi
mov esi, dword [esp + 0xc0]
push edi
mov bl, byte [eax]
xor edx, edx
mov dl, byte [eax - 1]
mov dl, byte [edx + esi]
test bl, dl
setne dl
mov byte [esp + ecx + 0xc], dl
add eax, 2
inc ecx
cmp eax, 0x414f69
jl 0x404287
push ebp
xor edx, edx
mov ebp, 0x2d0
mov eax, dword [esp + 0xcc]
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
test eax, eax
mov ecx, ebp
jne 0x4042cb
mov ecx, edx
xor eax, eax
xor ebx, ebx
mov bl, byte [eax + 0x415058]
mov bl, byte [esp + ebx + 0x30]
xor bl, byte [ecx + eax + 0x41bec4]
inc eax
cmp eax, 0x30
mov byte [esp + eax + 0x8f], bl
jl 0x4042cd
xor edi, edi
lea esi, [esp + 0x71]
lea ecx, [esp + 0x95]
xor eax, eax
add edi, 0x40
mov al, byte [ecx - 5]
add ecx, 6
mov ebx, eax
xor eax, eax
mov al, byte [ecx - 6]
add esi, 4
shl ebx, 1
or ebx, eax
xor eax, eax
mov al, byte [ecx - 0xa]
shl ebx, 1
or ebx, eax
xor eax, eax
mov al, byte [ecx - 9]
shl ebx, 1
or ebx, eax
xor eax, eax
mov al, byte [ecx - 8]
shl ebx, 1
or ebx, eax
xor eax, eax
mov al, byte [ecx - 7]
shl ebx, 1
or ebx, eax
xor eax, eax
mov al, byte [ebx + edi + 0x415048]
mov ebx, eax
sar ebx, 3
and bl, 1
mov byte [esi - 5], bl
mov ebx, eax
sar ebx, 2
and bl, 1
mov byte [esi - 4], bl
mov ebx, eax
sar ebx, 1
and bl, 1
and al, 1
mov byte [esi - 3], bl
mov byte [esi - 2], al
cmp edi, 0x200
jl 0x4042fa
xor eax, eax
mov bl, byte [esp + eax + 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x415288]
mov cl, byte [esp + ecx + 0x70]
xor cl, bl
mov byte [esp + eax + 0x30], cl
inc eax
cmp eax, 0x20
jl 0x40436f
sub ebp, 0x30
mov ecx, 8
lea esi, [esp + 0x50]
lea edi, [esp + 0x10]
add edx, 0x30
cmp ebp, 0xffffffd0
rep movsd dword es:[edi], dword [esi]
jg 0x4042ad
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0x50]
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x10]
lea edi, [esp + 0x30]
pop ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x4c]
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc0]
xor ecx, ecx
mov eax, esi
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, 1
movsx edi, byte [edx + 0x414f68]
mov bl, byte [esp + edi + 0xc]
test bl, bl
je 0x404400
or byte [ecx + esi], al
shl eax, 1
inc edx
cmp eax, 0x80
jle 0x4043ee
inc ecx
cmp ecx, 8
jl 0x4043e9
pop edi
pop esi
pop ebx
add esp, 0xb0
ret
Function at 0x404970
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x412693
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebp
push edi
lea ebp, [ecx + 0x28]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x11c], edi
call sub.MFC42.DLL_CStringList::RemoveAll
push 0x41b2d8
lea ecx, [esp + 0x128]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x124]
lea eax, [esp + 8]
push eax
push 0x20019
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404a42
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push esi
lea edx, [esp + 0x18]
mov eax, edi
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
inc edi
call ebx
mov esi, eax
test esi, esi
je 0x4049fe
cmp esi, 0x103
jne 0x4049db
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push eax
mov ecx, ebp
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CStringList::AddHead
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 0
call fcn.00411236
cmp esi, 0x103
jne 0x4049db
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
lea ecx, [esp + 0x124]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x114]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x404a80
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4126b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [esp + 8], ecx
push edi
lea ecx, [esp + 4]
xor edi, edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
push 0x41b2d0
push 0x41b038
lea eax, [esp + 0x10]
push 0x41b030
push eax
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push 8
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b96
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0x104
call sub.MFC42.DLL_CString::GetBuffer
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
mov ecx, edi
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
inc edi
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, 0x103
je 0x404b89
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404afe
push 0x41b2e8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x404b73
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [edx + 0x44]
call sub.MFC42.DLL_CStringList::AddHead
jmp 0x404afe
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
add ecx, 0x44
call sub.MFC42.DLL_CStringList::AddTail
jmp 0x404afe
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00411236
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x18]
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x404d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0
push 0
push 0
push edi
push ebx
mov dword [esp + 0x24], 0
call ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404d56
push esi
mov esi, dword [esp + 0x20]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push edi
push ebx
call ebp
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x404d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
mov dword [esp], 4
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 0xc
Function at 0x404d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
mov dword [esp], 0x10
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 0xc

Function at 0x407940
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x412acf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString
push 0x40
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CString::GetBuffer
push 0x40
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.004078e0
add esp, 4
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00411236
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4079e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412b10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov bl, 2
push eax
mov ecx, esi
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::FindOneOf
mov edi, eax
cmp edi, 0xffffffff
je 0x407ada
lea ecx, [esp + 0x2c]
push edi
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.00411230
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.00411236
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00411230
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00411236
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.00411230
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00411236
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::FindOneOf
mov edi, eax
cmp edi, 0xffffffff
jne 0x407a3b
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00411236
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00411236
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x407d40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x20]
push 0x7f
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x24]
mov ebp, 0x4f627a3b
push eax
push ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, dword [esp + 0xb0]
mov esi, ecx
push esi
push 0x41b414
lea eax, [esi + 7]
mov dword [esp + 0x28], esi
cdq
and edx, 7
add eax, edx
mov ebx, eax
lea eax, [edi + 1]
sar ebx, 3
mov dl, bl
push eax
add dl, 0x30
mov byte [edi], dl
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.004041e0
add esp, 0x1c
test ebx, ebx
jle 0x407e00
lea esi, [esp + 0x20]
add edi, 3
mov ebp, ebx
push 0
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00404270
push 8
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00407cf0
add esp, 0x18
add esi, 8
add edi, 0x10
dec ebp
jne 0x407dd2
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x407e1d
lea ecx, [esp + 0x20]
mov edi, dword [ecx]
add ecx, 4
xor ebp, edi
dec eax
jne 0x407e13
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x20]
push ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xa8]
push 0x41b41c
shl ebx, 4
lea edx, [ebx + ecx + 3]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret