joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7a9
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.00407715
and dword [ebp - 4], 0
cmp dword [0x4378c4], 0
mov ebx, eax
jne 0x40e85a
push 0x402bc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e90b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bb8
push edi
call esi
test eax, eax
je 0x40e90b
push eax
call fcn.004076a3
mov dword [esp], 0x402ba8
push edi
mov dword [0x4378c4], eax
call esi
push eax
call fcn.004076a3
mov dword [esp], 0x402b94
push edi
mov dword [0x4378c8], eax
call esi
push eax
call fcn.004076a3
mov dword [esp], 0x402b78
push edi
mov dword [0x4378cc], eax
call esi
push eax
call fcn.004076a3
pop ecx
mov dword [0x4378d4], eax
test eax, eax
je 0x40e85a
push 0x402b60
push edi
call esi
push eax
call fcn.004076a3
pop ecx
mov dword [0x4378d0], eax
mov eax, dword [0x4378d0]
cmp eax, ebx
je 0x40e8b2
cmp dword [0x4378d4], ebx
je 0x40e8b2
push eax
call fcn.0040771e
push dword [0x4378d4]
mov esi, eax
call fcn.0040771e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e8b2
test edi, edi
je 0x40e8b2
call esi
test eax, eax
je 0x40e8a9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e8a9
test byte [ebp - 0xc], 1
jne 0x40e8b2
or dword [ebp + 0x10], 0x200000
jmp 0x40e8eb
mov eax, dword [0x4378c8]
cmp eax, ebx
je 0x40e8eb
push eax
call fcn.0040771e
pop ecx
test eax, eax
je 0x40e8eb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e8eb
mov eax, dword [0x4378cc]
cmp eax, ebx
je 0x40e8eb
push eax
call fcn.0040771e
pop ecx
test eax, eax
je 0x40e8eb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4378c4]
call fcn.0040771e
pop ecx
test eax, eax
je 0x40e90b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e90d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3df7870
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x24053d19
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x403005
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x402fa4
mov esi, dword [edx + 0x28]
xor edi, edi
nop
movzx ecx, word [edx + 0x26]
jmp 0x402fb9
xor eax, eax
nop
jmp 0x402fcd
lodsb al, byte [esi]
nop
cmp al, 0x61
nop
jl 0x402ff4
nop
jmp 0x402fe4
sub al, 0x20
nop
jmp 0x402ff4
nop
ror edi, 0xd
jmp 0x403003
add edi, eax
nop
dec ecx
jne 0x402fb9
nop
jmp 0x40301f
nop
push edx
jmp 0x403032
mov edx, dword [edx + 0x10]
push edi
nop
mov eax, dword [edx + 0x3c]
nop
add eax, edx
jmp 0x40304c
mov eax, dword [eax + 0x78]
test eax, eax
nop
jmp 0x40305e
je 0x403211
jmp 0x403070
jmp 0x40307d
add eax, edx
mov ebx, dword [eax + 0x20]
push eax
nop
add ebx, edx
nop
jmp 0x403097
mov ecx, dword [eax + 0x18]
test ecx, ecx
nop
je 0x4031f1
jmp 0x4030b1
jmp 0x4030bb
dec ecx
nop
mov esi, dword [ebx + ecx*4]
nop
jmp 0x4030d2
xor edi, edi
add esi, edx
jmp 0x4030e3
xor eax, eax
nop
ror edi, 0xd
jmp 0x4030f4
lodsb al, byte [esi]
add edi, eax
jmp 0x403107
cmp al, ah
nop
jne 0x4030e3
jmp 0x40311d
nop
jmp 0x40312a
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x40309a
jmp 0x403146
pop eax
mov ebx, dword [eax + 0x24]
jmp 0x40315b
add ebx, edx
jmp 0x403170
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
nop
add ebx, edx
nop
jmp 0x40318d
mov eax, dword [ebx + ecx*4]
jmp 0x40319f
add eax, edx
nop
jmp 0x4031b1
mov dword [esp + 0x24], eax
pop ebx
nop
jmp 0x4031c5
pop ebx
popal
jmp 0x4031db
pop ecx
jmp 0x4031eb
pop edx
nop
push ecx
jmp eax
nop
jmp 0x403203
pop eax
jmp 0x403211
nop
jmp 0x403224
pop edi
jmp 0x403235
pop edx
jmp 0x40324a
mov edx, dword [edx]
nop
jmp 0x402f97
Function at 0x4045e8
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.00406ffc
test esi, esi
jne 0x404620
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.00407138
jmp 0x40463e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040452c
mov edi, eax
test esi, esi
je 0x40463e
cmp dword [ebx], 0
je 0x40463e
dec esi
jmp 0x404627
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406310
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x562054], 0
je 0x406371
cmp word [0x562330], 0xd7b2
jne 0x406339
cmp dword [0x562338], 0
jbe 0x406339
mov eax, 0x56232c
call dword [0x562348]
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 0x40639c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55c030], 0
jne 0x40638d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40651c
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 [0x55c038], 0
je 0x406542
mov edx, esi
mov eax, ebx
call dword [0x55c038]
jmp 0x406551
mov eax, 8
call fcn.00404274
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x562055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4064e4
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 0x408fb4
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 0x40911b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ffc
cmp si, word [0x55c7e0]
jb 0x40904e
cmp si, word [0x55c9e0]
ja 0x40904e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40904e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x55c7e0]
jae 0x409028
mov edi, ebx
dec edi
jmp 0x409049
cmp si, word [ebx*8 + 0x55c7e0]
jbe 0x409038
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409049
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x55c7e4]
call fcn.00408ec4
jmp 0x40904e
cmp edi, dword [ebp - 0xc]
jae 0x409012
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4090fd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090fd
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.004071f4
push dword [ebp - 0x164]
push 0x409138
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004071f4
push dword [ebp - 0x168]
push 0x409148
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004071f4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004075ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409122
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ff4
ret
Function at 0x4092d4
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 0x4093d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x564b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x564b74]
jne 0x409320
mov eax, esi
mov edx, 0x564b78
mov ecx, 0x55
call fcn.004071f4
push 0x564b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4093c3
push 0x564b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ffc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409391
cmp byte [0x564b58], 0
je 0x409356
mov edx, esi
mov eax, ebx
call fcn.004091b4
jmp 0x409391
mov edx, esi
mov eax, ebx
call fcn.00408fb4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409391
cmp dword [esi], 0
je 0x40937a
mov eax, esi
mov edx, 0x4093f4
call fcn.00407408
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408fb4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407408
push 0x564b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x564b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407088
push eax
push 0x564b78
call sub.kernel32.dll_lstrcpynW
push 0x564b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093e0
lea eax, [ebp - 4]
call fcn.00406fec
ret
Function at 0x409618
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.00406fe4
xor eax, eax
push ebp
push 0x4097fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409658
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409672
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407088
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4097e7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40980c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409701
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40980c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409701
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409840
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409701
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409874
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4097e7
xor eax, eax
push ebp
push 0x4097e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040941c
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 0x409770
mov eax, dword [ebp - 0x10]
call fcn.00404274
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.004071b8
jmp 0x4097bb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4098b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4097bb
mov eax, dword [ebp - 0x10]
call fcn.00404274
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4098b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004071b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097e7
cmp dword [ebp - 8], 0
je 0x4097d6
mov eax, dword [ebp - 8]
call fcn.00404290
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 0x409804
lea eax, [ebp - 4]
call fcn.00406fec
ret
Function at 0x409ac8
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.00406fe4
mov eax, dword [ebp - 0x21c]
call fcn.00406fe4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409c67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406ffc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407088
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 0x409b68
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409b7a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409b65
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409c33
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 0x409ba3
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.00409618
cmp dword [ebp - 0x220], 0
je 0x409bdb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004099bc
pop ecx
mov ebx, eax
jmp 0x409c33
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004092d4
mov eax, dword [ebp - 0x224]
call fcn.004099bc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c26
cmp byte [0x564b58], 0
jne 0x409c26
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004092d4
mov eax, dword [ebp - 0x228]
call fcn.004099bc
pop ecx
mov ebx, eax
test bl, bl
jne 0x409c33
push ebp
call fcn.00409a6c
pop ecx
mov ebx, eax
test bl, bl
je 0x409c49
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004071f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c6e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ff4
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x564c50
push 0xa
push 0x40dbb8
mov eax, dword [0x564c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40db48
call fcn.0041b124
push ebx
mov eax, dword [0x564c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40db5f
call fcn.0041b124
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40db71
call fcn.0041b124
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x564c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x564c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x564c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x564c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x564c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x564c68], edx
pop esi
pop ebx
ret

Function at 0x4129f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412a9d
test eax, edx
je 0x412aa0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412a1d
push edx
mov edx, eax
mov eax, esp
call fcn.00407210
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412a33
push eax
lea eax, [esp + 8]
call fcn.00407210
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412a42
movzx eax, word [eax]
sub eax, ecx
jmp 0x412a69
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 0x412a83
add ecx, 4
js 0x412a5a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412a80
push eax
mov eax, ecx
mov edx, 2
call fcn.004065bc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412a67
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412a69
xor eax, eax
ret
test eax, eax
je 0x412ab0
test edx, edx
jne 0x412a04
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407088
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413fc2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413fe3
cmp ebx, 3
je 0x413fe3
cmp ebx, 0x7b
je 0x413fe3
mov eax, esi
call fcn.00413f64
test al, al
jne 0x413fe7
xor eax, eax
jmp 0x413fe9
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407088
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414005
test al, 0x10
jne 0x414009
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x418184
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 0x4181bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407138
jmp 0x4181c6
mov eax, ebx
mov edx, esi
call fcn.00406ffc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4181d0
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 0x4181f2
movzx eax, word [esp]
jmp 0x4181f4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418984
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 0x418aa9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418794
mov esi, eax
mov eax, dword [0x561130]
cmp byte [eax], 0
je 0x418a51
mov eax, dword [0x560cb0]
call fcn.00404a44
call fcn.004043dc
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 [0x41895c]
call fcn.004089b0
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 0x418ac4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x418a8d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x560c04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x564c40]
call fcn.00408aa4
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 0x418ab0
lea eax, [ebp - 4]
mov edx, dword [0x41895c]
call fcn.004089bc
ret
Function at 0x419c94
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 0x419d6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407050
lea eax, [ebp - 4]
call fcn.00407a50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407088
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x419d54
mov eax, ebx
call fcn.00404274
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x419d4d
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.00407088
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x419d37
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x419d7c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x419d37
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 0x419d54
mov eax, dword [ebp - 0x10]
call fcn.00404290
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419d71
lea eax, [ebp - 4]
call fcn.00406fec
ret

Function at 0x41afcc
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.004068fc
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 0x41af76
mov eax, edi
add eax, eax
call fcn.00404274
mov esi, eax
jmp 0x41af78
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 0x41afb1
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 0x41af9b
mov eax, esp
cmp esi, eax
je 0x41afbe
mov eax, esi
call fcn.00404290
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 0x41aff8
cmp bl, 0
je 0x41aff4
cmp bl, 0x41
jl 0x41afef
cmp bl, 0x5a
jg 0x41afef
or bl, 0x20
xor al, bl
inc esi
jmp 0x41afd3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41af38