joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10023a91
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1002c150]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002c150]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov eax, 0xf
mov ecx, 1
lea ebp, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esp + 0x70], ecx
mov byte [ebp], bl
cmp dword [esp + 0x90], ebx
mov dword [esp + 0x18], ecx
jle 0x10021f63
push 0xffffffffffffffff
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10003660
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0x70], 2
mov dword [esp + 0x1c], eax
jle 0x10021f4f
push 2
push ebx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.10003e20
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x70], 3
jae 0x10021ec5
lea eax, [esp + 0x4c]
push 0x10
push 0
push eax
call fcn.10020200
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov byte [esp + 0x14], al
cmp ecx, 0x10
jb 0x10021ee3
mov eax, dword [ebp]
jmp 0x10021ee5
mov eax, ebp
mov edx, dword [esi + 0x14]
lea edi, [edx + eax]
test edi, edi
je 0x10021f11
cmp ecx, 0x10
jb 0x10021ef9
mov eax, dword [ebp]
jmp 0x10021efb
mov eax, ebp
cmp eax, edi
ja 0x10021f11
cmp ecx, 0x10
jb 0x10021f09
mov eax, dword [ebp]
jmp 0x10021f0b
mov eax, ebp
add edx, eax
cmp edi, edx
jbe 0x10021f16
call fcn.10007d7d
mov edx, dword [esp + 0x14]
push edx
push edi
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.10003a00
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x70], 2
jb 0x10021f42
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10006e74
add esp, 4
add ebx, 2
cmp ebx, dword [esp + 0x1c]
jl 0x10021ea0
cmp dword [esp + 0x44], 0x10
jb 0x10021f63
mov edx, dword [esp + 0x30]
push edx
call fcn.10006e74
add esp, 4
cmp dword [esp + 0x94], 0x10
jb 0x10021f7d
mov eax, dword [esp + 0x80]
push eax
call fcn.10006e74
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100079bb
add esp, 0x60
ret 0x20
Function at 0x10021fa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
mov eax, dword [0x1002c150]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov edi, 1
call fcn.10021580
mov esi, eax
test esi, esi
je 0x10022075
mov al, 0x75
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b], al
mov byte [esp + 0x24], al
mov al, 0x65
push ecx
push esi
mov byte [esp + 0x31], 0x61
mov byte [esp + 0x2f], 0x79
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x35], 0x45
mov byte [esp + 0x2a], 0x67
mov byte [esp + 0x36], 0x78
mov byte [esp + 0x38], 0
mov byte [esp + 0x34], al
mov byte [esp + 0x37], 0x41
mov byte [esp + 0x28], 0x52
mov byte [esp + 0x30], 0x56
mov byte [esp + 0x2d], al
mov byte [esp + 0x2b], 0x51
mov byte [esp + 0x29], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002206c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push ebp
push ebx
call eax
mov edi, eax
push esi
call fcn.100220b0
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100079bb
add esp, 0x28
ret
Function at 0x10022310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10023761
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1002c150]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002c150]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov eax, 0xf
mov ecx, 1
lea ebp, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esp + 0x70], ecx
mov byte [ebp], bl
cmp dword [esp + 0x90], ebx
mov dword [esp + 0x18], ecx
jle 0x10022473
push 0xffffffffffffffff
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10003660
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0x70], 2
mov dword [esp + 0x1c], eax
jle 0x1002245f
push 2
push ebx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.10003e20
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x70], 3
jae 0x100223d5
lea eax, [esp + 0x4c]
push 0x10
push 0
push eax
call fcn.10020200
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov byte [esp + 0x14], al
cmp ecx, 0x10
jb 0x100223f3
mov eax, dword [ebp]
jmp 0x100223f5
mov eax, ebp
mov edx, dword [esi + 0x14]
lea edi, [edx + eax]
test edi, edi
je 0x10022421
cmp ecx, 0x10
jb 0x10022409
mov eax, dword [ebp]
jmp 0x1002240b
mov eax, ebp
cmp eax, edi
ja 0x10022421
cmp ecx, 0x10
jb 0x10022419
mov eax, dword [ebp]
jmp 0x1002241b
mov eax, ebp
add edx, eax
cmp edi, edx
jbe 0x10022426
call fcn.10007d7d
mov edx, dword [esp + 0x14]
push edx
push edi
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.10003a00
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x70], 2
jb 0x10022452
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10006e74
add esp, 4
add ebx, 2
cmp ebx, dword [esp + 0x1c]
jl 0x100223b0
cmp dword [esp + 0x44], 0x10
jb 0x10022473
mov edx, dword [esp + 0x30]
push edx
call fcn.10006e74
add esp, 4
cmp dword [esp + 0x94], 0x10
jb 0x1002248d
mov eax, dword [esp + 0x80]
push eax
call fcn.10006e74
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100079bb
add esp, 0x60
ret
Function at 0x10023f80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov eax, dword [0x1002c150]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov al, 0x65
push esi
mov esi, dword [esp + 0x24]
mov byte [esp + 0x10], al
mov byte [esp + 0x14], al
mov byte [esp + 0x18], al
mov byte [esp + 9], al
push edi
mov edi, dword [esp + 0x2c]
mov cl, 0x6c
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov byte [esp + 0x1e], 0x61
mov byte [esp + 0x13], 0x4d
mov byte [esp + 0x17], cl
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x16], 0x75
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x14], 0x6f
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x21], 0x41
mov byte [esp + 0x10], 0x47
mov byte [esp + 0x22], bl
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x1f], 0x6d
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1d], 0x4e
call fcn.10023e40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10024027
mov ecx, dword [esp + 0x30]
push ecx
push edi
push esi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100079bb
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100079bb
add esp, 0x18
ret

