joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e04
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405849
and dword [ebp - 0x14], 0
cmp dword [0x4123d4], 0
mov dword [ebp - 0x18], eax
jne 0x409eb7
push 0x40e1c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409f5f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e1bc
push ebx
call edi
test eax, eax
je 0x409f5f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40e1ac
push ebx
mov dword [0x4123d4], eax
call edi
push eax
call esi
push 0x40e198
push ebx
mov dword [0x4123d8], eax
call edi
push eax
call esi
push 0x40e17c
push ebx
mov dword [0x4123dc], eax
call edi
push eax
call esi
mov dword [0x4123e4], eax
test eax, eax
je 0x409eb7
push 0x40e164
push ebx
call edi
push eax
call esi
mov dword [0x4123e0], eax
mov eax, dword [0x4123e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409f10
cmp dword [0x4123e4], ecx
je 0x409f10
push eax
call esi
push dword [0x4123e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409f10
test ebx, ebx
je 0x409f10
call edi
test eax, eax
je 0x409f07
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409f07
test byte [ebp - 8], 1
jne 0x409f10
or dword [ebp + 0x10], 0x200000
jmp 0x409f43
mov eax, dword [0x4123d8]
cmp eax, dword [ebp - 0x18]
je 0x409f43
push eax
call esi
test eax, eax
je 0x409f43
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409f43
mov eax, dword [0x4123dc]
cmp eax, dword [ebp - 0x18]
je 0x409f43
push eax
call esi
test eax, eax
je 0x409f43
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4123d4]
call esi
test eax, eax
je 0x409f5f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409f61
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
leave
ret
Function at 0x4096c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edi, eax
mov dword [ebp - 8], esi
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
inc dword [0x40e440]
test ebx, ebx
jne 0x409737
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
test edi, edi
jne 0x40978c
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov ecx, 0x400
lea eax, [ebp - 0x418]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.cygwin1.dll_strerror_r
test eax, eax
mov esi, eax
je 0x409777
call sub.cygwin1.dll___getreent
mov dword [esp + 8], esi
mov edx, str.:__s
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4096fe
mov dword [esp], ebx
call sub.cygwin1.dll_strerror
test eax, eax
mov esi, eax
jne 0x409758
mov esi, str.Unknown_system_error
jmp 0x409758
mov dword [esp], edi
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404884
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.00406d94
test esi, esi
jne 0x4048bc
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.00406ed0
jmp 0x4048da
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047c8
mov edi, eax
test esi, esi
je 0x4048da
cmp dword [ebx], 0
je 0x4048da
dec esi
jmp 0x4048c3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52a054], 0
je 0x4061c1
cmp word [0x52a330], 0xd7b2
jne 0x406189
cmp dword [0x52a338], 0
jbe 0x406189
mov eax, 0x52a32c
call dword [0x52a348]
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 0x4061ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x526030], 0
jne 0x4061dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40634c
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 [0x526034], 0
je 0x406372
mov edx, esi
mov eax, ebx
call dword [0x526034]
jmp 0x406381
mov eax, 8
call fcn.00404510
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x52a055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406314
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 0x408c34
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 0x408d9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d94
cmp si, word [0x5267d0]
jb 0x408cce
cmp si, word [0x5269d0]
ja 0x408cce
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408cce
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5267d0]
jae 0x408ca8
mov edi, ebx
dec edi
jmp 0x408cc9
cmp si, word [ebx*8 + 0x5267d0]
jbe 0x408cb8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408cc9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5267d4]
call fcn.00408b44
jmp 0x408cce
cmp edi, dword [ebp - 0xc]
jae 0x408c92
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408d7d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d7d
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.00406f7c
push dword [ebp - 0x164]
push 0x408db8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406f7c
push dword [ebp - 0x168]
push 0x408dc8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406f7c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408da2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406d8c
ret
Function at 0x408dcc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408fb2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52cb5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x52cb74]
cmp ax, word [ebp - 2]
jne 0x408e24
mov eax, dword [ebp - 6]
mov edx, 0x52cb78
mov ecx, 0x55
call fcn.00406f7c
push 0x52cb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f9c
push 0x52cb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406d94
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f64
cmp byte [0x52cb58], 0
je 0x408f1a
call dword [0x52cb50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x52cb54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x408f13
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x52cb4c]
test al, al
je 0x408eec
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404510
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x52cb4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408ee1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408edd
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408eca
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f64
movzx eax, word [ebp - 0x16]
push eax
call dword [0x52cb54]
cmp dword [ebp - 0x10], 0
je 0x408f12
mov eax, dword [ebp - 0x10]
call fcn.0040452c
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408c34
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408f64
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408f49
mov eax, dword [ebp - 6]
mov edx, 0x408fcc
call fcn.00407190
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408c34
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407190
mov eax, dword [ebp - 6]
push 0x52cb5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x52cb74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406e20
push eax
push 0x52cb78
call sub.kernel32.dll_lstrcpynW
push 0x52cb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fb9
lea eax, [ebp - 0x1c]
call fcn.00406d84
ret
Function at 0x4091f0
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.00406d7c
xor eax, eax
push ebp
push 0x4093d5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409230
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40924a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406e20
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4093bf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409418
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40944c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4093bf
xor eax, eax
push ebp
push 0x4093b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ff4
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 0x409348
mov eax, dword [ebp - 0x10]
call fcn.00404510
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.00406f40
jmp 0x409393
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40948c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409393
mov eax, dword [ebp - 0x10]
call fcn.00404510
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40948c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093bf
cmp dword [ebp - 8], 0
je 0x4093ae
mov eax, dword [ebp - 8]
call fcn.0040452c
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 0x4093dc
lea eax, [ebp - 4]
call fcn.00406d84
ret
Function at 0x4096a0
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.00406d7c
mov eax, dword [ebp - 0x21c]
call fcn.00406d7c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40983f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406d94
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406e20
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 0x409740
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409752
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40973d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40980b
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 0x40977b
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.004091f0
cmp dword [ebp - 0x220], 0
je 0x4097b3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409594
pop ecx
mov ebx, eax
jmp 0x40980b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408dcc
mov eax, dword [ebp - 0x224]
call fcn.00409594
pop ecx
mov ebx, eax
test bl, bl
jne 0x4097fe
cmp byte [0x52cb58], 0
jne 0x4097fe
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408dcc
mov eax, dword [ebp - 0x228]
call fcn.00409594
pop ecx
mov ebx, eax
test bl, bl
jne 0x40980b
push ebp
call fcn.00409644
pop ecx
mov ebx, eax
test bl, bl
je 0x409821
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409846
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406d8c
ret

