joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078d0
Capabilities:
Print debug messages

Disassembly:
push 8
push 0x408190
call fcn.00403c84
push 0x40b2cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [0x40b24e], bl
jne 0x407957
push 0x40b258
push 0x20119
push ebx
push dword [0x409150]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x40794b
mov dword [0x40b258], ebx
push 0x403220
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, ebx
jle 0x407934
movzx esi, si
or esi, 0x80070000
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x40900c
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
mov eax, esi
jmp 0x407965
call fcn.00407481
mov byte [0x40b24e], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040796d
xor eax, eax
call fcn.00403cc9
ret 4

Function at 0x4079b5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40900c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x40b24c], 0
push esi
mov esi, dword [ebp + 8]
je 0x407a39
push edi
mov edi, 0x40b264
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x404]
push 0x200
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x408], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp eax, 0x8007007a
jne 0x407a18
mov eax, dword [esi]
lea ecx, [ebp - 0x408]
push ecx
mov ecx, esi
call dword [eax + 4]
test eax, eax
jl 0x407a31
push dword [ebp - 0x408]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x4032f8
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403f0d
leave
ret 4

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..retplne
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x434a7e16
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..reloc
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x171f2f57
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x42b810
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x42b9d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
or ebp, 0xffffffff
jmp 0x42b83a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b830
mov eax, 1
add ebx, ebx
jne 0x42b853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b848
jne 0x42b864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b848
xor ecx, ecx
sub eax, 3
jb 0x42b878
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b8ea
mov ebp, eax
add ebx, ebx
jne 0x42b883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b890
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b8b4
inc ecx
add ebx, ebx
jne 0x42b8a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b895
jne 0x42b8b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b895
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b8d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b8c5
jmp 0x42b836
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b8d4
add edi, ecx
jmp 0x42b836
pop esi
mov edi, esi
mov ecx, 0x8a1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b8f2
cmp byte [edi], 6
jne 0x42b8f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42b8f7
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42b966
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b5bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b620]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b924
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b624]
or eax, eax
je 0x42b960
mov dword [ebx], eax
add ebx, 4
jmp 0x42b941
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42b997
cmp al, 0xef
ja 0x42b98a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42b96c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42b979
mov ebp, dword [esi + 0x2b628]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42b9cb
sub esp, 0xffffff80
jmp 0x41b28c
Function at 0x4058a7
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov edi, ebx
cmp dword [ebp + 8], ebx
je 0x405a80
cmp dword [ebp + 0xc], ebx
je 0x405a80
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x405a80
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x405a80
or dword [ecx], reloc.ole32.dll_CoInitializeEx
mov esi, dword [eax]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
mov edi, 0x4010bc
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40590f
push eax
push esi
push edi
call fcn.00405761
jmp 0x405911
mov al, 1
test al, al
je 0x405a9b
push 0x200
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov edi, eax
pop ecx
test edi, edi
je 0x405a80
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov esi, ebx
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x10], 1
cmp eax, 0x103
je 0x405a74
test eax, eax
jne 0x405a65
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.0040532b
test al, al
je 0x4059d6
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jle 0x4059d6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4059a5
push esi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
mov eax, dword [ebp - 0xc]
pop ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov esi, eax
pop ecx
test esi, esi
je 0x405a80
mov eax, dword [ebp - 0xc]
push edi
call fcn.00404f62
test eax, eax
js 0x405a80
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x100
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x10]
cmp eax, 0x103
jne 0x405963
test esi, esi
je 0x405a74
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
push 0x17
lea eax, [ebp + 0x14]
push eax
push esi
push 0x401148
call fcn.004057ae
add esp, 0x14
test al, al
je 0x405a80
push dword [ebp + 8]
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push 0x20019
push ebx
push esi
push 0x80000002
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405a61
push eax
push dword [ebp + 0x10]
push esi
call fcn.00405761
mov bl, al
jmp 0x405a80
mov bl, 1
jmp 0x405a80
push 0x4010bc
push 0x13
push eax
call fcn.004061ca
jmp 0x405a80
push 0x1d
xor bl, bl
call fcn.0040616a
pop ecx
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x405a8f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x405a9b
push edi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x10
Function at 0x405aa9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor edx, edx
xor ebx, ebx
inc ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
cmp dword [ebp + 8], edx
je 0x405bff
mov eax, edi
call fcn.00405179
test al, al
jne 0x405bff
cmp dword [ebp + 0x10], edx
je 0x405bff
lea eax, [ebp - 8]
push eax
push edx
lea eax, [ebp - 0xc]
push eax
push edx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405b40
and dword [ebp + 8], 0
push eax
lea edi, [ebp + 8]
call fcn.00405190
test eax, eax
je 0x405b2e
mov edi, dword [ebp + 8]
push edi
push esi
push dword [ebp + 0xc]
xor bl, bl
push 0x16
call fcn.0040616a
add esp, 0x10
test edi, edi
je 0x405b2e
push edi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
pop ecx
xor bl, bl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
pop edi
mov al, bl
pop ebx
leave
ret 0xc
cmp dword [ebp - 0xc], ebx
je 0x405b55
push esi
push edi
push 0x18
xor bl, bl
call fcn.0040616a
add esp, 0xc
jmp 0x405b2e
mov eax, dword [ebp - 8]
test eax, eax
jne 0x405b62
push esi
push edi
push 0xe
jmp 0x405b49
shr eax, 1
mov dword [ebp - 0x10], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x405b89
xor bl, bl
jmp 0x405b33
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov word [eax + ecx*2], dx
lea ecx, [ebp - 8]
push ecx
push eax
push edx
push edx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405bea
and dword [ebp + 8], 0
push eax
lea edi, [ebp + 8]
call fcn.00405190
test eax, eax
je 0x405bd8
mov edi, dword [ebp + 8]
push edi
push esi
push dword [ebp + 0xc]
xor bl, bl
push 0x16
call fcn.0040616a
add esp, 0x10
test edi, edi
je 0x405bd8
push edi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
and dword [ebp - 4], 0
jmp 0x405b2d
mov eax, dword [ebp - 4]
call fcn.00405179
test al, al
je 0x405b30
jmp 0x405b5c
mov bl, dl
mov eax, edx
jmp 0x405b33

