joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007272
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10072a3
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x10072aa
cmp ebx, dword [ebp + 8]
jae 0x10072aa
xor eax, eax
jmp 0x100749a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10072bb
xor eax, eax
inc eax
jmp 0x1007499
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10072d1
cmp ecx, edx
jae 0x1007416
cmp dword [eax + 4], 0
je 0x10072da
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10072c2
cmp dword [ebp + 8], 0
je 0x10072fc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1007416
cmp eax, esi
jae 0x1007416
mov eax, dword [0x100afd0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1007321
cmp dword [esi*4 + 0x100afd8], edi
je 0x100741a
inc esi
cmp esi, eax
jl 0x100730f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007496
cmp dword [ebp - 8], 0x1000000
jne 0x1007496
test byte [ebp - 0xc], 0xcc
je 0x100739f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1007496
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1007496
cmp word [eax + 0x18], 0x10b
jne 0x1007496
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1007496
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100739f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100739f
test byte [ecx + 0x27], 0x80
jne 0x1007416
push 1
push 0x100b018
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x10072b3
mov ecx, dword [0x100afd0]
test ecx, ecx
mov edx, ecx
jle 0x10073d3
lea eax, [ecx*4 + 0x100afd4]
cmp dword [eax], edi
je 0x10073d3
dec edx
sub eax, 4
test edx, edx
jg 0x10073c7
test edx, edx
jne 0x1007404
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10073e0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10073f8
lea eax, [edx*4 + 0x100afd8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10073e6
cmp ecx, 0x10
jge 0x1007404
inc ecx
mov dword [0x100afd0], ecx
push 0
push 0x100b018
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x10072b3
xor eax, eax
jmp 0x1007499
test esi, esi
jle 0x10072b3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100b018
call ebx
test eax, eax
jne 0x10072b3
cmp dword [esi*4 + 0x100afd8], edi
je 0x1007470
mov eax, dword [0x100afd0]
lea esi, [eax - 1]
test esi, esi
jl 0x100745e
cmp dword [esi*4 + 0x100afd8], edi
je 0x100745a
dec esi
jns 0x100744e
test esi, esi
jge 0x100746e
cmp eax, 0x10
jge 0x1007469
inc eax
mov dword [0x100afd0], eax
lea esi, [eax - 1]
jmp 0x1007470
je 0x1007488
xor ecx, ecx
test esi, esi
jl 0x1007488
lea eax, [ecx*4 + 0x100afd8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1007476
push 0
push 0x100b018
call ebx
jmp 0x10072b3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007b52
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.01007ea0
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007c4e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x100aa1c], 2
jne 0x1007bd3
push 0x10020f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x1007bd3
push 0x10020d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1007bd3
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x1007bd3
cmp dword [ebp - 4], esi
jbe 0x1007bd3
mov esi, dword [ebp - 4]
mov edx, dword [0x100aa1c]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x1007bfc
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1007c08
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x1007c1a
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x1007c4e
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1007c4e
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1007c4e
xor eax, eax
inc eax
jmp 0x1007c50
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404614
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.00406e10
test esi, esi
jne 0x40464c
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.00406f4c
jmp 0x40466a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044f8
mov edi, eax
test esi, esi
je 0x40466a
cmp dword [ebx], 0
je 0x40466a
dec esi
jmp 0x404653
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40613c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x630054], 0
je 0x40619d
cmp word [0x630330], 0xd7b2
jne 0x406165
cmp dword [0x630338], 0
jbe 0x406165
mov eax, 0x63032c
call dword [0x630348]
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 0x4061c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x624030], 0
jne 0x4061b9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406348
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 [0x624034], 0
je 0x40636e
mov edx, esi
mov eax, ebx
call dword [0x624034]
jmp 0x40637d
mov eax, 8
call fcn.00404240
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x630055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406310
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 0x408de8
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 0x408f4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406e10
cmp si, word [0x6247dc]
jb 0x408e82
cmp si, word [0x6249dc]
ja 0x408e82
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408e82
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x6247dc]
jae 0x408e5c
mov edi, ebx
dec edi
jmp 0x408e7d
cmp si, word [ebx*8 + 0x6247dc]
jbe 0x408e6c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408e7d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x6247e0]
call fcn.00408cf8
jmp 0x408e82
cmp edi, dword [ebp - 0xc]
jae 0x408e46
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408f31
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f31
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.00407020
push dword [ebp - 0x164]
push 0x408f6c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407020
push dword [ebp - 0x168]
push 0x408f7c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407020
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004073d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f56
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406e08
ret
Function at 0x409108
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 0x40920d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x632b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x632b74]
jne 0x409154
mov eax, esi
mov edx, 0x632b78
mov ecx, 0x55
call fcn.00407020
push 0x632b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4091f7
push 0x632b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406e10
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4091c5
cmp byte [0x632b58], 0
je 0x40918a
mov edx, esi
mov eax, ebx
call fcn.00408fe8
jmp 0x4091c5
mov edx, esi
mov eax, ebx
call fcn.00408de8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4091c5
cmp dword [esi], 0
je 0x4091ae
mov eax, esi
mov edx, 0x409228
call fcn.00407234
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408de8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407234
push 0x632b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x632b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406e9c
push eax
push 0x632b78
call sub.kernel32.dll_lstrcpynW
push 0x632b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409214
lea eax, [ebp - 4]
call fcn.00406e00
ret
Function at 0x40944c
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.00406df8
xor eax, eax
push ebp
push 0x409631
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40948c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4094a6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406e9c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40961b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409640
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409674
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409535
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40961b
xor eax, eax
push ebp
push 0x409614
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409250
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 0x4095a4
mov eax, dword [ebp - 0x10]
call fcn.00404240
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.00406fcc
jmp 0x4095ef
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4096e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4095ef
mov eax, dword [ebp - 0x10]
call fcn.00404240
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4096e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40961b
cmp dword [ebp - 8], 0
je 0x40960a
mov eax, dword [ebp - 8]
call fcn.0040425c
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 0x409638
lea eax, [ebp - 4]
call fcn.00406e00
ret
Function at 0x4098fc
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.00406df8
mov eax, dword [ebp - 0x21c]
call fcn.00406df8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409a9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406e10
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406e9c
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 0x40999c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4099ae
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409999
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409a67
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 0x4099d7
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.0040944c
cmp dword [ebp - 0x220], 0
je 0x409a0f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004097f0
pop ecx
mov ebx, eax
jmp 0x409a67
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409108
mov eax, dword [ebp - 0x224]
call fcn.004097f0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409a5a
cmp byte [0x632b58], 0
jne 0x409a5a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409108
mov eax, dword [ebp - 0x228]
call fcn.004097f0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409a67
push ebp
call fcn.004098a0
pop ecx
mov ebx, eax
test bl, bl
je 0x409a7d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409aa2
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406e08
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x632c5c
push 0xa
push 0x40e360
mov eax, dword [0x632c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40e2f0
call fcn.0041c4c8
push ebx
mov eax, dword [0x632c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40e307
call fcn.0041c4c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40e319
call fcn.0041c4c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x632c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x632c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x632c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x632c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x632c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x632c74], edx
pop esi
pop ebx
ret

Function at 0x4134f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4135a1
test eax, edx
je 0x4135a4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413521
push edx
mov edx, eax
mov eax, esp
call fcn.0040703c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x413537
push eax
lea eax, [esp + 8]
call fcn.0040703c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413546
movzx eax, word [eax]
sub eax, ecx
jmp 0x41356d
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 0x413587
add ecx, 4
js 0x41355e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413584
push eax
mov eax, ecx
mov edx, 2
call fcn.004063e8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41356b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41356d
xor eax, eax
ret
test eax, eax
je 0x4135b4
test edx, edx
jne 0x413508
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406e9c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414ac6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x414ae7
cmp ebx, 3
je 0x414ae7
cmp ebx, 0x7b
je 0x414ae7
mov eax, esi
call fcn.00414a68
test al, al
jne 0x414aeb
xor eax, eax
jmp 0x414aed
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406e9c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414b09
test al, 0x10
jne 0x414b0d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x419534
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 0x41956d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406f4c
jmp 0x419576
mov eax, ebx
mov edx, esi
call fcn.00406e10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x419d34
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 0x419e59
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419b44
mov esi, eax
mov eax, dword [0x62f518]
cmp byte [eax], 0
je 0x419e01
mov eax, dword [0x62ef7c]
call fcn.00404814
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 [0x419d0c]
call fcn.004087e4
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 0x419e74
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419e3d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x62eebc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x632c40]
call fcn.004088d8
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 0x419e60
lea eax, [ebp - 4]
mov edx, dword [0x419d0c]
call fcn.004087f0
ret
Function at 0x41b038
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 0x41b10e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e64
lea eax, [ebp - 4]
call fcn.00407824
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e9c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41b0f8
mov eax, ebx
call fcn.00404240
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41b0f1
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.00406e9c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41b0db
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41b120
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41b0db
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 0x41b0f8
mov eax, dword [ebp - 0x10]
call fcn.0040425c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b115
lea eax, [ebp - 4]
call fcn.00406e00
ret

Function at 0x41c370
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.00406748
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 0x41c31a
mov eax, edi
add eax, eax
call fcn.00404240
mov esi, eax
jmp 0x41c31c
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 0x41c355
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 0x41c33f
mov eax, esp
cmp esi, eax
je 0x41c362
mov eax, esi
call fcn.0040425c
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 0x41c39c
cmp bl, 0
je 0x41c398
cmp bl, 0x41
jl 0x41c393
cmp bl, 0x5a
jg 0x41c393
or bl, 0x20
xor al, bl
inc esi
jmp 0x41c377
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41c2dc