joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10048400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push 0x6d8661
mov dword [ebp - 0xc], 0x6d8661
call esi
test eax, eax
je 0x1000d0ab
mov eax, dword [ebp - 0xc]
mov edx, 0x90909090
mov ecx, 0x1000cfc0
sub ecx, eax
sub ecx, 5
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov word [eax + 4], dx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe9
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x6d8899
push eax
push 0x40
push 5
push 0x6d8899
call esi
test eax, eax
je 0x1000d0fe
mov eax, dword [ebp - 0xc]
mov ecx, 0x1000cfe0
sub ecx, eax
sub ecx, 5
mov dword [eax], 0x90909090
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0x90
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe9
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x6d890a
push eax
push 0x40
push 6
push 0x6d890a
call esi
test eax, eax
je 0x1000d152
mov eax, dword [ebp - 0xc]
mov edx, 0x90909090
mov ecx, 0x1000d000
sub ecx, eax
sub ecx, 5
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov word [eax + 4], dx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe9
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x6db98d
push eax
push 0x40
push 6
push 0x6db98d
call esi
test eax, eax
je 0x1000d1a6
mov eax, dword [ebp - 0xc]
mov edx, 0x90909090
mov ecx, 0x1000d020
sub ecx, eax
sub ecx, 5
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov word [eax + 4], dx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe9
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10017809
mov esp, ebp
pop ebp
ret
Function at 0x1000f3b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x1003bc60
push 0x64
call fcn.100181bb
mov esi, eax
add esp, 8
test esi, esi
je 0x1000f54c
push 0x64
push 0
push esi
call fcn.100197e0
lea eax, [esi + 4]
mov byte [esi], 1
mov dword [eax + 4], 0
xorps xmm0, xmm0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.100170ef
lea eax, [esi + 0x34]
push eax
call fcn.100172cb
xorps xmm0, xmm0
mov dword [0x1006ed0c], esi
add esp, 0x18
movq qword [esi + 0x5c], xmm0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x1000f45a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1000f44f
cmp byte [eax], 0
je 0x1000f44f
push eax
push esi
call fcn.1000fe20
jmp 0x1000f457
push 0
push esi
call fcn.1000fda0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x10049610
mov dword [0x1006ed08], eax
call fcn.1001710b
add esp, 4
test eax, eax
jne 0x1000f55b
cmp dword [0x1004963c], 0x7fffffff
je 0x1000f562
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000f4a1
movups xmm0, xmmword [eax]
movups xmmword [0x1006a6b8], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x1000f4ab
xorps xmm0, xmm0
movups xmmword [0x1006a6b8], xmm0
movq qword [0x1006a6c8], xmm0
xorps xmm0, xmm0
push 0x10049610
movups xmmword [0x1006a6d0], xmm0
movq qword [0x1006a6e0], xmm0
call fcn.10017130
add esp, 4
cmp dword [0x1006a6b4], 0
jne 0x1000f556
push esi
call fcn.100149a0
mov dword [0x1006a6b4], eax
mov dword [eax + 8], 0x1000d960
mov eax, dword [0x1006a6b4]
mov dword [eax + 0xc], 0x1000d970
mov al, 1
mov esi, dword [0x1006ed0c]
xchg byte [esi], al
push 4
call fcn.10017817
add esp, 8
test eax, eax
je 0x1000f515
mov dword [eax], esi
jmp 0x1000f517
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x1000d9c0
push 0
push 0
call fcn.1002333b
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x1000f578
cmp dword [esi + 0x60], 0
jne 0x1000f573
mov eax, dword [ebp - 4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x1006ed0c], 0
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.10017467
push 6
mov dword [0x1004963c], 0x7ffffffe
call fcn.10017467
call fcn.100228fc
push 6
mov dword [ebp - 4], 0
call fcn.10017467
int3
Function at 0x1000fe20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x10048400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [ebp - 0xa90]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000fe94
push str.Error_opening_Steam_key_n
jmp 0x1000ff54
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa94], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0xa90]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa90]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000ff4f
mov ecx, dword [ebp - 0xa94]
cmp ecx, 1
jb 0x1000ff4f
shr ecx, 1
mov eax, esi
je 0x1000ff08
lea edx, [esi + 0x5c]
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x1000ff03
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x1000fef0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push eax
push str.__s__steam:__rungameid__s
lea eax, [ebp - 0xa8c]
push 0x800
push eax
call fcn.1000fd30
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1000fa50
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017809
mov esp, ebp
pop ebp
ret
push str.Error_reading_SteamExe_key_n
push 2
call fcn.10023494
add esp, 4
push eax
call fcn.1000ff80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.10017809
mov esp, ebp
pop ebp
ret
Function at 0x10010020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10048400]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10039698]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x1003969c]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10039680]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x10039690]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100100f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x100100b9
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10010106
inc ax
mov word [ebp - 0xa], ax
jmp 0x100100cf
cmp eax, 0xe7
jne 0x10010106
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10010106
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100100a0
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017809
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017809
mov esp, ebp
pop ebp
ret