Function at 0x406041
Capabilities:
Load windows common language runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
call fcn.00405179
test al, al
jne 0x4060c0
mov eax, dword [ebp + 0xc]
call fcn.00405179
test al, al
jne 0x4060c0
test edi, edi
je 0x4060c0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x4019a8
push 0x4019b8
push 4
push 0x40130c
push dword [ebp + 0xc]
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
cmp eax, 0x80131700
je 0x4060ae
mov ecx, dword [edi]
test ecx, ecx
je 0x4060ae
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
test eax, eax
jns 0x4060c5
push eax
push 5
xor bl, bl
call fcn.0040616a
pop ecx
pop ecx
jmp 0x4060c0
push dword [ebp + 8]
xor bl, bl
push dword [ebp + 0xc]
push 3
call fcn.0040616a
add esp, 0xc
mov esi, 0xffff0000
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x406129
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x40a650]
test al, 1
jne 0x406155
or eax, 1
mov dword [0x40a650], eax
xor eax, eax
test cl, cl
setne al
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x40a64c], eax
cmp dword [ebp + 8], 0
je 0x406161
pop ebp
jmp fcn.004060d2
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, reloc.ole32.dll_CoInitializeEx
setne al
pop ebp
ret 4
Function at 0x4062f3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
push ebx
cmp byte [ebp + 0xc], bl
je 0x406396
push 0x401048
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x406326
mov al, 1
jmp 0x4064ae
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40633c
lea edx, [ebp + 0xc]
mov eax, 0x7ffffffe
call fcn.0040502d
jmp 0x406341
mov eax, 0x80070057
test eax, eax
js 0x406348
mov ebx, dword [ebp + 0xc]
jne 0x40631f
mov esi, ebx
add ebx, 0x14
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov edi, eax
pop ecx
xor eax, eax
mov word [edi], ax
push esi
push dword [ebp - 4]
mov eax, ebx
mov dword [ebp + 0xc], edi
call fcn.00404fa4
test eax, eax
je 0x40638a
push edi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
pop ecx
jmp 0x40631f
push 0x13
push 0x40a078
jmp 0x406428
push 0x401058
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x40631f
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4063bf
lea edx, [ebp + 0xc]
mov eax, 0x7ffffffe
call fcn.0040502d
jmp 0x4063c4
mov eax, 0x80070057
test eax, eax
js 0x4063cb
mov ebx, dword [ebp + 0xc]
jne 0x40631f
mov esi, ebx
add ebx, 0x19
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov edi, eax
pop ecx
mov dword [ebp + 0xc], eax
xor eax, eax
mov word [edi], ax
push esi
push dword [ebp - 4]
mov eax, ebx
call fcn.00404fa4
test eax, eax
jne 0x406380
push 0x13
push 0x40a078
mov eax, ebx
call fcn.00404fa4
test eax, eax
jne 0x406380
push 5
push str.v1.0_
mov eax, ebx
call fcn.00404fa4
test eax, eax
je 0x40643f
push edi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
mov al, 1
pop ecx
jmp 0x4064ae
xor ecx, ecx
push 2
mov dword [ebp - 4], edi
pop edx
cmp byte [ebp + 8], cl
je 0x4064b5
lea esi, [ebx + 0x21]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov edi, eax
pop ecx
xor eax, eax
mov word [edi], ax
push ebx
push dword [ebp - 4]
mov eax, esi
call fcn.00404fa4
test eax, eax
je 0x40648c
push dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
call esi
push edi
call esi
pop ecx
jmp 0x406387
push 0x20
push 0x40a030
mov eax, esi
call fcn.00404fa4
test eax, eax
jne 0x406478
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
pop ecx
push edi
call fcn.004062d4
pop edi
pop esi
pop ebx
leave
ret 8
lea esi, [ebx + 0xc]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov edi, eax
pop ecx
xor eax, eax
mov word [edi], ax
push ebx
push dword [ebp - 4]
mov eax, esi
call fcn.00404fa4
test eax, eax
jne 0x406478
push 0xb
push str.profile.ps1
jmp 0x406493
Function at 0x40653c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, reloc.ole32.dll_CoInitializeEx
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x406570
xor al, al
jmp 0x4065f5
cmp eax, esi
ja 0x406569
push edi
lea edx, reloc.ole32.dll_CoInitializeEx
mov eax, 0x7ffffffe
lea ecx, reloc.ole32.dll_CoInitializeEx
call fcn.0040502d
test eax, eax
jns 0x406593
xor edi, edi
jmp 0x406599
mov edi, dword [ebp - reloc.ole32.dll_CoInitializeEx]
test eax, eax
je 0x4065a1
xor al, al
jmp 0x4065f4
push ebx
push 0x25
xor bl, bl
call fcn.0040616a
push 0x26
call fcn.0040616a
pop ecx
pop ecx
xor esi, esi
push 0x4010b8
inc esi
xor cl, cl
call fcn.00406129
push 0x401420
push 3
pop esi
xor cl, cl
call fcn.00406129
lea ecx, reloc.ole32.dll_CoInitializeEx
push ecx
mov esi, edi
xor cl, cl
call fcn.00406129
push 0x401428
push 2
pop esi
xor cl, cl
call fcn.00406129
mov al, 1
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408e59
leave
ret

Function at 0x4075a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 0x10]
lea eax, [ebp + 8]
lea edx, [ebp - 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov esi, ebx
mov dword [ebp - 8], ebx
call fcn.00405d92
mov edi, eax
test edi, edi
jne 0x40766e
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x4011b4
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40766c
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov esi, eax
pop ecx
test esi, esi
jne 0x40761b
mov edi, 0xffff0000
jmp 0x40766c
push dword [ebp - 8]
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push 0x4011b4
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x40766c
push 2
push 0x401568
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40766c
push dword [ebp + 8]
xor bl, bl
push dword [ebp + 0xc]
mov edi, 0xffff0000
push 3
call fcn.0040616a
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x407680
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xc], 0
mov ebx, dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
je 0x407692
push dword [ebp - 0xc]
call ebx
pop ecx
test esi, esi
je 0x40769a
push esi
call ebx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408092
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov edi, eax
test esi, esi
je 0x408106
test edi, edi
je 0x408106
push esi
call fcn.00408072
xor ebx, ebx
test eax, eax
jne 0x4080b3
mov esi, ebx
jmp 0x4080bd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push edi
call fcn.00408072
test eax, eax
jne 0x4080cb
mov eax, ebx
jmp 0x4080d3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test esi, esi
je 0x4080fe
test eax, eax
je 0x4080fe
mov ecx, 0xfecdfecd
cmp dword [esi], ecx
jne 0x4080fa
cmp dword [eax], ecx
jne 0x4080fa
push 4
lea edi, [eax + 0x1c]
add esi, 0x1c
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4080fa
xor ebx, ebx
inc ebx
mov eax, ebx
jmp 0x408108
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40819b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x40a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x40a648]
test esi, esi
jne 0x408289
push edi
mov edi, 0x11c
push edi
lea eax, reloc.ole32.dll_CoInitializeEx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.ole32.dll_CoInitializeEx
mov dword [ebp - reloc.ole32.dll_CoInitializeEx], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call edi
test eax, eax
jne 0x408202
lea eax, reloc.ole32.dll_CoInitializeEx
push eax
mov dword [ebp - reloc.ole32.dll_CoInitializeEx], 0x114
call edi
mov eax, dword [ebp - reloc.ole32.dll_CoInitializeEx]
mov dword [0x40a648], esi
pop edi
dec eax
je 0x408263
dec eax
jne 0x408289
cmp dword [ebp - reloc.ole32.dll_CoInitializeEx], 5
jne 0x408251
mov eax, dword [ebp - reloc.ole32.dll_CoInitializeEx]
sub eax, esi
je 0x40824d
dec eax
je 0x408242
dec eax
je 0x408233
push 0x14
pop esi
jmp 0x408283
cmp word [ebp - 0xc], 1
jb 0x40823d
push 0x10
pop esi
or esi, 4
jmp 0x408283
cmp word [ebp - 0xc], 2
jb 0x40823d
push 8
jmp 0x40823c
push 4
jmp 0x408230
cmp dword [ebp - reloc.ole32.dll_CoInitializeEx], 4
ja 0x408298
push 2
pop esi
mov dword [0x40a648], esi
cmp dword [ebp - reloc.ole32.dll_CoInitializeEx], 4
jne 0x408289
mov eax, dword [ebp - reloc.ole32.dll_CoInitializeEx]
test eax, eax
je 0x408280
cmp eax, 0xa
je 0x408280
cmp eax, 0x5a
jne 0x408289
xor esi, esi
inc esi
mov dword [0x40a648], esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408e59
leave
ret
push 0x20
jmp 0x408230

Function at 0x4083a5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4083f2
push 3
lea eax, [ebp - 0x44]
push 0x401d08
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffff800
add esi, eax
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.00408e59
leave
ret
Function at 0x408407
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40a00c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x40a644]
jne 0x4084a3
push edi
lea eax, [ebp - 0x10]
push eax
push 1
xor edi, edi
push edi
push 0x401d20
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4084a2
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x401e00
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4084a2
push 3
push dword [edi*8 + 0x401e10]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x408494
inc edi
cmp edi, 0x1c
jb 0x408472
jmp 0x4084a2
mov ax, word [edi*8 + 0x401e14]
mov word [0x40a644], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x40a644]
xor ecx, ebp
call fcn.00408e59
leave
ret