joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058d6
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405eaa
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058fa
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a33
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c198], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c198
je 0x40593e
push 1
push 0
push esi
call fcn.0040585f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a39
cmp eax, edi
jg 0x405a39
mov esi, 0x42bc10
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a39
cmp eax, edi
jg 0x405a39
push esi
push ebp
push str._s_s_r_n
push 0x42b810
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ebb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405baa
push 4
push 0xc0000000
push esi
call fcn.0040585f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a33
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a2c
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a2c
cmp edi, dword [esp + 0x18]
jne 0x405a2c
push str._Rename__r_n
push esi
call fcn.004057d4
test eax, eax
jne 0x405a40
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b88
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b810
push eax
call fcn.00405820
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ec30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409350
push eax
call fcn.004057d4
test eax, eax
je 0x4059f7
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a67
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a5c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059f9
Function at 0x405a6f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ae0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405acf
cmp dword [ebp + 0x14], 1
je 0x405ad1
cmp dword [ebp + 0x14], 2
je 0x405ad1
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f16
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c59c], 0
push esi
jne 0x405f4d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f27
mov dword [ecx*4 + 0x42c598], eax
inc ecx
cmp ecx, 0x100
jl 0x405f22
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f7e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c598]
xor eax, esi
inc ecx
dec edx
jne 0x405f60
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437008]
jne 0x40100a
repz ret
jmp fcn.00401720

