joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4146a0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
movups xmm2, xmmword [ecx]
mov eax, dword [ebx + 8]
movups xmm5, xmmword [ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
mov edx, 4
movups xmm3, xmmword [0x4561c0]
movups xmm4, xmmword [0x4561d0]
pxor xmm0, xmm2
pxor xmm1, xmm5
movaps xmm7, xmm5
movaps xmmword [ebp - 0x30], xmm0
movaps xmmword [ebp - 0x40], xmm1
pxor xmm7, xmm4
pxor xmm2, xmm3
movaps xmmword [ebp - 0x10], xmm1
movaps xmm6, xmm0
nop
movaps xmm0, xmm3
movaps xmm5, xmm2
movaps xmm1, xmm4
aesenc xmm0, xmm2
movaps xmm2, xmmword [ebp - 0x10]
aesenc xmm2, xmm4
movups xmm4, xmmword [ecx]
aesenc xmm1, xmm3
movaps xmm3, xmm6
aesenc xmm3, xmmword [ebp - 0x10]
aesenc xmm5, xmm7
aesenc xmm7, xmm6
pxor xmm7, xmm4
movaps xmm6, xmm0
movaps xmm4, xmm1
aesenc xmm4, xmm0
movaps xmm0, xmm2
aesenc xmm0, xmm1
movaps xmm1, xmm3
aesenc xmm1, xmm2
movaps xmm2, xmm7
aesenc xmm2, xmm3
movups xmm3, xmmword [ecx + 0x10]
aesenc xmm6, xmm5
aesenc xmm5, xmm7
pxor xmm5, xmm3
movaps xmm3, xmm4
aesenc xmm3, xmm6
movaps xmmword [ebp - 0x20], xmm3
movaps xmm3, xmm0
aesenc xmm3, xmm4
movaps xmm4, xmm1
movaps xmm7, xmm3
aesenc xmm4, xmm0
movaps xmm0, xmm2
aesenc xmm0, xmm1
movaps xmm1, xmm5
aesenc xmm1, xmm2
movaps xmm2, xmm4
aesenc xmm6, xmm5
movaps xmm5, xmmword [ebp - 0x20]
pxor xmm6, xmmword [ebp - 0x30]
aesenc xmm2, xmm3
movaps xmm3, xmm0
aesenc xmm3, xmm4
movaps xmm4, xmm1
aesenc xmm7, xmm5
aesenc xmm5, xmm6
pxor xmm5, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm5
movups xmmword [eax], xmm5
aesenc xmm4, xmm0
movaps xmm0, xmm6
movaps xmm6, xmmword [ebp - 0x20]
aesenc xmm0, xmm1
movaps xmmword [ebp - 0x10], xmm0
sub edx, 1
jne 0x414700
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x20], xmm4
movups xmmword [eax + 0x30], xmm3
movups xmmword [eax + 0x40], xmm2
movups xmmword [eax + 0x50], xmm7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x426eb0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx esi, byte [edx + 3]
movzx eax, byte [edx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx]
shl esi, 8
or esi, eax
mov dword [edi + 0x10], esi
movzx ecx, byte [edx + 7]
shl ecx, 8
movzx eax, byte [edx + 6]
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x18]
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x2c], ecx
pop edi
pop esi
ret
Function at 0x429330
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
movzx eax, byte [edx + 2]
push esi
movzx esi, byte [edx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx]
push edi
mov edi, ecx
shl esi, 8
or esi, eax
mov dword [edi + 0x14], esi
movzx ecx, byte [edx + 7]
shl ecx, 8
movzx eax, byte [edx + 6]
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x3c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x10], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
pop edi
pop esi
ret
Function at 0x42a9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
push esi
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp - 0xc]
movzx esi, byte [ecx + eax]
inc eax
mov ecx, dword [ebp - 4]
xor esi, edx
or ecx, esi
mov dword [ebp - 4], ecx
cmp eax, 0x10
jl 0x42a9c6
mov eax, dword [ebp - 4]
dec eax
shr eax, 8
and eax, 1
pop esi
dec eax
mov esp, ebp
pop ebp
ret
Function at 0x42ab00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0042ad80
test eax, eax
jne 0x42ad44
cmp dword [0x480760], eax
je 0x42ab54
cmp dword [0x480780], eax
je 0x42ad39
push 0x480764
mov dword [0x480780], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
xor eax, eax
mov dword [0x480788], 0
xor ecx, ecx
mov dword [0x48078c], 0
push ebx
cpuid
mov esi, ebx
lea edi, [ebp - 0x14]
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp dword [ebp - 0x14], 0
je 0x42ac3d
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
xor edi, edi
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
shr eax, 0x1a
and eax, 1
mov dword [0x4807a0], edi
mov dword [0x480790], eax
mov eax, esi
and eax, 1
mov dword [0x480794], eax
mov eax, esi
shr eax, 9
and eax, 1
mov dword [0x480798], eax
mov eax, esi
shr eax, 0x13
and eax, 1
mov dword [0x48079c], eax
mov eax, esi
and eax, 0x1c000000
cmp eax, 0x1c000000
jne 0x42ac07
xor ecx, ecx
xgetbv
and al, 6
cmp al, 6
mov eax, 1
cmove edi, eax
mov dword [0x4807a0], edi
mov eax, esi
mov dword [0x4807a4], 0
shr eax, 1
and eax, 1
shr esi, 0x19
and esi, 1
mov dword [0x4807a8], 0
mov dword [0x4807ac], eax
mov dword [0x4807b0], esi
mov dword [0x4807b4], 0
mov dword [0x480784], 1
call fcn.0042aa00
mov eax, dword [0x480758]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 8]
test eax, eax
je 0x42ac5d
call eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x34]
mov dword [0x47d2c0], eax
cmp eax, 0x10
jb 0x42ad7a
cmp eax, 4
jb 0x42ad7a
mov eax, dword [0x480758]
test eax, eax
jne 0x42acac
mov dword [0x480758], 0x47cfbc
call fcn.0042aa00
mov eax, dword [0x480758]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x42acac
call ecx
mov eax, dword [0x480758]
mov eax, dword [eax + 0x10]
push 0x10
push 0x4807b8
call eax
mov ecx, dword [0x480798]
add esp, 8
cmp dword [0x48079c], 0
je 0x42acd1
mov eax, 0x41fef0
jmp 0x42ace0
test ecx, ecx
mov eax, 0x41a2c0
mov edx, 0x421e70
cmovne eax, edx
mov dword [0x47d01c], eax
test ecx, ecx
mov edx, 0x47cf9c
mov dword [0x47d14c], 0x47cf28
mov eax, 0x47cf8c
mov dword [0x47d27c], 0x47cf84
cmove eax, edx
mov ecx, 0x47cfac
cmp dword [0x480790], 0
mov dword [0x47d280], eax
mov eax, 0x47cfb4
cmove eax, ecx
mov dword [0x47d284], eax
mov dword [0x480760], 1
cmp dword [0x480780], 0
jne 0x42ad55
call fcn.00434430
mov dword [eax], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
push 0x480764
mov dword [0x480780], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
ret
call fcn.0042ae30
int3
Function at 0x42c908
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 0x42c929
jl 0x42c920
test edi, edi
jne 0x42c929
xor eax, eax
xor edx, edx
jmp 0x42c9ea
cmp dword [ebx + 0x38], 0
je 0x42c93e
push eax
push edi
push dword [ebp + 8]
call fcn.0040cdc0
jmp 0x42c9ea
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42c985
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42c985
cmp eax, edi
jb 0x42c95f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00430b60
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 0x42c98b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x42c9df
mov ecx, ebx
call fcn.0042c27c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x42c9ca
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00435422
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 0x42c9df
jmp 0x42c99d
test edx, edx
je 0x42c9df
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00435422
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 0x42e546
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042e522
pop esi
leave
ret 8

