joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425238
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x250
mov eax, dword [0x47a1c0]
xor eax, esp
mov dword [esp + 0x24c], eax
and dword [esp + 4], 0
lea eax, [esp + 4]
and dword [esp + 8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x25c]
push esi
push edi
push eax
call fcn.0040163c
mov esi, dword [esp + 0x270]
xor ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
push str.JAHNsiu
push 0x47bda0
call fcn.004013cb
push eax
call fcn.00401eb7
mov eax, ebx
mov byte [esp + ebx + 0x68], bl
cdq
add esp, 0xc
idiv dword [esp + 0x270]
mov al, byte [edx + esi]
mov byte [esp + ebx + 0x15c], al
inc ebx
cmp ebx, 0x100
jl 0x425279
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x5c]
movzx eax, byte [esp + esi + 0x15c]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4252d9
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x5c]
mov byte [esp + esi + 0x5c], al
inc esi
mov byte [esp + edi + 0x5c], dl
cmp esi, 0x100
jl 0x4252b6
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x268], ebx
jle 0x42542f
inc ebx
and ebx, 0x800000ff
jns 0x425316
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x5c]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x42532f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x5c]
mov byte [esp + ebx + 0x5c], al
mov byte [esp + edi + 0x5c], cl
lea ecx, [esp + 0x5c]
movzx eax, byte [esp + ebx + 0x5c]
add eax, edx
mov dword [esp + 0x1c], edi
movzx eax, al
xor edi, edi
add eax, ecx
mov dword [esp + 0x38], edi
push eax
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.00401858
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], edi
push eax
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00401920
push 0x426554
lea ecx, [esp + 0x48]
call fcn.0040217e
cmp dword [esp + 0x58], 0xf
lea eax, [esp + 0x44]
cmova eax, dword [esp + 0x44]
push eax
call fcn.0040d44e
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp], str.Asucjhudaujsa
call fcn.00404d14
pop ecx
push 0xa
pop edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
call fcn.0040182c
sub edi, 1
jne 0x4253c5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ecx*8 + 4]
mov eax, dword [esp + 0x38]
mov al, byte [ecx + eax]
lea ecx, [esp + 0x20]
xor byte [edx + ebp], al
call fcn.0040433b
lea ecx, [esp + 0x44]
call fcn.00404387
lea ecx, [esp + 0x2c]
call fcn.0040433b
lea ecx, [esp + 0x38]
call fcn.00404318
mov edi, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x268]
jl 0x425305
lea eax, [esp + 0x14]
push eax
mov ecx, eax
call fcn.00401aa6
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408107
add esp, 0x250
ret
Function at 0x42554f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
sub eax, dword [esp + 0x10]
sar eax, 2
push edi
mov edi, dword [esp + 0x20]
test eax, eax
je 0x425627
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x425625
push ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x47bda0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x426548
mov byte [edi + esi], al
call fcn.0040d44e
add esp, 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.00401920
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
xor byte [edi + esi], al
mov eax, dword [esp + 0x18]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00401800
inc esi
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jb 0x42558c
pop ebp
pop esi
pop ebx
lea ecx, [esp + 0x14]
call fcn.0040433b
pop edi
add esp, 0xc
ret 0x14

Function at 0x425637
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x425653
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x404640
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407060
test esi, esi
jne 0x404678
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.0040719c
jmp 0x404696
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404524
mov edi, eax
test esi, esi
je 0x404696
cmp dword [ebx], 0
je 0x404696
dec esi
jmp 0x40467f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406058
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a9054], 0
je 0x4060b9
cmp word [0x4a9330], 0xd7b2
jne 0x406081
cmp dword [0x4a9338], 0
jbe 0x406081
mov eax, 0x4a932c
call dword [0x4a9348]
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
push 0x4060e4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4a6030], 0
jne 0x4060d5
push 0
push 0x4a6794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406244
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 [0x4a6034], 0
je 0x40626a
mov edx, esi
mov eax, ebx
call dword [0x4a6034]
jmp 0x406279
mov eax, 8
call fcn.0040426c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4a9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40620c
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 0x408f5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4090c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407060
cmp si, word [0x4a67dc]
jb 0x408ff6
cmp si, word [0x4a69dc]
ja 0x408ff6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408ff6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4a67dc]
jae 0x408fd0
mov edi, ebx
dec edi
jmp 0x408ff1
cmp si, word [ebx*8 + 0x4a67dc]
jbe 0x408fe0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408ff1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4a67e0]
call fcn.00408e6c
jmp 0x408ff6
cmp edi, dword [ebp - 0xc]
jae 0x408fba
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4090a5
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4090a5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407260
push dword [ebp - 0x164]
push 0x4090e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407260
push dword [ebp - 0x168]
push 0x4090f0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407260
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040760c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090ca
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407058
ret
Function at 0x40927c
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 0x409381
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4abb5c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x4abb74]
jne 0x4092c8
mov eax, esi
mov edx, 0x4abb78
mov ecx, 0x55
call fcn.00407260
push 0x4abb5c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40936b
push 0x4abb5c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407060
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409339
cmp byte [0x4abb58], 0
je 0x4092fe
mov edx, esi
mov eax, ebx
call fcn.0040915c
jmp 0x409339
mov edx, esi
mov eax, ebx
call fcn.00408f5c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage_1
cmp bx, ax
je 0x409339
cmp dword [esi], 0
je 0x409322
mov eax, esi
mov edx, 0x40939c
call fcn.00407468
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage_1
lea edx, [ebp - 4]
call fcn.00408f5c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407468
push 0x4abb5c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x4abb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004070ec
push eax
push 0x4abb78
call sub.KERNEL32.DLL_lstrcpynW
push 0x4abb5c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409388
lea eax, [ebp - 4]
call fcn.00407050
ret
Function at 0x4095c0
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.00407048
xor eax, eax
push ebp
push 0x4097a5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409600
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40961a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004070ec
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40978f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4096a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40981c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x40978f
xor eax, eax
push ebp
push 0x409788
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004093c4
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_1
test eax, eax
jne 0x409718
mov eax, dword [ebp - 0x10]
call fcn.0040426c
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_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040720c
jmp 0x409763
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40985c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x409763
mov eax, dword [ebp - 0x10]
call fcn.0040426c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40985c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040720c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40978f
cmp dword [ebp - 8], 0
je 0x40977e
mov eax, dword [ebp - 8]
call fcn.00404288
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097ac
lea eax, [ebp - 4]
call fcn.00407050
ret
Function at 0x409a70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00407048
mov eax, dword [ebp - 0x21c]
call fcn.00407048
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409c0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407060
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004070ec
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409b10
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409b22
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409b0d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409bdb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409b4b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004095c0
cmp dword [ebp - 0x220], 0
je 0x409b83
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409964
pop ecx
mov ebx, eax
jmp 0x409bdb
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage_1
lea edx, [ebp - 0x224]
call fcn.0040927c
mov eax, dword [ebp - 0x224]
call fcn.00409964
pop ecx
mov ebx, eax
test bl, bl
jne 0x409bce
cmp byte [0x4abb58], 0
jne 0x409bce
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage_1
lea edx, [ebp - 0x228]
call fcn.0040927c
mov eax, dword [ebp - 0x228]
call fcn.00409964
pop ecx
mov ebx, eax
test bl, bl
jne 0x409bdb
push ebp
call fcn.00409a14
pop ecx
mov ebx, eax
test bl, bl
je 0x409bf1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c16
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407058
ret

Function at 0x40b8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4abc50
push 0xa
push 0x40b984
mov eax, dword [0x4abc40]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40b914
call fcn.00418308
push ebx
mov eax, dword [0x4abc40]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40b92b
call fcn.00418308
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40b93d
call fcn.00418308
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4abc54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4abc58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4abc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4abc60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4abc64], ecx
add edx, dword [eax + 0x14]
mov dword [0x4abc68], edx
pop esi
pop ebx
ret
Function at 0x4107e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410891
test eax, edx
je 0x410894
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410811
push edx
mov edx, eax
mov eax, esp
call fcn.0040727c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410827
push eax
lea eax, [esp + 8]
call fcn.0040727c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410836
movzx eax, word [eax]
sub eax, ecx
jmp 0x41085d
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 0x410877
add ecx, 4
js 0x41084e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410874
push eax
mov eax, ecx
mov edx, 2
call fcn.004062e4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41085b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41085d
xor eax, eax
ret
test eax, eax
je 0x4108a4
test edx, edx
jne 0x4107f8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411c2e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x411c4f
cmp ebx, 3
je 0x411c4f
cmp ebx, 0x7b
je 0x411c4f
mov eax, esi
call fcn.00411bd0
test al, al
jne 0x411c53
xor eax, eax
jmp 0x411c55
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411c71
test al, 0x10
jne 0x411c75
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x411d08
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
pop ebx
ret

Function at 0x411d1c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004070ec
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x411d3e
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x415774
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 0x4157ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040719c
jmp 0x4157b6
mov eax, ebx
mov edx, esi
call fcn.00407060
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4157c0
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 0x4157e2
movzx eax, word [esp]
jmp 0x4157e4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415f74
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 0x416099
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415d84
mov esi, eax
mov eax, dword [0x4a88c0]
cmp byte [eax], 0
je 0x416041
mov eax, dword [0x4a86f0]
call fcn.004047bc
call fcn.004043d4
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 [0x415f4c]
call fcn.00408988
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 0x4160b4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x41607d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4a86b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4abc40]
call fcn.00408a4c
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 0x4160a0
lea eax, [ebp - 4]
mov edx, dword [0x415f4c]
call fcn.00408994
ret

Function at 0x4181b0
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.00406638
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41815a
mov eax, edi
add eax, eax
call fcn.0040426c
mov esi, eax
jmp 0x41815c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418195
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 0x41817f
mov eax, esp
cmp esi, eax
je 0x4181a2
mov eax, esi
call fcn.00404288
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 0x4181dc
cmp bl, 0
je 0x4181d8
cmp bl, 0x41
jl 0x4181d3
cmp bl, 0x5a
jg 0x4181d3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4181b7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41811c