joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fca0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
push 6
xor eax, eax
push str.system
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.00401960
mov dword [esp + 0x60], 0
push 9
xor eax, eax
push str.uninstall
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.00401960
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4514b8
mov byte [esp + 0x70], 2
call fcn.00403080
mov esi, dword [esp + 0xc]
mov edi, eax
test esi, esi
je 0x401326
push dword [esp + 0x10]
push esi
call fcn.00401c40
push esi
call fcn.0040ec3f
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x401339
push dword [esp + 0x24]
call fcn.0040ec3f
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x50], 8
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
jb 0x40136b
push dword [esp + 0x3c]
call fcn.0040ec3f
add esp, 4
test edi, edi
je 0x401383
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 9
xor eax, eax
push str.uninstall
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00401960
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
mov ecx, 0x4514b8
mov dword [esp + 0x68], 3
call fcn.0040c240
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x4013d8
push dword [esp + 0xc]
call fcn.0040ec3f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4013f0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 4], eax
push ebx
lea eax, [esp + 4]
push eax
push 0x2011f
push 0
push str.SoftwareNahimicNahimic2
push 0x80000002
mov dword [esp + 0x18], 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401476
cmp eax, 2
je 0x401474
cmp eax, 0x3fa
je 0x401474
mov eax, 5
test eax, eax
jne 0x401464
push esi
push str.AnalyticsEnabled
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 2
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040ec44
add esp, 8
ret
mov bl, 1
xor eax, eax
test bl, bl
je 0x40143a
mov ecx, dword [esp + 8]
pop ebx
xor ecx, esp
mov eax, 0xe
call fcn.0040ec44
add esp, 8
ret
Function at 0x4014a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], 0
cmp word [eax], 0
je 0x401583
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp], 0
je 0x401583
push esi
mov esi, dword [eax]
mov ecx, str._request_uninstall
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401508
test dx, dx
je 0x401504
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401508
add eax, 4
add ecx, 4
test dx, dx
jne 0x4014e2
xor eax, eax
jmp 0x40150d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40151a
call fcn.00401250
test eax, eax
jne 0x401558
mov eax, str._reset_analytics
nop
mov cx, word [esi]
cmp cx, word [eax]
jne 0x401546
test cx, cx
je 0x401542
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x401546
add esi, 4
add eax, 4
test cx, cx
jne 0x401520
xor eax, eax
jmp 0x40154b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40156f
call fcn.004013f0
test eax, eax
je 0x40156f
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040ec44
add esp, 8
ret 0x10
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040ec44
add esp, 8
ret 0x10
mov ecx, dword [esp + 4]
xor ecx, esp
mov eax, 1
call fcn.0040ec44
add esp, 8
ret 0x10

Function at 0x402290
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x811c9dc5
test esi, esi
je 0x4022b7
push edi
mov edi, dword [esp + 0xc]
movzx eax, byte [ecx + edi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, esi
jb 0x4022a5
pop edi
mov eax, edx
pop esi
ret

Function at 0x4022f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44016a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], esi
call fcn.0042078c
mov dword [esp + 0x2c], 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 byte [esp + 0x2c], 6
test edi, edi
jne 0x4023a5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], str.bad_locale_name
call fcn.00410285
push 0x44bcac
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], vtable.std::runtime_error.0
call fcn.0040fcbb
push edi
push esi
call fcn.00420638
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040ec44
add esp, 0x24
ret 4
Function at 0x4035e0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x440236
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov ebx, edx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x40362e
mov eax, dword [ebx]
jmp 0x403630
mov eax, ebx
xor ecx, ecx
push ecx
push str..PhysicalDrive_d
mov word [eax], cx
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.0040e940
add esp, 0x10
lea eax, [esp + 0x34]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403676
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4037c2
push 0
lea eax, [esp + 0x20]
push eax
push 8
lea eax, [esp + 0x2c]
push eax
push 0xc
lea eax, [esp + 0x3c]
push eax
xorps xmm0, xmm0
push 0x2d1400
movq qword [esp + 0x44], xmm0
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4036ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4037c2
mov esi, dword [esp + 0x24]
push esi
call fcn.004103b2
push esi
mov ebp, eax
push 0
push ebp
call fcn.00413c20
add esp, 0x10
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push ebp
push 0xc
lea eax, [esp + 0x3c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403741
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call fcn.0041052b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4037c2
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4037b0
mov eax, dword [0x44fb30]
mov ecx, 0x44fb30
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esi + ebp]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24c], 0
call fcn.00404220
mov dword [esp + 0x248], 1
mov esi, dword [esp + 0x18]
push esi
mov ecx, ebx
call fcn.004038a0
add esi, 0xfffffff0
mov dword [esp + 0x248], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebp
call fcn.0041052b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040ec44
add esp, 0x238
ret
Function at 0x404ba0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43fd10
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
xor eax, eax
push 0xffffffffffffffff
push eax
push dword [esp + 0x2c]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
call fcn.004016f0
mov esi, dword [esp + 0x28]
lea edi, [ebx + 0x18]
xor eax, eax
push 0xffffffffffffffff
mov dword [esp + 0x20], 0
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov ecx, edi
mov dword [esp + 0x30], edi
mov word [edi], ax
call fcn.004016f0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
mov byte [esp + 0x20], 1
call fcn.00403900
mov al, byte [esi + 0x24]
mov byte [edi + 0x24], al
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc

Function at 0x405620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44000e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [edi + 4]
mov dword [esp + 0x14], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00405980
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [esp + 0x14], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00405980
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x1c], 2
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x40573f
test dl, 0x10
jne 0x40573f
mov eax, 1
jmp 0x405741
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00405800
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x1c
Function at 0x4091a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x4091d1
lea esp, [esp]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x4091c0
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x40b7c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x440348
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x78]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x74]
push edx
mov dword [esp + 0x1c], eax
push ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [esp + 0x28], edx
call fcn.0040ba30
mov dword [esp + 0x6c], 0
xor edi, edi
jmp 0x40b830
mov ecx, dword [ebp + 0xc]
movzx eax, di
mov dword [esp + 0x40], eax
lea eax, [esp + 0x42]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040ba30
cmp dword [esp + 0x58], 8
mov ebp, dword [eax + 0x10]
lea edx, [esp + 0x44]
cmovae edx, dword [esp + 0x44]
cmp dword [eax + 0x14], 8
jb 0x40b867
mov eax, dword [eax]
mov ebx, dword [esp + 0x54]
cmp ebp, ebx
mov esi, ebx
cmovb esi, ebp
test esi, esi
jne 0x40b885
xor eax, eax
test eax, eax
jne 0x40b8ad
cmp ebp, ebx
jae 0x40b8a4
or eax, 0xffffffff
jmp 0x40b8ab
mov cx, word [eax]
cmp cx, word [edx]
jne 0x40b896
add eax, 2
add edx, 2
dec esi
jmp 0x40b874
movzx eax, word [eax]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40b878
xor eax, eax
cmp ebp, ebx
setne al
test eax, eax
sete bl
cmp dword [esp + 0x3c], 8
jb 0x40b8c3
push dword [esp + 0x28]
call fcn.0040ec3f
add esp, 4
test bl, bl
mov ebx, dword [esp + 0x18]
je 0x40b90f
cmp dword [ebx + 0x18], 0
jne 0x40b8fc
push 0x20
call fcn.0040f408
add esp, 4
test eax, eax
je 0x40b8f7
xorps xmm0, xmm0
movq qword [eax], xmm0
movq qword [eax + 8], xmm0
movq qword [eax + 0x10], xmm0
movq qword [eax + 0x18], xmm0
jmp 0x40b8f9
xor eax, eax
mov dword [ebx + 0x18], eax
mov ecx, edi
mov edx, edi
and ecx, 7
shr edx, 3
add edx, dword [ebx + 0x18]
mov al, 1
shl al, cl
or byte [edx], al
mov ebp, dword [esp + 0x24]
inc edi
cmp edi, 0x100
jl 0x40b830
cmp dword [ebx + 0x28], 0
mov edi, dword [esp + 0x7c]
lea esi, [ebx + 0x28]
je 0x40b93f
lea ecx, [ecx]
mov eax, dword [esi]
cmp edi, dword [eax]
jae 0x40b93f
cmp dword [eax + 0x10], 0
lea esi, [eax + 0x10]
jne 0x40b930
mov ebx, dword [esi]
test ebx, ebx
je 0x40b949
cmp edi, dword [ebx]
je 0x40b977
push 0x14
call fcn.0040f408
add esp, 4
test eax, eax
je 0x40b970
mov dword [eax], edi
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x40b972
xor eax, eax
mov dword [esi], eax
mov dword [eax + 0x10], ebx
push dword [esp + 0x1c]
mov ecx, dword [esi]
push dword [esp + 0x24]
add ecx, 4
call fcn.0040bd50
cmp dword [esp + 0x58], 8
jb 0x40b99c
push dword [esp + 0x44]
call fcn.0040ec3f
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040ec44
add esp, 0x5c
ret 0xc
Function at 0x40d1d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x440858
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov eax, dword [0x44e170]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
mov dword [esp + 0x78], 0
push 0x448bb0
lea ecx, [esp + 0x3c]
mov dword [esi], vtable.std::codecvt_unsigned_short_int__char__int_.0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
call fcn.004022f0
lea eax, [esp + 0xc]
push eax
call fcn.00420346
movq xmm0, qword [eax]
movq qword [esi + 8], xmm0
movq xmm0, qword [eax + 8]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [esi + 0x20], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x30], ecx
add esp, 4
lea ecx, [esp + 0x38]
call fcn.004023d0
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0040ec44
add esp, 0x74
ret 4

Function at 0x40e820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x44e170]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 8], 4
mov dword [esp + 4], 4
test ecx, ecx
jne 0x40e85e
lea eax, [ecx + 0xb]
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040ec44
add esp, 0xc
ret
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 0xc]
push eax
push 0
push str.AnalyticsEnabled
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x40e895
test esi, esi
je 0x40e883
mov byte [esi], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040ec44
add esp, 0xc
ret
cmp eax, 0x3fa
jne 0x40e8b1
mov eax, 0x10
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040ec44
add esp, 0xc
ret
test eax, eax
je 0x40e8ca
mov eax, 6
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040ec44
add esp, 0xc
ret
xor eax, eax
cmp dword [esp + 4], 4
mov ecx, 0xb
cmovne eax, ecx
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.0040ec44
add esp, 0xc
ret
Function at 0x416511
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00412743
mov dword [ebp - 0x14], eax
cmp dword [0x45110c], edi
jne 0x416602
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41658f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4166e2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4166e2
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4166e2
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x45110c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x451110], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x451114], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45111c], eax
test eax, eax
je 0x4165ff
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x451118], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416627
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41661a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41663c
push 4
pop eax
jmp 0x4166e4
cmp dword [ebp - 0x14], edi
je 0x41663c
push dword [0x45110c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416621
mov eax, dword [0x451118]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41669a
cmp dword [0x45111c], esi
je 0x41669a
push eax
call ebx
push dword [0x45111c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41669a
test eax, eax
je 0x41669a
call ecx
test eax, eax
je 0x41668f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41668f
test byte [ebp - 8], 1
jne 0x41669a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4166ca
mov eax, dword [0x451110]
cmp eax, esi
je 0x4166c7
push eax
call ebx
test eax, eax
je 0x4166c7
call eax
mov edi, eax
test edi, edi
je 0x4166c7
mov eax, dword [0x451114]
cmp eax, esi
je 0x4166c7
push eax
call ebx
test eax, eax
je 0x4166c7
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x45110c]
call ebx
test eax, eax
je 0x4166e2
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4166e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ec44
leave
ret
Function at 0x41f628
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00411d47
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41f660
xor eax, eax
jmp 0x41f68c
cmp esi, dword [ebp - 4]
je 0x41f689
cmp dword [ebp + 0xc], 0
je 0x41f689
push dword [edi + 0x9c]
call fcn.0041f236
push dword [edi + 0x9c]
mov esi, eax
call fcn.0041643a
pop ecx
pop ecx
cmp esi, eax
je 0x41f65c
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x418830
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f2bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004734a1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4188b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00470d8a
mov eax, dword [eax]
push 0x49d1f0
push eax
call fcn.00463124
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047372c
test bl, bl
je 0x4188b2
push 0x49d1f0
lea ecx, [esp + 0xc]
call fcn.00473abc
push 0x4a0d80
lea ecx, [esp + 0xc]
call fcn.00473abc
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4188ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047372c
jmp 0x4189b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x418972
lea edx, [esp + 0x7c]
push 0x4a0d7c
push edx
call fcn.00463124
add esp, 8
test eax, eax
je 0x418972
lea eax, [esp + 0x7c]
push 0x4a0d78
push eax
call fcn.00463124
add esp, 8
test eax, eax
je 0x418972
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418902
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047372c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4191b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x419212
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc