joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001daf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [eax]
push 9
call edi
shr ax, 0xf
push 0x75
mov byte [0x1021ceaa], al
call edi
shr ax, 0xf
push 0x76
mov byte [0x1021cd4c], al
call edi
shr ax, 0xf
push 0x78
mov byte [0x1021cea4], al
call edi
shr ax, 0xf
push 0x7a
mov byte [0x1021cd23], al
call edi
test ax, ax
jns 0x1001db90
cmp dword [0x1021bae8], 6
mov byte [0x1021cd4e], 1
jg 0x1001db84
call esi
mov ecx, dword [0x1021e488]
add ecx, 0x1f4
test edx, edx
jb 0x1001db97
ja 0x1001db75
cmp eax, ecx
jbe 0x1001db97
call esi
inc dword [0x1021bae8]
mov dword [0x1021e488], eax
jmp 0x1001db97
mov dword [0x1021bae8], 1
jmp 0x1001db97
mov byte [0x1021cd4e], 0
call esi
mov ecx, dword [0x1021cd30]
add ecx, 0x12c
test edx, edx
jb 0x1001dbf8
ja 0x1001dbaf
cmp eax, ecx
jbe 0x1001dbf8
call esi
cmp dword [0x1021cd7c], 1
mov dword [0x1021cd30], eax
jne 0x1001dbeb
mov eax, dword [0x1021cd88]
add eax, dword [0x1021d058]
push 0
push eax
call fcn.1003af70
add esp, 8
movzx ecx, al
call fcn.10011720
test eax, eax
je 0x1001dbeb
movss xmm0, dword [0x10212234]
jmp 0x1001dbf3
movss xmm0, dword [0x10212230]
call fcn.10014490
call esi
mov ecx, dword [0x1021e490]
add ecx, 0x64
test edx, edx
jb 0x1001dc20
ja 0x1001dc0d
cmp eax, ecx
jbe 0x1001dc20
call esi
mov dword [0x1021e490], eax
mov byte [0x1021ce0a], 0
call fcn.1001d960
call esi
mov ecx, dword [0x1021e48c]
add ecx, 0x3e8
test edx, edx
jb 0x1001dc44
ja 0x1001dc38
cmp eax, ecx
jbe 0x1001dc44
call esi
mov dword [0x1021e48c], eax
call fcn.10010d80
push 0xa
call ebx
jmp 0x1001db10
Function at 0x1001e8d0
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x1021b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021ce14]
mov dword [ebp - 0x2f0], eax
mov eax, dword [0x1021e028]
push edi
mov dword [ebp - 0x2fc], eax
mov eax, dword [0x1021e04c]
push 0
mov dword [ebp - 0x2f8], eax
mov eax, dword [0x1021e050]
push 4
mov dword [ebp - 0x2f4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x1001ea17
push ebx
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001e94a
push edi
call ebx
push esi
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x2e0], eax
jne 0x1001e9fc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x2e4]
cmp ecx, eax
je 0x1001e9fc
push ecx
push 0
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1001e9fc
push esi
mov dword [ebp - 0x2d0], 0x10010
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001e9f2
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2b8], 0x55
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
lea eax, [ebp - 0x2ec]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1001e950
pop esi
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1003f972
mov esp, ebp
pop ebp
ret
Function at 0x1003a6a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061580
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1021b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1003fb82
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003f04a
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1003a640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003af70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10218f98
push 0x10040d80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1021b040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov bl, byte [edi]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov al, bl
jmp 0x1003aff2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003f972
mov esp, ebp
pop ebp
ret