Function at 0x42ff60
Capabilities:
Parse pe header

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

Function at 0x43b194
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d924
push 0x44d91c
push str.FlsAlloc
push 0x1f
call fcn.0043afbf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b1c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x44a400]
call esi
jmp 0x43b1ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x43b212
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d934
push 0x44d92c
push str.FlsGetValue
push 0x21
call fcn.0043afbf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b249
push dword [ebp + 8]
mov ecx, esi
call dword [0x44a400]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43b251
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44d93c
push 0x44d934
push str.FlsSetValue
push 0x22
call fcn.0043afbf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b28b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44a400]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43e0e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004301c0
mov eax, dword [0x47c018]
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.0043bd2d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43e12a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43e286
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00447c00
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 + 0x47e820]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043f2be
mov ecx, dword [esi*4 + 0x47e820]
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 0x43e27f
cmp eax, dword [ecx + edi + 0x24]
jne 0x43e27f
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 0x43e27f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f2be
add esp, 0x14
test edx, edx
jl 0x43e27f
jg 0x43e1f5
test eax, eax
jb 0x43e27f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43e27f
jl 0x43e20f
cmp dword [ebp - 0x1008], eax
ja 0x43e27f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43e22d
test ebx, ebx
je 0x43e266
cmp ecx, edi
jae 0x43e266
mov al, byte [ecx]
cmp al, 0xd
jne 0x43e247
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43e253
cmp byte [ecx + 1], 0xa
jne 0x43e253
inc ecx
jmp 0x43e253
movzx eax, al
movsx eax, byte [eax + 0x47c430]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43e22d
cmp edx, ebx
jne 0x43e22d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43e284
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042f23c
leave
ret
Function at 0x43e756
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 + 0x47e820]
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 0x43e796
cmp byte [ebx], 0xa
jne 0x43e796
or byte [edi + eax + 0x28], 4
jmp 0x43e79b
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 0x43e89a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43e87d
inc eax
cmp dl, 0xd
je 0x43e7c7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43e7ed
cmp eax, ecx
jae 0x43e7fb
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 0x43e7af
jmp 0x43e89a
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 0x43e878
cmp dword [ebp - 0x10], 0
je 0x43e878
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47e820]
test byte [eax + edi + 0x28], 0x48
je 0x43e852
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43e83d
mov byte [esi], dl
jmp 0x43e84e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e820]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43e89a
cmp byte [ebp - 1], 0xa
jne 0x43e861
cmp esi, ebx
jne 0x43e861
mov byte [esi], 0xa
jmp 0x43e899
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f2dc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43e89a
mov byte [esi], 0xd
jmp 0x43e899
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47e820]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e897
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e89a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43e8a3
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 + 0x47e820]
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 0x43e8e9
cmp word [ebx], dx
jne 0x43e8e9
or byte [eax + edi + 0x28], 4
jmp 0x43e8ee
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 0x43ea51
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 0x43ea31
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43e92f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43e965
cmp eax, edx
jae 0x43e973
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 0x43e90a
jmp 0x43ea51
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 0x43ea2c
cmp dword [ebp - 0x18], 0
je 0x43ea2c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47e820]
test byte [eax + edi + 0x28], 0x48
je 0x43ea02
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 0x43e9c6
mov word [esi], cx
jmp 0x43e9fd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47e820]
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 + 0x47e820]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47e820]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43ea51
pop eax
cmp word [ebp - 4], ax
jne 0x43ea12
cmp esi, ebx
jne 0x43ea12
mov word [esi], ax
jmp 0x43ea4e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043f2dc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43ea51
push 0xd
pop eax
jmp 0x43ea0d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47e820]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43ea4b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43ea51
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 0x44286f
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 0x44290c
push ebx
push esi
call fcn.00442838
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.004416c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4428b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44290b
push edi
push eax
call fcn.0043ac35
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4428d9
call fcn.0043ac83
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44290a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004416c1
add esp, 0x20
test eax, eax
jne 0x4428f8
push edi
call fcn.0043ac83
jmp 0x442900
push ebx
call fcn.0043ac83
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 0x445156
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043a94a
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 0x4451c5
cmp esi, dword [ebp - 4]
je 0x4451c0
cmp dword [ebp + 0xc], 0
je 0x4451c0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44519d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00444ca8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4451c7
xor eax, eax
inc eax
jmp 0x4451c7
xor eax, eax
pop edi
pop esi
leave
ret