joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1ba86
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor edi, edi
cmp byte [0x224bc], 0
mov dword [ebp - 8], edi
jne 0x1bb98
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], 0x24bc8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp dword [ebp - 8], edi
je 0x1bb98
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebx, ebx
push 0x1e0b2
lea eax, [ebp - 0x10]
inc ebx
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1da7a
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1e0a8
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1e09c
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
mov ecx, 0x1e074
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1bb6d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x1bd1e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0001ba26
mov eax, dword [ebp + 0xc]
mov dword [0x1f87c], eax
mov eax, dword [ebp + 0x10]
push 1
mov esi, 0x24500
push esi
mov dword [0x1f880], eax
mov dword [0x224c0], ebx
mov byte [0x224c4], bl
call dword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
push ebx
push 0x15f90
or ecx, 0xffffffff
push ecx
mov eax, 0xca5b1700
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
push ebx
push 0x1b922
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov esi, 0x1f03ff
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, ebx
jl 0x1bdcc
push ebx
push 0x224c0
push ebx
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1c044
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor esi, esi
push esi
push 1
mov dword [ebp - 4], esi
push 0x244ec
mov dword [0x244e0], 1
mov dword [0x244e4], esi
mov dword [0x244e8], esi
call edi
push esi
push 1
push 0x24530
call edi
push esi
push 0x1bdd8
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x1f03ff
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, esi
jl 0x1c0dc
push esi
push 0x24540
push esi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x253be
Capabilities:
Check os version
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00025385
pop ebp
jmp fcn.000125ae
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10037d20
call fcn.1000e430
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.1000e480
ret
Function at 0x10001169
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000118c
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000118f
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x100011a2
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100011a9
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x1003b094]
mov ecx, dword [0x1003b090]
test eax, eax
jne 0x100011c3
test ecx, ecx
je 0x100011d8
mov eax, ecx
mov dword [0x1003b094], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100011d8
cmp edx, dword [ebp - 4]
jb 0x100011d8
cmp edx, dword [ebp - 8]
jbe 0x100012a9
mov eax, ecx
test ecx, ecx
jmp 0x100011fc
test eax, eax
je 0x100011f7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100011f7
cmp ecx, dword [ebp - 4]
jb 0x100011f7
cmp ecx, dword [ebp - 8]
jbe 0x100012a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1003b094], eax
jne 0x100011de
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000133b
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001229
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000133b
cmp dword [ebp - 0x30], ebx
jne 0x10001248
cmp dword [ebp - 0x34], ebx
jae 0x1000125b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001217
jmp 0x1000133b
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1003b094], eax
test eax, eax
je 0x1000133b
mov ecx, dword [0x1003b090]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x1003b090], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000129b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10001340
cmp esi, dword [ebp - 8]
ja 0x10001340
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1000f200
add esp, 0xc
mov eax, esi
jmp 0x10001342
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100012ea
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001340
cmp dword [ebp - 0x14], ebx
jne 0x10001335
cmp dword [ebp - 0x18], ebx
jb 0x10001335
movzx ecx, si
test ecx, ecx
je 0x10001319
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1003b094], eax
test eax, eax
jne 0x10001277
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x100012d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100013cb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x1003b09c], edi
je 0x100013de
mov eax, 0x10dd
jmp 0x10001439
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x1003b09c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100013d7
push esi
mov esi, dword [0x1003b090]
mov dword [0x1003b098], edi
mov dword [0x1003b0ac], edi
mov dword [0x1003b0a8], edi
mov dword [0x1003b0a0], edi
mov dword [0x1003b0a4], edi
jmp 0x10001432
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1000141c
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x1000143c
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1003b09c], eax
je 0x10001452
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1003b0ac]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000149d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1000148e
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x1000148e
call fcn.10001347
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1000e494
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001461
mov dword [0x1003b0ac], ebx
call fcn.10001142
mov esi, dword [0x1003b0a8]
cmp esi, ebx
je 0x100014ca
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1000e494
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x100014b2
pop edi
pop esi
mov dword [0x1003b0a8], ebx
mov dword [0x1003b09c], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10001721
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1003b0a0]
test eax, eax
jne 0x10001791
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1000173d
xor eax, eax
jmp 0x10001790
push esi
push 8
call fcn.1000e08f
mov esi, eax
pop ecx
test esi, esi
jne 0x10001751
push 8
pop edi
jmp 0x1000176c
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000177d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1000e494
pop ecx
and dword [0x1003b0a4], 0
mov dword [0x1003b0a0], edi
mov eax, edi
jmp 0x1000178f
mov eax, dword [0x1003b0a8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x1003b0a8], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x10002500
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x10035d94
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.100127ee
add esp, 0xc
test eax, eax
je 0x10002539
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.10012b64
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10002565
call fcn.10012707
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.10012a29
add esp, 0x10
test eax, eax
je 0x100025bb
push esi
nop word [eax + eax]
mov esi, ebx
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10002582
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x400
push 1
push ebx
call fcn.10012a29
add esp, 0x10
test eax, eax
jne 0x10002580
pop esi
push ebx
call fcn.10012835
push dword [ebp + 0xc]
call fcn.10012707
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bdf6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x1003a0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000476a
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.CurrentBuild
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000476a
cmp dword [ebp - 0x134], 1
jne 0x1000476a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.10006fd0
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.10006bd0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x114]
cmp ecx, 7
jbe 0x10004732
mov edx, dword [ebp - 0x128]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004728
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004799
push ecx
push edx
call fcn.1000de61
add esp, 8
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x130]
push eax
call fcn.10007810
cmp dword [ebp - 0x130], 0x23f0
lea ecx, [ebp - 0x1e0]
setl bl
call fcn.100047a0
jmp 0x1000476c
xor bl, bl
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
je 0x1000477d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000db39
mov esp, ebp
pop ebp
ret
call fcn.1001826e
int3
Function at 0x100061f0
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000628d
push 0
push 0
push 0x10006110
call fcn.10017ec5
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [0x1003be70], eax
call sym.CustWings.dll_Init
cmp dword [0x1003be68], 0
jne 0x10006247
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x1003be64]
push 0x10005f50
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1003be68], eax
test eax, eax
je 0x10006296
call fcn.100013cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001721
push 0x10005f30
push 0x1003be7c
call fcn.100019ed
call fcn.100019e5
push dword [0x1003be70]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x10003500
push dword [sym.imp.USER32.dll_GetAsyncKeyState]
call fcn.10001ea0
mov dword [0x1003be5c], eax
mov eax, 1
pop ebp
ret 0xc
call fcn.100060f0
int3
Function at 0x1000c8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x1000c900
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100197fe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001983d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001983d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001983d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001983d
cmp dword [ecx + 0x74], 0xe
jbe 0x1001983d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d43f
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 + 0x1003ba18]
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 0x1001d47f
cmp byte [ebx], 0xa
jne 0x1001d47f
or byte [edi + eax + 0x28], 4
jmp 0x1001d484
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 0x1001d583
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001d566
inc eax
cmp dl, 0xd
je 0x1001d4b0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001d4d6
cmp eax, ecx
jae 0x1001d4e4
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 0x1001d498
jmp 0x1001d583
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 0x1001d561
cmp dword [ebp - 0x10], 0
je 0x1001d561
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1003ba18]
test byte [eax + edi + 0x28], 0x48
je 0x1001d53b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001d526
mov byte [esi], dl
jmp 0x1001d537
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1003ba18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001d583
cmp byte [ebp - 1], 0xa
jne 0x1001d54a
cmp esi, ebx
jne 0x1001d54a
mov byte [esi], 0xa
jmp 0x1001d582
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10026bf2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001d583
mov byte [esi], 0xd
jmp 0x1001d582
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1003ba18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001d580
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001d583
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001d58c
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 + 0x1003ba18]
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 0x1001d5d2
cmp word [ebx], dx
jne 0x1001d5d2
or byte [eax + edi + 0x28], 4
jmp 0x1001d5d7
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 0x1001d73a
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 0x1001d71a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001d618
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001d64e
cmp eax, edx
jae 0x1001d65c
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 0x1001d5f3
jmp 0x1001d73a
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 0x1001d715
cmp dword [ebp - 0x18], 0
je 0x1001d715
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1003ba18]
test byte [eax + edi + 0x28], 0x48
je 0x1001d6eb
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 0x1001d6af
mov word [esi], cx
jmp 0x1001d6e6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1003ba18]
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 + 0x1003ba18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1003ba18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001d73a
pop eax
cmp word [ebp - 4], ax
jne 0x1001d6fb
cmp esi, ebx
jne 0x1001d6fb
mov word [esi], ax
jmp 0x1001d737
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10026bf2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001d73a
push 0xd
pop eax
jmp 0x1001d6f6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1003ba18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001d734
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001d73a
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 0x1001f61b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032234
push 0x1003222c
push str.FlsAlloc
push 0x1f
call fcn.1001f4a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f64f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d1c8]
call esi
jmp 0x1001f655
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001f699
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10032244
push 0x1003223c
push str.FlsGetValue
push 0x21
call fcn.1001f4a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f6d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002d1c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001f6d8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003224c
push 0x10032244
push str.FlsSetValue
push 0x22
call fcn.1001f4a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f712
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002d1c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100227ed
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 0x1002288a
push ebx
push esi
call fcn.100227b6
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.100215b2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10022837
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022889
push edi
push eax
call fcn.1001df59
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10022857
call fcn.1001ab62
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022888
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100215b2
add esp, 0x20
test eax, eax
jne 0x10022876
push edi
call fcn.1001ab62
jmp 0x1002287e
push ebx
call fcn.1001ab62
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 0x10025c0b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001b6c3
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 0x10025c7a
cmp esi, dword [ebp - 4]
je 0x10025c75
cmp dword [ebp + 0xc], 0
je 0x10025c75
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10025c52
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002575d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10025c7c
xor eax, eax
inc eax
jmp 0x10025c7c
xor eax, eax
pop edi
pop esi
leave
ret