joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dc40
Capabilities:
Query environment variable

Disassembly:
push ebp
sub ecx, 1
push edi
mov ebp, edx
push esi
mov esi, 1
push ebx
mov ebx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ecx
mov edi, dword [esp + 0x40]
sar eax, 0x1f
mov dword [esp + 0x14], eax
mov eax, ecx
imul ebx
mov dword [esp + 0x10], ecx
sar ecx, 0x1f
sar edx, 2
mov ebx, edx
sub ebx, ecx
je 0x44dc93
mov ecx, 0x66666667
mov eax, ebx
add esi, 1
imul ecx
sar ebx, 0x1f
sar edx, 2
sub edx, ebx
mov ebx, edx
jne 0x44dc80
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x44dd08
mov edx, dword [edi + 8]
cmp eax, esi
cmovge esi, eax
lea eax, [esi + 2]
cmp edx, eax
jg 0x44dd01
mov dword [edi + 8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov edx, ebp
mov dword [esp], edi
add esi, 1
call fcn.0044d5b0
mov eax, dword [edi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [edi + 4], edx
mov edx, edi
call fcn.0044d200
mov eax, dword [esp + 0x10]
mov ecx, edi
add dword [edi + 8], esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0044d980
sub edx, eax
mov dword [edi + 8], edx
jmp 0x44dcb1
mov edx, dword [0x4b33b4]
cmp edx, 0xffffffff
je 0x44dd31
test edx, edx
mov eax, 2
jne 0x44dd29
call fcn.00452b20
and eax, 1
neg eax
add eax, 3
mov dword [edi + 0x28], eax
jmp 0x44dc9b
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x44dd57
movsx eax, byte [eax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x4b33b4], edx
jmp 0x44dd13
xor edx, edx
jmp 0x44dd4f

Function at 0x484670
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.004844f0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebp, eax
je 0x4846b0
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x484681
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x40180b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184a
cmp dword [ecx + 0x74], 0xe
jbe 0x40184a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x472fc0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a0800]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00472f55
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00459580
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47300f
cmp dword [ebp - 0x1c], 5
jb 0x473027
jmp 0x473023
cmp dword [ebp - 0x10], 1
jne 0x473027
cmp dword [ebp - 0x1c], 4
ja 0x473023
jne 0x473027
cmp dword [ebp - 0x18], 0
jbe 0x473027
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x483844
call fcn.0041b8d0
test eax, eax
jge 0x473048
mov byte [0x4a6454], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00454f77
add ebp, 0x78
leave
ret
Function at 0x40388f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038b8
cmp al, 0x22
je 0x4038b0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038a4
cmp byte [esi], 0x22
jne 0x4038c2
inc esi
jmp 0x4038c2
cmp al, 0x20
jle 0x4038c2
inc esi
cmp byte [esi], 0x20
jg 0x4038bc
mov al, byte [esi]
test al, al
je 0x4038cc
cmp al, 0x20
jle 0x4038b5
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040393a
push 0x405004
push section..data
call fcn.00403920
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4038fc
movzx eax, word [ebp - 0x14]
jmp 0x4038ff
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00403952
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x431001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Terminate process

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

Function at 0x407c90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403d87
and dword [ebp - 4], 0
cmp dword [0x438108], 0
mov ebx, eax
jne 0x407d41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407df2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407df2
push eax
call fcn.00403d15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438108], eax
call esi
push eax
call fcn.00403d15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43810c], eax
call esi
push eax
call fcn.00403d15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438110], eax
call esi
push eax
call fcn.00403d15
pop ecx
mov dword [0x438118], eax
test eax, eax
je 0x407d41
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403d15
pop ecx
mov dword [0x438114], eax
mov eax, dword [0x438114]
cmp eax, ebx
je 0x407d99
cmp dword [0x438118], ebx
je 0x407d99
push eax
call fcn.00403d90
push dword [0x438118]
mov esi, eax
call fcn.00403d90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407d99
test edi, edi
je 0x407d99
call esi
test eax, eax
je 0x407d90
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407d90
test byte [ebp - 0xc], 1
jne 0x407d99
or dword [ebp + 0x10], 0x200000
jmp 0x407dd2
mov eax, dword [0x43810c]
cmp eax, ebx
je 0x407dd2
push eax
call fcn.00403d90
pop ecx
test eax, eax
je 0x407dd2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407dd2
mov eax, dword [0x438110]
cmp eax, ebx
je 0x407dd2
push eax
call fcn.00403d90
pop ecx
test eax, eax
je 0x407dd2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438108]
call fcn.00403d90
pop ecx
test eax, eax
je 0x407df2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407df4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42f6d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x436008]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x437000]
push ebx
mov ebx, dword [0x2b361ec]
push edi
mov edi, dword [0x2b36034]
call fcn.0042f5e0
cmp dword [0x2b361ec], 0x2f
jne 0x42f70b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call fcn.0042f620
cmp dword [0x2b361ec], 0x568
pop edi
pop ebx
jne 0x42f742
push 0
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea ecx, [esp + 0x404]
push ecx
push str.Muvedipumob_hiwolucuwe_vusovamovuse
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407804
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040aeac
test esi, esi
jne 0x40783a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040b044
jmp 0x407858
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407748
mov edi, eax
test esi, esi
je 0x407858
cmp dword [ebx], 0
je 0x407858
dec esi
jmp 0x407841
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409ae4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409fa4
mov byte [esp], al
cmp byte [esp], 0
jne 0x409c6d
test edi, edi
je 0x409c6d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409bad
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409b88
cmp edi, 0xffffffff
je 0x409b49
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409b49
mov byte [esp], 0
jmp 0x409c6d
cmp dword [esi], 1
jg 0x409b88
cmp dword [esi], 0
jne 0x409b7a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409b7a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409c6d
lea eax, [esp + 0xc]
call fcn.0040977c
dec ebp
test ebp, ebp
jg 0x409b2e
cmp edi, 0xffffffff
je 0x409bad
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409bab
mov byte [esp], 0
jmp 0x409c6d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409af2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409bad
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409ce8
mov edx, eax
mov ebx, dword [0x629900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409c11
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409c0f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409c11
xor edi, edi
cmp byte [esp], 0
je 0x409c37
mov ebx, dword [esi]
test bl, 1
jne 0x409c4d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409c17
mov byte [esp + 1], 1
jmp 0x409c4d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409c37
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409bc4
cmp byte [esp], 0
je 0x409c6d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40ab44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62905c], 0
je 0x40abab
cmp word [0x62934c], 0xd7b2
jne 0x40ab6d
cmp dword [0x629354], 0
jbe 0x40ab6d
mov eax, 0x629348
call dword [0x629364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40abd8
call fcn.0040b760
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x61e036], 0
jne 0x40abc7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40ad6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x61e038], 0
je 0x40ad97
mov edx, edi
mov eax, esi
call dword [0x61e038]
mov ebx, eax
jmp 0x40ada8
mov eax, 8
call fcn.0040708c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x62905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40ad34
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40add8
mov eax, ebx
call fcn.004070a8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40eb64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40eccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040aeac
cmp si, word [0x61ea18]
jb 0x40ebfc
cmp si, word [0x61ec18]
ja 0x40ebfc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ebfc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x61ea18]
jae 0x40ebd6
mov edi, ebx
dec edi
jmp 0x40ebf7
cmp si, word [ebx*8 + 0x61ea18]
jbe 0x40ebe6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ebf7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x61ea1c]
call fcn.0040ea84
jmp 0x40ebfc
cmp edi, dword [ebp - 8]
jae 0x40ebc0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ecab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ecab
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040bac0
push dword [ebp - 0x160]
push 0x40ece8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040bac0
push dword [ebp - 0x164]
push 0x40ecf8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040bac0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040bcf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecd2
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040af0c
pop eax
jmp eax
Function at 0x40ee80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ef86
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x62bc18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x62bc30]
jne 0x40eecc
mov eax, esi
mov edx, 0x62bc32
mov ecx, 0x55
call fcn.0040bac0
push 0x62bc18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ef6e
push 0x62bc18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040aeac
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ef3b
cmp byte [0x62bc14], 0
je 0x40ef00
mov edx, esi
mov eax, ebx
call fcn.0040ed64
jmp 0x40ef3b
mov edx, esi
mov eax, ebx
call fcn.0040eb64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ef3b
cmp dword [esi], 0
je 0x40ef24
mov eax, esi
mov edx, 0x40efa0
call fcn.0040bc18
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040eb64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040bc18
push 0x62bc18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x62bc30], bx
mov eax, dword [esi]
call fcn.0040ba0c
mov ecx, eax
mov eax, 0x62bc32
mov edx, 0xaa
call fcn.0040e9e4
push 0x62bc18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef8d
lea eax, [ebp - 4]
call fcn.0040aeac
pop eax
jmp eax
Function at 0x40f1c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040afa0
xor eax, eax
push ebp
push 0x40f3f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40f20e
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40f228
mov eax, dword [ebp - 4]
call fcn.0040ba0c
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040e9e4
cmp word [ebp - 0x21e], 0
je 0x40f3d3
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f400
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f2f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f400
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f2f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f43c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f2f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f43c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f2f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f470
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40f2f7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40f4a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40f3d3
xor eax, eax
push ebp
push 0x40f3cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040efc8
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f35a
mov eax, dword [ebp - 0x14]
call fcn.0040708c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ba6c
jmp 0x40f3a5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40f4e4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40f3a5
mov eax, dword [ebp - 0x14]
call fcn.0040708c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40f4e4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ba6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3d3
cmp dword [ebp - 0xc], 0
je 0x40f3c0
mov eax, dword [ebp - 0xc]
call fcn.004070a8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f3f7
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040af0c
pop eax
jmp eax
Function at 0x40f700
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040afa0
xor eax, eax
push ebp
push 0x40f7c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040bac0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bc70
mov eax, dword [ebx]
call fcn.0040f5ac
test al, al
jne 0x40f79d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040bac0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040bc70
mov eax, dword [ebx]
call fcn.0040f5ac
test al, al
jne 0x40f79d
mov eax, ebx
call fcn.0040aeac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f7c9
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040af0c
lea eax, [ebp - 4]
call fcn.0040aeac
pop eax
jmp eax

Function at 0x4113b4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41b21c
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x28]
mov edx, dword [esp]
lea eax, [edx + eax + 0x44]
mov edx, dword [esp]
movzx edx, byte [edx + 0x3d]
shl edx, 3
lea ecx, [eax + edx]
or edx, 0xffffffff
cmp ecx, eax
je 0x41b24a
xor edx, dword [eax]
add eax, 4
cmp ecx, eax
jne 0x41b241
mov eax, edx
pop edx
ret

Function at 0x41b758
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov ebx, edx
cmp ecx, ebx
jbe 0x41b776
mov esi, ecx
sub esi, ebx
shr esi, 1
push esi
push ebx
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
cmp esi, eax
jbe 0x41b776
add eax, eax
add ebx, eax
mov eax, ebx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret