joyce8/EMBER2024-capa huggingface dataset:
Function at 0xeaff10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xec49fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xeb0002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00eb3dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xeb0002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00eab6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00eb420b
push 0x10
call fcn.00eb41d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xeaffc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00ea01c0
jmp 0xeaffc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00eafb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xeafff0
mov ecx, edi
call fcn.00ea02c0
push edi
call fcn.00eb41c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xeb0021
inc ebx
cmp ebx, 0x20
jb 0xeaff3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xeb1250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xec5808
push 0xeb5288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xeb1329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xeb1329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00eb41d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xeb1329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xeb1329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xeb132c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00eb1351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xeb2000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xeb2131
push esi
call fcn.00eb5145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ea4080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xeb2131
push 0
push ebp
call fcn.00ea43a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ea4260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xeb208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ea42f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xeb2121
push 0xeca918
push edi
call fcn.00eb33f0
push eax
push ebx
push esi
call fcn.00eb1f60
push 0xeca8f8
push edi
call fcn.00eb33f0
push eax
push ebx
push esi
call fcn.00eb1f60
push 0xeca8d8
push edi
call fcn.00eb33f0
push eax
push ebx
push esi
call fcn.00eb1f60
push 0xeca8c0
push edi
call fcn.00eb33f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00eb1f60
push 0xeca8a0
push edi
call fcn.00eb33f0
push eax
push ebx
push esi
call fcn.00eb1f60
push 0xeca888
push edi
call fcn.00eb33f0
push eax
push ebx
push esi
call fcn.00eb1f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xeb31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00eb3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00eb3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00eb3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00eb3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xeb3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xeb3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xec587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xeb3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xeb3c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401390
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x4013a6
mov esi, 0x100000
jmp 0x4013b2
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_SetFileAttributesA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x4013ef
mov edx, ebx
mov eax, 0x4105e4
call fcn.00401244
test al, al
jne 0x4013ef
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4013f4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_SetFileAttributesA
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x40143e
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_SetFileAttributesA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x401466
mov edx, ebx
mov eax, 0x4105e4
call fcn.00401244
test al, al
jne 0x401466
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401524
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x4105e4]
jmp 0x4015a6
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x401578
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x401582
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x4015a4
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x4015a4
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x4015ae
mov esi, dword [esi]
cmp esi, 0x4105e4
jne 0x40156a
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401878
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x40192e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4105c4
call sub.KERNEL32.DLL_VirtualQuery
cmp byte [0x410045], 0
je 0x4018a6
push 0x4105c4
call sub.KERNEL32.DLL_WinExec
mov eax, 0x4105e4
call fcn.0040123c
mov eax, 0x4105f4
call fcn.0040123c
mov eax, 0x410620
call fcn.0040123c
push 0xff8
push 0
call sub.KERNEL32.DLL_LocalFree
mov dword [0x41061c], eax
cmp dword [0x41061c], 0
je 0x40190d
mov eax, 3
mov edx, dword [0x41061c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x4018e3
mov eax, 0x410604
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x410610], eax
mov byte [0x4105bc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401935
cmp byte [0x410045], 0
je 0x40192d
push 0x4105c4
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x40193c
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4105bc], 0
je 0x401a19
xor edx, edx
push ebp
push 0x401a12
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x410045], 0
je 0x40196e
push 0x4105c4
call sub.KERNEL32.DLL_WinExec
mov byte [0x4105bc], 0
mov eax, dword [0x41061c]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
xor eax, eax
mov dword [0x41061c], eax
mov ebx, dword [0x4105e4]
jmp 0x4019a1
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov ebx, dword [ebx]
cmp ebx, 0x4105e4
jne 0x40198f
mov eax, 0x4105e4
call fcn.0040123c
mov eax, 0x4105f4
call fcn.0040123c
mov eax, 0x410620
call fcn.0040123c
mov eax, dword [0x4105dc]
test eax, eax
je 0x4019e7
mov edx, dword [eax]
mov dword [0x4105dc], edx
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov eax, dword [0x4105dc]
test eax, eax
jne 0x4019d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401a19
cmp byte [0x410045], 0
je 0x401a07
push 0x4105c4
call sub.KERNEL32.DLL_WriteFile
push 0x4105c4
call sub.KERNEL32.DLL_WritePrivateProfileStringA
ret
pop ebx
pop ebp
ret
Function at 0x401f64
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4105bc], 0
jne 0x401f81
call fcn.00401878
test al, al
je 0x401f89
cmp ebx, 0x7ffffff8
jle 0x401f93
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4020e7
xor ecx, ecx
push ebp
push 0x4020e0
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x410045], 0
je 0x401fb4
push 0x4105c4
call sub.KERNEL32.DLL_WinExec
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x401fc4
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x402063
mov eax, ebx
test eax, eax
jns 0x401fd9
add eax, 3
sar eax, 2
mov edx, dword [0x41061c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x402063
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402014
mov eax, ebx
test eax, eax
jns 0x402003
add eax, 3
sar eax, 2
mov ecx, dword [0x41061c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x40203a
mov ecx, ebx
test ecx, ecx
jns 0x40201d
add ecx, 3
sar ecx, 2
mov edi, dword [0x41061c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4105ac]
sub ebx, 4
add dword [0x4105b0], ebx
call fcn.00403cc0
jmp 0x4020e7
cmp ebx, dword [0x410614]
jg 0x4020b5
sub dword [0x410614], ebx
cmp dword [0x410614], 0xc
jge 0x402087
add ebx, dword [0x410614]
xor eax, eax
mov dword [0x410614], eax
mov eax, dword [0x410618]
add dword [0x410618], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4105ac]
sub ebx, 4
add dword [0x4105b0], ebx
call fcn.00403cc0
jmp 0x4020e7
mov eax, ebx
call fcn.00401e70
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4020e7
cmp byte [0x410045], 0
je 0x4020df
push 0x4105c4
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4020f4
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4105c0], eax
cmp byte [0x4105bc], 0
jne 0x40212c
call fcn.00401878
test al, al
jne 0x40212c
mov dword [0x4105c0], 8
mov dword [ebp - 4], 8
jmp 0x40228d
xor ecx, ecx
push ebp
push 0x402286
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x410045], 0
je 0x40214d
push 0x4105c4
call sub.KERNEL32.DLL_WinExec
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x402168
mov dword [0x4105c0], 9
jmp 0x40225d
dec dword [0x4105ac]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4105b0], eax
test bl, 1
je 0x4021c8
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402198
test edx, 0x80000003
je 0x4021a7
mov dword [0x4105c0], 0xa
jmp 0x40225d
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x4021bf
mov dword [0x4105c0], 0xa
jmp 0x40225d
add ebx, edx
mov esi, eax
call fcn.00401a1c
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x410618]
jne 0x402208
sub dword [0x410618], ebx
add dword [0x410614], ebx
cmp dword [0x410614], 0x3c00
jle 0x4021f9
call fcn.00401d0c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00403cc0
jmp 0x40228d
mov edx, dword [eax]
test dl, 2
je 0x40222b
and edx, 0x7ffffffc
cmp edx, 4
jge 0x402226
mov dword [0x4105c0], 0xb
jmp 0x40225d
or dword [eax], 1
jmp 0x402254
mov eax, edi
cmp dword [eax + 4], 0
je 0x40223e
cmp dword [eax], 0
je 0x40223e
cmp dword [eax + 8], 0xc
jge 0x40224a
mov dword [0x4105c0], 0xb
jmp 0x40225d
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401a1c
mov edx, ebx
mov eax, esi
call fcn.00401c84
mov eax, dword [0x4105c0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40228d
cmp byte [0x410045], 0
je 0x402285
push 0x4105c4
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4027b4
Capabilities:
Get disk size
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004041b4
test esi, esi
jne 0x4027ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetLocaleInfoA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042a4
jmp 0x402808
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026c8
mov edi, eax
test esi, esi
je 0x402808
cmp dword [ebx], 0
je 0x402808
dec esi
jmp 0x4027f1
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x402ec0
Capabilities:
Copy file
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor edx, edx
mov ebx, eax
mov dx, word [eax + 4]
sub edx, 0xd7b0
je 0x402eec
cmp edx, 3
ja 0x402f82
call dword [ebx + 0x24]
test eax, eax
je 0x402eec
call fcn.0040264c
mov word [ebx + 4], 0xd7b3
mov dword [ebx + 8], esi
mov dword [ebx + 0x24], 0x402e98
mov dword [ebx + 0x1c], 0x4028f4
cmp byte [ebx + 0x48], 0
je 0x402f69
mov eax, 0xc0000000
mov dl, byte [0x40f008]
and edx, 0x70
shr edx, 2
mov edx, dword [edx + 0x40f058]
mov ecx, 2
sub edi, 3
je 0x402f4b
mov ecx, 3
inc edi
je 0x402f4b
mov eax, 0x40000000
inc edi
mov word [ebx + 4], 0xd7b2
je 0x402f4b
mov eax, 0x80000000
mov word [ebx + 4], 0xd7b1
push 0
push 0x80
push ecx
push 0
push edx
push eax
lea eax, [ebx + 0x48]
push eax
call sub.KERNEL32.DLL_TlsSetValue
cmp eax, 0xffffffff
je 0x402f89
mov dword [ebx], eax
jmp 0x402f99
mov dword [ebx + 0x24], 0x4028f4
cmp edi, 3
je 0x402f79
push 0xfffffffffffffff6
jmp 0x402f7b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_CopyFileA
jmp 0x402f60
mov eax, 0x66
jmp 0x402f94
mov word [ebx + 4], 0xd7b0
call sub.KERNEL32.DLL_GetLastError
call fcn.0040264c
pop edi
pop esi
pop ebx
ret

Function at 0x404038
Capabilities:
Copy file

Disassembly:
push ecx
cmp byte [0x410044], 0
je 0x404099
cmp word [0x410218], 0xd7b2
jne 0x404061
cmp dword [0x410220], 0
jbe 0x404061
mov eax, 0x410214
call dword [0x410230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40f080
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_CopyFileA
push eax
call sub.KERNEL32.DLL_FindFirstFileA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040c0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_CopyFileA
push eax
call sub.KERNEL32.DLL_FindFirstFileA
pop edx
ret
cmp byte [0x40f020], 0
jne 0x4040b5
push 0
push 0x40f078
push 0x40f080
push 0
call sub.user32.dll_SetTimer
pop edx
ret

Function at 0x4049a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x4049e3
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov eax, esp
mov dl, 1
call fcn.00404be4
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x4049e3
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x404a2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x404bc0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov esi, eax
test esi, esi
je 0x404a94
push 0x404bd0
push esi
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x404a94
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x404a94
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
jmp 0x404bb6
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x404ad4
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x404bb6
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00404a18
mov esi, eax
cmp byte [esi], 0
je 0x404bb6
lea eax, [esi + 1]
call fcn.00404a18
mov esi, eax
cmp byte [esi], 0
je 0x404bb6
jmp 0x404ada
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
jmp 0x404b99
lea eax, [esi + 1]
call fcn.00404a18
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x404bb6
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetCPInfo
mov esi, eax
cmp esi, 0xffffffff
je 0x404bb6
push esi
call sub.KERNEL32.DLL_GetACP
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x404bb6
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x404af8
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404be4
Capabilities:
Get common file path
Get geographical location

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_GetLocaleInfoA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e14
push 0x80000001
call sub.user32.dll_IsCharAlphaA
test eax, eax
je 0x404c67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e14
push 0x80000002
call sub.user32.dll_IsCharAlphaA
test eax, eax
je 0x404c67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e30
push 0x80000001
call sub.user32.dll_IsCharAlphaA
test eax, eax
jne 0x404cf0
xor eax, eax
push ebp
push 0x404ce9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404a2c
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.user32.dll_LoadStringA
test eax, eax
je 0x404cce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404e50
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_LoadStringA
test eax, eax
je 0x404cce
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 0x404cf0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetSystemMetrics
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetProcAddress
push eax
call sub.KERNEL32.DLL_GetLocalTime
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404e0a
cmp byte [ebp - 0xd], 0
jne 0x404d37
cmp byte [ebp - 0x12], 0
je 0x404e0a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d50
dec ebx
cmp byte [ebx], 0x2e
je 0x404d5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404e0a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d9c
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_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
test esi, esi
jne 0x404e0a
cmp byte [ebp - 0xd], 0
je 0x404e0a
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_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
test esi, esi
jne 0x404e0a
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_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret