joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407cd0
Capabilities:
Create pipe
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, eax
mov dword [edi], 0
test ebx, ebx
je 0x407d0d
cmp dword [ebx], 0
jne 0x407d0d
test esi, esi
je 0x407d0d
cmp dword [esi], 0
jne 0x407d0d
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x407d43
mov eax, dword [esi]
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x48
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x407d6e
push eax
push str.create_logging_thread__
push str.logger
push 0xc00003eb
push 1
call fcn.00402230
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push 0xc0000431
push 1
call fcn.00402230
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
mov edx, dword [ebx]
push edi
push 0
mov dword [esi + 0x14], edx
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push esi
mov dword [esi + 0x18], ecx
mov cl, byte [esp + 0x44]
push 0x407850
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
mov byte [esi + 0x30], cl
mov cl, byte [esp + 0x4c]
push 0
push 0
mov dword [esi + 0x28], edi
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], edx
mov dword [esi + 0x44], eax
mov byte [esi + 0x40], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x407e21
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
add esp, 4
push eax
push 0xc0000424
push 1
call fcn.00402230
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
ret

Function at 0x408710
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
mov eax, dword [0x428930]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x30]
push ecx
mov byte [0x459661], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40877f
mov edx, dword [esp + 4]
push 0x459661
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [esp + 4]
push eax
call dword [0x42103f]
mov ecx, dword [esp + 0x10]
pop ebx
xor ecx, esp
call fcn.00414adc
add esp, 0x10
ret
Function at 0x41f79a
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.0041817b
and dword [ebp - 4], 0
cmp dword [0x45a104], 0
mov ebx, eax
jne 0x41f84b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f8fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f8fc
push eax
call fcn.00418109
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45a104], eax
call esi
push eax
call fcn.00418109
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45a108], eax
call esi
push eax
call fcn.00418109
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45a10c], eax
call esi
push eax
call fcn.00418109
pop ecx
mov dword [0x45a114], eax
test eax, eax
je 0x41f84b
push 0x424c8c
push edi
call esi
push eax
call fcn.00418109
pop ecx
mov dword [0x45a110], eax
mov eax, dword [0x45a110]
cmp eax, ebx
je 0x41f8a3
cmp dword [0x45a114], ebx
je 0x41f8a3
push eax
call fcn.00418184
push dword [0x45a114]
mov esi, eax
call fcn.00418184
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f8a3
test edi, edi
je 0x41f8a3
call esi
test eax, eax
je 0x41f89a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f89a
test byte [ebp - 0xc], 1
jne 0x41f8a3
or dword [ebp + 0x10], 0x200000
jmp 0x41f8dc
mov eax, dword [0x45a108]
cmp eax, ebx
je 0x41f8dc
push eax
call fcn.00418184
pop ecx
test eax, eax
je 0x41f8dc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f8dc
mov eax, dword [0x45a10c]
cmp eax, ebx
je 0x41f8dc
push eax
call fcn.00418184
pop ecx
test eax, eax
je 0x41f8dc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a104]
call fcn.00418184
pop ecx
test eax, eax
je 0x41f8fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f8fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405dcc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040607c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405f58
test edi, edi
je 0x405f58
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405e8f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405e6a
cmp edi, 0xffffffff
je 0x405e2b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e2b
mov byte [esp], 0
jmp 0x405f58
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405e6a
test ebx, ebx
jne 0x405e60
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026e0
test eax, eax
jne 0x405e60
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405f58
call 0x4060c0
dec ebp
test ebp, ebp
jg 0x405e10
cmp edi, 0xffffffff
je 0x405e8f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e8d
mov byte [esp], 0
jmp 0x405f58
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405dda
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026e0
cmp ebx, eax
jne 0x405e8f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405fc8
mov edx, eax
mov ebx, dword [0x4508f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ef6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ef4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ef6
xor edi, edi
cmp byte [esp], 0
je 0x405f1f
mov ebx, dword [esi]
test bl, 1
jne 0x405f38
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026e0
cmp ebx, eax
jne 0x405efc
mov byte [esp + 1], 1
jmp 0x405f38
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026e0
cmp ebx, eax
jne 0x405f1f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405ea9
cmp byte [esp], 0
je 0x405f58
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406ac0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450058], 0
je 0x406b27
cmp word [0x450344], 0xd7b2
jne 0x406ae9
cmp dword [0x45034c], 0
jbe 0x406ae9
mov eax, 0x450340
call dword [0x45035c]
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, 0x406b54
call fcn.004074ac
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44d02e], 0
jne 0x406b43
push 0
push 0x44d9ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408d00
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 0x408e65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406d58
cmp si, word [0x44d9f8]
jb 0x408d98
cmp si, word [0x44dbf8]
ja 0x408d98
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408d98
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x44d9f8]
jae 0x408d72
mov edi, ebx
dec edi
jmp 0x408d93
cmp si, word [ebx*8 + 0x44d9f8]
jbe 0x408d82
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408d93
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x44d9fc]
call fcn.00408c10
jmp 0x408d98
cmp edi, dword [ebp - 8]
jae 0x408d5c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408e47
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e47
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.00407820
push dword [ebp - 0x160]
push 0x408e80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407820
push dword [ebp - 0x164]
push 0x408e90
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407820
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e6c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406db8
ret
Function at 0x409018
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 0x40911b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x452b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x452ba0]
jne 0x409064
mov eax, esi
mov edx, 0x452ba2
mov ecx, 0x55
call fcn.00407820
push 0x452b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409105
push 0x452b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406d58
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090d3
cmp byte [0x452b84], 0
je 0x409098
mov edx, esi
mov eax, ebx
call fcn.00408efc
jmp 0x4090d3
mov edx, esi
mov eax, ebx
call fcn.00408d00
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4090d3
cmp dword [esi], 0
je 0x4090bc
mov eax, esi
mov edx, 0x409134
call fcn.00407978
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408d00
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407978
push 0x452b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x452ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040778c
push eax
push 0x452ba2
call sub.kernel32.dll_lstrcpynW
push 0x452b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409122
lea eax, [ebp - 4]
call fcn.00406d58
ret
Function at 0x409350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406e3c
xor eax, eax
push ebp
push 0x409575
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409390
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4093aa
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040778c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40955f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409584
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409479
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409584
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409479
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409479
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409479
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409479
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409628
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40955f
xor eax, eax
push ebp
push 0x409558
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040915c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4094e8
mov eax, dword [ebp - 0x10]
call fcn.00404484
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004077e4
jmp 0x409533
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409668
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409533
mov eax, dword [ebp - 0x10]
call fcn.00404484
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409668
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004077e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40955f
cmp dword [ebp - 8], 0
je 0x40954e
mov eax, dword [ebp - 8]
call fcn.004044a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40957c
lea eax, [ebp - 4]
call fcn.00406d58
ret
Function at 0x409858
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.00406e3c
xor eax, eax
push ebp
push 0x409918
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.00407820
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004079d0
mov eax, dword [ebx]
call fcn.00409720
test al, al
jne 0x4098f5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407820
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004079d0
mov eax, dword [ebx]
call fcn.00409720
test al, al
jne 0x4098f5
mov eax, ebx
call fcn.00406d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40991f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406db8
lea eax, [ebp - 4]
call fcn.00406d58
ret

Function at 0x40a2ac
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 0x418678
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4186d1
test eax, edx
je 0x4186d4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41868f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4186b6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4186b7
add ecx, 4
js 0x4186a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4186b4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4186b6
xor eax, eax
ret
test eax, eax
je 0x4186e0
test edx, edx
jne 0x418680
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x418bf4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x418c0c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x418c14
mov al, 1
jmp 0x418c31
movzx esi, word [ebp]
mov eax, esi
call fcn.0040b2a4
test al, al
jne 0x418c2d
cmp si, 0x5f
je 0x418c2d
xor eax, eax
jmp 0x418c2f
mov al, 1
xor al, 1
test al, al
jne 0x418cc1
test bl, bl
je 0x418c81
mov eax, ebp
test eax, eax
je 0x418c48
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x418cbd
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040b330
test al, al
jne 0x418c75
cmp di, 0x5f
je 0x418c75
cmp di, 0x2e
je 0x418c75
xor eax, eax
jmp 0x418c77
mov al, 1
test al, al
je 0x418cc1
inc esi
dec ebx
jne 0x418c55
jmp 0x418cbd
mov eax, ebp
test eax, eax
je 0x418c8c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x418cbd
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040b330
test al, al
jne 0x418cb3
cmp di, 0x5f
je 0x418cb3
xor eax, eax
jmp 0x418cb5
mov al, 1
test al, al
je 0x418cc1
inc esi
dec ebx
jne 0x418c99
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d2b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41d2f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406eb0
jmp 0x41d2fa
mov eax, ebx
mov edx, esi
call fcn.00407108
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d304
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41d326
movzx eax, word [esp]
jmp 0x41d328
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41dffc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41e121
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041de04
mov esi, eax
mov eax, dword [0x44fba0]
cmp byte [eax], 0
je 0x41e0c9
mov eax, dword [0x44fa24]
call fcn.00404b68
call fcn.004045d8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41dfcc]
call fcn.00408780
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41e13c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41e105
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x44f9ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x452c50]
call fcn.00408844
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e128
lea eax, [ebp - 4]
mov edx, dword [0x41dfcc]
call fcn.0040878c
ret

Function at 0x41f998
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407230
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a28c
mov edi, eax
cmp edi, 0x104
jbe 0x41f93f
mov eax, edi
add eax, eax
call fcn.00404484
mov esi, eax
jmp 0x41f941
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a28c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41f97c
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41f966
mov eax, esp
cmp esi, eax
je 0x41f989
mov eax, esi
call fcn.004044a0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41f9c4
cmp bl, 0
je 0x41f9c0
cmp bl, 0x41
jl 0x41f9bb
cmp bl, 0x5a
jg 0x41f9bb
or bl, 0x20
xor al, bl
inc esi
jmp 0x41f99f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41f900

Function at 0x4201ac
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407820
add esp, 0x800
pop ebx
ret