joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x845058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8451a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x84507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84506a
add dl, dl
jne 0x845089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8450dc
xor eax, eax
add dl, dl
jne 0x845096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84517d
add dl, dl
jne 0x8450a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8450d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x845075
mov eax, 1
add dl, dl
jne 0x8450ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8450e1
sub eax, ebx
mov ebx, 1
jne 0x845128
mov ecx, 1
add dl, dl
jne 0x84510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x845119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x84513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845136
cmp eax, 0x7d00
jae 0x84516d
cmp eax, 0x500
jb 0x845168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
cmp eax, 0x7f
ja 0x845170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x845075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401390
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4014fd
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4014fd
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4014fd
lea ecx, [esp + 0x168]
push str.__c__del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014ef
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret

Function at 0x401900
Capabilities:
Create process on windows
Create process suspended
Read file on windows
Set registry value
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x368
push ebx
push ebp
push esi
push edi
jmp loc.0040f000
Function at 0x10004450
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], 0x10004240
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], str.QEZDRvjwWlqOboSuAHGtLQ
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x1f4
push 0x1f4
push 0x80000000
push 0x80000000
push 0xcf0000
push str.QgkHXjQuzwrIenLtCFs
mov ecx, dword [ebp - 0x24]
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10004503
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x100044d9
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100058b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 0x40]
push eax
push 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [ebp - 0x68], 0x28
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov ecx, 1
mov word [ebp - 0x5c], cx
mov edx, 0x18
mov word [ebp - 0x5a], dx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movzx eax, word [ebp - 0x5a]
imul eax, dword [ebp - 0x3c]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x36
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1e], 0x36
mov ecx, dword [ebp - 8]
add ecx, 0x36
mov dword [ebp - 0x26], ecx
mov edx, 0x4d42
mov word [ebp - 0x28], dx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 0x14]
push edx
push 0xe
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x14]
push edx
push 0x28
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x10014960
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006986e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x10]
call fcn.100157f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.10015af0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10002910
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x35], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x36
call fcn.10002910
mov ecx, dword [ebp - 0x10]
add ecx, 0x37
call fcn.10015a10
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x18]
call fcn.10015840
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.10017220
add esp, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10016360
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.10017960
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10050b51
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 0x10050b72
jl 0x10050b69
test edi, edi
jne 0x10050b72
xor eax, eax
xor edx, edx
jmp 0x10050c33
cmp dword [ebx + 0x38], 0
je 0x10050b87
push eax
push edi
push dword [ebp + 8]
call fcn.10050c39
jmp 0x10050c33
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10050bce
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10050bce
cmp eax, edi
jb 0x10050ba8
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10052fd0
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 0x10050bd4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10050c28
mov ecx, ebx
call fcn.100503a1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10050c13
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10057422
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 0x10050c28
jmp 0x10050be6
test edx, edx
je 0x10050c28
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10057422
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 0x1005930f
Capabilities:
Parse pe header

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

Function at 0x1005d3f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006fe10
push 0x1006fe08
push str.FlsAlloc
push 0x1f
call fcn.1005d264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d42d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006cbb8]
call esi
jmp 0x1005d433
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005d477
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006fe20
push 0x1006fe18
push 0x1006e648
push 0x21
call fcn.1005d264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d4ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006cbb8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005d4b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006fe28
push 0x1006fe20
push 0x1006e65c
push 0x22
call fcn.1005d264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005d4f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1006cbb8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005ee42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100528d0
mov eax, dword [0x10081040]
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.1005da89
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005ee84
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005efe0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100690c0
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 + 0x100d7f28]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1005fe3f
mov ecx, dword [esi*4 + 0x100d7f28]
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 0x1005efd9
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005efd9
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 0x1005efd9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005fe3f
add esp, 0x14
test edx, edx
jl 0x1005efd9
jg 0x1005ef4f
test eax, eax
jb 0x1005efd9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005efd9
jl 0x1005ef69
cmp dword [ebp - 0x1008], eax
ja 0x1005efd9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005ef87
test ebx, ebx
je 0x1005efc0
cmp ecx, edi
jae 0x1005efc0
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005efa1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005efad
cmp byte [ecx + 1], 0xa
jne 0x1005efad
inc ecx
jmp 0x1005efad
movzx eax, al
movsx eax, byte [eax + 0x100812e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005ef87
cmp edx, ebx
jne 0x1005ef87
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005efde
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10052106
leave
ret
Function at 0x1005f2d7
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 + 0x100d7f28]
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 0x1005f317
cmp byte [ebx], 0xa
jne 0x1005f317
or byte [edi + eax + 0x28], 4
jmp 0x1005f31c
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 0x1005f41b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005f3fe
inc eax
cmp dl, 0xd
je 0x1005f348
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005f36e
cmp eax, ecx
jae 0x1005f37c
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 0x1005f330
jmp 0x1005f41b
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 0x1005f3f9
cmp dword [ebp - 0x10], 0
je 0x1005f3f9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100d7f28]
test byte [eax + edi + 0x28], 0x48
je 0x1005f3d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005f3be
mov byte [esi], dl
jmp 0x1005f3cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d7f28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005f41b
cmp byte [ebp - 1], 0xa
jne 0x1005f3e2
cmp esi, ebx
jne 0x1005f3e2
mov byte [esi], 0xa
jmp 0x1005f41a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005fe5d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005f41b
mov byte [esi], 0xd
jmp 0x1005f41a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100d7f28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005f418
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005f41b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005f424
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 + 0x100d7f28]
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 0x1005f46a
cmp word [ebx], dx
jne 0x1005f46a
or byte [eax + edi + 0x28], 4
jmp 0x1005f46f
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 0x1005f5d2
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 0x1005f5b2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005f4b0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005f4e6
cmp eax, edx
jae 0x1005f4f4
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 0x1005f48b
jmp 0x1005f5d2
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 0x1005f5ad
cmp dword [ebp - 0x18], 0
je 0x1005f5ad
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100d7f28]
test byte [eax + edi + 0x28], 0x48
je 0x1005f583
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 0x1005f547
mov word [esi], cx
jmp 0x1005f57e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100d7f28]
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 + 0x100d7f28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100d7f28]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005f5d2
pop eax
cmp word [ebp - 4], ax
jne 0x1005f593
cmp esi, ebx
jne 0x1005f593
mov word [esi], ax
jmp 0x1005f5cf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005fe5d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005f5d2
push 0xd
pop eax
jmp 0x1005f58e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100d7f28]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005f5cc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005f5d2
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 0x100630d6
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 0x10063173
push ebx
push esi
call fcn.1006309f
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.10061eb3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10063120
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10063172
push edi
push eax
call fcn.1006003e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10063140
call fcn.1005a692
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10063171
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10061eb3
add esp, 0x20
test eax, eax
jne 0x1006315f
push edi
call fcn.1005a692
jmp 0x10063167
push ebx
call fcn.1005a692
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 0x10065e94
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005b60d
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 0x10065f03
cmp esi, dword [ebp - 4]
je 0x10065efe
cmp dword [ebp + 0xc], 0
je 0x10065efe
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10065edb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100659e6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10065f05
xor eax, eax
inc eax
jmp 0x10065f05
xor eax, eax
pop edi
pop esi
leave
ret