Function at 0x100240c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, dword [0x1002c150]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov byte [esp + 0x11], 0x73
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x10], 0x6c
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x19], bl
mov byte [esp + 0x15], 0x70
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x14], 0x63
mov byte [esp + 0x17], 0x6e
call fcn.10023e40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1002413c
mov ecx, dword [esp + 0x28]
push ecx
push edi
push esi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.100079bb
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100079bb
add esp, 0x10
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x10003400
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.100031b0
test al, al
jne 0x1000343c
mov edx, str.Folder_does_not_exist:
mov ecx, 0x100681c0
call fcn.10005c30
mov edx, esi
mov ecx, eax
call fcn.10005e30
push ecx
mov ecx, eax
call fcn.10003770
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.10002980
push 2
mov ecx, eax
call fcn.10003870
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 8]
mov esi, eax
call fcn.10003b00
test esi, esi
jne 0x10003495
mov edx, str.Failed_to_set_folder_as_hidden:
mov ecx, 0x100681c0
call fcn.10005c30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10003640
push ecx
mov ecx, eax
call fcn.10003770
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000811d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10008144
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10008147
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100080f9
pop esi
leave
ret 8

Function at 0x100092d9
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 0x100092fa
jl 0x100092f1
test edi, edi
jne 0x100092fa
xor eax, eax
xor edx, edx
jmp 0x100093bb
cmp dword [ebx + 0x38], 0
je 0x1000930f
push eax
push edi
push dword [ebp + 8]
call fcn.100093c1
jmp 0x100093bb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10009356
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10009356
cmp eax, edi
jb 0x10009330
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000b740
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 0x1000935c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x100093b0
mov ecx, ebx
call fcn.10008b74
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000939b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10012130
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 0x100093b0
jmp 0x1000936e
test edx, edx
je 0x100093b0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10012130
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 0x1000eccb
Capabilities:
Parse pe header

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

