joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a4c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x70
call 0x41a4d4
pop eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov eax, dword [ecx]
and dword [ecx], 0
test eax, eax
je 0x41a768
mov eax, dword [eax]
mov dword [esp + 0x14], eax
push 4
pop ecx
mov edx, 0xa20
call fcn.00428c89
test eax, eax
je 0x41a768
lea ecx, [esp + 8]
mov esi, eax
mov dword [ecx], 0xa2
mov dword [ecx + 4], eax
and dword [ecx + 8], 0
call fcn.0041873a
lea edi, [eax + 0xb8]
lea ebx, [eax + 0x108]
lea ecx, [eax + 0xe8]
mov edx, esi
xor esi, esi
mov ebp, 0x144
mov dword [esp + 0x58], edi
lea edi, [eax + 0x100]
mov dword [esp + 0x54], ebx
lea ebx, [eax + 0xf8]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], edi
lea edi, [eax + 0xf0]
mov dword [esp + 0x4c], ebx
lea ebx, [eax + 0xe0]
mov dword [esp + 0x48], edi
lea edi, [eax + 0xd8]
mov dword [esp + 0x44], ebx
lea ebx, [eax + 0xd0]
mov dword [esp + 0x40], edi
lea edi, [eax + 0xc8]
mov dword [esp + 0x3c], ebx
lea ebx, [eax + 0xb0]
mov dword [esp + 0x38], edi
lea edi, [eax + 0xa8]
mov dword [esp + 0x34], ebx
lea ebx, [eax + 0xa0]
mov dword [esp + 0x30], edi
lea edi, [eax + 0x98]
mov dword [esp + 0x2c], ebx
lea ebx, [eax + 0x90]
mov dword [esp + 0x28], edi
lea edi, [eax + 0x88]
mov dword [esp + 0x24], ebx
lea ebx, [eax + 0x80]
mov dword [esp + 0x20], edi
lea edi, [eax + 0x78]
add eax, 0x1e0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x18], edi
test ebp, ebp
je 0x41a703
mov edi, eax
movzx eax, word [eax + eax + 0x44a820]
mov dword [esp + 0x68], edx
mov ebx, eax
and ebx, 0x1f
cmp ebx, 0x12
ja 0x41a768
mov ecx, dword [ebx*4 + 0x41a76c]
mov edx, dword [esp + 0x60]
add ecx, dword [esp + 0x64]
mov dword [esp], edx
jmp ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp eax, esi
jbe 0x41a72a
shl eax, 4
test esi, esi
je 0x41a75e
mov edi, esi
mov edx, eax
shl edi, 4
push edi
call fcn.0041a835
pop ecx
mov ecx, eax
test eax, eax
je 0x41a768
cmp esi, 0xa2
cmove esi, ecx
jne 0x41a751
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [eax], esi
test ecx, ecx
je 0x41a749
push 4
pop edx
call fcn.004128d0
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x41a768
shl esi, 4
push 4
pop edx
push esi
jmp 0x41a762
push 4
pop edx
push eax
call fcn.004012f6
pop eax
ud2
Function at 0x42c8b9
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, dword [ecx]
test edi, edi
je 0x42c8cd
dec edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
ret
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x42c928
mov eax, dword [entry1]
mov eax, esp
lea ebx, [esi + 0xc]
and dword [eax], 0
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
jne 0x42c958
cmp dword [esp], 0
je 0x42c951
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x42c95a
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x457be4]
mov dword [esi + 8], eax
lock cmpxchg dword [0x457be4], esi
jne 0x42c90e
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x42c8c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x42c958
mov ecx, eax
mov edi, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
je 0x42c8c4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov edi, esi
jmp 0x42c8c4
mov edi, dword [esi]
jmp 0x42c8c3
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
ud2

Function at 0x42c967
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x20]
cmp eax, 3
je 0x42c97b
test eax, eax
jne 0x42c9d0
xor eax, eax
cmp eax, 5
je 0x42c9d0
inc eax
mov dword [esp + 4], eax
mov edi, dword [0x457be4]
mov dword [esp], 0
test edi, edi
je 0x42c9c6
mov ebx, dword [edi]
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x42c9df
dec ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c9c1
mov esi, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call ebp
pop eax
mov al, 1
mov dword [esp], eax
mov edi, dword [edi + 8]
jmp 0x42c994
test byte [esp], 1
mov eax, dword [esp + 4]
jne 0x42c97d
mov al, byte [0x4554c0]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
ud2
Function at 0x42d54f
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x430
mov edi, ecx
lea ebx, [esp + 0x30]
mov ecx, ebx
push dword [esp + 0x444]
call fcn.0042cf8d
pop eax
lea esi, [esp + 0x14]
mov edx, ebx
mov ecx, esi
call fcn.0042d6dd
mov eax, dword [esi]
cmp eax, 0x80000000
jne 0x42d58f
mov dword [edi], 0x80000000
jmp 0x42d6d0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov ebp, 0x200
xor ebx, ebx
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
and dword [eax], 0
mov dword [eax + 4], 2
and dword [eax + 8], 0
push 2
pop eax
mov dword [esp], eax
cmp ebp, 0x201
jae 0x42d5d6
lea edi, [esp + 0x30]
mov dword [esp + 0xc], 0x200
mov esi, ebp
jmp 0x42d5f8
sub ebp, ebx
lea ecx, [esp + 0x24]
mov edx, ebp
call fcn.00429c1d
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov esi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp], edi
mov dword [esp + 0xc], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x42d61c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d68e
cmp ebp, esi
jne 0x42d63e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42d6db
lea ebp, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebp, eax
jmp 0x42d5be
ja 0x42d5be
cmp ebp, dword [esp + 0xc]
ja 0x42d6db
lea esi, [esp + 0x14]
mov edx, edi
mov ecx, esi
push ebp
call fcn.004295b1
pop eax
mov edx, dword [esp]
mov ecx, ebx
call fcn.00429576
cmp dword [esi], 0x80000000
mov esi, dword [esp + 4]
je 0x42d6ae
movsd xmm0, qword [esp + 0x14]
mov eax, dword [esp + 8]
movsd xmm1, qword [esp + 0x1c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x42d6c5
lea edi, [esp + 0x18]
mov ecx, edi
call fcn.00429caa
mov edx, dword [esp]
mov ecx, ebx
mov dword [edi - 4], 0x80000000
call fcn.00429576
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], 0x80000000
call fcn.00428ca0
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00429576
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x430401
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea edi, [esp + 0xc]
mov ecx, edi
push dword [esp + 0x2c]
call fcn.0043046c
pop eax
mov ebx, esp
mov edx, edi
mov ecx, ebx
call fcn.0042d6dd
mov edi, dword [ebx]
cmp edi, 0x80000000
jne 0x430437
mov dword [esi], 0x80000000
jmp 0x430464
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x430455
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x430464
mov ecx, edi
mov edx, ebx
mov dword [esi], 0x80000000
call fcn.00429576
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43226a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4322a9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4322a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4322a9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4322a9
cmp dword [ecx + 0x74], 0xe
jbe 0x4322a9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404548
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.00406844
test esi, esi
jne 0x404580
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.00406980
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d5050], 0
je 0x405e41
cmp word [0x4d532c], 0xd7b2
jne 0x405e09
cmp dword [0x4d5334], 0
jbe 0x405e09
mov eax, 0x4d5328
call dword [0x4d5344]
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 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d2030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fcc
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 [0x4d2034], 0
je 0x405ff2
mov edx, esi
mov eax, ebx
call dword [0x4d2034]
jmp 0x406001
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d5051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f94
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 0x408614
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 0x40877b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406844
cmp si, word [0x4d27dc]
jb 0x4086ae
cmp si, word [0x4d29dc]
ja 0x4086ae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086ae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d27dc]
jae 0x408688
mov edi, ebx
dec edi
jmp 0x4086a9
cmp si, word [ebx*8 + 0x4d27dc]
jbe 0x408698
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086a9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4d27e0]
call fcn.00408524
jmp 0x4086ae
cmp edi, dword [ebp - 0xc]
jae 0x408672
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40875d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40875d
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.00406a2c
push dword [ebp - 0x164]
push 0x408798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x168]
push 0x4087a8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408782
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040683c
ret
Function at 0x408934
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 0x408a39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d7b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d7b70]
jne 0x408980
mov eax, esi
mov edx, 0x4d7b74
mov ecx, 0x55
call fcn.00406a2c
push 0x4d7b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a23
push 0x4d7b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406844
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f1
cmp byte [0x4d7b54], 0
je 0x4089b6
mov edx, esi
mov eax, ebx
call fcn.00408814
jmp 0x4089f1
mov edx, esi
mov eax, ebx
call fcn.00408614
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089f1
cmp dword [esi], 0
je 0x4089da
mov eax, esi
mov edx, 0x408a54
call fcn.00406c40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408614
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c40
push 0x4d7b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d7b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068d0
push eax
push 0x4d7b74
call sub.kernel32.dll_lstrcpynW
push 0x4d7b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a40
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x409128
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.0040682c
mov eax, dword [ebp - 0x21c]
call fcn.0040682c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4092c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406844
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068d0
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 0x4091c8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091da
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4091c5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409293
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 0x409203
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.00408c78
cmp dword [ebp - 0x220], 0
je 0x40923b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040901c
pop ecx
mov ebx, eax
jmp 0x409293
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408934
mov eax, dword [ebp - 0x224]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409286
cmp byte [0x4d7b54], 0
jne 0x409286
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408934
mov eax, dword [ebp - 0x228]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409293
push ebp
call fcn.004090cc
pop ecx
mov ebx, eax
test bl, bl
je 0x4092a9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ce
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040683c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4d7c58
push 0xa
push 0x40cd28
mov eax, dword [0x4d7c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ccb8
call fcn.004193a0
push ebx
mov eax, dword [0x4d7c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cccf
call fcn.004193a0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cce1
call fcn.004193a0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d7c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d7c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d7c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d7c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d7c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d7c70], edx
pop esi
pop ebx
ret

Function at 0x4118a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411951
test eax, edx
je 0x411954
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4118d1
push edx
mov edx, eax
mov eax, esp
call fcn.00406a48
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4118e7
push eax
lea eax, [esp + 8]
call fcn.00406a48
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4118f6
movzx eax, word [eax]
sub eax, ecx
jmp 0x41191d
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 0x411937
add ecx, 4
js 0x41190e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411934
push eax
mov eax, ecx
mov edx, 2
call fcn.0040606c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41191b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41191d
xor eax, eax
ret
test eax, eax
je 0x411964
test edx, edx
jne 0x4118b8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004068d0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412b9a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x412bbb
cmp ebx, 3
je 0x412bbb
cmp ebx, 0x7b
je 0x412bbb
mov eax, esi
call fcn.00412b3c
test al, al
jne 0x412bbf
xor eax, eax
jmp 0x412bc1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004068d0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x412bdd
test al, 0x10
jne 0x412be1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x416404
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 0x41643d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406980
jmp 0x416446
mov eax, ebx
mov edx, esi
call fcn.00406844
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x416c04
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 0x416d29
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416a14
mov esi, eax
mov eax, dword [0x4d46cc]
cmp byte [eax], 0
je 0x416cd1
mov eax, dword [0x4d4430]
call fcn.0040467c
call fcn.0040433c
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 [0x416bdc]
call fcn.00408010
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 0x416d44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416d0d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4d43c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d7c3c]
call fcn.00408104
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 0x416d30
lea eax, [ebp - 4]
mov edx, dword [0x416bdc]
call fcn.0040801c
ret
Function at 0x417ee0
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 0x417fb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406898
lea eax, [ebp - 4]
call fcn.00407230
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417fa0
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417f99
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.004068d0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417f83
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417fc8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417f83
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 0x417fa0
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417fbd
lea eax, [ebp - 4]
call fcn.00406834
ret

Function at 0x419248
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.0040637c
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 0x4191f2
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x4191f4
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 0x41922d
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 0x419217
mov eax, esp
cmp esi, eax
je 0x41923a
mov eax, esi
call fcn.004041f0
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 0x419274
cmp bl, 0
je 0x419270
cmp bl, 0x41
jl 0x41926b
cmp bl, 0x5a
jg 0x41926b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41924f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4191b4