Function at 0x409fb8
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 0x40d638
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x52cc5c
push 0xa
push 0x40d6cc
mov eax, dword [0x52cc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d65c
call fcn.0041b2a0
push ebx
mov eax, dword [0x52cc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d673
call fcn.0041b2a0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d685
call fcn.0041b2a0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52cc60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52cc64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52cc68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52cc6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52cc70], ecx
add edx, dword [eax + 0x14]
mov dword [0x52cc74], edx
pop esi
pop ebx
ret

Function at 0x4125dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412685
test eax, edx
je 0x412688
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412605
push edx
mov edx, eax
mov eax, esp
call fcn.00406f98
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41261b
push eax
lea eax, [esp + 8]
call fcn.00406f98
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41262a
movzx eax, word [eax]
sub eax, ecx
jmp 0x412651
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 0x41266b
add ecx, 4
js 0x412642
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412668
push eax
mov eax, ecx
mov edx, 2
call fcn.004063ec
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41264f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412651
xor eax, eax
ret
test eax, eax
je 0x412698
test edx, edx
jne 0x4125ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406e20
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413b46
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413b67
cmp ebx, 3
je 0x413b67
cmp ebx, 0x7b
je 0x413b67
mov eax, esi
call fcn.00413ae8
test al, al
jne 0x413b6b
xor eax, eax
jmp 0x413b6d
mov al, 1
pop esi
pop ebx
ret

Function at 0x41821c
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 0x418255
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406ed0
jmp 0x41825e
mov eax, ebx
mov edx, esi
call fcn.00406d94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418268
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 0x41828a
movzx eax, word [esp]
jmp 0x41828c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418a1c
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 0x418b41
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041882c
mov esi, eax
mov eax, dword [0x528e40]
cmp byte [eax], 0
je 0x418ae9
mov eax, dword [0x528a78]
call fcn.004049b8
call fcn.00404678
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 [0x4189f4]
call fcn.0040865c
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 0x418b5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418b25
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5289f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52cc40]
call fcn.00408750
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 0x418b48
lea eax, [ebp - 4]
mov edx, dword [0x4189f4]
call fcn.00408668
ret
Function at 0x419cf8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419dce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406de8
lea eax, [ebp - 4]
call fcn.00407780
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e20
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x419db8
mov eax, ebx
call fcn.00404510
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x419db1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e20
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x419d9b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x419de0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x419d9b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419db8
mov eax, dword [ebp - 0x10]
call fcn.0040452c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419dd5
lea eax, [ebp - 4]
call fcn.00406d84
ret

Function at 0x41b148
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.00406718
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 0x41b0f2
mov eax, edi
add eax, eax
call fcn.00404510
mov esi, eax
jmp 0x41b0f4
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 0x41b12d
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 0x41b117
mov eax, esp
cmp esi, eax
je 0x41b13a
mov eax, esi
call fcn.0040452c
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 0x41b174
cmp bl, 0
je 0x41b170
cmp bl, 0x41
jl 0x41b16b
cmp bl, 0x5a
jg 0x41b16b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b14f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b0b4