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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dd7f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4845c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.0041ccb9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x406601
push eax
push esi
call fcn.0041d886
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0041cebf
int3
Function at 0x40ccb0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f9e2
mov eax, dword fs:[0]
push eax
sub esp, 0xc34
mov eax, dword [0x4845c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc3c], edi
mov dword [ebp - 0xc2c], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x410]
push 0x200
push eax
mov dword [ebp - 0xc2c], 1
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
mov dword [ebp - 0xc38], esi
nop word [eax + eax]
lea eax, [ebp - 0xc40]
push eax
push 0x400
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x40cef4
push 0
push 0
lea eax, [ebp - 0xc30]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40cef4
test dword [ebp - 0xc30], 0x80000
jne 0x40cef4
lea eax, [ebp - 0xc10]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cdb0
sub eax, edx
mov dword [ebp - 0xc28], 0
sar eax, 1
lea esi, [ebp - 0xc10]
add eax, eax
mov byte [ebp - 0xc28], cl
add esi, eax
mov dword [ebp - 0xc18], 0
sar eax, 1
lea ecx, [ebp - 0xc28]
mov dword [ebp - 0xc14], 0
push eax
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 0xf
call fcn.00415190
mov byte [ebp - 0xc34], 0
lea eax, [ebp - 0xc10]
push dword [ebp - 0xc34]
lea ecx, [ebp - 0xc28]
push esi
push eax
call fcn.00403030
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x40ce8a
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0xc28]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0xc18]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 0xf
mov byte [ebp - 0xc28], 0
jmp 0x40ce99
lea ecx, [ebp - 0xc28]
push ecx
push eax
mov ecx, edi
call fcn.00403440
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xc14]
cmp ecx, 0x10
jb 0x40ced3
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cec9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf33
push ecx
push edx
call fcn.00435efa
add esp, 8
mov esi, dword [ebp - 0xc38]
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 0xf
mov byte [ebp - 0xc28], 0
push 0x200
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40cd40
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436371
mov esp, ebp
pop ebp
ret
call fcn.0043af1f
int3
Function at 0x40dd20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fc68
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4845c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0xf0]
push str.DefaultIcon
push 0x4841a0
push eax
call fcn.00402bd0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf8]
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
push ecx
cmovae eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xf4]
push ecx
push 0
push 0x103
push 0
push 0
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ddfc
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x46e0a8
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x40de17
push 0
push 0x64
lea ecx, [ebp - 0xd8]
push ecx
push 0
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.0040ed60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040ed60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436371
mov esp, ebp
pop ebp
ret
Function at 0x410610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4600a6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4845c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x30], 0
push 0
mov dword [ebp - 0x34], eax
mov dword [eax], 0
mov dword [eax + 4], 0x484540
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00435f08
mov ebx, eax
add esp, 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4106f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], 0x484540
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
jmp 0x4107a6
mov ecx, ebx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410721
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040fc50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov ecx, esi
push 1
push eax
call fcn.004079b0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41078f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410785
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4107d0
push ecx
push edx
call fcn.00435efa
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
test ebx, ebx
je 0x4107b3
push ebx
call fcn.00435f11
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436371
mov esp, ebp
pop ebp
ret
call fcn.0043af1f
int3
Function at 0x412fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4604fe
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4845c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00435eca
mov edi, eax
add esp, 4
test edi, edi
je 0x41305d
push 1
call fcn.0041d786
add esp, 4
mov dword [edi + 4], eax
jmp 0x41305f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 1
push eax
call fcn.00405630
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov edx, 1
mov bl, al
mov dword [ebp - 0x10], edx
and edx, 0xfffffffe
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4130d2
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4130d2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x4130ee
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x413111
cmp byte [ebp + 0xc], 0
je 0x4130fd
push esi
call fcn.0042191b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x41311d
mov esi, str.ios_base::badbit_set
jmp 0x41312d
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00413630
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00406df0
push 0x4808d0
lea eax, [ebp - 0x2c]
push eax
call fcn.00437270
int3
Function at 0x416a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4845c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x410]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x430], esi
push eax
mov dword [ebp - 0x42c], 0
push 0x1ff
mov dword [edi], 0
mov dword [edi + 4], 0x484540
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x416bf6
cmp eax, 0x1ff
ja 0x416bf6
xor eax, eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416b50
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040fc50
mov dword [ebp - 4], 2
lea eax, [ebp - 0x428]
push 2
push eax
mov ecx, esi
call fcn.004079b0
mov dword [ebp - 0x42c], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x416bd7
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416bcd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416c60
push ecx
push edx
call fcn.00435efa
add esp, 8
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
jmp 0x416c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], 0x484540
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 1
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436371
mov esp, ebp
pop ebp
ret
call fcn.0043af1f
int3

Function at 0x41c070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460f57
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4845c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x220], 0
push 2
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [ebp - 0x21c]
xor edx, edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
lea ecx, [eax + eax]
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov word [esi], dx
add eax, ecx
lea edx, [ebp - 0x218]
cmp edx, eax
je 0x41c11e
sar ecx, 1
mov eax, edx
push ecx
push eax
mov ecx, esi
call fcn.0040fc50
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436371
mov esp, ebp
pop ebp
ret
Function at 0x436d8e
Capabilities:
Parse pe header

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

Function at 0x44b34f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x473b28
push 0x473b20
push str.FlsAlloc
push 0x1e
call fcn.0044b17c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b383
push dword [ebp + 8]
mov ecx, esi
call dword [0x463288]
call esi
jmp 0x44b389
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44b3cd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x473b38
push 0x473b30
push str.FlsGetValue
push 0x20
call fcn.0044b17c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b404
push dword [ebp + 8]
mov ecx, esi
call dword [0x463288]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44eb96
Capabilities:
Read file on windows

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

Function at 0x44eba1
Capabilities:
Read file on windows

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

Function at 0x44ef9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004371a0
mov eax, dword [0x4845c4]
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.0044d761
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44efdd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44f139
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00436380
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 + 0x4871d0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0045016b
mov ecx, dword [esi*4 + 0x4871d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x44f132
cmp eax, dword [edi + ecx + 0x24]
jne 0x44f132
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f132
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045016b
add esp, 0x14
test edx, edx
jl 0x44f132
jg 0x44f0a8
test eax, eax
jb 0x44f132
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44f132
jl 0x44f0c2
cmp dword [ebp - 0x1008], eax
ja 0x44f132
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44f0e0
test ebx, ebx
je 0x44f119
cmp ecx, edi
jae 0x44f119
mov al, byte [ecx]
cmp al, 0xd
jne 0x44f0fa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44f106
cmp byte [ecx + 1], 0xa
jne 0x44f106
inc ecx
jmp 0x44f106
movzx eax, al
movsx eax, byte [eax + 0x484848]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44f0e0
cmp edx, ebx
jne 0x44f0e0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44f137
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00436371
leave
ret
Function at 0x44f609
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 + 0x4871d0]
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 0x44f649
cmp byte [ebx], 0xa
jne 0x44f649
or byte [eax + edi + 0x28], 4
jmp 0x44f64e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44f74c
mov al, byte [edx]
cmp al, 0x1a
je 0x44f72e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44f67d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44f6a2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44f6ac
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 0x44f65f
jmp 0x44f74c
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 0x44f729
cmp dword [ebp - 0xc], 0
je 0x44f729
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4871d0]
test byte [eax + edi + 0x28], 0x48
je 0x44f703
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44f6ee
mov byte [esi], dl
jmp 0x44f6ff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4871d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44f74c
cmp byte [ebp - 1], 0xa
jne 0x44f712
cmp esi, ebx
jne 0x44f712
mov byte [esi], 0xa
jmp 0x44f74b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00450189
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44f74c
mov byte [esi], 0xd
jmp 0x44f74b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4871d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44f748
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44f74c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44f755
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 + 0x4871d0]
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 0x44f798
cmp word [esi], dx
jne 0x44f798
or byte [edi + eax + 0x28], 4
jmp 0x44f79d
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 0x44f8f0
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 0x44f8d0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44f7df
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44f815
cmp eax, edx
jae 0x44f821
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 0x44f7b7
jmp 0x44f8f0
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 0x44f8cc
cmp dword [ebp - 0x14], 0
je 0x44f8cc
mov eax, dword [ebx*4 + 0x4871d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44f8a4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44f86d
mov word [esi], cx
jmp 0x44f8a0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4871d0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4871d0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4871d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44f8f0
pop ebx
cmp word [ebp - 4], bx
jne 0x44f8b5
cmp esi, dword [ebp + 0xc]
jne 0x44f8b5
mov word [esi], bx
jmp 0x44f8ed
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00450189
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44f8f0
push 0xd
jmp 0x44f8e9
mov ecx, dword [ebx*4 + 0x4871d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44f8e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44f8f0
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 0x4548c3
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 0x454960
push ebx
push esi
call fcn.0045488c
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.004531c8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45490d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45495f
push edi
push eax
call fcn.0044ae18
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45492d
call fcn.0044adde
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45495e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004531c8
add esp, 0x20
test eax, eax
jne 0x45494c
push edi
call fcn.0044adde
jmp 0x454954
push ebx
call fcn.0044adde
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 0x454963
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x454974
pop esi
ret
push ebx
push edi
push esi
call fcn.0045488c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044ae18
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45499c
push ebx
push esi
push edi
call fcn.00437750
add esp, 0xc
push 0
call fcn.0044adde
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4550eb
Capabilities:
Set environment variable

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