joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e14d8
Capabilities:
Encode data using base64

Disassembly:
jmp 0x8069df06
dec edi
xor eax, edx
shl eax, 0x36
mov dh, 0x1c
add ch, ah
lodsd eax, dword [esi]
and bh, cl
mov dword [0x550f057d], eax
pop ss
loopne 0x5e1526
in eax, 0x3f
sub al, 0x2d
bound eax, qword [ecx + 0x59]
loope 0x5e1495
push ebx
shr ah, 0x6f
loope 0x5e1526
xchg edx, eax
in eax, dx
cmp cl, byte [eax - 0x74]
sahf
or al, 0x63
pop ds
int3
push ebp
lea edi, [ebp + 0x462b66c9]
pop ss
jge 0x5e14ff
arpl word [0x7cec73], dx
xchg ecx, eax
insd dword es:[edi], dx
or al, 7
stosd dword es:[edi], eax
nop
adc ebx, dword [edx - 0x7e3eb20d]
daa
outsd dx, dword [esi]
jo 0x5e1582
rol byte [ecx], cl
jl 0x5e155b
scasd eax, dword es:[edi]
rcr byte [ecx + esi*2], 1
cmp al, 0xc2
mov dword [0xbf80bdfc], eax
inc ebx
push ebx
in eax, dx
and ebx, dword [edx + 0x7f3fbaf7]
std
idiv dword [edx - 0x6d0280c1]
aas
jg 0x5e155d
xchg edx, eax
adc dl, byte [edx + 2]
fprem
push 0x5a
mov bl, 0x35
popal
mov word [eax - 0x73], ds
insb byte es:[edi], dx
or byte [ebx], cl
salc
mov dword [0x7ffd1feb], eax
sbb dword [ecx], 0xd
loope 0x5e15aa
pop ebp
mov edi, 0x4a9ca96e
dec edx
ljmp 0x70c:0xa18d136b
enter 0x18f9, 0xffffffffffffffa9
out 0xae, al
js 0x5e154f
aas
jg 0x5e155d
mov dl, 0x40
inc eax
push esp
mov word [edi - 0x17], gs
mov ecx, 0x3f799b59
cwde
pop eax
fdiv dword [edi + 0x10]
xor eax, 0xccfe8820
add al, 0x3d
lea esp, [ebp + 0x61]
and esp, dword [esi]
xchg edi, eax
cmp ah, ch
jge 0x5e15db
inc edx
aad 0x95
push cs
and eax, 0x3dff5435
push ds
jno 0x5e15a0
sbb dword [ebx + ebp*4 + 0x3d2e3c5c], eax
and al, 0x73
cmp eax, 0x42819e7
dec ecx
pop esp
cmp al, 0x2e
cmp eax, 0xe73d7324
sbb dword [eax], ebp
add al, 0x49
dec ecx
daa
invalid
Function at 0x401110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40a91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str.StringFileInfo_
lea edx, [esp + 0x10]
push 0x40c8d8
push edx
mov byte [esp + 0x30], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], esi
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
inc eax
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
mov edx, dword [esp + 0x38]
push eax
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x401810
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x411080]
push esi
push edi
mov dword [esp + 0x810], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x824]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x824]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x824]
push eax
push ecx
push edx
mov dword [esp + 0x20], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, eax
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x401885
mov esi, dword [esp + 0x824]
push 0x400
push 0x400
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
lea eax, [esp + 0x18]
push eax
jmp 0x4018f8
cmp eax, 7
jne 0x4018d4
mov ecx, dword [esp + 8]
shr ecx, 1
xor eax, eax
sub ecx, 2
je 0x4018ab
cmp word [esp + eax*2 + 0x10], 0
jne 0x4018a6
mov word [esp + eax*2 + 0x10], 0xa
inc eax
cmp eax, ecx
jb 0x401897
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x828]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x808]
call fcn.0040a481
add esp, 0x80c
ret
cmp eax, 2
jne 0x401908
mov esi, dword [esp + 0x824]
push 0x400
push 0x400
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
push 0xffffffffffffffff
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
mov ecx, dword [esp + 0x810]
mov eax, edi
pop edi
pop esi
call fcn.0040a481
add esp, 0x80c
ret
Function at 0x402490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
mov bl, byte [esp + 0x18]
xor eax, eax
test bl, bl
setne al
xor ecx, ecx
push ebp
push esi
test bl, bl
setne cl
push edi
movzx edi, word [esp + 0x28]
lea eax, [eax + eax + 0xc]
mov esi, eax
push esi
lea ecx, [ecx + ecx + 1]
push edi
mov dword [esp + 0x24], ecx
call sub.MFC71U.DLL_AfxFindMessageEntry
push esi
mov ebp, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
movzx edx, word [esi + 2]
xor eax, eax
test bl, bl
sete al
inc eax
cmp edx, eax
jne 0x402613
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor edi, edi
push edi
push ecx
movzx eax, bl
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx edx, word [esi + 4]
cmp edx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
jle 0x402568
lea ecx, [esi + 7]
mov dword [esp + 0x14], edx
movzx edi, word [ecx + 0xb]
cmp edi, eax
jne 0x40255a
test bl, bl
je 0x40253b
movzx edi, byte [ecx - 1]
mov dword [esp + 0x24], edi
movzx edi, byte [ecx]
jmp 0x402547
movzx edi, word [ecx - 1]
mov dword [esp + 0x24], edi
movzx edi, word [ecx + 1]
mov dword [esp + 0x10], edi
cmp dword [esp + 0x34], 1
jge 0x40255a
movzx edi, word [ecx + 5]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x14]
add ecx, 0xe
dec edi
mov dword [esp + 0x14], edi
jne 0x402522
test edx, edx
mov edi, eax
mov dword [esp + 0x14], 0
jle 0x4025c7
lea eax, [esi + 0xc]
mov dword [esp + 0x18], edx
lea ecx, [ecx]
test bl, bl
je 0x40258e
movzx esi, byte [eax - 6]
movzx ecx, byte [eax - 5]
jmp 0x402596
movzx esi, word [eax - 6]
movzx ecx, word [eax - 4]
cmp dword [esp + 0x24], esi
jne 0x4025b9
cmp dword [esp + 0x10], ecx
jne 0x4025b9
movzx ecx, word [eax]
cmp dword [esp + 0x14], ecx
jge 0x4025b9
cmp ecx, dword [esp + 0x34]
jg 0x4025b9
movzx edi, word [eax + 6]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add eax, 0xe
dec ecx
mov dword [esp + 0x18], ecx
jne 0x402580
mov eax, dword [esp + 0x1c]
movzx ecx, di
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x30]
push 0
push edx
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push 0x30000
movzx eax, bl
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
jne 0x402632
test bl, bl
movzx eax, word [esp + 0x28]
push eax
push ebp
je 0x40262c
call dword [sym.imp.USER32.dll_LoadIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4026e0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x7c
mov eax, dword [0x411080]
push ebp
mov ebp, dword [esp + 0x88]
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x80], eax
je 0x402899
cmp dword [0x411098], edi
jne 0x40270f
call fcn.00402640
cmp dword [0x4110a8], 2
jne 0x402899
lea ecx, [esp + 8]
push ecx
lea eax, [esp + 0x20]
push 8
mov dword [ebp], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402899
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x10]
push edx
push eax
push edi
push 2
push ecx
call esi
test eax, eax
jne 0x4027b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4027b0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x78]
call fcn.0040a481
add esp, 0x7c
ret
mov eax, dword [esp + 0x10]
push ebx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ebx, eax
mov eax, dword [esp + 0x18]
push ebx
push 2
push eax
call esi
test eax, eax
jne 0x4027f6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x78]
call fcn.0040a481
add esp, 0x7c
ret
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x18]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push 0x20
push 2
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402823
mov edx, dword [esp + 0x10]
push edx
jmp 0x4027dd
cmp dword [ebp], 0
jne 0x40285e
lea esi, [ebx + 8]
lea esp, [esp]
cmp edi, dword [ebx]
jae 0x40285e
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x402853
test byte [esi], 4
je 0x402853
mov dword [ebp], 1
mov eax, dword [ebp]
inc edi
add esi, 8
test eax, eax
je 0x402830
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40286d
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x402878
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x78]
call fcn.0040a481
add esp, 0x7c
ret
mov ecx, dword [esp + 0x80]
pop edi
xor eax, eax
pop ebp
call fcn.0040a481
add esp, 0x7c
ret
Function at 0x404290
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
xor bl, bl
push eax
mov byte [esp + 0x17], bl
call esi
push 0x40d3ac
mov ebp, eax
call esi
add eax, ebp
lea ecx, [eax + eax + 2]
push ecx
call sub.MFC71U.DLL_SerializeElements
mov esi, eax
add esp, 4
test esi, esi
je 0x40433c
mov edx, dword [edi + 0x24]
push edx
push 0x40d3ac
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov bl, byte [esp + 0x24]
add esp, 0xc
xor eax, eax
test bl, bl
setne al
push esi
push 0
add eax, 0x100000
push eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
test edi, edi
je 0x40431e
test bl, bl
je 0x404312
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404333
cmp eax, 0x102
jne 0x404317
mov byte [esp + 0x13], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC71U.DLL_operator_new
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x404317
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4

Function at 0x4046f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00404220
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x4046e0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
mov dword [esi + 0x20], eax
setne cl
mov al, cl
pop esi
pop ecx
ret

Function at 0x404830
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
mov dword [esi], 0x40d444
call edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x1c]
push ecx
call edi
mov eax, dword [esi + 4]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404869
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x404876
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x404883
push eax
call edi
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x404890
push eax
call edi
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x40489d
push eax
call edi
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4048aa
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4048bd
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov dword [esi + 0x24], ebx
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00404220
Function at 0x4048f0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ad12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, dword [esp + 0x28]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x400
mov ecx, esi
mov dword [esp + 0x10], 0x400
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x4049a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ad3b
push eax
mov dword fs:[0], esp
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 2
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
lea eax, [eax + eax + 2]
push eax
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x4053e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40ae60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 8], esi
mov dword [esi], 0x40d530
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
xor edi, edi
push 0x40ceb0
lea ecx, [esi + 8]
mov dword [esp + 0x18], edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 4
mov dword [esi + 0x18], 0xff
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 5
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 6
mov dword [esi + 0x24], edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
push 0x40ceb0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 7
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405630
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40aea2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
mov eax, dword [0x411080]
push esi
mov dword [esp + 0x80c], eax
push edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x834]
mov dword [esp + 0x828], 1
mov dword [esp + 0x14], 0x800
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x834]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, eax
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x4056ce
mov esi, dword [esp + 0x82c]
push 0x400
push 0x400
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
lea eax, [esp + 0x18]
push eax
jmp 0x40572c
cmp eax, 7
jne 0x405708
mov ecx, dword [esp + 8]
shr ecx, 1
xor eax, eax
add ecx, 0xfffffffe
je 0x4056f4
cmp word [esp + eax*2 + 0x10], 0
jne 0x4056ef
mov word [esp + eax*2 + 0x10], 0xa
inc eax
cmp eax, ecx
jb 0x4056e0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x830]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
jmp 0x40573c
cmp eax, 2
jne 0x40573c
mov esi, dword [esp + 0x82c]
push 0x400
push 0x400
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
push 0xffffffffffffffff
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
lea ecx, [esp + 0x824]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x828]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x814]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x80c]
pop esi
call fcn.0040a481
add esp, 0x818
ret 0xc

Function at 0x405780
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 4]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 4
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
pop esi
pop ecx
ret 0xc
Function at 0x405970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov bl, byte [esp + 0x14]
xor eax, eax
test bl, bl
setne al
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x1c]
test bl, bl
push esi
setne cl
lea eax, [eax + eax + 0xc]
push edi
mov esi, eax
push esi
push ebp
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x20], ecx
call sub.MFC71U.DLL_AfxFindMessageEntry
push esi
mov edi, eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
movzx edx, word [esi + 2]
xor eax, eax
test bl, bl
sete al
inc eax
cmp edx, eax
jne 0x405ae5
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
xor ebp, ebp
push ebp
push ecx
movzx eax, bl
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx edx, word [esi + 4]
cmp edx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebp
jle 0x405a43
lea ecx, [esi + 7]
mov eax, edx
movzx ebp, word [ecx + 0xb]
cmp ebp, dword [esp + 0x14]
jne 0x405a3d
test bl, bl
je 0x405a1e
movzx ebp, byte [ecx - 1]
mov dword [esp + 0x20], ebp
movzx ebp, byte [ecx]
jmp 0x405a2a
movzx ebp, word [ecx - 1]
mov dword [esp + 0x20], ebp
movzx ebp, word [ecx + 1]
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x30], 1
jge 0x405a3d
movzx ebp, word [ecx + 5]
mov dword [esp + 0x30], ebp
add ecx, 0xe
dec eax
jne 0x405a03
test edx, edx
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x14], 0
jle 0x405a95
lea eax, [esi + 0xc]
test bl, bl
je 0x405a64
movzx esi, byte [eax - 6]
movzx ecx, byte [eax - 5]
jmp 0x405a6c
movzx esi, word [eax - 6]
movzx ecx, word [eax - 4]
cmp dword [esp + 0x20], esi
jne 0x405a8f
cmp dword [esp + 0x10], ecx
jne 0x405a8f
movzx ecx, word [eax]
cmp dword [esp + 0x14], ecx
jge 0x405a8f
cmp ecx, dword [esp + 0x30]
jg 0x405a8f
movzx ebp, word [eax + 6]
mov dword [esp + 0x14], ecx
add eax, 0xe
dec edx
jne 0x405a56
mov eax, dword [esp + 0x18]
movzx ecx, bp
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x2c]
push 0
push edx
mov ebp, eax
mov eax, dword [esp + 0x30]
push eax
push 0x30000
movzx eax, bl
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
jne 0x405b1d
mov ebp, dword [esp + 0x24]
test bl, bl
push 0
je 0x405b09
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push 1
push ebp
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push 2
push ebp
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14