joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5073f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov eax, dword [ebp + 8]
mov esi, 0x6acf50
push edi
sub esi, eax
mov edi, 0x1f
mov edi, edi
mov cl, byte [eax]
movzx edx, byte [esi + eax - 0x20]
xor dl, cl
or byte [ebp - 0xc], dl
movzx edx, byte [esi + eax]
xor dl, cl
or byte [ebp - 0xb], dl
movzx edx, byte [esi + eax + 0x20]
xor dl, cl
or byte [ebp - 0xa], dl
movzx edx, byte [esi + eax + 0x40]
xor dl, cl
or byte [ebp - 9], dl
movzx edx, byte [esi + eax + 0x60]
xor dl, cl
or byte [ebp - 8], dl
movzx edx, byte [esi + eax + 0x80]
xor dl, cl
or byte [ebp - 7], dl
movzx edx, byte [esi + eax + 0xa0]
xor dl, cl
or byte [ebp - 6], dl
inc eax
dec edi
jne 0x507420
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x1f]
mov cl, byte [ebp - 0xc]
mov dl, byte [ebp - 9]
and al, 0x7f
or byte [ebp - 0xb], al
or byte [ebp - 0xa], al
mov bl, al
or cl, al
xor al, 0x7f
or byte [ebp - 8], al
or byte [ebp - 7], al
movzx esi, byte [ebp - 7]
xor bl, 0x57
or dl, bl
mov bl, byte [ebp - 6]
or bl, al
movzx eax, bl
dec eax
dec esi
or eax, esi
movzx esi, byte [ebp - 8]
movzx edx, dl
dec edx
dec esi
or eax, esi
or eax, edx
movzx edx, byte [ebp - 0xa]
dec edx
or eax, edx
movzx edx, byte [ebp - 0xb]
movzx ecx, cl
dec edx
or eax, edx
dec ecx
or eax, ecx
mov ecx, dword [ebp - 4]
pop edi
shr eax, 8
pop esi
xor ecx, ebp
and eax, 1
pop ebx
call fcn.0052bc5f
mov esp, ebp
pop ebp
ret

Function at 0x507ad0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x3320646e
mov dword [eax + 8], 0x79622d32
mov dword [eax + 0xc], 0x6b206574
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x28], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x2c], ecx
ret

Function at 0x508380
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x3320646e
mov dword [eax + 8], 0x79622d32
mov dword [eax + 0xc], 0x6b206574
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x28], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x2c], ecx
ret
Function at 0x5098d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x3c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x24], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x38], ecx
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x3320646e
mov dword [eax + 8], 0x79622d32
mov dword [eax + 0xc], 0x6b206574
ret
Function at 0x511df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
mov bl, byte [ebp + 0xc]
push edi
mov al, bl
call fcn.00511d50
mov byte [ebp + 0xc], al
neg al
and al, bl
add al, al
sub bl, al
mov eax, esi
call fcn.00511cd0
mov cl, 1
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx eax, al
push eax
push esi
call fcn.00511d60
mov cl, 2
mov al, bl
call fcn.00511d40
movzx ecx, al
push ecx
add edi, 0x78
push esi
call fcn.00511d60
mov cl, 3
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx edx, al
push edx
add edi, 0xf0
push esi
call fcn.00511d60
mov cl, 4
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx eax, al
push eax
add edi, 0x168
push esi
call fcn.00511d60
mov cl, 5
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx ecx, al
push ecx
add edi, 0x1e0
push esi
call fcn.00511d60
mov cl, 6
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx edx, al
push edx
add edi, 0x258
push esi
call fcn.00511d60
mov cl, 7
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx eax, al
push eax
add edi, 0x2d0
push esi
call fcn.00511d60
mov cl, 8
mov al, bl
call fcn.00511d40
mov edi, dword [ebp + 8]
movzx ecx, al
push ecx
add edi, 0x348
push esi
call fcn.00511d60
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x78], edx
mov edx, dword [esi + 0x34]
mov dword [ebp - 0x70], ecx
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x6c], edx
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x64], ecx
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x60], edx
mov edx, dword [esi + 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x58], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x54], edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x48], edx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x3c], edx
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x30], edx
mov edx, dword [esi + 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
neg ecx
neg edx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x60]
neg eax
neg ecx
neg edx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x6c]
neg eax
neg ecx
neg edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x74]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0xc]
add esp, 0x40
push edx
neg eax
neg ecx
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call fcn.00511d60
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x512b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov eax, dword [ebp + 8]
mov esi, 0x6b5210
push edi
sub esi, eax
mov edi, 0x1f
mov edi, edi
mov cl, byte [eax]
movzx edx, byte [esi + eax - 0x20]
xor dl, cl
or byte [ebp - 0xc], dl
movzx edx, byte [esi + eax]
xor dl, cl
or byte [ebp - 0xb], dl
movzx edx, byte [esi + eax + 0x20]
xor dl, cl
or byte [ebp - 0xa], dl
movzx edx, byte [esi + eax + 0x40]
xor dl, cl
or byte [ebp - 9], dl
movzx edx, byte [esi + eax + 0x60]
xor dl, cl
or byte [ebp - 8], dl
movzx edx, byte [esi + eax + 0x80]
xor dl, cl
or byte [ebp - 7], dl
movzx edx, byte [esi + eax + 0xa0]
xor dl, cl
or byte [ebp - 6], dl
inc eax
dec edi
jne 0x512bc0
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x1f]
mov cl, byte [ebp - 0xc]
and al, 0x7f
or byte [ebp - 0xb], al
mov dl, al
mov bl, al
or cl, al
xor dl, 5
or byte [ebp - 0xa], dl
mov dl, byte [ebp - 9]
xor al, 0x7f
or byte [ebp - 8], al
or byte [ebp - 7], al
movzx esi, byte [ebp - 7]
xor bl, 0x7a
or dl, bl
mov bl, byte [ebp - 6]
or bl, al
movzx eax, bl
dec eax
dec esi
or eax, esi
movzx esi, byte [ebp - 8]
movzx edx, dl
dec edx
dec esi
or eax, esi
or eax, edx
movzx edx, byte [ebp - 0xa]
dec edx
or eax, edx
movzx edx, byte [ebp - 0xb]
movzx ecx, cl
dec edx
or eax, edx
dec ecx
or eax, ecx
mov ecx, dword [ebp - 4]
pop edi
shr eax, 8
pop esi
xor ecx, ebp
and eax, 1
pop ebx
call fcn.0052bc5f
mov esp, ebp
pop ebp
ret
Function at 0x51bf30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor dl, dl
mov cl, 1
mov eax, 0x20
push edi
nop
mov esi, dword [ebp + 8]
movzx esi, byte [eax + esi - 1]
movzx edi, byte [eax + 0x6b52cf]
dec eax
mov ebx, esi
sub ebx, edi
sar ebx, 8
and bl, cl
or dl, bl
mov ebx, edi
xor ebx, esi
dec ebx
sar ebx, 8
and cl, bl
test eax, eax
jne 0x51bf40
pop edi
test dl, dl
pop esi
setne al
pop ebx
pop ebp
ret

Function at 0x51d1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
xor ecx, edx
or dword [ebp + 8], ecx
inc eax
cmp eax, 0x10
jl 0x51d1f5
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
mov esp, ebp
pop ebp
ret

Function at 0x51d220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
xor ecx, edx
or dword [ebp + 8], ecx
inc eax
cmp eax, 0x20
jl 0x51d235
mov eax, dword [ebp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
mov esp, ebp
pop ebp
ret
Function at 0x52b08c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6fa280], 0
push ebx
push esi
mov esi, 0x6fa288
jne 0x52b0b8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x6fa2a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x6fa280], 1
push dword [0x6fa2a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x52b155
push 0x14
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x52b17f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6fa284]
test eax, eax
je 0x52b0fa
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x6fa284], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x52b184
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x6fa2a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x52b17f
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x52f5b1
Capabilities:
Parse pe header

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

Function at 0x531fb8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x672ca0
push str.FlsAlloc
push 0x1f
call fcn.00531c8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x531fec
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x531ff2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x532036
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x672cc4
push str.FlsGetValue
push 0x21
call fcn.00531c8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53206d
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x532075
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x672cd8
push str.FlsSetValue
push 0x22
call fcn.00531c8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5320af
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5345f7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6f63a8]
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 0x534642
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00534853
test al, al
jne 0x53463c
sub edx, 2
cmp edx, edi
jne 0x534622
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x534664
lea eax, [edi + 2]
cmp edx, eax
je 0x534664
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005342be
add esp, 0x10
jmp 0x53475e
push esi
lea ecx, [ebp - 0x255]
call fcn.00534853
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 0x5346a7
push dword [ebp - 0x25c]
jmp 0x534654
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 0x5346e4
cmp word [ebp - 0x226], 0
je 0x534705
cmp word [ebp - 0x226], ax
jne 0x5346e4
cmp word [ebp - 0x224], 0
je 0x534705
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005342be
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x534751
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5346be
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x534739
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x53475e
push 0x533d0e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0053bd20
add esp, 0x10
jmp 0x53472e
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.0052bc5f
leave
ret

Function at 0x537486
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0053082f
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 0x5374f5
cmp esi, dword [ebp - 4]
je 0x5374f0
cmp dword [ebp + 0xc], 0
je 0x5374f0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5374cd
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00536fd8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5374f7
xor eax, eax
inc eax
jmp 0x5374f7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x53755c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6f63a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0053082f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0053082f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5375d3
cmp word [ecx], dx
je 0x5375d3
mov eax, dword [0x673fac]
push edi
dec eax
push eax
push 0x673e98
call fcn.005374fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x537646
cmp word [eax], dx
je 0x537646
mov eax, dword [edi]
test eax, eax
je 0x5375f7
cmp word [eax], dx
je 0x5375f7
lea eax, [ebp - 0x10]
push eax
call fcn.00536ede
jmp 0x537600
lea eax, [ebp - 0x10]
push eax
call fcn.00536f79
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x537670
mov eax, dword [0x673e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x673b88
call fcn.005374fb
add esp, 0xc
test al, al
je 0x537670
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x53763b
cmp word [eax], di
je 0x53763b
lea eax, [ebp - 0x10]
push eax
call fcn.00536ede
pop ecx
jmp 0x537672
lea eax, [ebp - 0x10]
push eax
call fcn.00536f79
jmp 0x537638
mov eax, dword [edi]
test eax, eax
je 0x53765d
cmp word [eax], dx
je 0x53765d
lea eax, [ebp - 0x10]
push eax
call fcn.00536e75
pop ecx
jmp 0x537670
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x53773b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00537380
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x53773b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x53773b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x53773b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5376c8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00532290
test ebx, ebx
je 0x537736
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00532290
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53773b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53773b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0053e0ed
add esp, 0x10
xor eax, eax
inc eax
jmp 0x53773d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bc5f
leave
ret
Function at 0x5383c8
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 0x538465
push ebx
push esi
call fcn.00538384
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.005385fa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x538412
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x538464
push edi
push eax
call fcn.0053103f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x538432
call fcn.00530074
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x538463
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005385fa
add esp, 0x20
test eax, eax
jne 0x538451
push edi
call fcn.00530074
jmp 0x538459
push ebx
call fcn.00530074
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 0x538468
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x538479
pop esi
ret
push ebx
push edi
push esi
call fcn.00538384
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0053103f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5384a1
push ebx
push esi
push edi
call fcn.00541970
add esp, 0xc
push 0
call fcn.00530074
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x538dcf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005388c6
Function at 0x53ffc9
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 + 0x6fb1f8]
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 0x540009
cmp byte [ebx], 0xa
jne 0x540009
or byte [edi + eax + 0x28], 4
jmp 0x54000e
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 0x54010d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5400f0
inc eax
cmp dl, 0xd
je 0x54003a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x540060
cmp eax, ecx
jae 0x54006e
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 0x540022
jmp 0x54010d
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 0x5400eb
cmp dword [ebp - 0x10], 0
je 0x5400eb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6fb1f8]
test byte [eax + edi + 0x28], 0x48
je 0x5400c5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5400b0
mov byte [esi], dl
jmp 0x5400c1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6fb1f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x54010d
cmp byte [ebp - 1], 0xa
jne 0x5400d4
cmp esi, ebx
jne 0x5400d4
mov byte [esi], 0xa
jmp 0x54010c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005410c2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x54010d
mov byte [esi], 0xd
jmp 0x54010c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6fb1f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x54010a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x54010d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret