joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404934
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.004047a1
push 8
mov esi, eax
call fcn.004046d7
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40499f
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x4049a6
and dword [ebx + 4], 0
jmp 0x4049bb
xor eax, eax
jmp 0x404a86
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a6c
push edi
call fcn.00408090
pop ecx
cmp eax, 4
jl 0x404992
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404992
add eax, 0xfffffffd
push 0x4197b4
push eax
mov dword [ebp - 0x74], eax
call fcn.004088f0
pop ecx
pop ecx
test eax, eax
je 0x404a01
push 0x4197b0
push dword [ebp - 0x74]
call fcn.004088f0
pop ecx
pop ecx
test eax, eax
jne 0x404992
push 0x3b
push edi
call fcn.004097a0
pop ecx
pop ecx
test eax, eax
jne 0x404992
push dword [ebp - 0x78]
call fcn.00408090
push edi
mov ebx, eax
call fcn.00408090
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046d7
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.00416be8
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.00416be8
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047f7
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404992
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.0040473f
push ebx
call fcn.0040473f
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088d9
add ebp, 0x214
leave
ret

Function at 0x4088d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4088e3
repz ret
jmp fcn.00410778
Function at 0x621bc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x726000
lea edi, [esi - 0x155000]
push edi
or ebp, 0xffffffff
jmp 0x621be2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x621be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x621bd8
mov eax, 1
add ebx, ebx
jne 0x621bfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x621bf0
jne 0x621c0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x621bf0
xor ecx, ecx
sub eax, 3
jb 0x621c20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x621c92
mov ebp, eax
add ebx, ebx
jne 0x621c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x621c38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x621c5c
inc ecx
add ebx, ebx
jne 0x621c48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x621c3d
jne 0x621c59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x621c3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x621c7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x621c6d
jmp 0x621bde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x621c7c
add edi, ecx
jmp 0x621bde
pop esi
mov edi, esi
mov ecx, 0x9eab
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x621c9a
cmp byte [edi], 0x21
jne 0x621c9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x621c9f
lea edi, [esi + 0x218000]
mov eax, dword [edi]
or eax, eax
je 0x621d17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22137c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22150c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x621ccc
mov ecx, edi
jns 0x621cfb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x221514]
or eax, eax
je 0x621d11
mov dword [ebx], eax
add ebx, 4
jmp 0x621ce9
call dword [esi + 0x221510]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x621d48
cmp al, 0xef
ja 0x621d3b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x621d1d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x621d2a
mov ebp, dword [esi + 0x221518]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x621d7c
sub esp, 0xffffff80
jmp 0x472ba4
Function at 0x4048e8
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.00407778
test esi, esi
jne 0x404920
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.004078b4
jmp 0x40493e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040482c
mov edi, eax
test esi, esi
je 0x40493e
cmp dword [ebx], 0
je 0x40493e
dec esi
jmp 0x404927
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40635c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x585054], 0
je 0x4063bd
cmp word [0x585330], 0xd7b2
jne 0x406385
cmp dword [0x585338], 0
jbe 0x406385
mov eax, 0x58532c
call dword [0x585348]
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 0x4063e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x581030], 0
jne 0x4063d9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406548
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 [0x581034], 0
je 0x40656e
mov edx, esi
mov eax, ebx
call dword [0x581034]
jmp 0x40657d
mov eax, 8
call fcn.00404574
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x585055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406510
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 0x409b68
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 0x409ccf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407778
cmp si, word [0x5817dc]
jb 0x409c02
cmp si, word [0x5819dc]
ja 0x409c02
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409c02
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5817dc]
jae 0x409bdc
mov edi, ebx
dec edi
jmp 0x409bfd
cmp si, word [ebx*8 + 0x5817dc]
jbe 0x409bec
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409bfd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5817e0]
call fcn.00409a78
jmp 0x409c02
cmp edi, dword [ebp - 0xc]
jae 0x409bc6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409cb1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409cb1
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.00407978
push dword [ebp - 0x164]
push 0x409cec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407978
push dword [ebp - 0x168]
push 0x409cfc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407978
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cd6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407770
ret
Function at 0x409e88
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 0x409f8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x587b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x587b74]
jne 0x409ed4
mov eax, esi
mov edx, 0x587b78
mov ecx, 0x55
call fcn.00407978
push 0x587b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409f77
push 0x587b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407778
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409f45
cmp byte [0x587b58], 0
je 0x409f0a
mov edx, esi
mov eax, ebx
call fcn.00409d68
jmp 0x409f45
mov edx, esi
mov eax, ebx
call fcn.00409b68
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409f45
cmp dword [esi], 0
je 0x409f2e
mov eax, esi
mov edx, 0x409fa8
call fcn.00407b8c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409b68
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407b8c
push 0x587b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x587b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407804
push eax
push 0x587b78
call sub.kernel32.dll_lstrcpynW
push 0x587b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f94
lea eax, [ebp - 4]
call fcn.00407768
ret
Function at 0x40a1cc
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.00407760
xor eax, eax
push ebp
push 0x40a3b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a20c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a226
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407804
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a39b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a3c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a2b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a3c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a2b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a3f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a2b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a39b
xor eax, eax
push ebp
push 0x40a394
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409fd0
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 0x40a324
mov eax, dword [ebp - 0x10]
call fcn.00404574
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.00407924
jmp 0x40a36f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a468
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a36f
mov eax, dword [ebp - 0x10]
call fcn.00404574
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a468
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407924
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a39b
cmp dword [ebp - 8], 0
je 0x40a38a
mov eax, dword [ebp - 8]
call fcn.00404590
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 0x40a3b8
lea eax, [ebp - 4]
call fcn.00407768
ret
Function at 0x40a67c
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.00407760
mov eax, dword [ebp - 0x21c]
call fcn.00407760
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a81b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407778
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407804
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 0x40a71c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a72e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a719
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a7e7
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 0x40a757
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.0040a1cc
cmp dword [ebp - 0x220], 0
je 0x40a78f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a570
pop ecx
mov ebx, eax
jmp 0x40a7e7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409e88
mov eax, dword [ebp - 0x224]
call fcn.0040a570
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a7da
cmp byte [0x587b58], 0
jne 0x40a7da
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409e88
mov eax, dword [ebp - 0x228]
call fcn.0040a570
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a7e7
push ebp
call fcn.0040a620
pop ecx
mov ebx, eax
test bl, bl
je 0x40a7fd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a822
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407770
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x587c5c
push 0xa
push 0x40eda0
mov eax, dword [0x587c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40ed30
call fcn.0041caac
push ebx
mov eax, dword [0x587c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ed47
call fcn.0041caac
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ed59
call fcn.0041caac
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x587c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x587c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x587c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x587c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x587c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x587c74], edx
pop esi
pop ebx
ret

Function at 0x413db8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413e61
test eax, edx
je 0x413e64
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413de1
push edx
mov edx, eax
mov eax, esp
call fcn.00407994
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x413df7
push eax
lea eax, [esp + 8]
call fcn.00407994
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413e06
movzx eax, word [eax]
sub eax, ecx
jmp 0x413e2d
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 0x413e47
add ecx, 4
js 0x413e1e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413e44
push eax
mov eax, ecx
mov edx, 2
call fcn.004065e8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413e2b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413e2d
xor eax, eax
ret
test eax, eax
je 0x413e74
test edx, edx
jne 0x413dc8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00407804
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41542a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41544b
cmp ebx, 3
je 0x41544b
cmp ebx, 0x7b
je 0x41544b
mov eax, esi
call fcn.004153cc
test al, al
jne 0x41544f
xor eax, eax
jmp 0x415451
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407804
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41546d
test al, 0x10
jne 0x415471
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x41558c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00407804
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4155ae
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4194bc
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 0x4194f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004078b4
jmp 0x4194fe
mov eax, ebx
mov edx, esi
call fcn.00407778
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x419e0c
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 0x419f31
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419c1c
mov esi, eax
mov eax, dword [0x584c40]
cmp byte [eax], 0
je 0x419ed9
mov eax, dword [0x584870]
call fcn.00404a58
call fcn.004046dc
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 [0x419de4]
call fcn.00409450
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 0x419f4c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419f15
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5847dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x587c40]
call fcn.00409658
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 0x419f38
lea eax, [ebp - 4]
mov edx, dword [0x419de4]
call fcn.00409570
ret
Function at 0x41b11c
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 0x41b1f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004077cc
lea eax, [ebp - 4]
call fcn.0040821c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407804
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41b1dc
mov eax, ebx
call fcn.00404574
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41b1d5
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.00407804
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41b1bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41b204
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41b1bf
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 0x41b1dc
mov eax, dword [ebp - 0x10]
call fcn.00404590
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b1f9
lea eax, [ebp - 4]
call fcn.00407768
ret

Function at 0x41c954
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.00406958
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 0x41c8fe
mov eax, edi
add eax, eax
call fcn.00404574
mov esi, eax
jmp 0x41c900
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 0x41c939
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 0x41c923
mov eax, esp
cmp esi, eax
je 0x41c946
mov eax, esi
call fcn.00404590
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 0x41c980
cmp bl, 0
je 0x41c97c
cmp bl, 0x41
jl 0x41c977
cmp bl, 0x5a
jg 0x41c977
or bl, 0x20
xor al, bl
inc esi
jmp 0x41c95b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41c8c0