joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100298c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x16c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100298fe
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.100d0738
add esp, 0x16c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push esi
mov esi, dword [0x101e2d1c]
push edi
push 0x20
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
jne 0x1002992d
push 0x20
add esi, 0x1c
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.100d0e10
add esp, 0xc
push 1
push 0x1a
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x10]
mov ecx, 0x104
lea edx, [esp + 0x74]
call fcn.10004070
test eax, eax
jl 0x1002996d
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x74]
mov eax, str.360Decryptor_PrivateKey.ini
call fcn.100040d0
xor esi, esi
nop
movzx eax, byte [esp + esi + 0x34]
push eax
push str._02X
mov ecx, 0x20
lea edi, [esp + 0x1c]
call fcn.1001ef80
add esp, 8
mov ecx, 0x400
mov eax, ebx
cmp byte [eax], 0
je 0x100299a0
inc eax
sub ecx, 1
jne 0x10029993
jmp 0x100299be
test ecx, ecx
je 0x100299be
mov eax, 0x400
sub eax, ecx
mov edx, 0x400
sub edx, eax
lea ecx, [eax + ebx]
lea eax, [esp + 0x14]
call fcn.100040d0
inc esi
cmp esi, 0x20
jl 0x10029970
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x74]
push ecx
push 0
push str.userkey
push 0x1012c9a0
call esi
lea edx, [esp + 0x74]
push edx
push ebx
push str.userkey
push 0x1012c9a0
call esi
mov esi, dword [0x101e2d1c]
push 0x10
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
jne 0x10029a15
push 0x10
add esi, 0x3c
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.100d0e10
add esp, 0xc
xor ebp, ebp
jmp 0x10029a20
movzx edx, byte [esp + ebp + 0x34]
push edx
push str._02X
mov ecx, 0x20
lea edi, [esp + 0x1c]
call fcn.1001ef80
add esp, 8
mov eax, 0x400
mov ecx, ebx
cmp byte [ecx], 0
je 0x10029a50
inc ecx
sub eax, 1
jne 0x10029a43
jmp 0x10029a92
test eax, eax
je 0x10029a92
mov edx, 0x400
sub edx, eax
mov ecx, 0x400
sub ecx, edx
lea eax, [edx + ebx]
je 0x10029a8e
lea edi, [esp + 0x14]
lea esi, [ecx + edx + 0x7ffffbff]
sub edi, eax
test esi, esi
je 0x10029a8a
mov dl, byte [edi + eax]
test dl, dl
je 0x10029a8a
mov byte [eax], dl
dec ecx
inc eax
dec esi
test ecx, ecx
jne 0x10029a74
jmp 0x10029a8e
test ecx, ecx
jne 0x10029a8f
dec eax
mov byte [eax], 0
inc ebp
cmp ebp, 0x10
jl 0x10029a20
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0x74]
push eax
push 0
push str.userIV
push 0x1012c9a0
call esi
lea ecx, [esp + 0x74]
push ecx
push ebx
push str.userIV
push 0x1012c9a0
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100d0738
add esp, 0x16c
ret
Function at 0x10029ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x10029e1c
push 0x1012266c
push eax
call fcn.100d080d
mov esi, eax
add esp, 8
test esi, esi
je 0x10029e1c
push 0
push 0
push esi
call fcn.100d08ae
add esp, 0xc
push esi
push 0x10
lea eax, [esp + 0x12c]
push 1
push eax
call fcn.100d0bd3
push esi
mov edi, eax
call fcn.100d11ec
add esp, 0x14
cmp edi, 0x10
jne 0x10029e1c
test ebx, ebx
je 0x10029e1c
push 0x1012266c
push ebx
call fcn.100d080d
mov esi, eax
add esp, 8
test esi, esi
je 0x10029e1c
push 0
push 0
push esi
call fcn.100d08ae
add esp, 0xc
push esi
push edi
lea ecx, [esp + 0x13c]
push 1
push ecx
call fcn.100d0bd3
push esi
mov edi, eax
call fcn.100d11ec
add esp, 0x14
cmp edi, 0x10
jne 0x10029e1c
xor edi, edi
mov esi, 0x10127e40
jmp 0x10029d70
cmp byte [0x101dd380], 0
jne 0x10029e1c
lea edx, [esp + 8]
push edx
push 0x80
push esi
call fcn.1006c040
mov ecx, dword [0x10127ff4]
mov edx, dword [0x10127ff8]
mov eax, dword [0x10127ff0]
add esp, 0xc
push 0
mov dword [esp + 0x10c], ecx
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x10c], eax
mov eax, dword [0x10127ffc]
mov dword [esp + 0x114], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x11c], eax
push 0x10
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x148]
push ecx
call fcn.1006c050
add esp, 0x18
mov eax, 0x10
xor ecx, ecx
cmp eax, 4
jb 0x10029e32
mov edx, dword [esp + ecx + 0x114]
cmp edx, dword [esp + ecx + 0x124]
jne 0x10029e0f
sub eax, 4
add ecx, 4
jmp 0x10029df2
inc edi
add esi, 0x10
cmp edi, 0x1b
jb 0x10029d70
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100d0738
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x144]
mov eax, edi
pop edi
shl eax, 4
pop esi
xor ecx, esp
add eax, 0x10127e40
call fcn.100d0738
mov esp, ebp
pop ebp
ret
Function at 0x10029e50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x231c
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x2318], eax
cmp dword [0x101e2d14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x10029ee0
mov eax, edi
call fcn.10029c60
test eax, eax
je 0x10029ee0
push 1
push edi
lea ecx, [esp + 0x120]
call fcn.10002100
add esp, 8
test eax, eax
je 0x10029ee0
push 0x1012266c
push edi
call fcn.100d080d
mov edi, eax
add esp, 8
test edi, edi
je 0x10029ee0
push 2
push 0
push edi
call fcn.100d08ae
push edi
call fcn.100d1dcb
push 0
push 0
push edi
mov ebx, eax
call fcn.100d08ae
add esp, 0x1c
test bl, 0xf
je 0x10029ef7
push edi
call fcn.100d11ec
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2318]
xor ecx, esp
call fcn.100d0738
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x118]
push 0x101226b0
push eax
call fcn.100d080d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10029ed7
mov edx, dword [0x101e2d14]
lea ecx, [esp + 0x10]
push ecx
push 0x80
push edx
call fcn.1006c040
mov eax, dword [0x10127ff0]
mov ecx, dword [0x10127ff4]
mov edx, dword [0x10127ff8]
mov dword [esp + 0x114], eax
mov eax, dword [0x10127ffc]
push edi
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], edx
mov dword [esp + 0x124], eax
call fcn.100d1e39
add esp, 0x10
test eax, eax
jne 0x10029ff7
jmp 0x10029f70
push edi
push 0x1000
lea ecx, [esp + 0x1328]
push 1
push ecx
call fcn.100d0bd3
push 0
mov esi, eax
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x340]
push ecx
lea edx, [esp + 0x1344]
push edx
call fcn.1006c050
push edi
call fcn.100d1e39
add esp, 0x2c
test eax, eax
je 0x10029fce
mov al, byte [esp + esi + 0x31f]
cmp al, 0x10
movzx eax, al
jb 0x10029fcc
mov eax, 0x10
sub esi, eax
push ebx
push esi
lea eax, [esp + 0x328]
push 1
push eax
call fcn.100d0d86
add esp, 0x10
cmp esi, eax
jne 0x1002a020
push edi
call fcn.100d1e39
add esp, 4
test eax, eax
je 0x10029f70
push ebx
call fcn.100d11ec
push edi
call fcn.100d11ec
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2318]
xor ecx, esp
call fcn.100d0738
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100d11ec
push edi
call fcn.100d11ec
mov ecx, dword [esp + 0x232c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d0738
mov esp, ebp
pop ebp
ret
Function at 0x1002a560
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x211c
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x2114], eax
mov eax, dword [esp + 0x2124]
push ebx
push ebp
mov ebp, dword [esp + 0x2128]
push esi
push edi
push 0x1012266c
push eax
mov esi, ecx
call fcn.100d080d
mov edi, eax
add esp, 8
test edi, edi
je 0x1002a5de
push edi
push 8
lea eax, [esp + 0x18]
push 1
push eax
call fcn.100d0bd3
push edi
push 0x10
lea ecx, [esp + 0x128]
push 1
push ecx
call fcn.100d0bd3
push 0x101226b0
push esi
call fcn.100d080d
mov ebx, eax
add esp, 0x28
test ebx, ebx
jne 0x1002a5e5
push edi
call fcn.100d11ec
add esp, 4
xor eax, eax
jmp 0x1002a6b9
lea edx, [esp + 0x18]
push edx
push 0x100
push ebp
call fcn.1006c040
push edi
call fcn.100d1e39
add esp, 0x10
test eax, eax
jne 0x1002a6a5
cmp dword [esp + 0x14], 0
jl 0x1002a6a5
jg 0x1002a61e
cmp dword [esp + 0x10], 0
jbe 0x1002a6a5
push edi
push 0x1000
lea eax, [esp + 0x128]
push 1
push eax
call fcn.100d0bd3
push 0
lea ecx, [esp + 0x124]
push ecx
lea edx, [esp + 0x30]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x1140]
push eax
lea ecx, [esp + 0x144]
push ecx
call fcn.1006c050
xor eax, eax
add esp, 0x28
cmp eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jl 0x1002a671
jg 0x1002a66f
cmp esi, eax
jbe 0x1002a671
mov esi, eax
push ebx
push esi
sub eax, esi
sbb dword [esp + 0x1c], 0
lea edx, [esp + 0x1128]
push 1
push edx
mov dword [esp + 0x20], eax
call fcn.100d0d86
add esp, 0x10
cmp esi, eax
jne 0x1002a6d4
push edi
call fcn.100d1e39
add esp, 4
test eax, eax
je 0x1002a606
push ebx
call fcn.100d11ec
push edi
call fcn.100d11ec
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x2124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x211c
ret 8
push ebx
call fcn.100d11ec
push edi
call fcn.100d11ec
add esp, 8
xor eax, eax
jmp 0x1002a6b9
Function at 0x1002a7e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
cmp dword [str.k1j3jk153kj153], 0
push ebx
push ebp
push esi
mov dword [esp + 0x14], 0
je 0x1002a8f7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x1012d514
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push SysReAllocString
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x1002a8d2
push 0x101e0620
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x1002a8d2
lea ecx, [esp + 0xc]
push ecx
push 0x101e05f0
lea edx, [esp + 0x18]
push edx
push 0
push 0x1012d504
push eax
mov dword [esp + 0x24], 0x20
call esi
test eax, eax
je 0x1002a897
cmp dword [esp + 0xc], 0x20
jne 0x1002a897
cmp dword [esp + 0x10], 3
je 0x1002a8ce
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push 0x101e0610
lea edx, [esp + 0x18]
push edx
push 0
push 0x1012d50c
push eax
mov dword [esp + 0x24], 0x10
call esi
test eax, eax
je 0x1002a900
cmp dword [esp + 0xc], 0x10
jne 0x1002a900
cmp dword [esp + 0x10], 3
jne 0x1002a900
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002a8d9
push eax
call ebx
mov eax, dword [esp + 0x14]
inc eax
cmp dword [eax*4 + 0x1012d514], 0
mov dword [esp + 0x14], eax
lea eax, [eax*4 + 0x1012d514]
jne 0x1002a812
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002a90b
push eax
call ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
Function at 0x1002aad0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2328
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x2320], eax
cmp byte [0x101e0628], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
je 0x1002acd9
mov eax, edi
call fcn.1002a6f0
test eax, eax
je 0x1002acd9
push edi
lea esi, [esp + 0x14]
call fcn.1002a730
add esp, 4
test eax, eax
je 0x1002acd9
push 0x101e0620
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x1002acd9
push 0
push edi
lea ecx, [esp + 0x128]
mov esi, ebx
call fcn.10002100
add esp, 8
test eax, eax
je 0x1002acd9
push 0x1012266c
push edi
call fcn.100d080d
mov edi, eax
add esp, 8
test edi, edi
je 0x1002acd9
push 2
push 0
push edi
call fcn.100d08ae
add esp, 0xc
push edi
call fcn.100d1dcb
add esp, 4
push 0
push 0
push edi
mov ebx, eax
call fcn.100d08ae
add esp, 0xc
test bl, 0xf
jne 0x1002acd0
lea ecx, [esp + 0x120]
push 0x101226b0
push ecx
call fcn.100d080d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002acd0
lea edx, [esp + 0x18]
push edx
push 0x100
push 0x101e05f0
call fcn.1006c040
mov eax, dword [0x101e0610]
mov ecx, dword [0x101e0614]
mov edx, dword [0x101e0618]
mov dword [esp + 0x11c], eax
mov eax, dword [0x101e061c]
add esp, 0xc
push edi
mov dword [esp + 0x118], ecx
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], eax
call fcn.100d1e39
add esp, 4
test eax, eax
jne 0x1002ac98
push edi
push 0x1000
lea ecx, [esp + 0x1330]
push 1
push ecx
call fcn.100d0bd3
push 0
mov esi, eax
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x348]
push ecx
lea edx, [esp + 0x134c]
push edx
call fcn.1006c050
push edi
call fcn.100d1e39
add esp, 0x2c
test eax, eax
je 0x1002ac6f
mov al, byte [esp + esi + 0x327]
cmp al, 0x10
movzx eax, al
jb 0x1002ac6d
mov eax, 0x10
sub esi, eax
push ebx
push esi
lea eax, [esp + 0x330]
push 1
push eax
call fcn.100d0d86
add esp, 0x10
cmp esi, eax
jne 0x1002acc7
push edi
call fcn.100d1e39
add esp, 4
test eax, eax
je 0x1002ac11
push ebx
call fcn.100d11ec
add esp, 4
push edi
call fcn.100d11ec
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2320]
xor ecx, esp
call fcn.100d0738
add esp, 0x2328
ret
push ebx
call fcn.100d11ec
add esp, 4
push edi
call fcn.100d11ec
add esp, 4
mov ecx, dword [esp + 0x232c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d0738
add esp, 0x2328
ret
Function at 0x1002c0c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 1
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jl 0x1002c13a
push str.YOUR_FILES_ARE_ENCRYPTED.TXT
lea ecx, [esp + 0xc]
push ecx
call esi
lea edx, [esp + 8]
push edx
call edi
test eax, eax
je 0x1002c13a
lea eax, [esp + 8]
push eax
call fcn.1002c1d0
test eax, eax
je 0x1002c13a
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100d0738
add esp, 0x20c
ret
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.UsersPublicYOUR_FILES_ARE_ENCRYPTED.TXT
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 8]
push ecx
call edi
test eax, eax
je 0x1002c17a
lea edx, [esp + 8]
push edx
call fcn.1002c1d0
test eax, eax
jne 0x1002c11e
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.100d0738
add esp, 0x20c
ret
Function at 0x1002c1d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100f1d78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1002c241
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp dword [esp + 0x18], ebx
je 0x1002c248
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1002c351
cmp esi, 0x100000
ja 0x1002c23a
push esi
call fcn.100cf8cb
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push esi
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002c23a
mov edx, dword [esp + 0x14]
push edx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.10002570
push 0x14
push str.GOLDENEYE_RANSOMWARE
lea eax, [esp + 0x24]
push eax
xor eax, eax
mov dword [esp + 0x60], ebx
call fcn.1002c580
cmp eax, 0xffffffff
jne 0x1002c2c0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call fcn.10002cc0
xor eax, eax
jmp 0x1002c351
lea ecx, [esp + 0x1c]
push ecx
mov edx, str..onion_
call fcn.1002c440
cmp eax, 0xffffffff
je 0x1002c2a9
xor ecx, ecx
mov esi, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x1002c2f9
lea ecx, [esp + 0x20]
lea eax, [ecx + eax + 7]
mov edx, esi
lea ecx, [esp + 0x38]
call fcn.10032b60
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x38]
cmp cl, 0xd
je 0x1002c325
cmp cl, 0xa
je 0x1002c325
inc eax
cmp eax, esi
jb 0x1002c310
jmp 0x1002c329
mov byte [esp + eax + 0x38], bl
lea edi, [esp + 0x38]
call fcn.1002c380
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x34], esi
jb 0x1002c34c
mov edx, dword [esp + 0x20]
push edx
call fcn.100d072d
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100d0738
add esp, 0x44
ret 4
Function at 0x1002e3c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x118
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push esi
push edi
push 0x103
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x1d]
push ebp
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
call fcn.100d4cc0
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1002e411
xor eax, eax
jmp 0x1002e521
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x1002e42b
push esi
call ebx
test eax, eax
jg 0x1002e44c
mov al, byte [edi]
mov ecx, edi
test al, al
je 0x1002e441
cmp al, 0x2e
jne 0x1002e439
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1002e433
test esi, esi
je 0x1002e465
push esi
call ebx
test eax, eax
jle 0x1002e465
call fcn.1002e8f0
test eax, eax
jne 0x1002e40a
mov eax, esi
mov edx, 0x104
lea ecx, [esp + 0x18]
call fcn.10032b60
mov ecx, dword [0x101e23ec]
sub ecx, dword [0x101e23e8]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x1002e51f
xor edi, edi
cmp esi, eax
jb 0x1002e495
call fcn.100d13c5
mov eax, dword [0x101e23e8]
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + eax + 0x470]
call fcn.1002ec80
add esp, 4
test eax, eax
je 0x1002e4f3
mov ecx, dword [0x101e23ec]
sub ecx, dword [0x101e23e8]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x1002e4d8
call fcn.100d13c5
mov edx, dword [0x101e23e8]
lea eax, [edi + edx]
push eax
mov eax, dword [esp + 0x18]
call fcn.1002f2b0
add esp, 4
mov ebp, 1
mov ecx, dword [0x101e23ec]
sub ecx, dword [0x101e23e8]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x77c
cmp esi, eax
jb 0x1002e495
mov eax, ebp
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x118
ret 4
Function at 0x1002f1e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x101e2cfc]
mov dword [esp], 0
test eax, eax
jne 0x1002f209
push 0xf4240
call fcn.100d279b
add esp, 4
mov dword [0x101e2cfc], eax
test eax, eax
jne 0x1002f209
pop ecx
ret
push esi
push 0xf4240
push 0
push eax
call fcn.100d4cc0
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002f29e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 4], eax
cmp eax, 0xf4240
ja 0x1002f297
mov edx, dword [0x101e2cfc]
push 0
lea ecx, [esp + 8]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002f297
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002f288
mov eax, dword [0x101e2cfc]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x1002f297
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x100318b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp byte [edi + 4], 0
push esi
mov esi, ecx
jne 0x100318d9
push 0x101af454
lea ecx, [esp + 8]
call fcn.100d14b4
push 0x101322bc
lea eax, [esp + 8]
push eax
call fcn.100d7b5b
xor ecx, ecx
cmp dword [edi + 0x3cc], ecx
jle 0x100318f2
mov dl, byte [esi]
xor byte [eax], dl
inc ecx
inc esi
inc eax
cmp ecx, dword [edi + 0x3cc]
jl 0x100318e3
pop esi
add esp, 0xc
ret
Function at 0x10032890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
mov cl, 0x65
push esi
mov esi, dword [esp + 0x28]
mov al, 0x20
mov byte [esp + 8], cl
mov byte [esp + 0x15], cl
push edi
mov byte [esp + 0xd], 0x78
mov byte [esp + 0xe], 0x70
mov byte [esp + 0xf], 0x61
mov byte [esp + 0x10], 0x6e
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x33
mov byte [esp + 0x14], 0x32
mov byte [esp + 0x15], 0x2d
mov byte [esp + 0x16], 0x62
mov byte [esp + 0x17], 0x79
mov byte [esp + 0x18], 0x74
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0x6b
xor ecx, ecx
jmp 0x10032900
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
add eax, eax
movzx edx, byte [esp + eax + 0xc]
mov byte [esi + ecx], dl
movzx edx, byte [esp + eax + 0xd]
mov byte [esi + ecx + 1], dl
movzx edx, byte [esp + eax + 0xe]
mov al, byte [esp + eax + 0xf]
mov byte [esi + ecx + 2], dl
mov byte [esi + ecx + 3], al
add ecx, 0x14
cmp ecx, 0x40
jl 0x10032900
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
lea eax, [esi + 0x2c]
add ecx, 0x10
mov ebp, 0x10
movzx edx, byte [ecx - 0x10]
mov byte [eax - 0x28], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [edi]
mov byte [eax - 0x14], dl
inc ecx
inc eax
inc edi
sub ebp, 1
jne 0x10032952
mov eax, esi
call fcn.10032700
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100d0738
add esp, 0x14
ret