joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100667e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x1008028]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], eax
mov dword [0x1010264], 0x88
je 0x10066cb
push esi
push edi
lea eax, [ebp - 0x258]
push eax
call fcn.01005745
test eax, eax
je 0x10066cb
mov dword [0x1010264], 0x89
jmp 0x10067c5
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1010a84], eax
je 0x10067ab
push esi
lea ecx, [ebp - 0x25c]
push ecx
push 2
push 0x1001a14
push eax
mov dword [0x1010a88], esi
mov dword [0x1010a8c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001a18
call fcn.01005f82
push 0x1001ad4
call fcn.01005f82
push 0x1001a58
call fcn.01005f82
push 0x1001acc
call fcn.01005f82
cmp edi, esi
lea eax, [ebp - 0x254]
je 0x100675a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
jmp 0x1006793
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100128c
push eax
call ebx
lea eax, [ebp - 0x254]
push eax
push 0x80000002
call fcn.01006429
push 0x1001268
lea eax, [ebp - 0x254]
push eax
call ebx
lea eax, [ebp - 0x254]
push eax
push 0x80000003
call fcn.01006429
call fcn.01005977
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10067b5
mov dword [0x1010264], 0x8a
cmp edi, esi
je 0x10067c5
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006c92
leave
ret 8
Function at 0x1006daa
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001b40
call fcn.01006fa8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006de5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006de5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006dfd
cmp eax, 0x20b
je 0x1006dea
mov dword [ebp - 0x1c], edi
jmp 0x1006e11
cmp dword [ecx + 0x84], 0xe
jbe 0x1006de5
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006e0b
cmp dword [ecx + 0x74], 0xe
jbe 0x1006de5
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1013b88], 0xffffffff
or dword [0x1013b8c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1008050]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100804c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1013b90], eax
call fcn.01006fa0
cmp dword [0x1008030], edi
jne 0x1006e6c
push fcn.01006fa0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006f89
push 0x1008010
push 0x100800c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1008048]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1008044]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1008008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002965
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006ee3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006f18
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006fe3
ret
Function at 0x4045ec
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.00406cf0
test esi, esi
jne 0x404624
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.00406e2c
jmp 0x404642
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404530
mov edi, eax
test esi, esi
je 0x404642
cmp dword [ebx], 0
je 0x404642
dec esi
jmp 0x40462b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404674
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5b7008], 0x8088405
inc edx
mov dword [ebx + 0x5b7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405f54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d1054], 0
je 0x405fb5
cmp word [0x5d1330], 0xd7b2
jne 0x405f7d
cmp dword [0x5d1338], 0
jbe 0x405f7d
mov eax, 0x5d132c
call dword [0x5d1348]
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 0x405fe0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5b7030], 0
jne 0x405fd1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406160
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 [0x5b7034], 0
je 0x406186
mov edx, esi
mov eax, ebx
call dword [0x5b7034]
jmp 0x406195
mov eax, 8
call fcn.0040422c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5d1055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406128
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 0x408d24
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 0x408e8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406cf0
cmp si, word [0x5b77d0]
jb 0x408dbe
cmp si, word [0x5b79d0]
ja 0x408dbe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408dbe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5b77d0]
jae 0x408d98
mov edi, ebx
dec edi
jmp 0x408db9
cmp si, word [ebx*8 + 0x5b77d0]
jbe 0x408da8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408db9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5b77d4]
call fcn.00408c34
jmp 0x408dbe
cmp edi, dword [ebp - 0xc]
jae 0x408d82
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408e6d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e6d
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.00406f00
push dword [ebp - 0x164]
push 0x408ea8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406f00
push dword [ebp - 0x168]
push 0x408eb8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406f00
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004072b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e92
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ce8
ret
Function at 0x408ebc
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 0x4090a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5d3b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x5d3b74]
cmp ax, word [ebp - 2]
jne 0x408f14
mov eax, dword [ebp - 6]
mov edx, 0x5d3b78
mov ecx, 0x55
call fcn.00406f00
push 0x5d3b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40908c
push 0x5d3b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406cf0
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409054
cmp byte [0x5d3b58], 0
je 0x40900a
call dword [0x5d3b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x5d3b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409003
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 [0x5d3b4c]
test al, al
je 0x408fdc
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0040422c
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 [0x5d3b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408fd1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x408fcd
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x408fba
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409054
movzx eax, word [ebp - 0x16]
push eax
call dword [0x5d3b54]
cmp dword [ebp - 0x10], 0
je 0x409002
mov eax, dword [ebp - 0x10]
call fcn.00404248
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408d24
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409054
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409039
mov eax, dword [ebp - 6]
mov edx, 0x4090bc
call fcn.00407114
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408d24
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407114
mov eax, dword [ebp - 6]
push 0x5d3b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x5d3b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406d7c
push eax
push 0x5d3b78
call sub.kernel32.dll_lstrcpynW
push 0x5d3b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090a9
lea eax, [ebp - 0x1c]
call fcn.00406ce0
ret
Function at 0x4092e0
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.00406cd8
xor eax, eax
push ebp
push 0x4094c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409320
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40933a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406d7c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4094af
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409508
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4093c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40953c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4094af
xor eax, eax
push ebp
push 0x4094a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004090e4
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 0x409438
mov eax, dword [ebp - 0x10]
call fcn.0040422c
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.00406eac
jmp 0x409483
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40957c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409483
mov eax, dword [ebp - 0x10]
call fcn.0040422c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40957c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094af
cmp dword [ebp - 8], 0
je 0x40949e
mov eax, dword [ebp - 8]
call fcn.00404248
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 0x4094cc
lea eax, [ebp - 4]
call fcn.00406ce0
ret
Function at 0x409790
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.00406cd8
mov eax, dword [ebp - 0x21c]
call fcn.00406cd8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40992f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406cf0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406d7c
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 0x409830
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409842
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40982d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4098fb
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 0x40986b
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.004092e0
cmp dword [ebp - 0x220], 0
je 0x4098a3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409684
pop ecx
mov ebx, eax
jmp 0x4098fb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408ebc
mov eax, dword [ebp - 0x224]
call fcn.00409684
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098ee
cmp byte [0x5d3b58], 0
jne 0x4098ee
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408ebc
mov eax, dword [ebp - 0x228]
call fcn.00409684
pop ecx
mov ebx, eax
test bl, bl
jne 0x4098fb
push ebp
call fcn.00409734
pop ecx
mov ebx, eax
test bl, bl
je 0x409911
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409936
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406ce8
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x5d3c5c
push 0xa
push 0x40dd44
mov eax, dword [0x5d3c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40dcd4
call fcn.0041badc
push ebx
mov eax, dword [0x5d3c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40dceb
call fcn.0041badc
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40dcfd
call fcn.0041badc
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x5d3c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x5d3c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x5d3c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x5d3c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x5d3c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x5d3c74], edx
pop esi
pop ebx
ret

Function at 0x412e88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412f31
test eax, edx
je 0x412f34
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412eb1
push edx
mov edx, eax
mov eax, esp
call fcn.00406f1c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x412ec7
push eax
lea eax, [esp + 8]
call fcn.00406f1c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x412ed6
movzx eax, word [eax]
sub eax, ecx
jmp 0x412efd
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 0x412f17
add ecx, 4
js 0x412eee
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412f14
push eax
mov eax, ecx
mov edx, 2
call fcn.00406200
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x412efb
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412efd
xor eax, eax
ret
test eax, eax
je 0x412f44
test edx, edx
jne 0x412e98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406d7c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41449a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4144bb
cmp ebx, 3
je 0x4144bb
cmp ebx, 0x7b
je 0x4144bb
mov eax, esi
call fcn.0041443c
test al, al
jne 0x4144bf
xor eax, eax
jmp 0x4144c1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406d7c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4144dd
test al, 0x10
jne 0x4144e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4185ac
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 0x4185e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406e2c
jmp 0x4185ee
mov eax, ebx
mov edx, esi
call fcn.00406cf0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x418efc
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 0x419021
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418d0c
mov esi, eax
mov eax, dword [0x5d06d4]
cmp byte [eax], 0
je 0x418fc9
mov eax, dword [0x5d0380]
call fcn.004047c8
call fcn.004043a8
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 [0x418ed4]
call fcn.0040874c
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 0x41903c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419005
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5d02fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d3c40]
call fcn.00408840
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 0x419028
lea eax, [ebp - 4]
mov edx, dword [0x418ed4]
call fcn.00408758
ret
Function at 0x41a1e4
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 0x41a2ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406d44
lea eax, [ebp - 4]
call fcn.00407704
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406d7c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a2a4
mov eax, ebx
call fcn.0040422c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a29d
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.00406d7c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a287
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a2cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a287
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 0x41a2a4
mov eax, dword [ebp - 0x10]
call fcn.00404248
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a2c1
lea eax, [ebp - 4]
call fcn.00406ce0
ret

Function at 0x41b984
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.004065ac
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 0x41b92e
mov eax, edi
add eax, eax
call fcn.0040422c
mov esi, eax
jmp 0x41b930
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 0x41b969
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 0x41b953
mov eax, esp
cmp esi, eax
je 0x41b976
mov eax, esi
call fcn.00404248
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 0x41b9b0
cmp bl, 0
je 0x41b9ac
cmp bl, 0x41
jl 0x41b9a7
cmp bl, 0x5a
jg 0x41b9a7
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b98b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b8f0