joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004256b0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x427bc9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00422a40
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00422a30
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00427220
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x47c3e0]
push 0
lea ecx, [esp + 0x4c]
call fcn.00473e88
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043e080
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004250d0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x47c0e4]
mov ecx, ebx
call fcn.004229b0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x427c94
push edi
mov ecx, esi
call fcn.004251e0
push eax
push ebp
mov ecx, esi
call fcn.004253a0
cmp eax, dword [esp + 0x40]
jg 0x427c90
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x427c6e
mov eax, ebx
jmp 0x427c9a
cmp edi, ebx
jl 0x427c98
mov eax, ebx
jmp 0x427c9a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x427cab
mov dword [esp + 0x30], eax
jmp 0x427cb6
cmp edi, ebx
jl 0x427cb1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00422970
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x427cfd
push edi
mov ecx, esi
call fcn.00425100
push eax
push ebx
mov ecx, esi
call fcn.004254d0
cmp eax, dword [esp + 0x44]
jg 0x427cf5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x427ccf
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x427d07
cmp edi, ebp
jl 0x427d01
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x427d07
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x427d10
mov ecx, eax
jmp 0x427d19
cmp edi, ebp
jl 0x427d16
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004250f0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00473efa
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x42de50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a738
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42de89
inc eax
mov dword [esi + 0x10], eax
jmp 0x42df9c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42de9d
mov eax, 0xffffffc7
jmp 0x42df9e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42deae
cmp dword [esi + 8], eax
jne 0x42de9d
cmp dword [esi + 8], eax
jne 0x42dec7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42dec7
mov eax, 0xffffffc7
jmp 0x42df9e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42dedb
push eax
mov ecx, ebx
call fcn.0042d680
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401a00
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42df0c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401a20
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042cdf0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42df3f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x73f45d8
call fcn.00401c00
mov eax, dword [esp + 0x38]
jmp 0x42df9e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042dcb0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42df83
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042dcd0
mov esi, eax
test esi, esi
jne 0x42dfb3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042dcb0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42df55
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x73f45d8
call fcn.00401c00
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x73f45d8
call fcn.00401c00
mov eax, esi
jmp 0x42df9e
Function at 0x43e720
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47c3e0]
push 0
lea ecx, [esp + 0x20]
call fcn.00473e88
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e080
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00473db6
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0047067a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0047067a
push 1
push 0
push 0
mov ecx, esi
call fcn.00470622
push 1
push 0
push 1
mov ecx, esi
call fcn.00470622
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00473efa
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e8a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00473e88
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e080
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00473db6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47c3e0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e964
cmp dword [esp + 0x40], 1
jne 0x43e962
cmp ecx, eax
jge 0x43e964
mov eax, ecx
cmp eax, 0xc8
jge 0x43e970
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e720
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x47c3e4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00473efa
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f160
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b0f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ea9a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x73f6068
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x73f5fb0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x47c0b0]
push eax
mov ecx, edi
call fcn.00474130
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047564c
test eax, eax
je 0x43f27c
mov ecx, dword [esp + 0x3c]
call fcn.0047415d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x47c3b8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f240
push edi
mov ecx, esi
call fcn.004717c4
mov ecx, esi
call fcn.0043f420
cmp dword [esp + 0x38], 1
jne 0x43f275
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004718ff
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x441470
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4414a3
push esi
call fcn.0044f830
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44149c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441529
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441512
mov eax, dword [esi + 8]
test eax, eax
je 0x4414c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44150e
cmp eax, 2
je 0x441512
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4414ba
cmp eax, 3
je 0x4414ed
cmp eax, 1
jne 0x4414ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4414ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4414ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441550
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441538
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441550
add esp, 4
pop esi
ret
Function at 0x4036a2
Capabilities:
Terminate process

Disassembly:
jmp 0x461de4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x461df5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a47
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 0x4037c9
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ab691
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ab6a2
pop esi
ret
push ebx
push edi
push esi
call fcn.004ab578
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ab6ca
push ebx
push esi
push edi
call fcn.00405830
add esp, 0xc
push 0
call fcn.004063ac
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4058ee
Capabilities:
Parse pe header

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

