joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d38c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x429b2c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41d42e
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x41d530
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x41d4de
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d531
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d4d3
cmp dword [ebp - 0x24], 1
jne 0x41d4d3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x423214
push eax
call fcn.00407a98
add esp, 0xc
cmp eax, 1
jne 0x41d4d3
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41d531
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x41d531
lea ecx, [ebp - 0x18]
push ecx
push 0x41d376
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x41d531
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x41d557
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0041d2f7
cmp eax, ebx
pop ecx
pop ecx
jne 0x41d559
inc edi
cmp edi, esi
jl 0x41d540
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00406af4
leave
ret 4
Function at 0x41d568
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x429964
je 0x41d624
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d60c
mov esi, dword [ebx + 4]
jmp 0x41d606
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d5f6
cmp dword [ebp - 0xc], 4
jne 0x41d5f6
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x41d5ee
or dword [eax + 0x9c], ecx
jmp 0x41d5f6
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x41d5ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x41d59d
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x41d9de
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x41f2bf
call fcn.00406a08
sub esp, 0x11c
mov eax, dword [0x429b2c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x41dad7
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x41daab
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0040216e
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0041d9de
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004010fc
test bl, bl
jne 0x41daab
or dword [ebp - 4], 0xffffffff
jmp 0x41da1c
cmp esi, 0x103
je 0x41dabb
cmp esi, 0x3f2
jne 0x41dacb
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00406af4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41deab
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41dee0
cmp edi, dword [esi + 0xc]
jge 0x41dee0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41dee0
cmp edi, dword [eax + 8]
jge 0x41dee0
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41dee2
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41dfe6
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41e01a
jmp fcn.00410ac1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x41e08b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41e184
cmp eax, dword [edi + 0xc]
jge 0x41e184
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41e0dc
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41e16d
cmp dword [ebp + 0xc], ebx
je 0x41e16d
jmp 0x41e106
push 0x10
call fcn.0041dd77
cmp eax, ebx
je 0x41e0f2
mov ecx, eax
call fcn.0041dfdd
mov esi, eax
jmp 0x41e0f4
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41e11d
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41e12d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41e13f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00410ac1
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00407630
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41e17f
cmp ecx, dword [esi + 8]
jge 0x41e17f
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41e185
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41e243
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 0x41e271
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e28f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e1ad
jmp 0x41e28f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e28f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041e1ad
test edi, edi
mov eax, edi
jne 0x41e279
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42c7bc]
test ecx, ecx
je 0x41e342
jmp 0x41e242
ret 8
Function at 0x402b88
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403028
xor eax, eax
push ebp
push 0x403021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403064
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ae8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410044], 0
je 0x403b49
cmp word [0x410218], 0xd7b2
jne 0x403b11
cmp dword [0x410220], 0
jbe 0x403b11
mov eax, 0x410214
call dword [0x410230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e064
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403b70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e028], 0
jne 0x403b65
push 0
push 0x40e05c
push 0x40e064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404ab6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403ec0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404aa0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404abd
lea eax, [ebp - 0x10]
call fcn.00403c6c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404048
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40603d
test al, 0x10
jne 0x406041
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406db4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406ded
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d5c
jmp 0x406df6
mov eax, ebx
mov edx, esi
call fcn.00403cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406e00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406e21
mov al, byte [esp]
jmp 0x406e23
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x408054
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4080b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405ed8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080bf
lea eax, [ebp - 0xc]
call fcn.00403c6c
ret

Function at 0x40b694
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x411830]
shl edi, 2
xor edx, dword [esi + 0x4107a8]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x410830]
mov bl, dl
add ecx, dword [ebx*4 + 0x410c30]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x411030]
mov bl, dl
add ecx, dword [ebx*4 + 0x411430]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x40b6b1
xchg edx, eax
xor eax, dword [esi + 0x4107a8]
xor edx, dword [esi + 0x4107ac]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x40b70c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x411830]
inc esi
shl esi, 2
xor edx, dword [esi + 0x4107a8]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x410830]
mov bl, dl
add ecx, dword [ebx*4 + 0x410c30]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x411030]
mov bl, dl
add ecx, dword [ebx*4 + 0x411430]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x40b724
xchg edx, eax
xor eax, dword [0x4107ac]
xor edx, dword [0x4107a8]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x40ba04
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x411830], 0x10
mov esi, 0x40e2cc
mov edi, 0x4107a8
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x40c960
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004062a0
add esp, 0x104
pop ebx
ret
Function at 0x401230
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x41b248], eax
push 0x2710
push 0x41d960
push 0x67
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x2710
push 0x41b250
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
call fcn.004012d0
call fcn.00401370
test eax, eax
jne 0x401289
xor eax, eax
jmp 0x4012bb
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4012a3
xor eax, eax
jmp 0x4012bb
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401410
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402849
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [0x41b248]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41d960
push 0x41b250
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4013ae
xor eax, eax
jmp 0x4013e5
push 0xffffffffffffffec
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xefffffff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 0xfffbffff
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 5
push 0
push str._verysilent
lea ecx, [ebp + 8]
call fcn.00401be0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jbe 0x401ba6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00401c30
mov esp, ebp
pop ebp
ret

Function at 0x40546f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x413340
push str.FlsAlloc
push 0
call fcn.004053e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4054a1
push dword [ebp + 8]
mov ecx, esi
call fcn.00403211
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4054e3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x413364
push str.FlsGetValue
push 2
call fcn.004053e8
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405514
mov ecx, esi
call fcn.00403211
call esi
jmp 0x40551a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x40551d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x413378
push str.FlsSetValue
push 3
call fcn.004053e8
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405551
mov ecx, esi
call fcn.00403211
call esi
jmp 0x405557
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x401a80
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
cmp eax, 1
jae 0x401ac0
mov eax, 1
add esp, 0x24
ret

Function at 0x401ad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, ecx
push esi
push 0xf003f
push 0
push str.PerfStatsStartStat
push reloc.OLEAUT32.dll_SysStringLen
call edi
test eax, eax
jne 0x401b4a
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + 4]
push edx
push 0
push str.KERNELCPUUsage
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x20019
push 0
push str.PerfStatsStatData
push reloc.OLEAUT32.dll_SysStringLen
call edi
test eax, eax
mov eax, esi
je 0x401b52
pop edi
mov dword [esi], 0
pop esi
add esp, 8
ret
mov eax, esi
mov dword [esi], 0
pop edi
pop esi
add esp, 8
ret

Function at 0x401b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x401bbe
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
push esi
push 0xf003f
push 0
push str.PerfStatsStopStat
push reloc.OLEAUT32.dll_SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401bbd
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + 4]
push edx
push 0
push str.KERNELCPUUsage
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
push ecx
call edi
pop edi
pop esi
add esp, 8
ret

Function at 0x401bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
lea edx, [esp + 8]
push edx
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
push 0
push str.KERNELCPUUsage
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
fild dword [esp + 4]
mov edx, dword [esp + 4]
test edx, edx
jge 0x401c0a
fadd dword [0x418470]
fstp dword [esp]
fld dword [esp]
fcom qword [0x418468]
fnstsw ax
test ah, 0x41
jne 0x401c2f
fstp st(0)
fld dword [0x418464]
fstp dword [esp]
fld dword [esp]
add esp, 8
ret
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x401c46
fstp st(1)
fstp dword [esp]
fld dword [esp]
add esp, 8
ret
fstp st(0)
add esp, 8
ret
Function at 0x402240
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x40225e
push eax
call fcn.0040920a
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push ebp
push ecx
push SysStringLen
mov dword [esi], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
je 0x40230a
cmp eax, 0xea
jne 0x402335
mov eax, dword [esi]
test eax, eax
je 0x40229a
push eax
call fcn.0040920a
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi], 0
cmp eax, ebp
jbe 0x4022b0
lea ebp, [eax + 0x2000]
jmp 0x4022b6
add ebp, 0x2000
lea edi, [ebp + 1]
test edi, edi
jne 0x4022c1
xor ebx, ebx
jmp 0x4022dc
push edi
call fcn.0040911d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4022dc
push edi
push 0
push ebx
call fcn.00409190
add esp, 0xc
mov dword [esi], ebx
test ebx, ebx
je 0x402344
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov eax, ebx
push eax
push 0
push 0
push ecx
push SysStringLen
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402280
mov edx, dword [esi]
mov eax, str.PERF
mov ecx, 8
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x402335
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x402318
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, dword [esi]
test eax, eax
je 0x402344
push eax
call fcn.0040920a
add esp, 4
pop edi
mov dword [esi], 0
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret