joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40485c
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.00408070
test esi, esi
jne 0x404892
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.004081c8
jmp 0x4048b0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047a0
mov edi, eax
test esi, esi
je 0x4048b0
cmp dword [ebx], 0
je 0x4048b0
dec esi
jmp 0x404899
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406f88
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.00407414
mov byte [esp], al
cmp byte [esp], 0
jne 0x407111
test edi, edi
je 0x407111
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407051
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40702c
cmp edi, 0xffffffff
je 0x406fed
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406fed
mov byte [esp], 0
jmp 0x407111
cmp dword [esi], 1
jg 0x40702c
cmp dword [esi], 0
jne 0x40701e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40701e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407111
lea eax, [esp + 0xc]
call fcn.00406c44
dec ebp
test ebp, ebp
jg 0x406fd2
cmp edi, 0xffffffff
je 0x407051
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40704f
mov byte [esp], 0
jmp 0x407111
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406f96
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407051
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407180
mov edx, eax
mov ebx, dword [0x4218f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4070b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4070b3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4070b5
xor edi, edi
cmp byte [esp], 0
je 0x4070db
mov ebx, dword [esi]
test bl, 1
jne 0x4070f1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4070bb
mov byte [esp + 1], 1
jmp 0x4070f1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4070db
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407068
cmp byte [esp], 0
je 0x407111
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 0x407dec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421054], 0
je 0x407e53
cmp word [0x421340], 0xd7b2
jne 0x407e15
cmp dword [0x421348], 0
jbe 0x407e15
mov eax, 0x42133c
call dword [0x421358]
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, 0x407e80
call fcn.0040864c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41f022], 0
jne 0x407e6f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a154
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 0x40a2b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408070
cmp si, word [0x41f9e8]
jb 0x40a1ec
cmp si, word [0x41fbe8]
ja 0x40a1ec
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a1ec
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41f9e8]
jae 0x40a1c6
mov edi, ebx
dec edi
jmp 0x40a1e7
cmp si, word [ebx*8 + 0x41f9e8]
jbe 0x40a1d6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a1e7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41f9ec]
call fcn.0040a074
jmp 0x40a1ec
cmp edi, dword [ebp - 8]
jae 0x40a1b0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a29b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a29b
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.004087e4
push dword [ebp - 0x160]
push 0x40a2d4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004087e4
push dword [ebp - 0x164]
push 0x40a2e4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004087e4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2c0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004080d0
ret
Function at 0x40a46c
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 0x40a570
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x423c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x423c24]
jne 0x40a4b8
mov eax, esi
mov edx, 0x423c26
mov ecx, 0x55
call fcn.004087e4
push 0x423c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a55a
push 0x423c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408070
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a527
cmp byte [0x423c08], 0
je 0x40a4ec
mov edx, esi
mov eax, ebx
call fcn.0040a350
jmp 0x40a527
mov edx, esi
mov eax, ebx
call fcn.0040a154
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a527
cmp dword [esi], 0
je 0x40a510
mov eax, esi
mov edx, 0x40a588
call fcn.00408928
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a154
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408928
push 0x423c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x423c24], bx
mov eax, dword [esi]
call fcn.00408750
mov ecx, eax
mov eax, 0x423c26
mov edx, 0xaa
call fcn.00409fd4
push 0x423c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a577
lea eax, [ebp - 4]
call fcn.00408070
ret
Function at 0x40a7a0
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.00408154
xor eax, eax
push ebp
push 0x40a9c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a7e0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a7fa
mov eax, dword [ebp - 4]
call fcn.00408750
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409fd4
cmp word [ebp - 0x21a], 0
je 0x40a9af
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a9d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a9d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a8c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aa78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a9af
xor eax, eax
push ebp
push 0x40a9a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a5b0
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 0x40a938
mov eax, dword [ebp - 0x10]
call fcn.004044fc
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.004087a8
jmp 0x40a983
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40aab8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a983
mov eax, dword [ebp - 0x10]
call fcn.004044fc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40aab8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004087a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9af
cmp dword [ebp - 8], 0
je 0x40a99e
mov eax, dword [ebp - 8]
call fcn.00404518
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 0x40a9cc
lea eax, [ebp - 4]
call fcn.00408070
ret
Function at 0x40acb4
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.00408154
xor eax, eax
push ebp
push 0x40ad74
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.004087e4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408980
mov eax, dword [ebx]
call fcn.0040ab7c
test al, al
jne 0x40ad51
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004087e4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408980
mov eax, dword [ebx]
call fcn.0040ab7c
test al, al
jne 0x40ad51
mov eax, ebx
call fcn.00408070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad7b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004080d0
lea eax, [ebp - 4]
call fcn.00408070
ret

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

Disassembly:
cmp eax, edx
je 0x4155f5
test eax, edx
je 0x4155f8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4155b3
movzx eax, word [eax]
sub eax, ecx
jmp 0x4155da
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 0x4155db
add ecx, 4
js 0x4155cb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4155d8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4155da
xor eax, eax
ret
test eax, eax
je 0x415604
test edx, edx
jne 0x4155a4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x417900
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
test eax, eax
jle 0x417939
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004081c8
jmp 0x417942
mov eax, ebx
mov edx, esi
call fcn.00408344
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41794c
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
test eax, eax
jle 0x41796e
movzx eax, word [esp]
jmp 0x417970
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x418c6c
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 0x418d91
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418a74
mov esi, eax
mov eax, dword [0x420688]
cmp byte [eax], 0
je 0x418d39
mov eax, dword [0x4205a0]
call fcn.00404f30
call fcn.00404650
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x418c3c]
call fcn.00409a8c
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x418dac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x418d75
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x420578]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42462c]
call fcn.00409c78
push eax
call sub.user32.dll_LoadStringW
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 0x418d98
lea eax, [ebp - 4]
mov edx, dword [0x418c3c]
call fcn.00409bb0
ret
Function at 0x419e24
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419f24
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040838c
lea eax, [ebp - 4]
call fcn.0040852c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408750
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x419f0e
mov eax, ebx
call fcn.004044fc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x419f07
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408750
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x419ef1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x419f38
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x419ef1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419f0e
mov eax, dword [ebp - 0x10]
call fcn.00404518
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419f2b
lea eax, [ebp - 4]
call fcn.00408070
ret

Function at 0x41aa1c
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.0040846c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c7c4
mov edi, eax
cmp edi, 0x104
jbe 0x41a9c7
mov eax, edi
add eax, eax
call fcn.004044fc
mov esi, eax
jmp 0x41a9c9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c7c4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41aa02
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 0x41a9ec
mov eax, esp
cmp esi, eax
je 0x41aa0f
mov eax, esi
call fcn.00404518
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 0x41aa48
cmp bl, 0
je 0x41aa44
cmp bl, 0x41
jl 0x41aa3f
cmp bl, 0x5a
jg 0x41aa3f
or bl, 0x20
xor al, bl
inc esi
jmp 0x41aa23
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41a988

Function at 0x41ac6c
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
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004087e4
add esp, 0x800
pop ebx
ret
Function at 0x1003ffff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x10
push ebx
push esi
push edi
mov ebx, eax
mov esi, ecx
jb 0x10040089
mov ecx, dword [ebp + 0xc]
shr ecx, 4
lea eax, [esi + 0x44]
mov dword [ebp - 4], ecx
call fcn.1003fcf4
movzx edx, word [esi + 0x5a]
mov ecx, dword [esi + 0x50]
shl ecx, 0x10
xor edx, ecx
xor edx, dword [eax]
mov ecx, dword [ebp + 8]
xor edx, dword [ebx]
sub dword [ebp + 0xc], 0x10
mov dword [ecx], edx
movzx edx, word [esi + 0x62]
mov edi, dword [esi + 0x58]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx + 4]
add ecx, 0x10
xor edx, dword [esi + 0x4c]
add ebx, 0x10
mov dword [ecx - 0xc], edx
movzx edx, word [esi + 0x4a]
mov edi, dword [esi + 0x60]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx - 8]
mov dword [ebp + 8], ecx
xor edx, dword [esi + 0x54]
mov dword [ecx - 8], edx
movzx edx, word [esi + 0x52]
mov edi, dword [esi + 0x48]
shl edi, 0x10
xor edx, edi
xor edx, dword [ebx - 4]
xor edx, dword [esi + 0x5c]
dec dword [ebp - 4]
mov dword [ecx - 4], edx
jne 0x1004001e
cmp dword [ebp + 0xc], 0
je 0x10040108
lea eax, [esi + 0x44]
call fcn.1003fcf4
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x50]
mov edi, ecx
mov eax, edx
shl eax, 0x10
shr edi, 0x10
xor eax, edi
xor eax, dword [esi + 0x44]
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x14], eax
shl ecx, 0x10
mov eax, edi
shr eax, 0x10
xor eax, ecx
xor eax, dword [esi + 0x4c]
shl edi, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x48]
mov ecx, eax
shr ecx, 0x10
xor ecx, edi
xor ecx, dword [esi + 0x54]
shl eax, 0x10
shr edx, 0x10
xor eax, edx
xor eax, dword [esi + 0x5c]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
jbe 0x10040108
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ebx
sub esi, eax
sub edi, eax
lea eax, [ebp + ecx - 0x14]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov byte [edi + eax], dl
jb 0x100400f6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10043676
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005bee0]
jne 0x10043680
repz ret
jmp fcn.100438be
Function at 0x402a38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040dc
test esi, esi
jne 0x402a6e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041cc
jmp 0x402a8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040294c
mov edi, eax
test esi, esi
je 0x402a8c
cmp dword [ebx], 0
je 0x402a8c
dec esi
jmp 0x402a75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403180
Capabilities:
Query or enumerate registry value

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

Function at 0x403edc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47b048], 0
je 0x403f3d
cmp word [0x47b21c], 0xd7b2
jne 0x403f05
cmp dword [0x47b224], 0
jbe 0x403f05
mov eax, 0x47b218
call dword [0x47b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47906c
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 0x403f64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479030], 0
jne 0x403f59
push 0
push 0x479064
push 0x47906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402710
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47b049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404058
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc