joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006640
Capabilities:
Get file attributes
Get file size
Get hostname
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x10006657
lea eax, [ebx - 0x41]
pop ebx
pop ebp
ret 4
cmp dword [0x100b0fa8], 0x98c6e8da
jne 0x100067e5
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedPushListSListEx]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProximityNodeEx]
push 0
call dword [sym.imp.KERNEL32.dll_DisableThreadProfiling]
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForThreadpoolTimerCallbacks]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLanguageGroupsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
push 0
push 0
push 0
push 0
push 0x100bbedc
push 0
push 0x100bbf08
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoEx]
xor eax, eax
xor ecx, ecx
xchg dword [ecx], eax
push ecx
push ecx
push 0x100bbf40
call dword [sym.imp.KERNEL32.dll_OpenFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessMitigationPolicy]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0x100bbf50
push 0
call dword [sym.imp.KERNEL32.dll_GetFileMUIInfo]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumLanguageGroupLocalesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeTransactedW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRecoveryCallback]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessIdOfThread]
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x100067f4
lea eax, [ebx - 0x47]
pop ebx
pop ebp
ret 4
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x10006803
lea eax, [ebx + 4]
pop ebx
pop ebp
ret 4
cmp bl, 0x2b
jne 0x1000680f
mov al, 0x3e
pop ebx
pop ebp
ret 4
cmp bl, 0x2f
pop ebx
setne al
dec al
and al, 0x3f
pop ebp
ret 4
Function at 0x10006ee0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10002cf0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x100bb664
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x10006fee
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x100bb688
push 0x100bb664
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x10006fee
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x10006fee
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x10006fd0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [0x100b12d0], 0
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x10003d30
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f00
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x100bb994
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x100072a6
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x100bb9b4
push 0x100bb994
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x100072a6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x100072a6
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x10007288
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100072b0
Capabilities:
Manipulate console buffer

Disassembly:
push edi
push 0
call fcn.1003ee44
push eax
call fcn.1003b57f
add esp, 8
mov dword [0x100b12d4], 0
mov ecx, 0xc8
mov byte [0x100b12d8], 0
xor eax, eax
mov dword [0x100b12e8], 5
mov edi, 0x100b0fb0
mov dword [0x100b12dc], 0
rep stosd dword es:[edi], eax
pop edi
jmp fcn.10003550

Function at 0x10007300
Capabilities:
Copy file
Extract resource via kernel32 functions
Get geographical location
Manipulate console buffer
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
jne 0x100074a5
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov eax, 0x10005500
add eax, 0x1b2
mov edi, 0x10005a20
mov dword [esp + 0x10], eax
add edi, 0x1b3
mov eax, 0x100057c0
add eax, 0x269
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
nop word [eax + eax]
push 0x1b3
push edi
mov byte [0x100b12d9], 1
call fcn.1000b840
add esp, 8
cmp dword [0x100b0fa8], 0x801f1df4
jne 0x10007479
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
push 0
call dword [sym.imp.KERNEL32.dll_IsThreadpoolTimerSet]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibraryWhenCallbackReturns]
push 0
push 0
push 0
push 0
push 0x100bc2cc
call dword [sym.imp.KERNEL32.dll_FindFirstStreamTransactedW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForThreadpoolWaitCallbacks]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
push 0
call dword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadpoolStackInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DiscardVirtualMemory]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadErrorMode]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0x1b2
push dword [esp + 0x14]
call fcn.1000b840
push 0x269
push dword [esp + 0x20]
call fcn.1000b840
add esp, 0x10
cmp byte [0x100b12d9], 0
je 0x10007350
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ecx + 4]
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], 0x100bc730
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.10036c3a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10036012
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.1000a270
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x10], edx
mov dword [eax], 0x100bc608
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x100b1f9c]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x100b1fa0]
mov dword [ebx], 0
pop edi
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x40], eax
mov eax, edx
pop esi
mov dword [edx + 0x4c], 0
mov dword [edx + 0x38], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10041452
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10041491
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10041491
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10041491
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10041491
cmp dword [ecx + 0x74], 0xe
jbe 0x10041491
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10047a1a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b7a30
push 0x100b7a28
push 0x100b5374
push 0x1f
call fcn.100478e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10047a4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b3800]
call esi
jmp 0x10047a54
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10047a98
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b7a40
push 0x100b7a38
push 0x100b5398
push 0x21
call fcn.100478e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10047acf
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b3800]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10047ad7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b7a48
push 0x100b7a40
push 0x100b53ac
push 0x22
call fcn.100478e2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10047b11
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b3800]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10048216
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10037b60
mov eax, dword [0x10057080]
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.10042ef3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10048258
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100483b4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10053f60
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 + 0x100b0b68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10049028
mov ecx, dword [esi*4 + 0x100b0b68]
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 0x100483ad
cmp eax, dword [ecx + edi + 0x24]
jne 0x100483ad
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 0x100483ad
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10049028
add esp, 0x14
test edx, edx
jl 0x100483ad
jg 0x10048323
test eax, eax
jb 0x100483ad
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100483ad
jl 0x1004833d
cmp dword [ebp - 0x1008], eax
ja 0x100483ad
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004835b
test ebx, ebx
je 0x10048394
cmp ecx, edi
jae 0x10048394
mov al, byte [ecx]
cmp al, 0xd
jne 0x10048375
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10048381
cmp byte [ecx + 1], 0xa
jne 0x10048381
inc ecx
jmp 0x10048381
movzx eax, al
movsx eax, byte [eax + 0x10057340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004835b
cmp edx, ebx
jne 0x1004835b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100483b2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10037321
leave
ret
Function at 0x100490a4
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 + 0x100b0b68]
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 0x100490e4
cmp byte [ebx], 0xa
jne 0x100490e4
or byte [edi + eax + 0x28], 4
jmp 0x100490e9
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 0x100491e8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100491cb
inc eax
cmp dl, 0xd
je 0x10049115
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004913b
cmp eax, ecx
jae 0x10049149
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 0x100490fd
jmp 0x100491e8
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 0x100491c6
cmp dword [ebp - 0x10], 0
je 0x100491c6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b0b68]
test byte [eax + edi + 0x28], 0x48
je 0x100491a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004918b
mov byte [esi], dl
jmp 0x1004919c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b0b68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100491e8
cmp byte [ebp - 1], 0xa
jne 0x100491af
cmp esi, ebx
jne 0x100491af
mov byte [esi], 0xa
jmp 0x100491e7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10049046
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100491e8
mov byte [esi], 0xd
jmp 0x100491e7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b0b68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100491e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100491e8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100491f1
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 + 0x100b0b68]
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 0x10049237
cmp word [ebx], dx
jne 0x10049237
or byte [eax + edi + 0x28], 4
jmp 0x1004923c
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 0x1004939f
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 0x1004937f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004927d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100492b3
cmp eax, edx
jae 0x100492c1
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 0x10049258
jmp 0x1004939f
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 0x1004937a
cmp dword [ebp - 0x18], 0
je 0x1004937a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b0b68]
test byte [eax + edi + 0x28], 0x48
je 0x10049350
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 0x10049314
mov word [esi], cx
jmp 0x1004934b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b0b68]
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 + 0x100b0b68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b0b68]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004939f
pop eax
cmp word [ebp - 4], ax
jne 0x10049360
cmp esi, ebx
jne 0x10049360
mov word [esi], ax
jmp 0x1004939c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10049046
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004939f
push 0xd
pop eax
jmp 0x1004935b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b0b68]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10049399
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004939f
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 0x1004bec4
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 0x1004bf61
push ebx
push esi
call fcn.1004be8d
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.100461d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004bf0e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004bf60
push edi
push eax
call fcn.100460f9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004bf2e
call fcn.10045658
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004bf5f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100461d7
add esp, 0x20
test eax, eax
jne 0x1004bf4d
push edi
call fcn.10045658
jmp 0x1004bf55
push ebx
call fcn.10045658
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 0x1004e818
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10042ae9
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 0x1004e887
cmp esi, dword [ebp - 4]
je 0x1004e882
cmp dword [ebp + 0xc], 0
je 0x1004e882
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004e85f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004e36a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004e889
xor eax, eax
inc eax
jmp 0x1004e889
xor eax, eax
pop edi
pop esi
leave
ret