joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401420
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 0xc]
mov edi, ecx
push eax
lea ecx, [esp + 0x1c]
push esi
mov edx, dword [edi + 0x104]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x24], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401497
mov eax, dword [edi + 0x104]
push 0x3c
push esi
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
cdq
mov edi, eax
mov eax, ecx
xor edi, edx
sub edi, edx
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jge 0x401497
mov dword [esi + 0x10], 0x2bc
mov dword [esi], ecx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x401af0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x110
lea eax, [esp]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
test eax, eax
je 0x401b7f
push esi
push edi
push eax
mov ecx, ebx
call fcn.00401b90
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x30], 0x100
call edi
cmp eax, 0x103
je 0x401b72
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.00401af0
inc esi
jmp 0x401b32
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x110
ret 8

Function at 0x401d90
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov esi, ecx
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e60
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x401e15
cmp dword [esp + 0xc], 4
jne 0x401e60
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401ded
mov dword [esi], 1
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 0xa
jne 0x401e01
mov dword [esi], 2
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x401e60
mov dword [esi], 4
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x401e60
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x401e32
mov dword [esi], 5
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 4
jne 0x401e46
mov dword [esi], 6
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 5
jne 0x401e60
mov eax, dword [esp + 0x10]
mov dword [esi], 7
cmp eax, 1
jne 0x401e60
mov dword [esi], 8
pop edi
pop esi
add esp, 0x94
ret
Function at 0x403aa5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408250
cmp edx, dword [eax]
je 0x403ac7
add eax, 8
inc ecx
cmp eax, 0x4082e0
jl 0x403ab8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408250]
jne 0x403bf5
mov eax, dword [0x40a63c]
cmp eax, 1
je 0x403bcf
test eax, eax
jne 0x403af8
cmp dword [0x4081a0], 1
je 0x403bcf
cmp edx, 0xfc
je 0x403bf5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4074f4
push edi
call fcn.00405c60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405350
lea eax, [ebp - 0xa0]
push 0x4074d4
push eax
call fcn.00405350
push dword [esi + 0x408254]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405bcf
add esp, 0x2c
pop edi
jmp 0x403bf5
lea eax, [ebp + 8]
lea esi, [esi + 0x408254]
push 0
push eax
push dword [esi]
call fcn.00405430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100038e1
Capabilities:
Terminate process

Disassembly:
jmp 0x100c832b
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x100c833c
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10005f74
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x100039ef
Capabilities:
Query environment variable

Disassembly:
jmp 0x100e0479
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e048a
pop esi
ret
push ebx
push edi
push esi
call fcn.100e0360
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100043d1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e04b2
push ebx
push esi
push edi
call fcn.10005d30
add esp, 0xc
push 0
call fcn.10006983
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10064370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
cmp dword [ebp + 0xc], 0
jbe 0x10064480
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10064fc0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
movzx ecx, byte [eax + ecx]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x5c]
movzx eax, byte [edx + eax + 1]
xor ecx, eax
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x5c]
movzx eax, byte [edx + eax + 2]
xor ecx, eax
imul ecx, ecx, 0x9f5f
shr ecx, 5
and ecx, 0xffff
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x64]
mov esi, dword [ebp - 4]
mov eax, dword [eax + esi*4]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x44]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x68]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
movzx edx, word [ecx + edx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10064830
add esp, 4
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
jne 0x1006437f
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100698a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
cmp dword [ebp + 0xc], 0
jbe 0x100699b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1006a4f0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
movzx ecx, byte [eax + ecx]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x5c]
movzx eax, byte [edx + eax + 1]
xor ecx, eax
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x5c]
movzx eax, byte [edx + eax + 2]
xor ecx, eax
imul ecx, ecx, 0x9f5f
shr ecx, 5
and ecx, 0xffff
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x64]
mov esi, dword [ebp - 4]
mov eax, dword [eax + esi*4]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x44]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x68]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
movzx edx, word [ecx + edx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10069d60
add esp, 4
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
jne 0x100698af
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006f290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
cmp dword [ebp + 0xc], 0
jbe 0x1006f3a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1006fee0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
movzx ecx, byte [eax + ecx]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x5c]
movzx eax, byte [edx + eax + 1]
xor ecx, eax
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x5c]
movzx eax, byte [edx + eax + 2]
xor ecx, eax
imul ecx, ecx, 0x9f5f
shr ecx, 5
and ecx, 0xffff
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x64]
mov esi, dword [ebp - 4]
mov eax, dword [eax + esi*4]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x44]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x68]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
movzx edx, word [ecx + edx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1006f750
add esp, 4
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
jne 0x1006f29f
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1008dce4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1008dd23
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008dd23
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008dd23
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1008dd23
cmp dword [ecx + 0x74], 0xe
jbe 0x1008dd23
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100b0a5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10001f3c
mov eax, dword [0x10132300]
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.10006514
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b0aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b0bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100066a9
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 + 0x1013e918]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10003503
mov ecx, dword [esi*4 + 0x1013e918]
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 0x100b0bf5
cmp eax, dword [ecx + edi + 0x24]
jne 0x100b0bf5
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 0x100b0bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10003503
add esp, 0x14
test edx, edx
jl 0x100b0bf5
jg 0x100b0b6b
test eax, eax
jb 0x100b0bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100b0bf5
jl 0x100b0b85
cmp dword [ebp - 0x1008], eax
ja 0x100b0bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100b0ba3
test ebx, ebx
je 0x100b0bdc
cmp ecx, edi
jae 0x100b0bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b0bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b0bc9
cmp byte [ecx + 1], 0xa
jne 0x100b0bc9
inc ecx
jmp 0x100b0bc9
movzx eax, al
movsx eax, byte [eax + 0x101325d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b0ba3
cmp edx, ebx
jne 0x100b0ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100b0bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000328d
leave
ret

Function at 0x100cbdcd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10132300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x100cbe10
call fcn.1000198d
mov dword [eax], 0xf
call fcn.10003c97
mov dword [eax], 0xd
call fcn.10003a12
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000328d
leave
ret
test eax, eax
jne 0x100cbe17
inc eax
jmp 0x100cbe04
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x100cbe02
xor eax, eax
cmp ecx, 1
setne al
jmp 0x100cbe04
Function at 0x100d5e87
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 + 0x1013e918]
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 0x100d5ec7
cmp byte [ebx], 0xa
jne 0x100d5ec7
or byte [edi + eax + 0x28], 4
jmp 0x100d5ecc
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 0x100d5fcb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100d5fae
inc eax
cmp dl, 0xd
je 0x100d5ef8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100d5f1e
cmp eax, ecx
jae 0x100d5f2c
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 0x100d5ee0
jmp 0x100d5fcb
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 0x100d5fa9
cmp dword [ebp - 0x10], 0
je 0x100d5fa9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1013e918]
test byte [eax + edi + 0x28], 0x48
je 0x100d5f83
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100d5f6e
mov byte [esi], dl
jmp 0x100d5f7f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1013e918]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100d5fcb
cmp byte [ebp - 1], 0xa
jne 0x100d5f92
cmp esi, ebx
jne 0x100d5f92
mov byte [esi], 0xa
jmp 0x100d5fca
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10001a8c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100d5fcb
mov byte [esi], 0xd
jmp 0x100d5fca
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1013e918]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100d5fc8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100d5fcb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100d6027
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 + 0x1013e918]
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 0x100d606d
cmp word [ebx], dx
jne 0x100d606d
or byte [eax + edi + 0x28], 4
jmp 0x100d6072
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 0x100d61d5
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 0x100d61b5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100d60b3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100d60e9
cmp eax, edx
jae 0x100d60f7
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 0x100d608e
jmp 0x100d61d5
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 0x100d61b0
cmp dword [ebp - 0x18], 0
je 0x100d61b0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1013e918]
test byte [eax + edi + 0x28], 0x48
je 0x100d6186
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 0x100d614a
mov word [esi], cx
jmp 0x100d6181
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1013e918]
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 + 0x1013e918]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1013e918]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100d61d5
pop eax
cmp word [ebp - 4], ax
jne 0x100d6196
cmp esi, ebx
jne 0x100d6196
mov word [esi], ax
jmp 0x100d61d2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10001a8c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100d61d5
push 0xd
pop eax
jmp 0x100d6191
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1013e918]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100d61cf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100d61d5
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 0x100de623
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10132300]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100de66e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.100deaf6
test al, al
jne 0x100de668
sub edx, 2
cmp edx, edi
jne 0x100de64e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100de690
lea eax, [edi + 2]
cmp edx, eax
je 0x100de690
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100de21c
add esp, 0x10
jmp 0x100de78a
push esi
lea ecx, [ebp - 0x255]
call fcn.100deaf6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100de6d3
push dword [ebp - 0x25c]
jmp 0x100de680
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x100de710
cmp word [ebp - 0x226], 0
je 0x100de731
cmp word [ebp - 0x226], ax
jne 0x100de710
cmp word [ebp - 0x224], 0
je 0x100de731
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100de21c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100de77d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100de6ea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100de765
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100de78a
push 0x100ddc04
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10005b64
add esp, 0x10
jmp 0x100de75a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000328d
leave
ret

Function at 0x100e58fc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10004755
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 0x100e596b
cmp esi, dword [ebp - 4]
je 0x100e5966
cmp dword [ebp + 0xc], 0
je 0x100e5966
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100e5943
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100e5324
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100e596d
xor eax, eax
inc eax
jmp 0x100e596d
xor eax, eax
pop edi
pop esi
leave
ret