Function at 0x40829b
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.004034fe
and dword [ebp - 4], 0
cmp dword [0x4391c0], 0
mov ebx, eax
jne 0x40834c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4083fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4083fd
push eax
call fcn.0040348c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4391c0], eax
call esi
push eax
call fcn.0040348c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4391c4], eax
call esi
push eax
call fcn.0040348c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4391c8], eax
call esi
push eax
call fcn.0040348c
pop ecx
mov dword [0x4391d0], eax
test eax, eax
je 0x40834c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040348c
pop ecx
mov dword [0x4391cc], eax
mov eax, dword [0x4391cc]
cmp eax, ebx
je 0x4083a4
cmp dword [0x4391d0], ebx
je 0x4083a4
push eax
call fcn.00403507
push dword [0x4391d0]
mov esi, eax
call fcn.00403507
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083a4
test edi, edi
je 0x4083a4
call esi
test eax, eax
je 0x40839b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40839b
test byte [ebp - 0xc], 1
jne 0x4083a4
or dword [ebp + 0x10], 0x200000
jmp 0x4083dd
mov eax, dword [0x4391c4]
cmp eax, ebx
je 0x4083dd
push eax
call fcn.00403507
pop ecx
test eax, eax
je 0x4083dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083dd
mov eax, dword [0x4391c8]
cmp eax, ebx
je 0x4083dd
push eax
call fcn.00403507
pop ecx
test eax, eax
je 0x4083dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4391c0]
call fcn.00403507
pop ecx
test eax, eax
je 0x4083fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4083ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4347a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp ebx, 0x182
jne 0x4347bc
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x4347cc
cmp ebx, 0x19f
jne 0x4347cc
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
xor edi, edi
test ebx, ebx
jle 0x4347fe
push esi
jmp 0x4347e0
lea esi, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00434790
mov cl, byte [ebp - 4]
mov eax, dword [ebp + 8]
xor byte [edi + eax], cl
inc edi
cmp edi, ebx
jl 0x4347e0
pop esi
pop edi
cmp ebx, 0x2d
jne 0x434818
mov dword [0x52eea0], 0xa62e7790
mov dword [0x52eea4], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x434820
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x52ed6c]
push ebx
push esi
mov esi, dword [0x52ebb4]
mov ebx, eax
cmp eax, 0x5dd
jne 0x43485a
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x437f70]
call fcn.00434760
cmp dword [0x52ed6c], 0x2f
jne 0x434875
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.004347a0
add esp, 4
cmp dword [0x52ed6c], 0x568
pop esi
pop ebx
jne 0x4348a3
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov ecx, dword [ebp - 0x808]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x40ea90
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5743f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x240
push esi
push edi
push 0x27
mov edi, ecx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.YTNILRjJciLjIWUUjojPPWMLGBxFDKGzIOZQS0
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
call fcn.0042db40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.TnI56Wh4xEeCo8IU01iPBc
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.0042db40
push 0x104
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0042ef00
lea ecx, [ebp - 0x14]
call fcn.00445650
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x14]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40eb7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x40ebac
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x58cfdc
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov dword [edi + 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40ebe2
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ebd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec2d
push ecx
push edx
call fcn.00549ad4
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x40ec18
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec2d
push ecx
push edx
call fcn.00549ad4
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0054e9bf
int3
Function at 0x411590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574785
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [ecx + 0x2c]
push ebx
push esi
push edi
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x30]
push 0x17
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
mov dword [ebp - 4], 0
test eax, eax
setne bl
inc ebx
mov dword [ebp - 0x1c], ebx
call fcn.0042f4e0
mov ecx, eax
test ecx, ecx
je 0x411711
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
call fcn.0042f4e0
mov ecx, eax
test ecx, ecx
je 0x41171b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x14]
mov edi, 0xc8
mov byte [ebp - 4], 3
mov ecx, edi
mov eax, dword [esi + 0x50]
cmp edi, 0xc8
cmovne edi, ecx
cmp dword [eax + 8], 0
je 0x4116a1
push ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4116a1
cmp byte [0x5bed3b], 0
je 0x4116a1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetPhysicalCursorPos]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_WindowFromPoint]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.004624d0
test al, al
je 0x4116a1
push ecx
mov ecx, dword [ebp - 0x10]
mov ebx, esp
mov dword [ebp - 0x14], ebx
lea ecx, [ecx - 0x10]
call fcn.0042ee10
add eax, 0x10
mov ecx, esi
mov dword [ebx], eax
call fcn.00417800
mov ebx, dword [ebp - 0x1c]
test al, al
mov eax, 0x1b7740
cmovne edi, eax
push edi
push 0
lea eax, [ebp - 0x30]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4116c9
mov ecx, 0xc8
cmp eax, 1
jne 0x411620
mov edi, ecx
jmp 0x411620
mov edx, dword [ebp - 0x20]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4116e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4116fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0042fa70
push 0x80004005
call fcn.0042fa70
int3
Function at 0x414a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x574d95
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp byte [0x5c49e8], 0
push esi
push edi
mov edi, ecx
jne 0x414abf
mov esi, dword [ebp + 8]
push 8
mov byte [0x5c49e8], 1
call fcn.00549aa4
add esp, 4
mov dword [ebp + 8], eax
mov dword [eax], edi
mov dword [eax + 4], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4254f0
push 0
push 0
call fcn.00555138
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x414ad6
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.0042e990
cmp dword [ebp - 0x14], 0
jne 0x414ad1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0054eb75
push 6
mov dword [ebp - 0x14], 0
call fcn.0053296f
int3
Function at 0x4156c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
mov eax, dword [eax]
push dword [eax + 4]
mov byte [eax + 0x98], 1
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x3a98
mov dword [esp + 0xc], 0
call fcn.0042dd80
mov eax, dword [esi]
mov eax, dword [eax]
mov byte [eax + 0x98], 0
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.0051fc50
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576075
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0x27
mov dword [ebp - 0x28], ecx
xorps xmm0, xmm0
push str.dGtBNZycE0JxMDjCjMC2KDsCPJgQbKEhMbeGSQ
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.0042db40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.dlh6fYwUsIGxcDlKw
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.0042db40
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push 0
sub esp, 0x18
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x24], 4
mov ecx, esp
mov esi, 3
push eax
call fcn.0042ef00
lea ecx, [ebp - 0x1c]
call fcn.00445650
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41f37e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41f3df
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0042ef00
lea ecx, [ebp - 0x20]
call fcn.00445650
add esp, 0x18
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f3d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
test eax, eax
cmove esi, dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x110], esi
cmp ecx, 8
jb 0x41f41e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f414
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f469
push ecx
push edx
call fcn.00549ad4
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x41f454
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f44a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f469
push ecx
push edx
call fcn.00549ad4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0054e9bf
int3
Function at 0x421530
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
mov esi, ecx
lea eax, [esp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42159f
mov eax, dword [esp + 8]
cmp eax, 3
je 0x42156f
cmp eax, 4
je 0x42156f
cmp eax, 0xb
jne 0x42159f
cmp dword [esp + 4], 4
jne 0x42159f
lea eax, [esp + 4]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42159f
mov al, 1
pop esi
add esp, 8
ret 4
xor al, al
pop esi
add esp, 8
ret 4

Function at 0x424d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5765b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [ecx + 4]
push 4
call fcn.00549aa4
mov dword [ebp - 0x10], eax
mov dword [eax], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4254a0
push 0
push 0
call fcn.00555138
add esp, 0x1c
mov dword [ebp - 0x18], eax
pop esi
test eax, eax
je 0x424d8a
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.0042e990
cmp dword [ebp - 0x14], 0
jne 0x424d85
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0054eb75
push 6
mov dword [ebp - 0x14], 0
call fcn.0053296f
int3
Function at 0x425c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5766d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0042ee10
add eax, 0x10
mov dword [esi + 8], eax
lea edi, [esi + 0x10]
mov dword [edi + 0x24], 0
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x425c9d
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0042ee10
add eax, 0x10
mov dword [esi + 0x38], eax
lea edi, [esi + 4]
mov byte [ebp - 4], 4
push edi
push 0xf003f
push 0
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
jne 0x425d50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [edi]
call ebx
test eax, eax
jne 0x425d23
mov eax, dword [ebp + 0x10]
cmp eax, 3
je 0x425d0b
cmp eax, 4
je 0x425d0b
cmp eax, 0xb
jne 0x425d23
cmp dword [ebp + 0xc], 4
jne 0x425d23
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 0x38]
push dword [edi]
call ebx
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x425d3b
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x34
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.clljDcAA8LBBkBmLREJtUi4C3A1I3eDARS8NhMV5HDwH
lea ecx, [ebp - 0x38]
call fcn.0042f2a0
push ebx
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.0042ef00
lea ecx, [ebp + 0xc]
call fcn.00445650
add esp, 0x18
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00405be0
push 0x5bb708
lea eax, [ebp - 0x20]
push eax
call fcn.0054b9da
int3

Function at 0x429f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576a0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00533197
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x429fab
push eax
push esi
call fcn.00532fd9
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00532879
int3
Function at 0x42f650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f6a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42f6a8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x42f696
cmp esi, edx
jae 0x42f6a8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x42f684
cmp esi, edx
jae 0x42f6a8
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x435c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5767a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00549aa4
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00532edc
add esp, 8
mov dword [esi + 4], eax
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.0042ac20
mov eax, ebx
lea esi, [eax + 8]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea edx, [eax + 0x24]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], edx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x5cde80]
mov dword [eax], 0
mov eax, dword [0x5cde7c]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x38], 0
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret