joyce8/EMBER2024-capa huggingface dataset:
Function at 0x691874
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0069ad78
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x691888
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.0069ad78
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x6918aa
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x691db4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0069aa1c
add esp, 0x104
pop ebx
ret

Function at 0x694534
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x69456d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0069aa1c
jmp 0x694576
mov eax, ebx
mov edx, esi
call fcn.0069a988
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x694580
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
test eax, eax
jle 0x6945a1
mov al, byte [esp]
jmp 0x6945a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x6992b4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x6992f1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x699311
lea eax, [esp + 0x108]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.0069ab64
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x699538
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x699567
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0069aa1c
jmp 0x699585
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00699460
mov edi, eax
test ebx, ebx
je 0x699585
cmp dword [esi], 0
je 0x699585
dec ebx
jmp 0x69956e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x7caf50], 0x8088405
inc edx
mov dword [0x7caf50], edx
mul edx
mov eax, edx
ret
Function at 0x699af4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x7bf120]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x699b8c
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x699b6c
xor eax, eax
push ebp
push 0x699b65
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 0x699ba8
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 0x699b6c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x7bf120]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x7bf120], ax
mov esp, ebp
pop ebp
ret

Function at 0x69a8e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.006990b0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x7caf55], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x69a8b0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x69d474
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 0x69d630
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x69d4d5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x69d64c
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x69d547
xor eax, eax
push ebp
push 0x69d540
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]
call fcn.0069d2cc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x69d529
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x69d66c
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 0x69d547
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 0x69d628
cmp byte [ebp - 0xd], 0
jne 0x69d589
cmp byte [ebp - 0x12], 0
je 0x69d628
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x69d5a2
dec ebx
cmp byte [ebx], 0x2e
je 0x69d5b1
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x69d5a1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x69d628
inc ebx
cmp byte [ebp - 0x12], 0
je 0x69d5de
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 0x69d628
cmp byte [ebp - 0xd], 0
je 0x69d628
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 0x69d628
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 0x69d960
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x69d9bc
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_ReadFile
dec eax
pop eax
pop ecx
jne 0x69d9ae
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x69d9a3
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x69d99e
mov eax, 0x64
jmp 0x69d9b3
call sub.KERNEL32.DLL_GetLastError
call fcn.00699208
xor eax, eax
jmp 0x69d99e
mov eax, 0x67
jmp 0x69d9b3
Function at 0x69da00
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x69da43
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x69da3a
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
je 0x69da3a
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00699218
mov al, 1
jmp 0x69da38
mov eax, 0x67
call fcn.00699208
mov al, 0xff
jmp 0x69da38

Function at 0x69db8c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x69dc74
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x7cb338], 1
jae 0x69dc66
xor eax, eax
mov dword [0x7caf44], eax
xor eax, eax
mov dword [0x7caf4c], eax
xor eax, eax
mov dword [0x7caf50], eax
mov byte [0x7caf56], 2
mov byte [0x7caf57], 2
mov byte [0x7caf58], 3
mov word [0x7cb300], 0
mov word [0x7cb310], 1
mov word [0x7cb320], 0xa
mov dword [0x7cb328], 0x80020004
mov dword [0x7cb2f4], 0x69b9fc
mov dword [0x7cb2f8], 0x69b9f4
mov dword [0x7cb2fc], 0x69b9fc
call fcn.00699ac4
test al, al
je 0x69dc25
call fcn.00699af4
call fcn.00699bb8
mov eax, 0x7caf5c
mov edx, 0x69dc80
call fcn.00696d3a
mov eax, 0x7cb128
mov edx, 0x69dc80
call fcn.00696d3a
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x7caf3c], eax
call fcn.00697d6c
mov dword [0x7caf38], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x7caf30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x69dc7b
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x6a9aac
call fcn.006ab1c8
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x6a9ac8
test bl, 1
je 0x6a9ac8
call fcn.006b0d40
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x6a9cac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.006aad64
test byte [ebp + 0xd], 0xc0
jne 0x6a9cd0
mov eax, dword [0x7c39a0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x6a9cdd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x6a9d0a
je 0x6a9d1c
sub ecx, 0x100
je 0x6a9d2a
sub ecx, 0x100
je 0x6a9d31
sub ecx, 0x100
je 0x6a9d23
jmp 0x6a9d38
sub ecx, 0x600
je 0x6a9d31
sub ecx, 0x100
je 0x6a9d1c
jmp 0x6a9d38
mov edi, 1
jmp 0x6a9d3d
mov edi, 2
jmp 0x6a9d3d
mov edi, 4
jmp 0x6a9d3d
mov edi, 5
jmp 0x6a9d3d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x6a9d64
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x7c3418]
test al, 0x80
je 0x6a9d5d
mov ebx, 0x80
jmp 0x6a9d76
mov ebx, 1
jmp 0x6a9d76
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x6a9d76
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x6a9d88
je 0x6a9d91
dec eax
je 0x6a9d9a
jmp 0x6a9da3
mov dword [ebp - 4], connect
jmp 0x6a9db2
mov dword [ebp - 4], 0x40000000
jmp 0x6a9db2
mov dword [ebp - 4], 0xc0000000
jmp 0x6a9db2
push 1
call fcn.006ab15c
pop ecx
mov ebx, eax
jmp 0x6a9ea2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x6a9dce
sub eax, 0x10
je 0x6a9dd5
sub eax, 0x10
je 0x6a9dde
sub eax, 0x10
je 0x6a9de7
jmp 0x6a9de7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x6a9dee
mov dword [ebp - 8], 1
jmp 0x6a9dee
mov dword [ebp - 8], 2
jmp 0x6a9dee
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x6a9e5b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x6a9e50
test byte [ebp + 0xd], 1
je 0x6a9e4b
mov ebx, 0x50
jmp 0x6a9e50
mov ebx, 2
push ebx
call fcn.006ab15c
pop ecx
mov ebx, eax
jmp 0x6a9ea2
mov edi, esi
push edi
call fcn.006a9c10
pop ecx
test eax, eax
je 0x6a9e6f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x6a9e7b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.006aae84
add esp, 8
mov ebx, eax
inc eax
jne 0x6a9ea2
push 4
call fcn.006ab15c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.006aad98
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6aa064
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.006aad64
test byte [ebp + 0xd], 0xc0
jne 0x6aa088
mov eax, dword [0x7c39a0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x6aa095
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x6aa0c2
je 0x6aa0d4
sub ecx, 0x100
je 0x6aa0e2
sub ecx, 0x100
je 0x6aa0e9
sub ecx, 0x100
je 0x6aa0db
jmp 0x6aa0f0
sub ecx, 0x600
je 0x6aa0e9
sub ecx, 0x100
je 0x6aa0d4
jmp 0x6aa0f0
mov edi, 1
jmp 0x6aa0f5
mov edi, 2
jmp 0x6aa0f5
mov edi, 4
jmp 0x6aa0f5
mov edi, 5
jmp 0x6aa0f5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x6aa11c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x7c3418]
test al, 0x80
je 0x6aa115
mov ebx, 0x80
jmp 0x6aa12e
mov ebx, 1
jmp 0x6aa12e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x6aa12e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x6aa140
je 0x6aa149
dec eax
je 0x6aa152
jmp 0x6aa15b
mov dword [ebp - 4], connect
jmp 0x6aa16a
mov dword [ebp - 4], 0x40000000
jmp 0x6aa16a
mov dword [ebp - 4], 0xc0000000
jmp 0x6aa16a
push 1
call fcn.006ab15c
pop ecx
mov ebx, eax
jmp 0x6aa25a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x6aa186
sub eax, 0x10
je 0x6aa18d
sub eax, 0x10
je 0x6aa196
sub eax, 0x10
je 0x6aa19f
jmp 0x6aa19f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x6aa1a6
mov dword [ebp - 8], 1
jmp 0x6aa1a6
mov dword [ebp - 8], 2
jmp 0x6aa1a6
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x6aa213
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x6aa208
test byte [ebp + 0xd], 1
je 0x6aa203
mov ebx, 0x50
jmp 0x6aa208
mov ebx, 2
push ebx
call fcn.006ab15c
pop ecx
mov ebx, eax
jmp 0x6aa25a
mov edi, esi
push edi
call fcn.006a9c10
pop ecx
test eax, eax
je 0x6aa227
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x6aa233
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.006aae84
add esp, 8
mov ebx, eax
inc eax
jne 0x6aa25a
push 4
call fcn.006ab15c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.006aad98
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6aa57c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x6aa598
call fcn.006ab1c8
jmp 0x6aa607
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x6aa5b4
call fcn.006ab1c8
jmp 0x6aa607
cmp dword [0x7cbf34], 1
je 0x6aa605
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.006b0bc0
pop ecx
cmp al, 0x41
jl 0x6aa605
cmp al, 0x5a
jg 0x6aa605
cmp byte [ebp - 0x107], 0x3a
jne 0x6aa605
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x6aa605
call fcn.006ab1c8
jmp 0x6aa607
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x6aa614
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x6aa643
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x6aa64d
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x6aa658
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x6aa6be
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x6aa6be
call fcn.006ab1c8
jmp 0x6aa6f9
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x6aa6ce
call fcn.006ab1c8
jmp 0x6aa6f9
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x6aa6f4
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x6aa6f2
cmp ebx, 1
je 0x6aa6f2
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x6aa6df
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6ad940
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.006a8838
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.006a88c8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.006a88c8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x7c463d
lea ecx, [ebp - 0x200]
push ecx
call fcn.006a8838
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.006a88c8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.006aeb58
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x6ada51
push esi
call fcn.006a88c8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.006a88c8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0069e4c8
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x6ada28
xor eax, eax
jmp 0x6adad8
push esi
call fcn.006a88c8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.006a88c8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.006a8794
add esp, 0xc
jmp 0x6ada91
mov edi, dword [ebx + 0x24]
push edi
call fcn.006a88c8
pop ecx
push eax
push esi
call fcn.006a88c8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.006a88c8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0069e4e8
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x6ada91
xor eax, eax
jmp 0x6adad8
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.006a8838
add esp, 8
push 0x7c463f
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.006a8838
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.006a8838
add esp, 8
push 0x7c4641
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.006a8838
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6b0cd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x6b0d3a
call fcn.006b0c88
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.006a88c8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.006a88c8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x6b0db8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x7c4cb8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x6b0e92
cmp dword [0x7c4cb4], 0
jne 0x6b0e92
cmp dword [0x7c4ec0], 0
je 0x6b0e4c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.006b0b68
add esp, 8
mov ebx, eax
test eax, eax
jne 0x6b0e32
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.006b0b68
add esp, 8
mov ebx, eax
test eax, eax
jne 0x6b0e32
lea ebx, [ebp - 0x84]
jmp 0x6b0e33
inc ebx
call fcn.006b0d74
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x6b0ecd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x7c4cbc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.006a88c8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x7c4cbf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x6b0ecd
cmp dword [0x7c4cb4], 0
je 0x6b0eac
cmp dword [0x7c4cb4], 0xffffffff
je 0x6b0ecd
push esi
call dword [0x7c4cb4]
pop ecx
mov eax, dword [0x7c4cb8]
test eax, eax
je 0x6b0ecd
cmp dword [0x7c4cb8], 0xffffffff
je 0x6b0ecd
cmp byte [eax], 0
je 0x6b0ecd
push esi
push eax
call fcn.006b0cd8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret