joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452db8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x452dd1
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x452dca
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x452de5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045277c
test bl, bl
jne 0x452eb8
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x45e82c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x452e1c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x452e30
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00452c90
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x452e62
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x452e11
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x452e85
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x452e96
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x452eaa
jmp 0x452f73
cmp bl, 1
jne 0x452f73
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x45e886
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x452ed8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x452eec
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00452c90
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x452f1e
sub ebx, 6
inc dword [ebp - 8]
jne 0x452ecd
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x452f45
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x452f56
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x452f6a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00452800
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x458c60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048e8
lea eax, [ebp - 0x160]
mov edx, dword [0x407634]
call fcn.00404da8
xor eax, eax
push ebp
push 0x458e64
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
call fcn.0045851c
test al, al
je 0x458e2d
lea edx, [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.00458c1c
lea eax, [ebp - 0x164]
mov edx, 0x458e7c
call fcn.00404700
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00408e44
mov esi, eax
xor eax, eax
push ebp
push 0x458e15
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x458dfc
mov eax, dword [ebp - 0x154]
mov edx, 0x458e88
call fcn.00404844
je 0x458de7
mov eax, dword [ebp - 0x154]
mov edx, 0x458e94
call fcn.00404844
je 0x458de7
push 0x80
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 4]
call fcn.00458c1c
lea eax, [ebp - 0x168]
mov edx, dword [ebp - 0x154]
call fcn.00404700
mov eax, dword [ebp - 0x168]
call fcn.004048f8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x158]
and eax, 0x10
cmp eax, 0x10
jne 0x458db6
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 4]
call fcn.00458c1c
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 0x154]
call fcn.00404700
mov eax, dword [ebp - 0x16c]
mov ecx, ebx
mov dl, 1
call fcn.00458c60
mov byte [ebp - 6], al
jmp 0x458de7
test bl, bl
jne 0x458de7
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 4]
call fcn.00458c1c
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 0x154]
call fcn.00404700
mov eax, dword [ebp - 0x170]
call fcn.00408ed4
mov byte [ebp - 6], al
lea eax, [ebp - 0x160]
call fcn.00408e94
mov esi, eax
test esi, esi
je 0x458d14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458e1c
lea eax, [ebp - 0x160]
call fcn.00408eb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458e6b
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.0040445c
lea eax, [ebp - 0x160]
mov edx, dword [0x407634]
call fcn.00404e6c
lea eax, [ebp - 4]
call fcn.00404438
ret
Function at 0x45a19c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
lea eax, [ebp - 4]
push eax
push 0
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, 0x1f4
call fcn.00402a38
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45a1fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a201
mov eax, dword [ebp - 8]
call fcn.00402a68
ret

Function at 0x45a208
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
lea eax, [ebp - 4]
push eax
push 2
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, 0x1f4
call fcn.00402a38
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45a266
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a26d
mov eax, dword [ebp - 8]
call fcn.00402a68
ret
Function at 0x45a274
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004048e8
xor eax, eax
push ebp
push 0x45a4db
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.0045254c
mov edi, eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, edi
call fcn.0045256c
mov esi, eax
jmp 0x45a3d9
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.004046a8
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408fa8
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004082c4
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.004082c4
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00404844
je 0x45a3af
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.004046a8
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.004082c4
mov eax, dword [ebp - 0x148]
push eax
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 4]
call fcn.004082c4
mov edx, dword [ebp - 0x150]
pop eax
call fcn.00404844
jne 0x45a3ca
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
lea edx, [ebp - 0x134]
mov eax, edi
call fcn.0045258c
mov esi, eax
test esi, esi
jne 0x45a30a
push edi
call sub.kernel32.dll_CloseHandle
mov dl, 1
mov eax, dword [0x415b54]
call fcn.00403694
mov dword [ebp - 0xc], eax
mov dl, 0x2c
mov eax, dword [ebp - 0xc]
call fcn.004193cc
lea edx, [ebp - 0x154]
mov eax, ebx
call fcn.0045a4ec
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0xc]
call fcn.0041923c
xor eax, eax
push ebp
push 0x45a4a4
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x45a480
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0045a274
lea eax, [ebp - 0x158]
push eax
mov ecx, 0xf
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404958
mov edx, dword [ebp - 0x158]
mov eax, ebx
call fcn.0045a274
push 0xc8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x15c]
mov eax, ebx
call fcn.0045a4ec
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0xc]
call fcn.0041923c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x45a42b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a4ab
mov eax, dword [ebp - 0xc]
call fcn.004036c4
ret
Function at 0x45a658
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004048e8
xor eax, eax
push ebp
push 0x45a735
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004044d0
mov eax, dword [ebp - 8]
call fcn.00408db4
test al, al
je 0x45a71a
mov eax, dword [ebp - 8]
call fcn.004046f8
cmp eax, 3
jle 0x45a71a
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.004030a4
push dword [ebp - 8]
push 0x45a74c
push 0x45a75c
lea eax, [ebp - 8]
mov edx, 3
call fcn.004047b8
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 3
mov eax, dword [ebp - 8]
call fcn.004048f8
mov dword [ebp - 0x1e], eax
mov eax, 0x45a760
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x14
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
mov eax, dword [ebp - 4]
call fcn.0040909c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a73c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040445c
ret
Function at 0x404b08
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 0x404d38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b8b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b8b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c14
xor eax, eax
push ebp
push 0x404c0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404950
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 0x404bf2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404d74
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404bf2
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 0x404c14
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 0x404d2e
cmp byte [ebp - 0xd], 0
jne 0x404c5b
cmp byte [ebp - 0x12], 0
je 0x404d2e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404c74
dec ebx
cmp byte [ebx], 0x2e
je 0x404c83
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404c73
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d2e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404cc0
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 0x404d2e
cmp byte [ebp - 0xd], 0
je 0x404d2e
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 0x404d2e
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 0x404c14
Capabilities:
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_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b8b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404b8b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404d54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404c14
xor eax, eax
push ebp
push 0x404c0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404950
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 0x404bf2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404d74
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404bf2
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 0x404c14
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 0x404d2e
cmp byte [ebp - 0xd], 0
jne 0x404c5b
cmp byte [ebp - 0x12], 0
je 0x404d2e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404c74
dec ebx
cmp byte [ebx], 0x2e
je 0x404c83
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404c73
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404d2e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404cc0
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 0x404d2e
cmp byte [ebp - 0xd], 0
je 0x404d2e
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 0x404d2e
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 0x4053c4
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 0x40542a
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.00403cb4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405414
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405431
lea eax, [ebp - 0x10]
call fcn.00403a44
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ee0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406e75
test al, 0x10
jne 0x406e79
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4096f8
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 0x409731
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b34
jmp 0x40973a
mov eax, ebx
mov edx, esi
call fcn.00403a98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409744
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 0x409765
mov al, byte [esp]
jmp 0x409767
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409dec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409c64
mov eax, dword [0x4134fc]
cmp byte [eax], 0
je 0x409e68
mov eax, dword [0x41341c]
call fcn.004029a0
call fcn.0040271c
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.004070ac
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 0x409eb0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409e9e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4133f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414660]
call fcn.00404914
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 0x40ab4c
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 0x40abb0
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.00403cb4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406adc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abb7
lea eax, [ebp - 0xc]
call fcn.00403a44
ret

