joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ad6
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ac5
cmp dword [ebp + 0x14], 1
je 0x405ac7
cmp dword [ebp + 0x14], 2
je 0x405ac7
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405bc1
mov ecx, dword [0x42ec3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f498]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42e400
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d94
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d94
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405da1
inc ebx
cmp cl, 0xfc
jbe 0x405d87
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d32
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c55
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405ccd
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c74
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a72
jmp 0x405cc8
cmp eax, 0x26
jne 0x405ca4
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a72
cmp byte [edi], 0
jne 0x405d2a
push str.C:Program_Files
push edi
call fcn.00405b7e
jmp 0x405cc8
cmp eax, 0x25
jne 0x405cb7
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405cc8
cmp eax, 0x24
jne 0x405ccd
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d2a
cmp dword [0x42f4e4], 0
jne 0x405cd9
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f464]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405d0f
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053cb
cmp dword [ebp - 8], 0
jne 0x405d16
jmp 0x405d12
and byte [edi], 0
test esi, esi
jne 0x405cd9
cmp byte [edi], 0
je 0x405d2a
cmp dword [ebp + 0xc], 0
je 0x405d2a
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405dba
jmp 0x405d78
cmp byte [ebp + 0xf], 0xfd
jne 0x405d66
cmp esi, 0x1b
jne 0x405d4b
push dword [0x42f464]
push edi
call fcn.00405adc
jmp 0x405d5c
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b7e
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d78
jmp 0x405d2a
cmp byte [ebp + 0xf], 0xff
jne 0x405d78
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405ba0
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42e400
jmp 0x405d94
jne 0x405d91
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d94
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bec
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405db6
push eax
push dword [ebp + 8]
call fcn.00405b7e
leave
ret 8
Function at 0x405eee
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce5c], 0
push esi
jne 0x405f25
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405eff
mov dword [ecx*4 + 0x42ce58], eax
inc ecx
cmp ecx, 0x100
jl 0x405efa
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f56
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce58]
xor eax, esi
inc ecx
dec edx
jne 0x405f38
pop edi
not eax
pop esi
ret 0xc
Function at 0x403c24
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403ddc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403c85
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403df8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403cf2
xor eax, eax
push ebp
push 0x403ceb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403cd4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403e18
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403cf2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403dd3
cmp byte [ebp - 0xd], 0
jne 0x403d34
cmp byte [ebp - 0x12], 0
je 0x403dd3
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403d4d
dec ebx
cmp byte [ebx], 0x2e
je 0x403d5c
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403d4c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403dd3
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403d89
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403dd3
cmp byte [ebp - 0xd], 0
je 0x403dd3
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403dd3
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b58
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405c62
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405bab
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030d0
jmp 0x405c49
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405b0c
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405b2c
mov ebx, eax
test esi, esi
je 0x405bd3
dec esi
test esi, esi
jl 0x405bd3
cmp edi, ebx
jne 0x405bb2
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403110
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.0040334c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
cmp eax, 2
jl 0x405c49
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405c49
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405c49
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.0040334c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c69
lea eax, [ebp - 0x110]
call fcn.00402fec
ret

