joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014360
Capabilities:
Create thread
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push esi
mov eax, dword [0x100525c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100537bc], 1
jne 0x100143fe
push 1
push 0x40
push 8
push str.rez_UI_Scripts_1.s
lea ecx, [ebp - 0x174]
call fcn.10001830
lea eax, [ebp - 0x174]
mov dword [ebp - 4], 0
push 0x100417b0
push eax
call fcn.10001100
lea eax, [ebp - 0x174]
push str.Dll_injection_
push eax
call fcn.10001100
add esp, 0x10
lea ecx, [ebp - 0x174]
call fcn.100032c0
push 2
push 0x100406a0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.100026a0
cmp dword [0x100537cc], 1
jne 0x100144bc
lea eax, [ebp - 0x14]
push eax
call fcn.1001dcd5
lea eax, [ebp - 0x14]
push eax
call fcn.1001dcae
add esp, 8
lea ecx, [ebp - 0xc4]
mov esi, eax
push 1
push 0x40
push 8
push 0x100406a4
call fcn.10001830
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 1
push str._nLocal_Time:
push eax
call fcn.10001100
push esi
call fcn.1001d9c9
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10001100
lea eax, [ebp - 0xc4]
push 0x100417b8
push eax
call fcn.10001100
lea eax, [ebp - 0xc4]
push str.Dll_injection_
push eax
call fcn.10001100
lea eax, [ebp - 0xc4]
push str._n__________________
push eax
call fcn.10001100
add esp, 0x2c
lea ecx, [ebp - 0xc4]
call fcn.100032c0
push 2
push 0x100406a4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xc4]
call fcn.100026a0
mov eax, dword [0x100537c0]
push 0
cmp eax, 1
jne 0x100144ee
push 0
push 0
push 0x10014570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x100144fe
push 0
push 0
push 0x10014540
jmp 0x100144d1
cmp eax, 3
jne 0x1001450e
push 0
push 0
push 0x10002b20
jmp 0x100144d1
cmp eax, 4
jne 0x100144e8
push 0
push 0
push 0x10015d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push 0x10040444
push str.Dll_injection_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x100144e6

Function at 0x100148f0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10014c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10014fd0
Capabilities:
Create thread
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push esi
mov eax, dword [0x100525c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100537bc], 1
jne 0x1001506e
push 1
push 0x40
push 8
push str.rez_UI_Scripts_1.s
lea ecx, [ebp - 0x174]
call fcn.10001830
lea eax, [ebp - 0x174]
mov dword [ebp - 4], 0
push 0x10040698
push eax
call fcn.10001100
lea eax, [ebp - 0x174]
push str.Hide_windows_detected_
push eax
call fcn.10001100
add esp, 0x10
lea ecx, [ebp - 0x174]
call fcn.100032c0
push 2
push 0x100406a0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.100026a0
cmp dword [0x100537cc], 1
jne 0x1001512c
lea eax, [ebp - 0x14]
push eax
call fcn.1001dcd5
lea eax, [ebp - 0x14]
push eax
call fcn.1001dcae
add esp, 8
lea ecx, [ebp - 0xc4]
mov esi, eax
push 1
push 0x40
push 8
push 0x100406a4
call fcn.10001830
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 1
push str._nLocal_Time:
push eax
call fcn.10001100
push esi
call fcn.1001d9c9
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10001100
lea eax, [ebp - 0xc4]
push 0x100406b8
push eax
call fcn.10001100
lea eax, [ebp - 0xc4]
push str.Hide_windows_detected_
push eax
call fcn.10001100
lea eax, [ebp - 0xc4]
push str._n__________________
push eax
call fcn.10001100
add esp, 0x2c
lea ecx, [ebp - 0xc4]
call fcn.100032c0
push 2
push 0x100406a4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xc4]
call fcn.100026a0
mov eax, dword [0x100537c0]
push 0
cmp eax, 1
jne 0x1001515e
push 0
push 0
push 0x10002af0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x1001516e
push 0
push 0
push 0x10015330
jmp 0x10015141
cmp eax, 3
jne 0x1001517e
push 0
push 0
push 0x10002b20
jmp 0x10015141
cmp eax, 4
jne 0x10015158
push 0
push 0
push 0x10015d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push 0x10040444
push str.Generic_Hide_Window
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10015156

