joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fd0
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x406212
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00475260
add esp, 0xc
lea eax, [ebp - 0x320]
push 0x104
push 0
push eax
call fcn.00475260
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push 0
push eax
call fcn.00475260
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x110]
add esp, 0xc
push 0x104
push eax
push str._programdata_BDLogging
call esi
lea eax, [ebp - 0x110]
push str._programdata_
push eax
call fcn.00474570
add esp, 8
test eax, eax
je 0x40607e
push 0x104
lea eax, [ebp - 0x110]
mov byte [ebp - 0x110], 0
push eax
push str._ALLUSERSPROFILE_Application_DataBDLogging
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push 0
push eax
call esi
push str.CstLogs_
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0047d1d9
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
push 0x2000
push eax
call ebx
lea eax, [ebp - 0x338]
push eax
push eax
push eax
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x330]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x340]
push eax
movups xmmword [ebp - 0x330], xmm0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x320]
push 0x5c
push eax
call fcn.00474430
add esp, 8
test eax, eax
je 0x40612e
inc eax
jmp 0x406134
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0047d1d9
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push eax
call esi
push 0x2000
lea eax, [ebp - 0x110]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x324]
push eax
movzx eax, word [ebp - 0x326]
push eax
movzx eax, word [ebp - 0x328]
push eax
movzx eax, word [ebp - 0x32a]
push eax
movzx eax, word [ebp - 0x32e]
push eax
movzx eax, word [ebp - 0x330]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push str._s_.2d__.2d__.2d__.2d__.2d__.2d___.4d
push eax
call fcn.00404fb0
add esp, 0x28
lea eax, [ebp - 0x218]
push 0
push eax
call esi
push 0x2000
lea eax, [ebp - 0x218]
push eax
call ebx
push str.CI.log
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0047d1d9
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x20
push 0x4b16e4
push eax
call fcn.0047d1c3
add esp, 0xc
mov dword [edi], eax
call fcn.00405410
push 1
mov ecx, edi
mov dword [0x56f324], edx
call fcn.00405d10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bdad
mov esp, ebp
pop ebp
ret
Function at 0x406260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi]
test eax, eax
jne 0x406295
cmp dword [esi + 4], eax
lea ecx, [esi + 4]
jne 0x4062d9
mov eax, edi
lock xadd dword [ecx], eax
inc eax
cmp eax, edi
jne 0x4062d9
mov ecx, esi
call fcn.00405fd0
mov eax, dword [esi]
test eax, eax
je 0x4062d9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4062ad
push eax
push ecx
push 1
push dword [ebp + 8]
call fcn.0047bc0c
add esp, 0x10
jmp 0x4062be
push dword [ebp + 8]
push 0x4b1888
push eax
call fcn.00406230
add esp, 0xc
lea ecx, [esi + 8]
lock xadd dword [ecx], edi
inc edi
cmp edi, 1
jne 0x4062d9
xor eax, eax
xchg dword [ecx], eax
push dword [esi]
call fcn.0047c0b6
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x406440
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
lea esi, [ebp - 0x854]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x54]
push str.__.10lu___.4lu__x
push eax
call fcn.00404f90
mov cl, byte [ebp - 0x54]
add esp, 0x10
test cl, cl
je 0x406495
lea edx, [ebp - 0x54]
mov eax, esi
sub edx, eax
mov al, byte [edx + esi + 1]
mov byte [esi], cl
inc esi
mov cl, al
test al, al
jne 0x406488
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4064ae
mov al, byte [ecx]
test al, al
je 0x4064ae
sub ecx, esi
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x4064a4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4064d5
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov cl, byte [eax]
test cl, cl
je 0x4064ce
inc eax
mov byte [esi], cl
mov dword [ebp + 0x10], eax
inc esi
mov cl, byte [eax]
test cl, cl
jne 0x4064c1
mov word [esi], 0xa
jmp 0x4064f2
lea ecx, [ebp + 0x14]
push ecx
push ecx
push eax
lea edx, [ebp - 0x55]
mov ecx, esi
push 0xffffffffffffffff
sub edx, esi
call fcn.00402990
add esp, 0x10
mov word [esi + eax], 0xa
cmp dword [ebp + 8], 8
mov eax, dword [0x56f314]
mov ebx, dword [eax]
jne 0x406502
or ebx, 2
lea ecx, [ebp - 0x854]
call fcn.00405c90
mov esi, eax
test bl, 1
je 0x406521
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
je 0x406539
mov ecx, dword [0x56f320]
lea eax, [ebp - 0x854]
push esi
push eax
call fcn.00406260
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bdad
mov esp, ebp
pop ebp
ret
Function at 0x40aef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a066
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x544070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045bdbe
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044660e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x14], 8
mov edi, dword [ebx + 0x10]
jb 0x41373a
mov esi, dword [ebx]
jmp 0x41373c
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x413758
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x413747
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp + 0xc], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
cmp edx, edi
jne 0x413780
mov eax, edi
jmp 0x413784
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4137bd
push ebx
lea ecx, [esi + 8]
call fcn.00414240
test eax, eax
je 0x41379f
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x413778
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.00414240
test eax, eax
mov eax, dword [ebp + 8]
cmovne esi, edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49add0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x544070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x413877
mov edi, dword [ebx]
jmp 0x413879
mov edi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x41389a
mov ebx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x413886
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
lea ecx, [esi + 4]
and eax, edx
mov dword [ebp - 0x18], ecx
lea edx, [eax*8]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], edx
mov edi, dword [eax + edx]
cmp edi, dword [ecx]
jne 0x4138bd
mov esi, dword [ecx]
jmp 0x4138c3
mov esi, dword [eax + edx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x4138e2
mov esi, dword [esi + 4]
mov ecx, ebx
lea eax, [esi + 8]
push eax
call fcn.00414240
test eax, eax
sete al
test al, al
jne 0x41392d
cmp esi, edi
jne 0x4138c7
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x41390f
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add ecx, dword [edx + 0xc]
mov ebx, dword [ecx]
cmp ebx, dword [edx + 4]
jne 0x413959
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax + ecx + 4], edi
jmp 0x41397c
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0xc]
push eax
call fcn.00413af0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, esi
jne 0x413961
mov dword [ecx], edi
jmp 0x41397c
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x41397c
mov ecx, dword [ebp + 0xc]
add ecx, dword [edx + 0xc]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.004139c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413a60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
push edi
jb 0x413a7b
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x413a97
movzx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x413a86
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, esi
cmp dword [ecx + 4], eax
jne 0x413acd
cmp dword [ecx], eax
jne 0x413ac5
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x413ad5
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x413ad5
cmp dword [ecx], eax
jne 0x413ad8
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [edx + 4]
push eax
push esi
call fcn.00413af0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414b60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ae78
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x544070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0x4b20d4
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.0040fa00
lea eax, [ebp - 0x3c]
push eax
call fcn.00446ce7
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.0040fb20
mov dword [esi], vtable.std::codecvt_utf8_utf16_wchar_t__1114111__0_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415a10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b02f
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x1fe
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00475260
add esp, 0xc
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x248], esi
jbe 0x415c4f
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [eax + eax]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x244], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebx + 0x1c]
call edi
test eax, eax
jne 0x415c42
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], eax
mov word [ebp - 0x228], ax
cmp word [ebp - 0x210], ax
je 0x415b2f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415b20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00403c50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
push dword [ebp - 0x244]
xor eax, eax
mov dword [ebp - 0x22c], 7
push eax
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x230], 0
call fcn.00403b30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x415b9e
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.00403050
xor eax, eax
mov dword [ebp - 0x214], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x228], ax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], eax
mov word [ebp - 0x264], ax
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x250], 7
call fcn.00403b30
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x415c8c
mov eax, dword [ecx]
lea edx, [ebp - 0x264]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x250]
cmp eax, 8
jb 0x415c20
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.00403050
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x415c42
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00403050
inc esi
cmp esi, dword [ebp - 0x248]
jb 0x415ac0
mov dword [ebp - 4], 5
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x415c6e
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret 0x28
call fcn.0044617c
int3
Function at 0x419180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a066
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x544070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0045bdbe
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044660e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b2c0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b72b
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.0045ce80
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x102c], esi
mov dword [ebp - 0x1030], 0
cmp edx, 4
jne 0x41b32a
push 6
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push str.System
mov byte [esi], 0
call fcn.00402c80
jmp 0x41b3f5
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
push edx
push eax
push 0x410
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41b3ca
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00475260
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0xfff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x41b3c3
cmp word [ebp - 0x1010], 0
jne 0x41b398
xor ecx, ecx
jmp 0x41b3b0
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b3a1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00403c50
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1028]
mov ecx, esi
call fcn.004152c0
mov eax, dword [ebp - 0x1014]
cmp eax, 8
jb 0x41b3f5
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00403050
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret
Function at 0x41e1f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0
jb 0x41e231
mov esi, dword [esi]
call fcn.00480aab
push 0x10
mov dword [eax], 0
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.00480853
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp esi, dword [ebp - 0x30]
jne 0x41e25f
push str.invalid_stoi_argument
call fcn.00446199
call fcn.00480aab
cmp dword [eax], 0x22
je 0x41e2f4
push 0
push 0
push 0x5c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call edi
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push esi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.0041a960
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push 0x5c
push dword [ebp - 0x2c]
call edi
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004152c0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41e2d6
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00403050
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.004461d9
int3
Function at 0x41e300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd46
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x33c], esi
push 7
push str.unknown
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
mov byte [ebp - 0x334], 0
call fcn.00402c80
lea eax, [ebp - 0x338]
mov dword [ebp - 4], 0
push eax
push 0x80000100
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x338], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41e3c2
lea eax, [ebp - 0x334]
mov ecx, esi
push eax
call fcn.00405850
mov ecx, dword [ebp - 0x320]
cmp ecx, 0x10
jb 0x41e4ef
inc ecx
push ecx
jmp 0x41e4de
lea eax, [ebp - 0x338]
lea edx, [ebp - 0x348]
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x344]
call fcn.0041bf10
push 0x208
lea eax, [ebp - 0x31c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00475260
add esp, 0xc
mov dword [ebp - 0x33c], 0
lea eax, [ebp - 0x34c]
mov dword [ebp - 0x34c], 0x104
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x33c]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x338]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e4ac
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00475260
add esp, 0xc
lea edx, [ebp - 0x114]
cmp word [ebp - 0x31c], 0
lea ecx, [ebp - 0x31c]
je 0x41e472
mov al, byte [ecx]
lea ecx, [ecx + 2]
mov byte [edx], al
inc edx
cmp word [ecx], 0
jne 0x41e464
mov byte [edx], 0
cmp byte [ebp - 0x114], 0
jne 0x41e482
xor ecx, ecx
jmp 0x41e499
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e490
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x334]
call fcn.00402c80
lea eax, [ebp - 0x334]
mov ecx, esi
push eax
call fcn.00405850
cmp byte [ebp - 0x340], 0
je 0x41e4d1
mov eax, dword [ebp - 0x344]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x320]
cmp eax, 0x10
jb 0x41e4ef
inc eax
push eax
push dword [ebp - 0x334]
lea ecx, [ebp - 0x334]
call fcn.00402eb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret