joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407820
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov edi, 0x1e
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], ebx
call fcn.00407480
mov esi, eax
test esi, esi
jne 0x4078ee
cmp dword [ebp - 0x20], 7
jne 0x4078ec
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x407887
lea esi, [edi - 0x18]
jmp 0x4078ee
push 0xf01ff
push 0x43c42c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4078b6
call esi
mov esi, eax
test esi, esi
jne 0x4078ee
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
push ecx
push 3
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4078cd
call esi
mov esi, eax
jmp 0x4078ee
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
call fcn.00407480
cmp dword [ebp - 0x20], 4
je 0x4078ec
push 0x3e8
call esi
dec edi
jne 0x4078d3
xor esi, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4078fe
push eax
call edi
test ebx, ebx
je 0x407905
push ebx
call edi
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4

Function at 0x407c40
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
mov dword [esi], vtable.Session.0
test eax, eax
je 0x407c74
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x407c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407c74
push 0x1388
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407c84
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x407c8e
push eax
call edi
mov eax, dword [esi + 0x44]
mov dword [esi + 0x40], vtable.Buffer.0
test eax, eax
je 0x407cc8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x30], vtable.Date.0
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], vtable.ServerPipe.0
cmp eax, 0xffffffff
je 0x407ce8
push eax
call edi
mov dword [esi + 0x10], 0
mov edx, dword [esi + 8]
sub edx, 0x10
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
pop edi
pop esi
test ecx, ecx
jg 0x407d07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
ret
Function at 0x407db0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0xfe
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x108], 0
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x114], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00402fc0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f2a
test esi, esi
je 0x407f2a
push 0x128
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push esi
mov dword [ebp - 0x240], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x407e9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.Process32First_error__d___0x_X_
push 0xda
push 0x43c600
jmp 0x407f43
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x407eb0
lea eax, [ebp - 0x21c]
push str.explorer.exe
push eax
call fcn.0041b00a
add esp, 8
test eax, eax
jne 0x407ee7
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x407f0f
cmp edi, dword [ebp - 0x10c]
je 0x407efd
lea eax, [ebp - 0x240]
push eax
push esi
call ebx
cmp eax, 1
je 0x407eb0
mov edi, 0x490
jmp 0x407f4b
mov ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
xor edi, edi
jmp 0x407f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.ProcessIdToSessionId_error__d___0x_X_
push 0xe8
push 0x43c684
jmp 0x407f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.CreateToolhelp32Snapshot_error__d___0x_X_
push 0xd0
push 0x43c5c8
call fcn.004064b0
add esp, 0x14
cmp esi, 0xffffffff
je 0x407f5b
test esi, esi
je 0x407f5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 8
Function at 0x408690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edi
call fcn.0041c7ba
mov ecx, dword [ebp - 0x10]
mov esi, edi
mov dword [ecx + 0x3c], edx
add esp, 4
mov dword [ecx + 0x38], eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4086c4
sub esi, edx
lea ecx, [ecx]
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ecx + 0x10]
mov ebx, esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4086f9
mov eax, dword [ebp - 8]
cmp esi, eax
jne 0x4086f9
mov ebx, eax
jmp 0x408721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push str.WriteFile_error__d__0x_X_
push 0xf7
push 0x43c010
call fcn.004064b0
add esp, 0x14
test edi, edi
jne 0x408742
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add edi, ebx
mov dword [ebp - 0xc], edi
sub esi, ebx
jne 0x4086d0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4

Function at 0x41a005
Capabilities:
Enumerate pe sections

Disassembly:
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x41a03a
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41a021
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x41a032
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41a03c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x41a017
xor eax, eax
pop edi
pop esi
ret
Function at 0x41a884
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc edi
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00419fcf
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00419f84
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
invalid
test dword [edi], ebx
cld

Function at 0x41abf2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
test ecx, edi
cli
invalid
jmp dword [esi - 0x3a]
test edx, edi
cli
invalid
invalid
jns 0x41ac06
test ebx, edi
cli
invalid
call [ecx*4 - 0x5137b]
call dword [eax - 0x18]
jge 0x41ac43
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00419f84
invalid
invalid
inc dword [ebx - 0x7a76f33c]
invalid
cld
invalid
invalid
call fcn.00419fbf
test dword [esp + ecx*8 + 0x7a], ebp
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x41acb3
cmp dword [ebp - 0x398], 0
je 0x41ae7d
cmp dword [ebp + 0xc], 1
je 0x41ae7d
cmp dword [ebp + 0xc], 8
jne 0x41ae45
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
invalid
invalid

Function at 0x41b3a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
add ebx, esp
push eax
lea eax, [ebp - 0x394]
insb byte es:[edi], dx
cld
invalid
call dword [eax - 0x18]
jge 0x41b39c
invalid
inc dword [ebx - 0x5a7cf33c]
add cl, bh
invalid
inc dword [eax]
jmp 0x41b3cc
Function at 0x42b36f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445230]
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.00426153
mov dword [ebp - 0x14], eax
cmp dword [0x449154], edi
jne 0x42b460
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42b3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42b540
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42b540
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42b540
push eax
call ebx
push 0x436c3c
push esi
mov dword [0x449154], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x436c4c
push esi
mov dword [0x449158], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x44915c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x449164], eax
test eax, eax
je 0x42b45d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x449160], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42b485
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42b478
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42b49a
push 4
pop eax
jmp 0x42b542
cmp dword [ebp - 0x14], edi
je 0x42b49a
push dword [0x449154]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42b47f
mov eax, dword [0x449160]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42b4f8
cmp dword [0x449164], esi
je 0x42b4f8
push eax
call ebx
push dword [0x449164]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42b4f8
test eax, eax
je 0x42b4f8
call ecx
test eax, eax
je 0x42b4ed
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 0x42b4ed
test byte [ebp - 8], 1
jne 0x42b4f8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42b528
mov eax, dword [0x449158]
cmp eax, esi
je 0x42b525
push eax
call ebx
test eax, eax
je 0x42b525
call eax
mov edi, eax
test edi, edi
je 0x42b525
mov eax, dword [0x44915c]
cmp eax, esi
je 0x42b525
push eax
call ebx
test eax, eax
je 0x42b525
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x449154]
call ebx
test eax, eax
je 0x42b540
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42b542
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
leave
ret
Function at 0x403024
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4037f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x666024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40388c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40386c
xor eax, eax
push ebp
push 0x403865
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 0x4038a8
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 0x40386c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x666024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x666024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404374
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x66e044], 0
je 0x4043d5
cmp word [0x66e218], 0xd7b2
jne 0x40439d
cmp dword [0x66e220], 0
jbe 0x40439d
mov eax, 0x66e214
call dword [0x66e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x4043fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x666030], 0
jne 0x4043f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40452c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x666034], 0
je 0x404552
mov edx, esi
mov eax, ebx
call dword [0x666034]
jmp 0x404561
mov eax, 8
call fcn.00402be4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x66e045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044f4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x405784
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405807
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405807
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405890
xor eax, eax
push ebp
push 0x405889
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055c0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40586e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4059f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40586e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405890
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4059aa
cmp byte [ebp - 0xd], 0
jne 0x4058d7
cmp byte [ebp - 0x12], 0
je 0x4059aa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058f0
dec ebx
cmp byte [ebx], 0x2e
je 0x4058ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4058ef
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059aa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40593c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059aa
cmp byte [ebp - 0xd], 0
je 0x4059aa
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059aa
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407944
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4079d4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4079d4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407987
test edx, 3
jne 0x407976
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407981
jmp 0x407987
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407987
cmp dword [ecx - 8], 1
je 0x407991
mov edx, ebx
or edx, 3
call fcn.00404b34
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4079a3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004045a8

Function at 0x4079e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407a70
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407a70
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407a23
test edx, 3
jne 0x407a12
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407a1d
jmp 0x407a23
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407a23
cmp dword [ecx - 8], 1
je 0x407a2d
mov edx, ebx
or edx, 3
call fcn.00404b34
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407a3f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004045a8

Function at 0x40aa10
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 0x40aa49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404698
jmp 0x40aa52
mov eax, ebx
mov edx, esi
call fcn.004045fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa5c
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 0x40aa7e
movzx eax, byte [esp]
jmp 0x40aa80
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret