joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ee40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, edx
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test al, 7
je 0x42ee6e
push 0x17d
push str.C:Usersomahr_source_reposputty_caccodecrypto_blowfish.c
push str._len__7___0
call fcn.00438224
mov eax, dword [ebp - 4]
add esp, 0xc
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x1048]
mov ecx, dword [edi + 0x104c]
test eax, eax
jle 0x42ef27
dec eax
add esi, 6
shr eax, 3
inc eax
mov dword [ebp + 8], eax
movzx edx, byte [esi - 2]
lea eax, [ebp - 8]
shl edx, 8
push edi
push eax
movzx eax, byte [esi - 1]
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 5]
xor edx, ecx
movzx ecx, byte [esi - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 3]
shl ecx, 8
or ecx, eax
xor ecx, ebx
call fcn.0042e5c0
mov ebx, dword [ebp - 8]
lea esi, [esi + 8]
mov ecx, dword [ebp - 4]
mov eax, ebx
shr eax, 8
add esp, 8
mov byte [esi - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi - 0xd], al
mov eax, ebx
shr eax, 0x18
mov byte [esi - 0xe], al
mov eax, ecx
shr eax, 8
mov byte [esi - 0xb], bl
mov byte [esi - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 9], al
mov eax, ecx
shr eax, 0x18
sub dword [ebp + 8], 1
mov byte [esi - 7], cl
mov byte [esi - 0xa], al
jne 0x42ee90
mov dword [edi + 0x1048], ebx
mov dword [edi + 0x104c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ef40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, edx
mov dword [ebp - 0xc], eax
push esi
mov esi, ecx
push edi
test al, 7
je 0x42ef6e
push 0x199
push str.C:Usersomahr_source_reposputty_caccodecrypto_blowfish.c
push str._len__7___0
call fcn.00438224
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x1048]
mov edi, dword [ecx + 0x104c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
test eax, eax
jle 0x42f057
dec eax
add esi, 6
shr eax, 3
inc eax
mov dword [ebp - 0xc], eax
nop word [eax + eax]
movzx ebx, byte [esi - 6]
movzx eax, byte [esi - 5]
movzx edi, byte [esi - 2]
shl ebx, 8
or ebx, eax
shl edi, 8
movzx eax, byte [esi - 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi - 1]
or edi, eax
movzx eax, byte [esi]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 1]
shl edi, 8
or edi, eax
lea eax, [ebp - 0x14]
push ecx
push eax
mov edx, edi
mov ecx, ebx
call fcn.0042ea00
mov ecx, dword [ebp - 4]
lea esi, [esi + 8]
xor ecx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 8]
mov eax, ecx
xor edx, dword [ebp - 0x10]
shr eax, 8
mov byte [esi - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 0xd], al
mov eax, edx
mov byte [esi - 0xb], cl
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, dword [ebp + 8]
shr eax, 8
mov byte [esi - 8], al
mov eax, edx
mov byte [esi - 7], dl
shr eax, 0x10
shr edx, 0x18
sub dword [ebp - 0xc], 1
mov byte [esi - 9], al
mov byte [esi - 0xa], dl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
jne 0x42efa0
mov eax, ecx
mov dword [eax + 0x104c], edi
pop edi
pop esi
mov dword [eax + 0x1048], ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x104c], edi
pop edi
pop esi
mov dword [ecx + 0x1048], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test bl, 7
je 0x42f099
push 0x1b5
push str.C:Usersomahr_source_reposputty_caccodecrypto_blowfish.c
push str._len__7___0
call fcn.00438224
add esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1048]
mov ecx, dword [edi + 0x104c]
mov dword [ebp - 4], eax
mov dword [ebp + 8], ecx
test ebx, ebx
jle 0x42f168
dec ebx
add esi, 6
shr ebx, 3
inc ebx
nop
lea edx, [ebp - 0xc]
push edi
push edx
mov edx, ecx
mov ecx, eax
call fcn.0042e5c0
movzx ecx, byte [esi - 6]
lea esi, [esi + 8]
movzx eax, byte [esi - 0xd]
add esp, 8
shl ecx, 8
or ecx, eax
mov edx, dword [ebp - 4]
movzx eax, byte [esi - 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 0xb]
shl ecx, 8
or ecx, eax
xor ecx, dword [ebp - 0xc]
mov eax, ecx
mov byte [esi - 0xb], cl
shr eax, 8
mov byte [esi - 0xc], al
mov eax, ecx
shr ecx, 0x18
mov byte [esi - 0xe], cl
shr eax, 0x10
mov byte [esi - 0xd], al
movzx ecx, byte [esi - 0xa]
movzx eax, byte [esi - 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 7]
shl ecx, 8
or ecx, eax
xor ecx, dword [ebp - 8]
mov eax, ecx
mov byte [esi - 7], cl
shr eax, 8
mov byte [esi - 8], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [esi - 0xa], cl
mov ecx, dword [ebp + 8]
mov byte [esi - 9], al
add ecx, 1
lea eax, [edx + 1]
mov dword [ebp + 8], ecx
cmovne eax, edx
mov dword [ebp - 4], eax
sub ebx, 1
jne 0x42f0c0
mov dword [edi + 0x104c], ecx
mov dword [edi + 0x1048], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f180
Capabilities:
Encrypt data using blowfish

Disassembly:
movups xmm0, xmmword [0x45c2d0]
lea edx, [ecx + 0x800]
xor eax, eax
movups xmmword [ecx + 0x1000], xmm0
movups xmm0, xmmword [0x45c2e0]
movups xmmword [ecx + 0x1010], xmm0
movups xmm0, xmmword [0x45c2f0]
movups xmmword [ecx + 0x1020], xmm0
movups xmm0, xmmword [0x45c300]
movups xmmword [ecx + 0x1030], xmm0
movq xmm0, qword [0x45c310]
movq qword [ecx + 0x1040], xmm0
mov ecx, dword [eax + 0x45c360]
lea edx, [edx + 4]
mov dword [edx - 0x804], ecx
mov ecx, dword [eax + 0x45b6d0]
mov dword [edx - 0x404], ecx
mov ecx, dword [eax + 0x45bed0]
mov dword [edx - 4], ecx
mov ecx, dword [eax + 0x45bad0]
add eax, 4
mov dword [edx + 0x3fc], ecx
cmp eax, 0x400
jl 0x42f1d0
ret
Function at 0x4304b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
push edi
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
xor edi, edi
call fcn.00421b50
test al, al
je 0x4304ed
push edx
lea eax, [ebp - 8]
mov ecx, 0x1f0001
push eax
lea edx, [ebp - 4]
call fcn.0042fba0
mov esi, dword [ebp - 4]
add esp, 8
test al, al
je 0x430539
push ebx
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x430530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00430620
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.004318b0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx], eax
jmp 0x430539
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x430546
push esi
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x430550
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0044fd20
mov eax, dword [0x467004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x469060]
mov dword [ebp - 0x1000c], ecx
push esi
test eax, eax
jne 0x430656
mov ecx, 0x430610
call fcn.00431b60
mov dword [0x469060], eax
push 0x4305f0
lea edx, [ebp - 0x1000c]
mov ecx, eax
call fcn.00432320
mov esi, eax
add esp, 4
test esi, esi
jne 0x4306fd
push eax
lea edx, [eax + 8]
lea ecx, [eax + 1]
call fcn.00431190
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x1000c]
push 0
push 0xffff
mov dword [esi], eax
lea eax, [ebp - 0x10008]
push eax
push 0x400
push dword [ebp - 0x1000c]
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x43070f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10008]
push str._unable_to_format:_FormatMessage_returned__u_
push eax
call fcn.00408f00
add esp, 0xc
lea eax, [ebp - 0x10008]
push eax
push dword [ebp - 0x1000c]
push str.Error__d:__s
call fcn.004318b0
mov ecx, dword [0x469060]
add esp, 0xc
mov edx, esi
mov dword [esi + 4], eax
call fcn.004321a0
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 4]
xor ecx, ebp
pop esi
call fcn.00433718
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10008]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430718
sub ecx, edx
test ecx, ecx
jle 0x4306d3
cmp byte [ebp + ecx - 0x10009], 0xa
jne 0x4306d3
dec ecx
cmp ecx, 0x10000
jae 0x430741
mov byte [ebp + ecx - 0x10008], al
jmp 0x4306d3
call fcn.00433848
int3
Function at 0x431a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0
lea eax, [ebp - 8]
mov edi, ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x431ad3
cmp dword [ebp - 8], 1
jne 0x431ad3
mov eax, dword [ebp - 4]
mov edx, 1
inc eax
push 0
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00431190
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x431acc
cmp dword [ebp - 8], 1
jne 0x431acc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x431ac0
push 0x6c
push str.C:Usersomahr_source_reposputty_caccodewindowsutils_registry.c
push str.size___allocsize
call fcn.00438224
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00431220
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432aa0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x467004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov bl, byte [esi + ecx]
lea eax, [ebx - 0x41]
cmp al, 0x19
ja 0x432ac9
movsx eax, bl
sub eax, 0x41
jmp 0x432b0b
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x432ad8
movsx eax, bl
sub eax, 0x47
jmp 0x432b0b
lea eax, [ebx - 0x30]
cmp al, 9
ja 0x432ae7
movsx eax, bl
add eax, 4
jmp 0x432b0b
cmp bl, 0x2b
jne 0x432af3
mov eax, 0x3e
jmp 0x432b0b
cmp bl, 0x2f
jne 0x432aff
mov eax, 0x3f
jmp 0x432b0b
cmp bl, 0x3d
jne 0x432b88
or eax, 0xffffffff
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x432ab7
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x432b88
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x432b88
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x432b39
cmp eax, ecx
jne 0x432b88
lea ebx, [ecx + 2]
jmp 0x432b44
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x432b6d
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x432b75
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433718
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433718
mov esp, ebp
pop ebp
ret
Function at 0x4333a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea edi, [ecx + 3]
mov dword [ebp - 4], 0
sub ecx, edx
lea eax, [edx + 2]
mov ebx, 0x14
mov dword [ebp - 8], ecx
movzx ecx, byte [edi - 3]
lea edi, [edi + 5]
movzx esi, byte [eax - 2]
lea eax, [eax + 5]
movzx edx, byte [eax - 6]
xor esi, ecx
movzx ecx, byte [edi - 7]
xor edx, ecx
movzx ecx, byte [edi - 4]
or esi, edx
movzx edx, byte [eax - 3]
xor edx, ecx
mov ecx, dword [ebp - 8]
or esi, edx
movzx edx, byte [ecx + eax - 5]
movzx ecx, byte [eax - 5]
xor edx, ecx
movzx ecx, byte [edi - 5]
or esi, edx
movzx edx, byte [eax - 4]
xor edx, ecx
mov ecx, dword [ebp - 4]
or esi, edx
or ecx, esi
mov dword [ebp - 4], ecx
sub ebx, 5
jne 0x4333c0
pop edi
mov eax, 0x100
pop esi
sub eax, ecx
pop ebx
shr eax, 8
mov esp, ebp
pop ebp
ret

Function at 0x433580
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x468f44], 0
push ebx
push esi
jne 0x4335d5
mov ecx, str.secur32.dll
call fcn.00431b20
mov ecx, str.sspicli.dll
mov esi, eax
call fcn.00431b20
test esi, esi
je 0x4335c5
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46906c], eax
mov byte [0x468f44], 1
jmp 0x4335da
xor eax, eax
mov byte [0x468f44], 1
mov dword [0x46906c], eax
jmp 0x4335da
mov eax, dword [0x46906c]
test eax, eax
je 0x43363f
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
mov ecx, dword [ebp - 4]
mov edx, 1
push 0
call fcn.00431190
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x46906c]
test al, al
setne bl
test al, al
je 0x433638
push 0x40
push esi
call fcn.00434370
add esp, 8
test eax, eax
je 0x43368f
mov byte [eax], 0
xor eax, eax
test bl, bl
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00431220
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x433660
mov ecx, 0x100
mov dword [ebp - 4], ecx
jmp 0x433663
mov ecx, dword [ebp - 4]
push 0
mov edx, 1
call fcn.00431190
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
setne bl
test eax, eax
jne 0x43368f
mov ecx, esi
call fcn.00431220
xor eax, eax
test bl, bl
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4336c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x469070]
test eax, eax
jne 0x433717
push esi
push dword [0x469074]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push eax
call esi
cmp eax, dword [0x469074]
jb 0x433711
mov ecx, dword [0x469070]
mov edx, 0x469074
push 0
push 1
push eax
push 1
call fcn.00431230
add esp, 0x10
mov dword [0x469070], eax
push dword [0x469074]
push eax
call esi
cmp eax, dword [0x469074]
jae 0x4336e1
mov eax, dword [0x469070]
pop esi
ret
Function at 0x434014
Capabilities:
Parse pe header

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