Function at 0x44ed8d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403828
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44edcc
sub eax, 1
je 0x44edc7
sub eax, 1
je 0x44edc3
xor eax, eax
leave
ret
push 3
jmp 0x44edce
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x495a25
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x4de100]
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.00405fa6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a1c7a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1dd6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004060fa
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 + 0x4e1b00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403332
mov ecx, dword [esi*4 + 0x4e1b00]
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 0x4a1dcf
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a1dcf
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 0x4a1dcf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403332
add esp, 0x14
test edx, edx
jl 0x4a1dcf
jg 0x4a1d45
test eax, eax
jb 0x4a1dcf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1dcf
jl 0x4a1d5f
cmp dword [ebp - 0x1008], eax
ja 0x4a1dcf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1d7d
test ebx, ebx
je 0x4a1db6
cmp ecx, edi
jae 0x4a1db6
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1d97
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1da3
cmp byte [ecx + 1], 0xa
jne 0x4a1da3
inc ecx
jmp 0x4a1da3
movzx eax, al
movsx eax, byte [eax + 0x4de468]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1d7d
cmp edx, ebx
jne 0x4a1d7d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1dd4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030fd
leave
ret
Function at 0x4a2515
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 + 0x4e1b00]
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 0x4a2555
cmp byte [ebx], 0xa
jne 0x4a2555
or byte [edi + eax + 0x28], 4
jmp 0x4a255a
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 0x4a2659
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4a263c
inc eax
cmp dl, 0xd
je 0x4a2586
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4a25ac
cmp eax, ecx
jae 0x4a25ba
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 0x4a256e
jmp 0x4a2659
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 0x4a2637
cmp dword [ebp - 0x10], 0
je 0x4a2637
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e1b00]
test byte [eax + edi + 0x28], 0x48
je 0x4a2611
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a25fc
mov byte [esi], dl
jmp 0x4a260d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e1b00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a2659
cmp byte [ebp - 1], 0xa
jne 0x4a2620
cmp esi, ebx
jne 0x4a2620
mov byte [esi], 0xa
jmp 0x4a2658
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a2659
mov byte [esi], 0xd
jmp 0x4a2658
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e1b00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2656
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2659
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a26b5
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 + 0x4e1b00]
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 0x4a26fb
cmp word [ebx], dx
jne 0x4a26fb
or byte [eax + edi + 0x28], 4
jmp 0x4a2700
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 0x4a2863
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 0x4a2843
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4a2741
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2777
cmp eax, edx
jae 0x4a2785
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 0x4a271c
jmp 0x4a2863
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 0x4a283e
cmp dword [ebp - 0x18], 0
je 0x4a283e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4e1b00]
test byte [eax + edi + 0x28], 0x48
je 0x4a2814
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 0x4a27d8
mov word [esi], cx
jmp 0x4a280f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4e1b00]
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 + 0x4e1b00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4e1b00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4a2863
pop eax
cmp word [ebp - 4], ax
jne 0x4a2824
cmp esi, ebx
jne 0x4a2824
mov word [esi], ax
jmp 0x4a2860
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4a2863
push 0xd
pop eax
jmp 0x4a281f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4e1b00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4a285d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4a2863
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 0x4a9c47
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4de100]
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 0x4a9c92
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004aa0ff
test al, al
jne 0x4a9c8c
sub edx, 2
cmp edx, edi
jne 0x4a9c72
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a9cb4
lea eax, [edi + 2]
cmp edx, eax
je 0x4a9cb4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a9840
add esp, 0x10
jmp 0x4a9dae
push esi
lea ecx, [ebp - 0x255]
call fcn.004aa0ff
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 0x4a9cf7
push dword [ebp - 0x25c]
jmp 0x4a9ca4
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 0x4a9d34
cmp word [ebp - 0x226], 0
je 0x4a9d55
cmp word [ebp - 0x226], ax
jne 0x4a9d34
cmp word [ebp - 0x224], 0
je 0x4a9d55
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a9840
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9da1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a9d0e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9d89
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9dae
push 0x4a9228
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405682
add esp, 0x10
jmp 0x4a9d7e
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.004030fd
leave
ret

Function at 0x4af710
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004043db
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 0x4af77f
cmp esi, dword [ebp - 4]
je 0x4af77a
cmp dword [ebp + 0xc], 0
je 0x4af77a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4af757
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004af138
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4af781
xor eax, eax
inc eax
jmp 0x4af781
xor eax, eax
pop edi
pop esi
leave
ret