Function at 0x4122fc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x412304
push ecx
mov eax, dword [0x4134fc]
mov byte [eax], 1
mov eax, 0x412284
call fcn.00405624
xor eax, eax
push ebp
push 0x412445
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4149d0
mov eax, 1
call fcn.004028dc
mov edx, 0x4149d4
mov eax, 2
call fcn.004028dc
mov eax, dword [0x4149d0]
call fcn.00406e5c
test al, al
je 0x41242a
mov eax, dword [0x4149d4]
call fcn.00406e5c
test al, al
jne 0x41237f
lea eax, [ebp - 0x14]
call fcn.004121cc
mov edx, dword [ebp - 0x14]
mov eax, 0x4149d4
call fcn.00403a98
lea eax, [ebp - 0x18]
mov ecx, 0x41245c
mov edx, dword [0x4149d0]
call fcn.00403d2c
mov eax, dword [ebp - 0x18]
mov ecx, 0x414878
mov edx, 0x3f
call fcn.00406ee4
test eax, eax
jne 0x412420
test byte [0x414880], 0x10
jne 0x412412
lea eax, [ebp - 0x1c]
mov ecx, dword [0x414884]
mov edx, dword [0x4149d4]
call fcn.00403d2c
mov eax, dword [ebp - 0x1c]
call fcn.0041214c
test al, al
jne 0x412412
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [0x414884]
mov edx, dword [0x4149d4]
call fcn.00403d2c
mov eax, dword [ebp - 0x20]
call fcn.00403ee0
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [0x414884]
mov edx, dword [0x4149d0]
call fcn.00403d2c
mov eax, dword [ebp - 0x24]
call fcn.00403ee0
push eax
call sub.kernel32.dll_CopyFileA
mov eax, 0x414878
call fcn.00406f34
test eax, eax
je 0x4123a8
mov eax, 0x414878
call fcn.00406f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41244c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403a68
ret
Function at 0x40331e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor ebx, ebx
mov dword [ebp - 0x20], 0x25
mov esi, edx
lea eax, [ebp - 0x20]
push ebx
mov edi, ecx
mov ecx, esi
push eax
call fcn.0040174e
push esi
cmp eax, 0xffffffff
jne 0x40335e
mov ecx, edi
call fcn.00401f0e
jmp 0x4033f2
lea ecx, [ebp - 0x1c]
call fcn.00401f0e
cmp dword [esi + 0x14], 8
jb 0x403370
mov eax, dword [esi]
jmp 0x403372
mov eax, esi
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40338d
push esi
mov ecx, edi
call fcn.00401f0e
push ebx
jmp 0x4033e8
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00435a01
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x4033af
mov esi, dword [esi]
mov eax, dword [ebp - 0x20]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4033d4
cmp eax, dword [ebp - 0x20]
ja 0x4033d4
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [ebp - 0x1c]
push ebx
call fcn.004016c8
push ebx
call fcn.004368a4
pop ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004014d2
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004017f1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435a0a
mov esp, ebp
pop ebp
ret