joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bad4
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xor esi, esi
push esi
push esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 0x80004005
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x100bb48
mov eax, dword [0x100d05c]
cmp eax, 0x100d05c
je 0x100bbec
test byte [eax + 0x1c], 4
je 0x100bbec
push 0x80004005
push 0x10039e4
push 0x1003934
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100535c
jmp 0x100bbec
push dword [ebp - 4]
call fcn.0100b551
mov dword [ebp + 0xc], eax
cmp eax, esi
jne 0x100bb89
mov eax, dword [0x100d05c]
cmp eax, 0x100d05c
je 0x100bb80
test byte [eax + 0x1c], 4
je 0x100bb80
push 0x10039d0
push 0x1003934
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005608
mov dword [ebp - 8], 0x8007000e
jmp 0x100bbdf
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100bbcc
mov eax, dword [0x100d05c]
cmp eax, 0x100d05c
je 0x100bbdf
test byte [eax + 0x1c], 4
je 0x100bbdf
push 0x80004005
push 0x10039e4
push 0x1003934
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100535c
jmp 0x100bbdf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], esi
mov dword [ecx], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x100bbec
push dword [ebp + 0xc]
call fcn.0100b569
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100bc46
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100d03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x228], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], ecx
cmp ebx, ecx
je 0x100bc87
mov dword [ebx], ecx
cmp dword [ebp + 0x24], ecx
jne 0x100bca4
push eax
push 0x109
lea eax, [ebp - 0x218]
push eax
call fcn.0100bbfb
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
push 0x20019
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100bcf9
mov ecx, dword [0x100d05c]
cmp ecx, 0x100d05c
je 0x100bdbe
test byte [ecx + 0x1c], 2
je 0x100bdbe
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1003a3c
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100535c
jmp 0x100bdbe
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x1003a3c
test eax, eax
je 0x100bd5a
mov ecx, dword [0x100d05c]
cmp ecx, 0x100d05c
je 0x100bd8b
test byte [ecx + 0x1c], 2
je 0x100bd8b
push eax
push esi
push dword [ebp - 0x230]
push edi
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100668b
jmp 0x100bd8b
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x224]
cmp ecx, dword [ebp + 0x1c]
je 0x100bd7b
cmp ecx, 3
jne 0x100bd8b
cmp dword [ebp + 0x1c], 4
jne 0x100bd8b
cmp eax, 4
jne 0x100bd8b
test ebx, ebx
je 0x100bd81
mov dword [ebx], eax
mov dword [ebp - 0x220], 1
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100bdbe
mov ecx, dword [0x100d05c]
cmp ecx, 0x100d05c
je 0x100bdbe
test byte [ecx + 0x1c], 4
je 0x100bdbe
push eax
push edi
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100530a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100480c
leave
ret 0x20
Function at 0x4050d0
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x4050e6
sub ecx, 2
jne 0x405108
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40510f
cmp edx, dword [ebx + 8]
je 0x405119
mov eax, 0x64
jmp 0x405114
mov eax, 0x67
jmp 0x405114
call sub.kernel32.dll_GetLastError
call fcn.004044b0
pop ebx
ret

Function at 0x405940
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x405973
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x40597a
cmp edx, dword [ebx + 8]
je 0x405984
mov eax, 0x65
jmp 0x40597f
mov eax, 5
jmp 0x40597f
call sub.kernel32.dll_GetLastError
call fcn.004044b0
mov eax, ebx
pop ebx
ret
Function at 0x406cac
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.0040716c
mov byte [esp], al
cmp byte [esp], 0
jne 0x406e35
test edi, edi
je 0x406e35
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406d75
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406d50
cmp edi, 0xffffffff
je 0x406d11
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406d11
mov byte [esp], 0
jmp 0x406e35
cmp dword [esi], 1
jg 0x406d50
cmp dword [esi], 0
jne 0x406d42
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406d42
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406e35
lea eax, [esp + 0xc]
call fcn.00406944
dec ebp
test ebp, ebp
jg 0x406cf6
cmp edi, 0xffffffff
je 0x406d75
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406d73
mov byte [esp], 0
jmp 0x406e35
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406cba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406d75
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406eb0
mov edx, eax
mov ebx, dword [0x4248f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406dd9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406dd7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406dd9
xor edi, edi
cmp byte [esp], 0
je 0x406dff
mov ebx, dword [esi]
test bl, 1
jne 0x406e15
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406ddf
mov byte [esp + 1], 1
jmp 0x406e15
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406dff
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406d8c
cmp byte [esp], 0
je 0x406e35
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 0x407b70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x424054], 0
je 0x407bd7
cmp word [0x424344], 0xd7b2
jne 0x407b99
cmp dword [0x42434c], 0
jbe 0x407b99
mov eax, 0x424340
call dword [0x42435c]
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, 0x407c04
call fcn.0040832c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42202a], 0
jne 0x407bf3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a9fc
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 0x40ab63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407df4
cmp si, word [0x422a20]
jb 0x40aa94
cmp si, word [0x422c20]
ja 0x40aa94
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40aa94
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x422a20]
jae 0x40aa6e
mov edi, ebx
dec edi
jmp 0x40aa8f
cmp si, word [ebx*8 + 0x422a20]
jbe 0x40aa7e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40aa8f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x422a24]
call fcn.0040a91c
jmp 0x40aa94
cmp edi, dword [ebp - 8]
jae 0x40aa58
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ab43
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ab43
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.0040845c
push dword [ebp - 0x160]
push 0x40ab80
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040845c
push dword [ebp - 0x164]
push 0x40ab90
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040845c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab6a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407e54
pop eax
jmp eax
Function at 0x40ad18
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 0x40ae1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x426c28]
jne 0x40ad64
mov eax, esi
mov edx, 0x426c2a
mov ecx, 0x55
call fcn.0040845c
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ae06
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407df4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40add3
cmp byte [0x426c0c], 0
je 0x40ad98
mov edx, esi
mov eax, ebx
call fcn.0040abfc
jmp 0x40add3
mov edx, esi
mov eax, ebx
call fcn.0040a9fc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40add3
cmp dword [esi], 0
je 0x40adbc
mov eax, esi
mov edx, 0x40ae38
call fcn.004085a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a9fc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004085a4
push 0x426c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x426c28], bx
mov eax, dword [esi]
call fcn.004083d0
mov ecx, eax
mov eax, 0x426c2a
mov edx, 0xaa
call fcn.0040a87c
push 0x426c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ae25
lea eax, [ebp - 4]
call fcn.00407df4
pop eax
jmp eax
Function at 0x40b060
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.00407ee8
xor eax, eax
push ebp
push 0x40b288
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b0a6
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40b0c0
mov eax, dword [ebp - 4]
call fcn.004083d0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040a87c
cmp word [ebp - 0x21e], 0
je 0x40b26b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40b298
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b18f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40b298
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b18f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40b2d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b18f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40b2d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b18f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40b308
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b18f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40b33c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b26b
xor eax, eax
push ebp
push 0x40b264
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040ae60
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 0x40b1f2
mov eax, dword [ebp - 0x14]
call fcn.00404338
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.00408420
jmp 0x40b23d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40b37c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b23d
mov eax, dword [ebp - 0x14]
call fcn.00404338
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40b37c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00408420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b26b
cmp dword [ebp - 0xc], 0
je 0x40b258
mov eax, dword [ebp - 0xc]
call fcn.00404354
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 0x40b28f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407e54
pop eax
jmp eax
Function at 0x40b598
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.00407ee8
xor eax, eax
push ebp
push 0x40b65a
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.0040845c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004085fc
mov eax, dword [ebx]
call fcn.0040b444
test al, al
jne 0x40b635
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040845c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004085fc
mov eax, dword [ebx]
call fcn.0040b444
test al, al
jne 0x40b635
mov eax, ebx
call fcn.00407df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b661
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407e54
lea eax, [ebp - 4]
call fcn.00407df4
pop eax
jmp eax

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

Disassembly:
cmp eax, edx
je 0x417325
test eax, edx
je 0x417328
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4172e3
movzx eax, word [eax]
sub eax, ecx
jmp 0x41730a
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x41730b
add ecx, 4
js 0x4172fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x417308
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41730a
xor eax, eax
ret
test eax, eax
je 0x417334
test edx, edx
jne 0x4172d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4195dc
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 0x419615
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407f5c
jmp 0x41961e
mov eax, ebx
mov edx, esi
call fcn.004080d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419628
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41964c
movzx eax, word [esp]
jmp 0x41964e
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41b344
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 0x41b46b
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041b14c
mov esi, eax
mov eax, dword [0x4236d0]
cmp byte [eax], 0
je 0x41b411
mov eax, dword [0x4235d4]
call fcn.00404f20
call fcn.00404490
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 [0x41b314]
call fcn.0040a190
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 0x41b484
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41b44d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4235ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x427634]
call fcn.0040a520
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 0x41b472
lea eax, [ebp - 4]
mov edx, dword [0x41b314]
call fcn.0040a2b4
pop eax
jmp eax

Function at 0x41d2b0
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.004081d0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d08c
mov edi, eax
cmp edi, 0x104
jbe 0x41d25b
mov eax, edi
add eax, eax
call fcn.00404338
mov esi, eax
jmp 0x41d25d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d08c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41d296
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 0x41d280
mov eax, esp
cmp esi, eax
je 0x41d2a3
mov eax, esi
call fcn.00404354
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 0x41d2dc
cmp bl, 0
je 0x41d2d8
cmp bl, 0x41
jl 0x41d2d3
cmp bl, 0x5a
jg 0x41d2d3
or bl, 0x20
xor al, bl
inc esi
jmp 0x41d2b7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41d21c

Function at 0x41d64c
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.0040845c
add esp, 0x800
pop ebx
ret
Function at 0x41de5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41de7a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x41de92
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41de8d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x41de97
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x41df05
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x41df4e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41dec3
inc dword [ebp - 0xc]
jmp 0x41dedb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x41dedb
cmp dword [ebp - 0xc], 0
jle 0x41dedb
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x41defd
xor eax, eax
jmp 0x41def9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41def8
mov eax, esi
jmp 0x41df51
inc eax
cmp eax, ecx
jle 0x41dee5
inc esi
cmp esi, dword [ebp - 8]
jl 0x41deaf
jmp 0x41df4e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x41df4e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41df26
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41df48
xor eax, eax
jmp 0x41df44
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41df43
mov eax, esi
jmp 0x41df51
inc eax
cmp eax, ecx
jle 0x41df30
inc esi
cmp esi, dword [ebp - 8]
jl 0x41df0e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10