Function at 0x1003b010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10218fb8
push 0x10040d80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1021b040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edi, word [ebx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov ax, di
jmp 0x1003b094
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003f972
mov esp, ebp
pop ebp
ret
Function at 0x1003b280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10219038
push 0x10040d80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1021b040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
wait
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movss xmm0, dword [edi]
movss dword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
wait
mov dword [ebp - 4], 0xfffffffe
movss xmm0, dword [ebp - 0x2c]
jmp 0x1003b30e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003f972
mov esp, ebp
pop ebp
ret

Function at 0x1003b330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10219058
push 0x10040d80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1021b040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
jmp 0x1003b3b2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003f972
mov esp, ebp
pop ebp
ret
Function at 0x1003c1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003c380
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003c29d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003c21a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1021b004]
ja 0x1003c21a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003c1ea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100416d0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003c240
jmp 0x1003c29d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003c283
cmp dword [ebp - 0x18], 0x10000
jb 0x1003c283
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003c276
mov eax, dword [ebp - 8]
jmp 0x1003c29f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003c298
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003c380
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003c1ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003c2b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003c3b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003c375
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003c2f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1021b004]
ja 0x1003c2f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003c2c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100416d0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003c31b
jmp 0x1003c375
cmp dword [ebp - 0x14], 0x10000
jne 0x1003c35e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003c35e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003c351
mov eax, dword [ebp - 8]
jmp 0x1003c377
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003c370
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003c3b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003c2c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003c3e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003c7d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1021bfe4], 0
jne 0x1003c41d
cmp dword [0x1021bfe0], 0
je 0x1003c41d
mov eax, dword [0x1021bfe0]
mov dword [0x1021bfe4], eax
cmp dword [0x1021bfe4], 0
je 0x1003c49a
mov ecx, dword [0x1021bfe4]
cmp dword [ecx + 8], 0
je 0x1003c49a
mov edx, dword [0x1021bfe4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003c49a
mov ecx, dword [0x1021bfe4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003c49a
mov eax, dword [0x1021bfe4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003c469
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003c470
xor eax, eax
jmp 0x1003c5b9
mov ecx, dword [0x1021bfe4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.100416d0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003c5b9
mov edx, dword [0x1021bfe0]
mov dword [0x1021bfe4], edx
jmp 0x1003c4b6
mov eax, dword [0x1021bfe4]
mov ecx, dword [eax + 4]
mov dword [0x1021bfe4], ecx
cmp dword [0x1021bfe4], 0
je 0x1003c4f6
cmp dword [0x1021bfe4], 0
je 0x1003c4f4
mov edx, dword [0x1021bfe4]
cmp dword [edx + 8], 0
je 0x1003c4f4
mov eax, dword [0x1021bfe4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003c4f4
mov edx, dword [0x1021bfe4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003c4f4
jmp 0x1003c44e
jmp 0x1003c4a8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003c5c0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003c5b7
mov eax, dword [ebp - 0x18]
mov dword [0x1021bfe4], eax
mov ecx, dword [0x1021bfe4]
mov dword [ecx], 0x52727464
mov edx, dword [0x1021bfe4]
mov dword [edx + 8], 0
mov eax, dword [0x1021bfe4]
mov ecx, dword [0x1021bfe0]
mov dword [eax + 4], ecx
mov edx, dword [0x1021bfe4]
mov dword [0x1021bfe0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1021bfe4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003c587
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003c5a7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003c57e
mov eax, dword [0x1021bfe4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003c44e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004ee14
Capabilities:
Parse pe header

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

Function at 0x100528e2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100663f4
push 0x100663ec
push str.FlsAlloc
push 0x1f
call fcn.1005276a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10052916
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006224c]
call esi
jmp 0x1005291c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10052960
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10066404
push 0x100663fc
push str.FlsGetValue
push 0x21
call fcn.1005276a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10052997
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006224c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005299f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006640c
push 0x10066404
push str.FlsSetValue
push 0x22
call fcn.1005276a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100529d9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006224c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10055652
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 + 0x1021c8d8]
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 0x10055692
cmp byte [ebx], 0xa
jne 0x10055692
or byte [edi + eax + 0x28], 4
jmp 0x10055697
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 0x10055796
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10055779
inc eax
cmp dl, 0xd
je 0x100556c3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100556e9
cmp eax, ecx
jae 0x100556f7
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 0x100556ab
jmp 0x10055796
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 0x10055774
cmp dword [ebp - 0x10], 0
je 0x10055774
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1021c8d8]
test byte [eax + edi + 0x28], 0x48
je 0x1005574e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10055739
mov byte [esi], dl
jmp 0x1005574a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1021c8d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10055796
cmp byte [ebp - 1], 0xa
jne 0x1005575d
cmp esi, ebx
jne 0x1005575d
mov byte [esi], 0xa
jmp 0x10055795
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100560a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10055796
mov byte [esi], 0xd
jmp 0x10055795
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1021c8d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10055793
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10055796
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005579f
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 + 0x1021c8d8]
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 0x100557e5
cmp word [ebx], dx
jne 0x100557e5
or byte [eax + edi + 0x28], 4
jmp 0x100557ea
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 0x1005594d
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 0x1005592d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005582b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10055861
cmp eax, edx
jae 0x1005586f
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 0x10055806
jmp 0x1005594d
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 0x10055928
cmp dword [ebp - 0x18], 0
je 0x10055928
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1021c8d8]
test byte [eax + edi + 0x28], 0x48
je 0x100558fe
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 0x100558c2
mov word [esi], cx
jmp 0x100558f9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1021c8d8]
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 + 0x1021c8d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1021c8d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005594d
pop eax
cmp word [ebp - 4], ax
jne 0x1005590e
cmp esi, ebx
jne 0x1005590e
mov word [esi], ax
jmp 0x1005594a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100560a1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005594d
push 0xd
pop eax
jmp 0x10055909
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1021c8d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10055947
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005594d
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 0x100582fb
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 0x10058398
push ebx
push esi
call fcn.100582c4
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.100570c0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10058345
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10058397
push edi
push eax
call fcn.10053c51
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10058365
call fcn.1005248b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10058396
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100570c0
add esp, 0x20
test eax, eax
jne 0x10058384
push edi
call fcn.1005248b
jmp 0x1005838c
push ebx
call fcn.1005248b
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 0x1005b691
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10050457
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 0x1005b700
cmp esi, dword [ebp - 4]
je 0x1005b6fb
cmp dword [ebp + 0xc], 0
je 0x1005b6fb
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005b6d8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005b1e3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005b702
xor eax, eax
inc eax
jmp 0x1005b702
xor eax, eax
pop edi
pop esi
leave
ret