Function at 0x441d09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453b80
push 0x453b78
push str.FlsAlloc
push 0x1e
call fcn.00441b4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441d3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x45143c]
call esi
jmp 0x441d43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x441d87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453b90
push 0x453b88
push str.FlsGetValue
push 0x20
call fcn.00441b4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441dbe
push dword [ebp + 8]
mov ecx, esi
call dword [0x45143c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4428f6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00442878

Function at 0x443021
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00442e92
Function at 0x444d53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x468228]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444d93
cmp byte [ebx], 0xa
jne 0x444d93
or byte [eax + edi + 0x28], 4
jmp 0x444d98
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x444e96
mov al, byte [edx]
cmp al, 0x1a
je 0x444e78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x444dc7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x444dec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x444df6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x444da9
jmp 0x444e96
push 0
lea eax, [ebp - 0xc]
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 0x444e73
cmp dword [ebp - 0xc], 0
je 0x444e73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x468228]
test byte [eax + edi + 0x28], 0x48
je 0x444e4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x444e38
mov byte [esi], dl
jmp 0x444e49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x468228]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x444e96
cmp byte [ebp - 1], 0xa
jne 0x444e5c
cmp esi, ebx
jne 0x444e5c
mov byte [esi], 0xa
jmp 0x444e95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004497af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x444e96
mov byte [esi], 0xd
jmp 0x444e95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x468228]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x444e92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x444e96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444e9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x468228]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444ee2
cmp word [esi], dx
jne 0x444ee2
or byte [edi + eax + 0x28], 4
jmp 0x444ee7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x44503a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x44501a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x444f29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x444f5f
cmp eax, edx
jae 0x444f6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x444f01
jmp 0x44503a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445016
cmp dword [ebp - 0x14], 0
je 0x445016
mov eax, dword [ebx*4 + 0x468228]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x444fee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x444fb7
mov word [esi], cx
jmp 0x444fea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x468228]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x468228]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x468228]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44503a
pop ebx
cmp word [ebp - 4], bx
jne 0x444fff
cmp esi, dword [ebp + 0xc]
jne 0x444fff
mov word [esi], bx
jmp 0x445037
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004497af
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44503a
push 0xd
jmp 0x445033
mov ecx, dword [ebx*4 + 0x468228]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x445031
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44503a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x447e14
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 0x447eb1
push ebx
push esi
call fcn.00447ddd
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.00445a2e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x447e5e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x447eb0
push edi
push eax
call fcn.004418e5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x447e7e
call fcn.004412fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x447eaf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00445a2e
add esp, 0x20
test eax, eax
jne 0x447e9d
push edi
call fcn.004412fe
jmp 0x447ea5
push ebx
call fcn.004412fe
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 0x447eb4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x447ec5
pop esi
ret
push ebx
push edi
push esi
call fcn.00447ddd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004418e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x447eed
push ebx
push esi
push edi
call fcn.004356a0
add esp, 0xc
push 0
call fcn.004412fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4482b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00447f02