joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6eeeb8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x6eefea
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x6eefea
cmp dword [esp + 0x28], 0
je 0x6eefea
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x6eefea
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x730898], eax
cmp dword [ebp], 0
jne 0x6eef9e
mov dword [ebp], 0x6eee88
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x6eefad
mov dword [eax], 0x6eee78
mov ecx, dword [esi]
test ecx, ecx
je 0x6eefda
cmp dword [edi], 0
je 0x6eefea
cmp dword [ebx], 0
je 0x6eefea
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x6eefea
cmp dword [ebp], 0
je 0x6eefea
cmp dword [eax], 0
je 0x6eefea
xor eax, eax
test ecx, ecx
setne al
jmp 0x6eefec
mov dword [esi], 0x6eee78
mov ecx, 0x6eee78
cmp dword [edi], 0
jne 0x6eefb8
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x6f0688
Capabilities:
Check if file exists

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.006f2520
test bh, 0xc0
jne 0x6f06ab
mov eax, dword [0x7251a0]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x6f06cf
sar eax, 6
mov esi, dword [eax + 0x724bc8]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x6f06f8
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x724c04]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x6f070b
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x6f0724
cmp al, 2
je 0x6f072b
cmp al, 1
jne 0x6f0823
mov eax, 0x40000000
jmp 0x6f0730
mov eax, 0x80000000
jmp 0x6f0730
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x6f0800
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.006f05e0
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.006f26e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x6f0831
mov dword [esp], 4
call fcn.006f2abc
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x6f0831
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x6f082a
mov dword [esp], 1
call fcn.006f2abc
mov edi, eax
call fcn.006f2570
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x6f1084
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x7250b8], eax
jbe 0x6f10c1
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x7309ac]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x6f10c8
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x6f10de
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x6f10da
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.006f2abc
add esp, 0x10
add esp, 0xc
ret
Function at 0x6f10fc
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x7250b8], eax
jbe 0x6f1139
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x7309ac]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x6f114a
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.006f2abc
add esp, 0x10
add esp, 0xc
ret
call fcn.006f2b5c
add esp, 0xc
ret
Function at 0x6f12c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x16c
mov ebx, dword [esp + 0x184]
mov edi, dword [esp + 0x180]
sub esp, 4
lea esi, [esp + 0x30]
push 0x140
push 0
push esi
call fcn.006f003b
add esp, 0x10
cmp edi, 0xfffffffe
jne 0x6f1316
lea ebp, [ebx + 0x14]
sub esp, 8
push esi
push ebp
call sub.KERNEL32.DLL_FindFirstFileA
add esp, 8
lea ecx, [eax + 1]
cmp ecx, 1
jbe 0x6f132b
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
jmp 0x6f1345
sub esp, 8
push esi
push edi
call sub.KERNEL32.DLL_FindNextFileA
add esp, 8
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x6f133a
call fcn.006f2b1c
mov eax, 0xffffffff
jmp 0x6f1494
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx], eax
lea eax, [esp + 0x30]
sub esp, 8
lea ecx, [esp + 0x2c]
push ecx
mov esi, ecx
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.DLL_FileTimeToSystemTime
add esp, 8
movzx eax, word [esp + 0xc]
add eax, 0xfffff894
movzx ecx, word [esp + 0xe]
dec ecx
movzx edx, word [esp + 0x12]
dec edx
movzx ebp, word [esp + 0x14]
mov edi, ebx
movzx ebx, word [esp + 0x16]
movzx esi, word [esp + 0x18]
sub esp, 4
push 0xffffffffffffffff
push esi
push ebx
push ebp
push edx
push ecx
push eax
call fcn.00701870
add esp, 0x20
mov dword [edi + 4], eax
lea eax, [esp + 0x38]
sub esp, 8
lea edi, [esp + 0x2c]
push edi
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea eax, [esp + 0x14]
push eax
push edi
call sub.KERNEL32.DLL_FileTimeToSystemTime
add esp, 8
movzx eax, word [esp + 0xc]
add eax, 0xfffff894
movzx ecx, word [esp + 0xe]
dec ecx
movzx edx, word [esp + 0x12]
dec edx
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
movzx ebp, word [esp + 0x18]
sub esp, 4
push 0xffffffffffffffff
push ebp
push ebx
push esi
push edx
push ecx
push eax
call fcn.00701870
add esp, 0x20
mov ecx, dword [esp + 0x184]
mov dword [ecx + 8], eax
lea eax, [esp + 0x40]
sub esp, 8
push edi
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea eax, [esp + 0x14]
push eax
push edi
call sub.KERNEL32.DLL_FileTimeToSystemTime
add esp, 8
movzx eax, word [esp + 0xc]
add eax, 0xfffff894
movzx ecx, word [esp + 0xe]
dec ecx
movzx edx, word [esp + 0x12]
dec edx
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
movzx ebp, word [esp + 0x18]
sub esp, 4
push 0xffffffffffffffff
push ebp
push ebx
push esi
push edx
push ecx
push eax
call fcn.00701870
add esp, 0x20
mov ecx, dword [esp + 0x184]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x10], eax
lea eax, [esp + 0x58]
sub esp, 8
push eax
push dword [esp + 0x2c]
call fcn.006f0154
add esp, 0x10
xor eax, eax
cmp dword [esp + 0x180], 0xfffffffe
cmove eax, dword [esp + 0x1c]
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x6f1910
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebx
push edi
push esi
sub esp, 0x150
mov esi, dword [esp + 0x160]
mov edi, dword [esi]
test byte [edi + 8], 8
je 0x6f19d1
mov eax, dword [edi + 4]
cmp eax, 0xfffffffe
je 0x6f1a97
cmp eax, 0xffffffff
jne 0x6f19d1
mov dword [esi + 8], 8
sub esp, 4
push 0xff
push dword [edi + 0xc]
push 0x730a7c
call fcn.006f2414
add esp, 4
lea ebx, [esp + 0x1c]
push 0
push 0
push 0
push ebx
push 0x730a7c
call fcn.006f7788
add esp, 0x14
push ebx
call fcn.006f01a0
add esp, 0x10
mov word [esp + eax + 0x10], 0x5c
mov byte [0x730a7c], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x730a7c
push ebx
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x6f1a8c
add esi, 0x10
sub esp, 8
push 0x730a7c
push esi
call fcn.006f0154
add esp, 0x10
mov dword [edi + 4], 0xfffffffe
jmp 0x6f1a88
lea ebx, [esp + 0x10]
nop word cs:[eax + eax]
mov eax, dword [edi + 4]
cmp eax, 0xfffffffe
jb 0x6f1a20
mov dword [edi + 4], 0xffffffff
sub esp, 8
push ebx
push dword [edi + 0xc]
call sub.KERNEL32.DLL_FindFirstFileA
add esp, 8
mov ecx, eax
mov dword [edi + 4], ecx
xor eax, eax
cmp ecx, 0xffffffff
setne al
test eax, eax
jne 0x6f1a31
jmp 0x6f1a8c
sub esp, 8
push ebx
push eax
call sub.KERNEL32.DLL_FindNextFileA
add esp, 8
test eax, eax
je 0x6f1a8c
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x16
je 0x6f1a41
test dword [edi + 8], ecx
je 0x6f19e0
mov dword [esi + 8], eax
lea eax, [esp + 0x24]
sub esp, 8
lea edi, [esp + 0x10]
push edi
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
add esp, 8
lea eax, [esi + 0xe]
lea ecx, [esi + 0xc]
sub esp, 4
push ecx
push eax
push edi
call sub.KERNEL32.DLL_FileTimeToDosDateTime
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
add esi, 0x10
lea eax, [esp + 0x3c]
sub esp, 8
push eax
push esi
call fcn.006f0154
add esp, 0x10
xor eax, eax
jmp 0x6f1a9c
call fcn.006f2b1c
neg eax
sbb eax, eax
jmp 0x6f1a9c
mov eax, 0xffffffff
add esp, 0x150
pop esi
pop edi
pop ebx
ret

Function at 0x6f2414
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp], 0x104
call fcn.006ef27c
mov esi, eax
test esi, esi
je 0x6f249e
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0x104
call sub.KERNEL32.DLL_GetFullPathNameA
sub esp, 0x10
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, 0x103
jae 0x6f2496
cmp byte [esi + 1], 0x3a
jne 0x6f2487
mov al, byte [esi]
mov byte [esp + 0x18], al
mov word [esp + 0x19], 0x5c3a
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetDriveTypeA
sub esp, 4
cmp eax, 1
jbe 0x6f2496
mov edi, dword [esp + 0x30]
inc ebx
test edi, edi
je 0x6f24a9
cmp ebx, dword [esp + 0x38]
jbe 0x6f24b9
mov dword [esp], esi
call fcn.006ef28c
xor edi, edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.006ef294
mov edi, eax
jmp 0x6f24a0
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.006f0154
mov dword [esp], esi
call fcn.006ef28c
jmp 0x6f24a0
Function at 0x6f3330
Capabilities:
Move file

Disassembly:
sub esp, 0x14
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.KERNEL32.DLL_MoveFileA
add esp, 8
cmp eax, 1
jne 0x6f334e
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.006f2b5c
Function at 0x6f5190
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x6f51ad
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.006f2b5c

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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.006f2520
test bh, 0xc0
jne 0x6f0a3f
mov eax, dword [0x7251a0]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x6f0a63
sar eax, 6
mov esi, dword [eax + 0x724be4]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x6f0a8c
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x724c04]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x6f0a9f
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x6f0ab8
cmp al, 2
je 0x6f0abf
cmp al, 1
jne 0x6f0bb7
mov eax, 0x40000000
jmp 0x6f0ac4
mov eax, 0x80000000
jmp 0x6f0ac4
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x6f0b94
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.006f05e0
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.006f26e0
mov edi, eax
cmp edi, 0xffffffff
jne 0x6f0bc5
mov dword [esp], 4
call fcn.006f2abc
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x6f0bc5
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x6f0bbe
mov dword [esp], 1
call fcn.006f2abc
mov edi, eax
call fcn.006f2570
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x6f0a1c
Function at 0x6f8fa4
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.006f01a0
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.006f01a0
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.006f01a0
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.006f01a0
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.006fc4a0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x6f9098
mov dword [esp], edi
call fcn.006f01a0
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.006f01a0
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.006f01a0
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.006ef294
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x6f90ed
jmp 0x6f9135
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.006f01a0
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.006f01a0
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.006ef27c
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x6f9135
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.006f01a0
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.006f003b
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.006f0054
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.006f01a0
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.006f0054
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.006f01a0
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x6f9137
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x6fab90
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.006ef27c
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.006ef27c
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x6fac03
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x6fac12
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.006ef27c
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.006ef27c
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.006ef27c
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.006ef27c
add esp, 0x10
mov esi, eax
test esi, esi
je 0x6facfc
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x6fad0b
push esi
call fcn.006fbd24
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.006ef28c
add esp, 0x10
mov eax, 1
jmp 0x6fad16
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x6fad14
push esi
call fcn.006ef28c
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x6fee40
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x6fef06
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x730dbc
call fcn.00708cfc
add esp, 0x24
push 0x730dbc
call fcn.006f01a0
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x730dbc
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.006f01a0
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x6fef38
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x730ddc]
test eax, eax
mov ecx, dword [0x730dd8]
jne 0x6feffd
test ecx, ecx
jne 0x6feffd
cmp dword [0x726760], 0
je 0x6ff033
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.006fe6c8
add esp, 0x10
test eax, eax
jne 0x6fefa8
sub esp, 8
push 0x3a
push esi
call fcn.006fe6c8
add esp, 0x10
test eax, eax
je 0x6fefab
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x6fefee
call sub.KERNEL32.DLL_GetCurrentThreadId
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x6ff0c8
push eax
call fcn.0070896c
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x6ff080
cmp ecx, 0xffffffff
je 0x6ff080
test ecx, ecx
je 0x6ff014
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x730ddc]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x6ff080
cmp byte [eax], 0
je 0x6ff080
sub esp, 8
push edi
push eax
call fcn.006fee40
add esp, 0xa0
jmp 0x6ff086
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x7264a0
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.006f01a0
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x7264a0
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x701368
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov ebx, ecx
cmp edi, 0xf
jg 0x701391
test edi, edi
je 0x701391
call fcn.006fef10
mov dword [eax], 0x13
mov eax, 0xffffffff
jmp 0x701417
call fcn.00701034
mov esi, eax
test esi, esi
je 0x7013e5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esi + 4], ebp
mov dword [esi + 0x14], ebx
mov dword [esi + 0x58], eax
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 0x701508
push edi
push edx
call sub.KERNEL32.DLL_CreateThread
add esp, 8
test eax, eax
je 0x7013f7
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
test ecx, ecx
je 0x701417
mov edx, dword [esp + 8]
mov dword [ecx], edx
jmp 0x701417
call fcn.006fef10
mov dword [eax], 8
mov eax, 0xffffffff
jmp 0x701417
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x701412
sub esp, 0xc
push 0x59
call fcn.006f2abc
add esp, 0x10
jmp 0x701417
call fcn.006f2b5c
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x701530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x738eb0
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x73c360]
cmp eax, 0x232
jl 0x70159a
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.006f0054
mov dword [esp], edi
call fcn.006ff0a8
mov eax, dword [0x73c360]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x738eb0]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x73c360]
lea ecx, [eax + 1]
mov dword [0x73c360], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x738eb0]
mov dword [esi], eax
mov dword [esp], 0x738eb0
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x7015e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.006f0054
mov dword [esp], esi
call fcn.006ff0a8
add esp, 0x58
pop esi
ret