Function at 0x10010120
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x1001014a
push 0x62
push str.C:Users_vicsiDownloadsdiscord_rpc_3.4.0_srcconnection_win.cpp
push str.data
call fcn.100230dd
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
test esi, esi
jne 0x1001016b
push 0x67
push str.C:Users_vicsiDownloadsdiscord_rpc_3.4.0_srcconnection_win.cpp
push str.self
call fcn.100230dd
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push edi
cmp eax, 0xffffffff
je 0x10010204
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x100101f1
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jb 0x10010204
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x100101e0
cmp edi, dword [ebp + 0xc]
je 0x100101d6
push 0x74
push str.C:Users_vicsiDownloadsdiscord_rpc_3.4.0_srcconnection_win.cpp
push str.bytesToRead__bytesRead
call fcn.100230dd
add esp, 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.1000ffb0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10010210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10010284
test ecx, ecx
jne 0x1001023a
push 0x4f
push str.C:Users_vicsiDownloadsdiscord_rpc_3.4.0_srcconnection_win.cpp
push str.self
call fcn.100230dd
add esp, 0xc
xor al, al
pop esi
pop ebp
ret 8
mov ecx, dword [ecx + 4]
cmp ecx, 0xffffffff
je 0x10010233
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10010264
push 0x56
push str.C:Users_vicsiDownloadsdiscord_rpc_3.4.0_srcconnection_win.cpp
push str.data
call fcn.100230dd
add esp, 0xc
xor al, al
pop esi
pop ebp
ret 8
push 0
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10010233
cmp dword [ebp + 0xc], esi
jne 0x10010233
mov al, 1
pop esi
pop ebp
ret 8

Function at 0x10016624
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10016645
jl 0x1001663c
test edi, edi
jne 0x10016645
xor eax, eax
xor edx, edx
jmp 0x10016706
cmp dword [ebx + 0x38], 0
je 0x1001665a
push eax
push edi
push dword [ebp + 8]
call fcn.10003ef0
jmp 0x10016706
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100166a1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100166a1
cmp eax, edi
jb 0x1001667b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10019260
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100166a7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x100166fb
mov ecx, ebx
call fcn.10015f48
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100166e6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10023feb
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x100166fb
jmp 0x100166b9
test edx, edx
je 0x100166fb
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10023feb
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10026273
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100262b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100262b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100262b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100262b2
cmp dword [ecx + 0x74], 0xe
jbe 0x100262b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002b0d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f42c
push 0x1003f424
push str.FlsAlloc
push 0x1f
call fcn.1002aeda
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b106
push dword [ebp + 8]
mov ecx, esi
call dword [0x100391b8]
call esi
jmp 0x1002b10c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002b150
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f43c
push 0x1003f434
push str.FlsGetValue
push 0x21
call fcn.1002aeda
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b187
push dword [ebp + 8]
mov ecx, esi
call dword [0x100391b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002b18f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f444
push 0x1003f43c
push str.FlsSetValue
push 0x22
call fcn.1002aeda
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b1c9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100391b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1002bac4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002ba46
Function at 0x1002d34f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10018300
mov eax, dword [0x10048400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1002a329
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002d391
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002d4ed
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10018210
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1007faa8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1002e525
mov ecx, dword [esi*4 + 0x1007faa8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1002d4e6
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002d4e6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002d4e6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002e525
add esp, 0x14
test edx, edx
jl 0x1002d4e6
jg 0x1002d45c
test eax, eax
jb 0x1002d4e6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002d4e6
jl 0x1002d476
cmp dword [ebp - 0x1008], eax
ja 0x1002d4e6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002d494
test ebx, ebx
je 0x1002d4cd
cmp ecx, edi
jae 0x1002d4cd
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002d4ae
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002d4ba
cmp byte [ecx + 1], 0xa
jne 0x1002d4ba
inc ecx
jmp 0x1002d4ba
movzx eax, al
movsx eax, byte [eax + 0x100486b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002d494
cmp edx, ebx
jne 0x1002d494
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002d4eb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10017809
leave
ret
Function at 0x1002d9bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1007faa8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002d9fd
cmp byte [ebx], 0xa
jne 0x1002d9fd
or byte [edi + eax + 0x28], 4
jmp 0x1002da02
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1002db01
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002dae4
inc eax
cmp dl, 0xd
je 0x1002da2e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002da54
cmp eax, ecx
jae 0x1002da62
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1002da16
jmp 0x1002db01
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002dadf
cmp dword [ebp - 0x10], 0
je 0x1002dadf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1007faa8]
test byte [eax + edi + 0x28], 0x48
je 0x1002dab9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002daa4
mov byte [esi], dl
jmp 0x1002dab5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1007faa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002db01
cmp byte [ebp - 1], 0xa
jne 0x1002dac8
cmp esi, ebx
jne 0x1002dac8
mov byte [esi], 0xa
jmp 0x1002db00
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002e543
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002db01
mov byte [esi], 0xd
jmp 0x1002db00
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1007faa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002dafe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002db01
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002db0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1007faa8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002db50
cmp word [ebx], dx
jne 0x1002db50
or byte [eax + edi + 0x28], 4
jmp 0x1002db55
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1002dcb8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1002dc98
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002db96
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002dbcc
cmp eax, edx
jae 0x1002dbda
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1002db71
jmp 0x1002dcb8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002dc93
cmp dword [ebp - 0x18], 0
je 0x1002dc93
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1007faa8]
test byte [eax + edi + 0x28], 0x48
je 0x1002dc69
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1002dc2d
mov word [esi], cx
jmp 0x1002dc64
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1007faa8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1007faa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1007faa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002dcb8
pop eax
cmp word [ebp - 4], ax
jne 0x1002dc79
cmp esi, ebx
jne 0x1002dc79
mov word [esi], ax
jmp 0x1002dcb5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002e543
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002dcb8
push 0xd
pop eax
jmp 0x1002dc74
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1007faa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002dcb2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002dcb8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100305f1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1003068e
push ebx
push esi
call fcn.100305ba
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002f496
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003063b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003068d
push edi
push eax
call fcn.10029429
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003065b
call fcn.100293ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003068c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002f496
add esp, 0x20
test eax, eax
jne 0x1003067a
push edi
call fcn.100293ef
jmp 0x10030682
push ebx
call fcn.100293ef
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003276f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10027a3c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100327de
cmp esi, dword [ebp - 4]
je 0x100327d9
cmp dword [ebp + 0xc], 0
je 0x100327d9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100327b6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100322c1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100327e0
xor eax, eax
inc eax
jmp 0x100327e0
xor eax, eax
pop edi
pop esi
leave
ret