joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10234a60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.10201a90
mov eax, dword [0x1027c570]
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jge 0x10234aaa
push str.size___0
push 0
push 0x79
push str.chsize.c
push 2
call sym.MSVCR71D.dll__CrtDbgReport
add esp, 0x14
cmp eax, 1
jne 0x10234aaa
int3
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.1021b8c0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x10234adc
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1021b8c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10234ae4
or eax, 0xffffffff
jmp 0x10234c2f
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x10234bc5
push 0x1000
push 0
mov edx, dword [ebp - 0x18]
push edx
call sym.MSVCR71D.dll_memset
add esp, 0xc
push 0x8000
mov eax, dword [ebp + 8]
push eax
call fcn.10238520
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0x1000
jl 0x10234b33
mov dword [ebp - 0x1024], 0x1000
jmp 0x10234b3c
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1024], ecx
mov edx, dword [ebp - 0x1024]
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], 0x1000
jl 0x10234b5a
mov dword [ebp - 0x1028], 0x1000
jmp 0x10234b63
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1028], eax
mov ecx, dword [ebp - 0x1028]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1021b480
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10234ba0
call sym.MSVCR71D.dll___doserrno
cmp dword [eax], 5
jne 0x10234b98
call sym.MSVCR71D.dll__errno
mov dword [eax], 0xd
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x10234bb3
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jg 0x10234b1e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10238520
add esp, 8
jmp 0x10234c1a
cmp dword [ebp - 0xc], 0
jge 0x10234c1a
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1021b8c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call sym.MSVCR71D.dll__get_osfhandle
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10234c1a
call sym.MSVCR71D.dll__errno
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call sym.MSVCR71D.dll___doserrno
mov dword [eax], esi
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1021b8c0
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
call fcn.1020cd80
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x102505c0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [ebp + 0xc], 0
jne 0x102505e4
lea eax, [ebp - 0x10]
push eax
call sym.MSVCR71D.dll_time
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
call sym.MSVCR71D.dll_localtime
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1025060f
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250771
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
mov word [ebp - 0x2c], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov word [ebp - 0x2a], cx
mov edx, dword [ebp - 4]
mov ax, word [edx + 0xc]
mov word [ebp - 0x26], ax
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 8]
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 4]
mov cx, word [eax + 4]
mov word [ebp - 0x22], cx
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x10250681
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
jne 0x10250694
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250771
mov edx, dword [ebp + 0xc]
push edx
call sym.MSVCR71D.dll_localtime
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x102506bc
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250771
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
add ecx, 0x76c
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 1
mov word [ebp - 0x2a], ax
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0xc]
mov word [ebp - 0x26], dx
mov eax, dword [ebp - 4]
mov cx, word [eax + 8]
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 4]
mov ax, word [edx + 4]
mov word [ebp - 0x22], ax
mov ecx, dword [ebp - 4]
mov dx, word [ecx]
mov word [ebp - 0x20], dx
mov word [ebp - 0x1e], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1025072e
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
jne 0x1025073e
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250771
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sym.MSVCR71D.dll__get_osfhandle
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1025076f
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250771
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x102507d0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0xc], 0
jne 0x102507fa
lea eax, [ebp - 0x18]
push eax
call sym.MSVCR71D.dll__time64
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x20]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
push ecx
call sym.MSVCR71D.dll__localtime64
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10250825
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250986
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
add eax, 0x76c
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, 1
mov word [ebp - 0x36], dx
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xc]
mov word [ebp - 0x32], cx
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ebp - 0x30], ax
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 4]
mov word [ebp - 0x2e], dx
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], 0
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x10250896
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
jne 0x102508a9
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250986
mov eax, dword [ebp + 0xc]
push eax
call sym.MSVCR71D.dll__localtime64
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x102508d1
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250986
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
mov word [ebp - 0x38], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, 1
mov word [ebp - 0x36], cx
mov edx, dword [ebp - 4]
mov ax, word [edx + 0xc]
mov word [ebp - 0x32], ax
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 8]
mov word [ebp - 0x30], dx
mov eax, dword [ebp - 4]
mov cx, word [eax + 4]
mov word [ebp - 0x2e], cx
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ebp - 0x2c], ax
mov word [ebp - 0x2a], 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x10250943
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
jne 0x10250953
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250986
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sym.MSVCR71D.dll__get_osfhandle
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x10250984
call sym.MSVCR71D.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10250986
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404154
test esi, esi
jne 0x402aa6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404244
jmp 0x402ac4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402984
mov edi, eax
test esi, esi
je 0x402ac4
cmp dword [ebx], 0
je 0x402ac4
dec esi
jmp 0x402aad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403194
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x471020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40322c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40320c
xor eax, eax
push ebp
push 0x403205
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 0x403248
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40320c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x471020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x471020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47304c], 0
je 0x404039
cmp word [0x473220], 0xd7b2
jne 0x404001
cmp dword [0x473228], 0
jbe 0x404001
mov eax, 0x47321c
call dword [0x473238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47106c
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 0x404060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x471030], 0
jne 0x404055
push 0
push 0x471064
push 0x47106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4058a8
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 0xf0019
push 0
push 0x405ad8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40592b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ad8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40592b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405af4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4059b4
xor eax, eax
push ebp
push 0x4059ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004056f0
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 0x405992
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405b14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405992
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 0x4059b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405ace
cmp byte [ebp - 0xd], 0
jne 0x4059fb
cmp byte [ebp - 0x12], 0
je 0x405ace
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405a14
dec ebx
cmp byte [ebx], 0x2e
je 0x405a23
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405a13
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ace
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405a60
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ace
cmp byte [ebp - 0xd], 0
je 0x405ace
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 sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ace
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 sub.kernel32.dll_lstrcpynA
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 0x4061e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40624a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d58
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406234
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406251
lea eax, [ebp - 0x10]
call fcn.00404154
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404614
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408b7d
test al, 0x10
jne 0x408b81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b564
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b59d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404244
jmp 0x40b5a6
mov eax, ebx
mov edx, esi
call fcn.004041a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5b0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b5d1
mov al, byte [esp]
jmp 0x40b5d3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc58
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bad0
mov eax, dword [0x472484]
cmp byte [eax], 0
je 0x40bcd4
mov eax, dword [0x47223c]
call fcn.00402b88
call fcn.004028b0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408da4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bd1c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd0a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4721e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x473668]
call fcn.004056b4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c5b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c68e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041ec
lea eax, [ebp - 8]
call fcn.00404664
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404614
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c678
mov eax, ebx
call fcn.00402748
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c671
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 - 8]
call fcn.00404614
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c65b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6a0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c65b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c678
mov eax, dword [ebp - 0x10]
call fcn.00402768
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c695
lea eax, [ebp - 8]
call fcn.00404154
ret

Function at 0x40cbe4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cc48
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004043c4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040883c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc4f
lea eax, [ebp - 0xc]
call fcn.00404154
ret

Function at 0x41f700
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x473888
cmp dword [edi], 0
jne 0x41f77c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x473884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4714a4
mov ecx, 2
call fcn.00402944
mov edx, 0x41f6d8
lea eax, [esi + 5]
call fcn.0041f6f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f6f8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f751
mov dword [0x473884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420d08
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420d0e
ret
Function at 0x4231dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42322d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423214
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423204
jmp 0x42322d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423215
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bdd8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404604
xor eax, eax
push ebp
push 0x42bf06
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42bed9
xor eax, eax
push ebp
push 0x42bed2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404414
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42bea7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42be96
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404414
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404614
mov edx, ebx
pop ecx
call fcn.00402944
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42be9d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x472178]
mov dl, 1
mov eax, dword [0x407574]
call fcn.0040bddc
call fcn.00403b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bf0d
lea eax, [ebp - 4]
call fcn.00404154
ret