Function at 0x100151b0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100152f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x100151d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20a00
call fcn.10017690
mov eax, dword [0x100525c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
push esi
push esi
mov dword [ebp - 0x20a00], eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x100152cb
push ebx
lea ebx, [ebp - 0x209f4]
nop dword [eax]
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x100152aa
lea eax, [ebp - 0x209fc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x209fc]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x100152aa
mov eax, dword [ebp - 0x209fc]
mov dword [ebx], eax
lea eax, [ebx + 4]
push 0xff
push eax
push edi
mov dword [ebx - 4], edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xff
lea eax, [ebx + 0x103]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
inc dword [ebp - 0x20a00]
add ebx, 0x208
mov ecx, dword [ebp - 0x209fc]
xor eax, eax
test esi, esi
jle 0x1001529e
nop word [eax + eax]
cmp ecx, dword [ebp + eax*4 - 0x400]
je 0x1001529e
inc eax
cmp eax, esi
jl 0x10015290
cmp eax, esi
jne 0x100152aa
mov dword [ebp + esi*4 - 0x400], ecx
inc esi
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x10015210
pop ebx
cmp dword [ebp - 0x20a00], eax
je 0x100152cb
cmp esi, 1
jg 0x100152e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10017143
mov esp, ebp
pop ebp
ret
call fcn.10014fd0
int3

Function at 0x10015360
Capabilities:
Create thread
Terminate process

Disassembly:
mov eax, dword [0x100537c0]
cmp eax, 1
je 0x100153ac
cmp eax, 4
je 0x100153ac
push 0
cmp eax, 2
jne 0x1001539c
push 0
push 0
push 0x10015720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 3
jne 0x10015396
push 0
push 0
push 0x10002b20
jmp 0x1001537f
push 0
push 0
push 0
push 0x10015750
jmp 0x1001537f
Function at 0x10015700
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100153c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10015a60
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10015780
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10015a80
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100159f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10015ad0
Capabilities:
Create thread
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f300
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x100525c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100537bc], 1
jne 0x10015bea
push 1
push 0x40
push 8
push str.rez_UI_Scripts_1.s
lea ecx, [ebp - 0xd8]
call fcn.10001830
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0
push str._nAKS_Scan:
push eax
call fcn.10001100
lea eax, [ebp - 0xd8]
push str.Thread_attack_
push eax
call fcn.10001100
add esp, 0x10
lea ecx, [ebp - 0xd4]
call fcn.100031c0
test eax, eax
jne 0x10015bd2
mov eax, dword [ebp - 0xd8]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xa0], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0xcc]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0xcc], eax
mov ecx, dword [ebp + ecx - 0xc8]
and ecx, eax
je 0x10015bd2
test cl, 4
je 0x10015b9c
mov esi, str.ios_base::badbit_set
jmp 0x10015bac
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100039e0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100020f0
push 0x1004d9f0
lea eax, [ebp - 0x28]
push eax
call fcn.100184ad
push 2
push 0x100406a0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xd8]
call fcn.100026a0
mov eax, dword [0x100537c0]
cmp eax, 1
je 0x10015c36
cmp eax, 4
je 0x10015c36
push 0
cmp eax, 2
jne 0x10015c26
push 0
push 0
push 0x10015de0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 3
jne 0x10015c20
push 0
push 0
push 0x10002b20
jmp 0x10015c09
push 0
push 0
push 0
push 0x10015e30
jmp 0x10015c09
Function at 0x10015e90
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f300
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x100525c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100537bc], 1
jne 0x10015f9d
push 1
push 0x40
push 8
push str.rez_UI_Scripts_1.s
lea ecx, [ebp - 0xd8]
call fcn.10001830
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0
push str._nVM_Scan:
push eax
call fcn.10001100
lea eax, [ebp - 0xd8]
push str.Virtual_memory_Value_changed_
push eax
call fcn.10001100
add esp, 0x10
lea ecx, [ebp - 0xd4]
call fcn.100031c0
test eax, eax
jne 0x10015f92
mov eax, dword [ebp - 0xd8]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xa0], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0xcc]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0xcc], eax
mov ecx, dword [ebp + ecx - 0xc8]
and ecx, eax
je 0x10015f92
test cl, 4
je 0x10015f5c
mov esi, str.ios_base::badbit_set
jmp 0x10015f6c
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100039e0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100020f0
push 0x1004d9f0
lea eax, [ebp - 0x28]
push eax
call fcn.100184ad
lea ecx, [ebp - 0xd8]
call fcn.100026a0
mov eax, dword [0x100537c0]
push 0
cmp eax, 1
jne 0x10015fcf
push 0
push 0
push 0x10016050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x10015fdf
push 0
push 0
push 0x10016020
jmp 0x10015fb2
cmp eax, 3
jne 0x10015fef
push 0
push 0
push 0x10002b20
jmp 0x10015fb2
cmp eax, 4
jne 0x10015fc9
push 0
push 0
push 0x10015d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push str.VM_Scan
push str.Virtual_memory_Value_changed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10015fc7

Function at 0x10016150
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10016080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10016170
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10016190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x100293d4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10029413
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029413
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029413
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10029413
cmp dword [ecx + 0x74], 0xe
jbe 0x10029413
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1002ce74
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10048334
push 0x1004832c
push str.FlsAlloc
push 0x1f
call fcn.1002cc1f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cea8
push dword [ebp + 8]
mov ecx, esi
call dword [0x100402b8]
call esi
jmp 0x1002ceae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1002cef2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10048344
push 0x1004833c
push str.FlsGetValue
push 0x21
call fcn.1002cc1f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cf29
push dword [ebp + 8]
mov ecx, esi
call dword [0x100402b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002cf31
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.SunMonTueWedThuFriSat
push 0x10048344
push str.FlsSetValue
push 0x22
call fcn.1002cc1f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002cf6b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100402b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002ebbe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10017690
mov eax, dword [0x100525c0]
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.1002d672
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1002ec00
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002ed5c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003db10
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 + 0x10059f98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1002fd94
mov ecx, dword [esi*4 + 0x10059f98]
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 0x1002ed55
cmp eax, dword [ecx + edi + 0x24]
jne 0x1002ed55
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 0x1002ed55
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002fd94
add esp, 0x14
test edx, edx
jl 0x1002ed55
jg 0x1002eccb
test eax, eax
jb 0x1002ed55
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1002ed55
jl 0x1002ece5
cmp dword [ebp - 0x1008], eax
ja 0x1002ed55
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1002ed03
test ebx, ebx
je 0x1002ed3c
cmp ecx, edi
jae 0x1002ed3c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002ed1d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002ed29
cmp byte [ecx + 1], 0xa
jne 0x1002ed29
inc ecx
jmp 0x1002ed29
movzx eax, al
movsx eax, byte [eax + 0x10052868]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1002ed03
cmp edx, ebx
jne 0x1002ed03
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002ed5a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10017143
leave
ret
Function at 0x1002f22c
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 + 0x10059f98]
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 0x1002f26c
cmp byte [ebx], 0xa
jne 0x1002f26c
or byte [edi + eax + 0x28], 4
jmp 0x1002f271
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 0x1002f370
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002f353
inc eax
cmp dl, 0xd
je 0x1002f29d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002f2c3
cmp eax, ecx
jae 0x1002f2d1
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 0x1002f285
jmp 0x1002f370
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 0x1002f34e
cmp dword [ebp - 0x10], 0
je 0x1002f34e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10059f98]
test byte [eax + edi + 0x28], 0x48
je 0x1002f328
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002f313
mov byte [esi], dl
jmp 0x1002f324
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10059f98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002f370
cmp byte [ebp - 1], 0xa
jne 0x1002f337
cmp esi, ebx
jne 0x1002f337
mov byte [esi], 0xa
jmp 0x1002f36f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002fdb2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002f370
mov byte [esi], 0xd
jmp 0x1002f36f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10059f98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002f36d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002f370
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002f379
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 + 0x10059f98]
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 0x1002f3bf
cmp word [ebx], dx
jne 0x1002f3bf
or byte [eax + edi + 0x28], 4
jmp 0x1002f3c4
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 0x1002f527
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 0x1002f507
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002f405
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002f43b
cmp eax, edx
jae 0x1002f449
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 0x1002f3e0
jmp 0x1002f527
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 0x1002f502
cmp dword [ebp - 0x18], 0
je 0x1002f502
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10059f98]
test byte [eax + edi + 0x28], 0x48
je 0x1002f4d8
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 0x1002f49c
mov word [esi], cx
jmp 0x1002f4d3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10059f98]
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 + 0x10059f98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10059f98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002f527
pop eax
cmp word [ebp - 4], ax
jne 0x1002f4e8
cmp esi, ebx
jne 0x1002f4e8
mov word [esi], ax
jmp 0x1002f524
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002fdb2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002f527
push 0xd
pop eax
jmp 0x1002f4e3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10059f98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002f521
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002f527
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 0x10032c83
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10032c05
Function at 0x10035520
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 0x100355bd
push ebx
push esi
call fcn.100354e9
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.100343fa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003556a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100355bc
push edi
push eax
call fcn.10030c60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003558a
call fcn.1002c8af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100355bb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100343fa
add esp, 0x20
test eax, eax
jne 0x100355a9
push edi
call fcn.1002c8af
jmp 0x100355b1
push ebx
call fcn.1002c8af
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 0x100355c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100355d1
pop esi
ret
push ebx
push edi
push esi
call fcn.100354e9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10030c60
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100355f9
push ebx
push esi
push edi
call fcn.100188d0
add esp, 0xc
push 0
call fcn.1002c8af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100359c9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003560e

Function at 0x10037aec
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002aefc
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 0x10037b5b
cmp esi, dword [ebp - 4]
je 0x10037b56
cmp dword [ebp + 0xc], 0
je 0x10037b56
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10037b33
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003763e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10037b5d
xor eax, eax
inc eax
jmp 0x10037b5d
xor eax, eax
pop edi
pop esi
leave
ret