Function at 0x1001965f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a108
push 0x1002a100
push str.FlsAlloc
push 0x1f
call fcn.10019527
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019693
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026154]
call esi
jmp 0x10019699
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100196dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a118
push 0x1002a110
push str.FlsGetValue
push 0x21
call fcn.10019527
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019714
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001971c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a120
push 0x1002a118
push str.FlsSetValue
push 0x22
call fcn.10019527
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019756
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10026154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001ae32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000b0a0
mov eax, dword [0x10067040]
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.10015f55
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001ae74
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001afd0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10024e10
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 + 0x10068a40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001be2f
mov ecx, dword [esi*4 + 0x10068a40]
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 0x1001afc9
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001afc9
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 0x1001afc9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001be2f
add esp, 0x14
test edx, edx
jl 0x1001afc9
jg 0x1001af3f
test eax, eax
jb 0x1001afc9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001afc9
jl 0x1001af59
cmp dword [ebp - 0x1008], eax
ja 0x1001afc9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001af77
test ebx, ebx
je 0x1001afb0
cmp ecx, edi
jae 0x1001afb0
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001af91
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001af9d
cmp byte [ecx + 1], 0xa
jne 0x1001af9d
inc ecx
jmp 0x1001af9d
movzx eax, al
movsx eax, byte [eax + 0x100672f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001af77
cmp edx, ebx
jne 0x1001af77
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001afce
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000a552
leave
ret
Function at 0x1001b2c7
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 + 0x10068a40]
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 0x1001b307
cmp byte [ebx], 0xa
jne 0x1001b307
or byte [edi + eax + 0x28], 4
jmp 0x1001b30c
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 0x1001b40b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001b3ee
inc eax
cmp dl, 0xd
je 0x1001b338
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001b35e
cmp eax, ecx
jae 0x1001b36c
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 0x1001b320
jmp 0x1001b40b
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 0x1001b3e9
cmp dword [ebp - 0x10], 0
je 0x1001b3e9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10068a40]
test byte [eax + edi + 0x28], 0x48
je 0x1001b3c3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001b3ae
mov byte [esi], dl
jmp 0x1001b3bf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10068a40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001b40b
cmp byte [ebp - 1], 0xa
jne 0x1001b3d2
cmp esi, ebx
jne 0x1001b3d2
mov byte [esi], 0xa
jmp 0x1001b40a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001be4d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001b40b
mov byte [esi], 0xd
jmp 0x1001b40a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10068a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001b408
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001b40b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001b414
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 + 0x10068a40]
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 0x1001b45a
cmp word [ebx], dx
jne 0x1001b45a
or byte [eax + edi + 0x28], 4
jmp 0x1001b45f
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 0x1001b5c2
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 0x1001b5a2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001b4a0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001b4d6
cmp eax, edx
jae 0x1001b4e4
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 0x1001b47b
jmp 0x1001b5c2
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 0x1001b59d
cmp dword [ebp - 0x18], 0
je 0x1001b59d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10068a40]
test byte [eax + edi + 0x28], 0x48
je 0x1001b573
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 0x1001b537
mov word [esi], cx
jmp 0x1001b56e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10068a40]
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 + 0x10068a40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10068a40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001b5c2
pop eax
cmp word [ebp - 4], ax
jne 0x1001b583
cmp esi, ebx
jne 0x1001b583
mov word [esi], ax
jmp 0x1001b5bf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001be4d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001b5c2
push 0xd
pop eax
jmp 0x1001b57e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10068a40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001b5bc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001b5c2
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 0x1001db89
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 0x1001dc26
push ebx
push esi
call fcn.1001db52
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.1001c973
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001dbd3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001dc25
push edi
push eax
call fcn.10015055
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001dbf3
call fcn.1001501b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001dc24
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001c973
add esp, 0x20
test eax, eax
jne 0x1001dc12
push edi
call fcn.1001501b
jmp 0x1001dc1a
push ebx
call fcn.1001501b
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 0x100218ba
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10016422
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 0x10021929
cmp esi, dword [ebp - 4]
je 0x10021924
cmp dword [ebp + 0xc], 0
je 0x10021924
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021901
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002140c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002192b
xor eax, eax
inc eax
jmp 0x1002192b
xor eax, eax
pop edi
pop esi
leave
ret