Function at 0x405cc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405d58
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x405d0d
mov eax, dword [ebx + 0x19]
call fcn.0040330c
push eax
push esi
mov eax, edi
call fcn.0040330c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040330c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x405d42
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.0040330c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.0040330c
push eax
mov eax, edi
call fcn.0040330c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040330c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d5f
lea eax, [ebp - 8]
call fcn.00402fec
ret
Function at 0x4073c8
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x4073d7
mov edx, dword [edx + 0x36]
jmp fcn.00403110
mov ecx, dword [edx + 0x18]
jecxz 0x4073cf
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.0040341c
pop edx
mov ecx, dword [ebx]
jecxz 0x4073ff
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret
Function at 0x1559058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015591a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x155907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155906a
add dl, dl
jne 0x1559089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15590dc
xor eax, eax
add dl, dl
jne 0x1559096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155917d
add dl, dl
jne 0x15590a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15590b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15590bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15590c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15590d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1559075
mov eax, 1
add dl, dl
jne 0x15590ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15590f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15590e1
sub eax, ebx
mov ebx, 1
jne 0x1559128
mov ecx, 1
add dl, dl
jne 0x155910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1559119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1559105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1559075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x155913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x155914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1559136
cmp eax, 0x7d00
jae 0x155916d
cmp eax, 0x500
jb 0x1559168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1559075
cmp eax, 0x7f
ja 0x1559170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1559075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x155919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1559075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e3d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a658
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0046b860
test eax, eax
jne 0x42e422
push 0x30
push 0x49794c
push 0x49ccf0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x42e58c
push 0x3c
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0x44
push 0
push eax
mov dword [ebp - 0x74], 0
call fcn.00471730
xorps xmm0, xmm0
push str.explorer__select_
movdqu xmmword [ebp - 0x34], xmm0
call fcn.0046b670
push eax
push str.explorer__select_
call fcn.0046b800
add esp, 0x18
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0046b3d0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42e484
call fcn.0046b840
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.0046b310
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42e56a
push 0x49cdcc
call fcn.0046b670
push eax
push 0x49cdcc
call fcn.0046b800
mov dword [ebp - 0x1c], eax
push str.Explorer_could_not_open
mov byte [ebp - 4], 4
call fcn.0046b670
push eax
push str.Explorer_could_not_open
call fcn.0046b800
add esp, 0x18
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0046b3d0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0046b3d0
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x42e51f
call fcn.0046b840
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x42e52f
call fcn.0046b840
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x42e53f
call fcn.0046b840
push 0x30
push 0x49794c
lea ecx, [ebp - 0x20]
call fcn.0046b310
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42e57c
call fcn.0046b840
jmp 0x42e57c
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x42e58c
call fcn.0046b840
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42e59f
call fcn.0046b840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x403710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f300c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037a8
push 0x80000002
call fcn.004013c0
test eax, eax
jne 0x403788
xor eax, eax
push ebp
push 0x403781
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037c4
mov eax, dword [ebp - 4]
push eax
call fcn.004013c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403788
mov eax, dword [ebp - 4]
push eax
call fcn.004013b8
ret
mov ax, word [0x4f300c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f300c], ax
mov esp, ebp
pop ebp
ret
Function at 0x4061b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call fcn.00401368
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063e0
push 0x80000001
call fcn.004013c0
test eax, eax
je 0x406233
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063e0
push 0x80000002
call fcn.004013c0
test eax, eax
je 0x406233
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063fc
push 0x80000001
call fcn.004013c0
test eax, eax
jne 0x4062bc
xor eax, eax
push ebp
push 0x4062b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ff8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004013c8
test eax, eax
je 0x40629a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40641c
mov eax, dword [ebp - 8]
push eax
call fcn.004013c8
test eax, eax
je 0x40629a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062bc
mov eax, dword [ebp - 8]
push eax
call fcn.004013b8
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.004013a0
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.00401388
push eax
call fcn.00401360
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063d6
cmp byte [ebp - 0xd], 0
jne 0x406303
cmp byte [ebp - 0x12], 0
je 0x4063d6
lea eax, [ebp - 0x11d]
push eax
call fcn.004013a8
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40631c
dec ebx
cmp byte [ebx], 0x2e
je 0x40632b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40631b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063d6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406368
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.004013a0
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401390
mov esi, eax
test esi, esi
jne 0x4063d6
cmp byte [ebp - 0xd], 0
je 0x4063d6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.004013a0
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401390
mov esi, eax
test esi, esi
jne 0x4063d6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.004013a0
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.00401390
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x408994
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404cc4
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404b90
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x408920
cmp byte [esp], 0
je 0x408965
mov eax, edi
call fcn.00404b90
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x4089a0
mov eax, edi
call fcn.00404b90
push eax
mov eax, edi
call fcn.00404b90
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004029bc
mov edx, ebx
mov eax, edi
call fcn.00404cc4
jmp 0x4089a0
mov eax, edi
mov edx, 0x4089b0
call fcn.004046dc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409254
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x4f32a4], 0
jne 0x409287
push 2
lea eax, [esp + 4]
push eax
push 0xe
call fcn.00407064
push eax
call fcn.00406fe4
test eax, eax
jle 0x409280
mov al, byte [esp]
mov byte [0x4f32a4], al
jmp 0x409287
mov byte [0x4f32a4], 0x2c
mov al, byte [0x4f32a4]
pop edx
ret

Function at 0x409770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b28
xor eax, eax
push ebp
push 0x4097d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004046dc
mov eax, ebx
call fcn.00404b88
mov eax, dword [ebx]
call fcn.00404940
test eax, eax
jle 0x4097bc
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x4097b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d9
lea eax, [ebp - 4]
call fcn.00404688
ret
Function at 0x409dd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b28
xor eax, eax
push ebp
push 0x409ea4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b38
push eax
call fcn.00407274
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409e86
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00404cc4
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b38
push eax
call fcn.0040726c
test eax, eax
je 0x409e86
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x409eb8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040727c
test eax, eax
je 0x409e86
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409eab
lea eax, [ebp - 0x1c]
call fcn.00404688
lea eax, [ebp - 4]
call fcn.00404688
ret

Function at 0x40a940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x40a978
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x40a96e
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x40a96e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a984
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret