joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101fea4
Capabilities:
Resume thread

Disassembly:
mov eax, 0x1034fb4
call fcn.01027f98
sub esp, 0x20
push ebx
push esi
push edi
push 0x10083bc
sub esp, 0x40
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, esp
push 0
push 0x200
push 0x1f7
mov ebx, 0x1007aa4
push ebx
mov edi, 0x1007a38
push edi
call fcn.01011ab4
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.01011b28
mov dword [ebp - 4], 1
cmp dword [esi + 8], 0
je 0x102003c
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 5], 1
call dword [eax + 0xc]
cmp byte [ebp + 8], 0
je 0x101ffb8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x101ffb8
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x10079a8
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 8], esp
push 0
push 0x4000
push 0x20a
push ebx
push edi
call fcn.01011ab4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.010297ff
add esp, 0x54
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1007948
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
push 0x4000
push 0x20d
push ebx
push edi
call fcn.01011ab4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.01011c4f
mov dword [esi + 0x10], 5
add esp, 0x50
mov esi, 0x8000ffff
jmp 0x102003e
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x102003c
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push 0x10082f8
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 8], esp
push 0
push 0x4000
push 0x219
push ebx
push edi
call fcn.01011ab4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.010297ff
add esp, 0x54
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008288
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
push 0x4000
push 0x21c
push ebx
push edi
call fcn.01011ab4
mov byte [ebp - 4], 5
jmp 0x101ff97
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.01011bd1
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x1027d92
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x100b598
call fcn.0102818c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1027dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1027dcd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1027de5
cmp eax, 0x20b
je 0x1027dd2
mov dword [ebp - 0x1c], edi
jmp 0x1027df9
cmp dword [ecx + 0x84], 0xe
jbe 0x1027dcd
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1027df3
cmp dword [ecx + 0x74], 0xe
jbe 0x1027dcd
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10412e0], 0xffffffff
or dword [0x10412e4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x104026c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1040268]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10412dc], eax
call fcn.01028182
cmp dword [0x10400b0], edi
jne 0x1027e56
push fcn.01028182
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0102816b
push 0x1040030
push 0x104002c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1040264]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1040260]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1040028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1027ebc
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1027f76
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1027f0a
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1027ed8
cmp ax, 0x22
jne 0x1027ec5
cmp word [esi], 0x22
jne 0x1027ee3
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1027ef1
cmp ax, 0x20
jbe 0x1027ede
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1027f17
movzx eax, word [ebp - 0x50]
jmp 0x1027f1a
cmp word [esi], 0x20
jbe 0x1027ee3
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1027f0a
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1027f3b
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1027f70
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010281c7
ret
Function at 0x10284fa
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x1028513
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 4], 0xffffffff
je 0x1028539
push edi
push 0
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x54]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x1028829
Capabilities:
Get file size
Persist via application shimming
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
call fcn.0102832e
xor ebx, ebx
cmp dword [esi], ebx
je 0x10289a6
mov eax, dword [ebp + 0x14]
test dword [esi + 0x24], eax
je 0x10289a6
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x1028864
mov dword [esi + 0x48], 0x100bab0
jmp 0x102889b
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [edi + eax*2 - 2]
xor ecx, ecx
cmp eax, edi
jbe 0x1028898
cmp ecx, 3
jge 0x102888c
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1028887
cmp eax, edi
ja 0x102887b
inc ecx
cmp eax, edi
ja 0x1028876
cmp eax, edi
jbe 0x1028898
add eax, 2
mov dword [esi + 0x48], eax
jmp 0x102889b
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x1c]
inc edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x40], eax
je 0x10289a2
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x10288c5
mov eax, 0x10013ac
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10288f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100ba18
jmp 0x1028999
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edi
push ebx
push 2
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x1028933
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b950
jmp 0x1028999
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1028968
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x1028968
push ebx
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp + 0x16]
push eax
push dword [esi + 4]
mov byte [ebp + 0x16], 0xff
mov byte [ebp + 0x17], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10289a2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b888
push esi
call fcn.01028692
add esp, 0xc
mov dword [esi + 0x3c], edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x18
Function at 0x1029fa3
Capabilities:
Compare security identifiers
List user accounts for group

Disassembly:
mov eax, 0x103617c
call fcn.01027f98
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x100c868
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0
mov ebx, 0x4000
push ebx
push 0x144
mov edi, 0x100c72c
push edi
mov esi, 0x100c6a8
push esi
call fcn.01011ab4
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.01011b28
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
cmp word [eax], cx
jne 0x102a018
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.01011bd1
xor al, al
jmp 0x102a170
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push ecx
call sub.NETAPI32.dll_NetLocalGroupGetMembers
test eax, eax
je 0x102a075
jle 0x102a042
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x64], eax
push 0x100c844
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0
push ebx
push 0x160
push edi
push esi
call fcn.01011ab4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.01029a1b
add esp, 0x48
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x38], esi
xor edi, edi
mov dword [ebp - 0x24], edi
cmp edi, dword [ebp - 0x20]
jae 0x102a0a5
mov eax, dword [esi + edi*4]
mov dword [ebp - 0x3c], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x102a0d0
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 1
push dword [ebp - 0x18]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x64]
test eax, eax
jge 0x102a161
mov dword [ebp - 0x28], eax
push 0x1037574
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll__CxxThrowException
inc edi
jmp 0x102a085
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.01011bd1
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41f573
Capabilities:
Parse pe header

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

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x8ccbaa
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x8cc92e
add ebx, eax
dec ebx
sub eax, ebx
call fcn.008ccbe1
sub ebx, 0x15ff6c1d
xor dword [ecx], edi
sub ebx, ebx
and ebx, ebx
and eax, eax
inc ecx
mov ebx, ebx
cmp ecx, esi
jne fcn.008ccbaa
or eax, ebx
add ebx, 0xd77ff8cd
or eax, eax
ret
Function at 0x1000ae5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ae9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ae9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ae9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ae9a
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ae9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001497b
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 0x10014a18
push ebx
push esi
call fcn.10014944
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.100148da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100149c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014a17
push edi
push eax
call fcn.100136c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100149e5
call fcn.10013670
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014a16
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100148da
add esp, 0x20
test eax, eax
jne 0x10014a04
push edi
call fcn.10013670
jmp 0x10014a0c
push ebx
call fcn.10013670
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 0x10017460
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10022850
mov eax, dword [0x100bd004]
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.100160a3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100174a2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10017619
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10022880
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100be9e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100184a6
mov ecx, dword [esi*4 + 0x100be9e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10017612
cmp eax, dword [edi + ecx + 0x24]
jne 0x10017612
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017612
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100184a6
add esp, 0x14
cmp edx, esi
jl 0x10017612
jg 0x1001756d
cmp eax, esi
jb 0x10017612
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x10017612
jl 0x1001758f
cmp dword [ebp - 0x1008], eax
ja 0x10017612
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x100175b4
cmp ebx, esi
je 0x100175f9
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x100175f9
mov al, byte [ecx]
cmp al, 0xd
jne 0x100175da
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100175e6
cmp byte [ecx + 1], 0xa
jne 0x100175e6
inc ecx
jmp 0x100175e6
movzx eax, al
movsx eax, byte [eax + 0x100bd800]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100175c0
cmp edx, ebx
jne 0x100175c0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x10017617
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000358f
leave
ret
Function at 0x10017898
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x100178b2
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x100178c9
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x10017921
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1001ecd1
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x10017921
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10017921
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10017921
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1001791b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1001791d
xor bl, bl
mov al, bl
jmp 0x10017923
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x10017932
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100be9e8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10017974
cmp byte [ebx], 0xa
jne 0x10017974
or byte [edi + eax + 0x28], 4
jmp 0x10017979
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10017a7c
mov cl, byte [eax]
cmp cl, 0x1a
je 0x10017a57
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x100179a8
mov eax, dword [ebp - 8]
jmp 0x100179c8
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x100179e4
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x100179c2
add eax, 2
mov cl, 0xa
jmp 0x100179c5
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001798a
jmp 0x10017a7c
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 0x10017a52
cmp dword [ebp - 0x10], 0
je 0x10017a52
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x100be9e8]
test byte [eax + edi + 0x28], 0x48
je 0x10017a31
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x10017a21
mov byte [esi], 0xa
jmp 0x10017a7b
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x100be9e8]
mov byte [eax + edi + 0x2a], cl
jmp 0x10017a7b
cmp byte [ebp - 1], 0xa
jne 0x10017a3b
cmp esi, ebx
je 0x10017a1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100184c4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10017a7c
mov byte [esi], 0xd
jmp 0x10017a7b
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x100be9e8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x10017a79
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x10017a7c
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017a85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x100be9e8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10017ac9
push 0xa
pop esi
cmp word [ebx], si
jne 0x10017ac9
or byte [eax + edi + 0x28], 4
jmp 0x10017ace
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x10017c39
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x10017c11
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x10017b1b
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x10017b45
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x10017b64
push 0xa
pop ebx
cmp word [edx], bx
jne 0x10017b32
push ebx
add eax, 4
pop edx
jmp 0x10017b3a
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x10017ae0
jmp 0x10017c39
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10017c0c
cmp dword [ebp - 0x14], 0
je 0x10017c0c
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x100be9e8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10017be8
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10017bb0
mov word [esi], ax
jmp 0x10017c36
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x100be9e8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100be9e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100be9e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x10017c36
cmp word [ebp - 4], ax
jne 0x10017bf2
cmp esi, ebx
je 0x10017ba8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100184c4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10017c39
push 0xd
pop eax
jmp 0x10017ba8
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x100be9e8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x10017c33
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x10017c39
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001dffe
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10011d6c
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 0x1001e06d
cmp esi, dword [ebp - 4]
je 0x1001e068
cmp dword [ebp + 0xc], 0
je 0x1001e068
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001e045
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001db53
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001e06f
xor eax, eax
inc eax
jmp 0x1001e06f
xor eax, eax
pop edi
pop esi
leave
ret