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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ad02
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
mov dword [edx], 0x4acea0
mov dword [edx + 0x34], 0x4ace70
mov dword [edx + 0x40], 0x4ace94
mov dword [edx + 0x24], vtable.RefCountable.0
mov dword [edx + 0x28], 0x60000000
mov dword [ebp - 4], 0
mov ecx, 2
mov eax, dword [edx + 0x34]
mov dword [edx + 0x30], vtable.Quantum.0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
or ecx, 1
mov dword [ebp - 0x10], ecx
or ecx, 4
mov dword [eax + edx + 0x34], vtable.Quantum.1.0
mov eax, dword [edx + 0x40]
mov dword [edx + 0x3c], vtable.QuantumS.1.0
mov eax, dword [eax + 4]
mov dword [eax + edx + 0x40], vtable.QuantumS.0
mov eax, dword [edx + 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov dword [eax + edx + 0x40], vtable.QuantumS.2.0
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.QtBytes.1.0
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov dword [edx + eax], vtable.QtBytes.2.0
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov dword [edx + eax], vtable.QtBytes.0
mov eax, dword [edx]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x30]
mov dword [ecx + edx - 4], eax
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
lea eax, [ecx - 0x3c]
mov dword [ecx + edx - 4], eax
mov byte [edx + 4], 1
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 4], 1
mov dword [edx + 0x18], 0
mov byte [ebp - 4], 2
mov dword [edx + 0x1c], 0x49d894
mov dword [edx + 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x460e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ae67
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi + 4], 0x4ace78
mov dword [esi + 0x30], 0x4ace70
mov dword [esi + 0x38], 0x4ace88
mov dword [esi + 0x20], vtable.RefCountable.0
mov dword [esi + 0x24], 0x60000000
mov dword [ebp - 4], 0
mov ecx, 2
mov eax, dword [esi + 0x30]
mov dword [esi + 0x2c], vtable.Quantum.0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
or ecx, 1
mov dword [ebp - 0x10], ecx
or ecx, 4
push ecx
mov dword [eax + esi + 0x30], vtable.Quantum.1.0
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], vtable.QuantumS.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x38], vtable.QuantumS.0
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [eax + esi + 0x38], vtable.QuantumS.2.0
call fcn.004631d0
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
mov dword [esi], vtable.QtVectS_class_QtBytes_.3.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtBytes_.1.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtBytes_.2.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtBytes_.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esi + eax], 0
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
Function at 0x461a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b147
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi + 4], 0x4ace78
mov dword [esi + 0x30], 0x4ace70
mov dword [esi + 0x38], 0x4ace88
mov dword [esi + 0x20], vtable.RefCountable.0
mov dword [esi + 0x24], 0x60000000
mov dword [ebp - 4], 0
mov ecx, 2
mov eax, dword [esi + 0x30]
mov dword [esi + 0x2c], vtable.Quantum.0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
or ecx, 1
mov dword [ebp - 0x10], ecx
or ecx, 4
push ecx
mov dword [eax + esi + 0x30], vtable.Quantum.1.0
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], vtable.QuantumS.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x38], vtable.QuantumS.0
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [eax + esi + 0x38], vtable.QuantumS.2.0
call fcn.00463070
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
mov dword [esi], vtable.QtVectS_class_QtStr_.3.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtStr_.1.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtStr_.2.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtStr_.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esi + eax], 0
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
Function at 0x462330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b317
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi + 4], 0x4ace78
mov dword [esi + 0x30], 0x4ace70
mov dword [esi + 0x38], 0x4ace88
mov dword [esi + 0x20], vtable.RefCountable.0
mov dword [esi + 0x24], 0x60000000
mov dword [ebp - 4], 0
mov ecx, 2
mov eax, dword [esi + 0x30]
mov dword [esi + 0x2c], vtable.Quantum.0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
or ecx, 1
mov dword [ebp - 0x10], ecx
or ecx, 4
push ecx
mov dword [eax + esi + 0x30], vtable.Quantum.1.0
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], vtable.QuantumS.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x38], vtable.QuantumS.0
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [eax + esi + 0x38], vtable.QuantumS.2.0
call fcn.00462f40
mov dword [ebp - 4], 1
mov eax, dword [esi + 4]
mov dword [esi], vtable.QtVectS_class_QtCrypt_.2.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtCrypt_.3.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtCrypt_.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov dword [eax + esi + 4], vtable.QtVectS_class_QtCrypt_.1.0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov dword [esi + eax], 0
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

Function at 0x473ead
Capabilities:
Set environment variable

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

Function at 0x407650
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x40766c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40766e
shr eax, 1
dec edx
jne 0x40765f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407658
pop esi
ret

Function at 0x40769b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4076a7
call fcn.00407650
push 1
push 0x40b558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x4076d2
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4076ad
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401371
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x8c]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401390
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x401384
add esi, 0x10000
push esi
mov eax, 0x40300c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012d9
mov dword [0x4030fe], eax
push 0x403010
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4013d4
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4013e5
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4013f9
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x401407
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x401423
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.00401165
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401476
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4014ec
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b88
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x4012a4
push dword [ebp + 0xc]
call fcn.00401272
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x401757
add eax, dword [ebp + 8]
call eax
leave
ret 8

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x61712cca
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6b007857
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401930
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 4], 0xffffffff
push 0x42d564
push 0x374
push 0x42d574
call fcn.00404130
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x401969
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x64
jge 0x401986
mov ecx, dword [ebp - 8]
cmp dword [ecx*8 + 0x444cb8], 0
jne 0x401984
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
jmp 0x401986
jmp 0x401960
cmp dword [ebp - 4], 0xffffffff
jne 0x4019ad
push 0x42d5a0
push 0x384
push 0x42d5b4
call fcn.00404130
add esp, 0xc
mov eax, 6
jmp 0x401a7a
cmp dword [ebp + 8], 0
je 0x4019fa
push 0x42d5e0
lea eax, [ebp - 0x10c]
push eax
call fcn.00410ec0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00410ed0
add esp, 8
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x43dfa0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
mov dword [ecx*8 + 0x444cbc], eax
jmp 0x401a13
push 0
push 0
push 0x43dfa0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 4]
mov dword [edx*8 + 0x444cbc], eax
mov eax, dword [ebp - 4]
cmp dword [eax*8 + 0x444cbc], 0
jne 0x401a30
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x1fffffff
mov eax, 6
jmp 0x401a7a
mov edx, dword [ebp - 4]
mov dword [edx*8 + 0x444cb8], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401a78
push str.Already_existing
push str.OpenMutex:__s
push 0x3f5
push 0x42d608
call fcn.00404130
add esp, 0x10
mov eax, 1
jmp 0x401a7a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4028a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
push 0x128
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.0040ccc0
add esp, 0xc
mov dword [ebp - 0x134], 0x128
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_Process32First
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00410ff1
add esp, 8
test eax, eax
jne 0x402933
mov edx, dword [ebp - 0x12c]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4028ec
mov esp, ebp
pop ebp
ret
Function at 0x405e00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
jmp 0x405e18
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jge 0x405e2e
imul ecx, dword [ebp - 4], 0x34
mov dword [ecx + 0x445880], 0
jmp 0x405e0f
push 0x445a88
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405e4f
mov eax, 6
jmp 0x405e51
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40ba9b
Capabilities:
Parse pe header

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

Function at 0x41b323
Capabilities:
Read file on windows

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

Function at 0x41c96c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432788
push 0x432780
push str.FlsAlloc
push 0x1e
call fcn.0041c7d9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c9a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d230]
call esi
jmp 0x41c9a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c9ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432798
push 0x432790
push str.FlsGetValue
push 0x20
call fcn.0041c7d9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ca21
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41ef04
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 0x41efa1
push ebx
push esi
call fcn.0041eecd
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.0041ccec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ef4e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41efa0
push edi
push eax
call fcn.0041b520
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ef6e
call fcn.0041ac3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ef9f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ccec
add esp, 0x20
test eax, eax
jne 0x41ef8d
push edi
call fcn.0041ac3b
jmp 0x41ef95
push ebx
call fcn.0041ac3b
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 0x41efa4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41efb5
pop esi
ret
push ebx
push edi
push esi
call fcn.0041eecd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041b520
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41efdd
push ebx
push esi
push edi
call fcn.0040cf60
add esp, 0xc
push 0
call fcn.0041ac3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41f729
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f250
Function at 0x426450
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 + 0x446930]
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 0x426490
cmp byte [ebx], 0xa
jne 0x426490
or byte [eax + edi + 0x28], 4
jmp 0x426495
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x426593
mov al, byte [edx]
cmp al, 0x1a
je 0x426575
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4264c4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4264e9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4264f3
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 0x4264a6
jmp 0x426593
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 0x426570
cmp dword [ebp - 0xc], 0
je 0x426570
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x446930]
test byte [eax + edi + 0x28], 0x48
je 0x42654a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x426535
mov byte [esi], dl
jmp 0x426546
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x446930]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x426593
cmp byte [ebp - 1], 0xa
jne 0x426559
cmp esi, ebx
jne 0x426559
mov byte [esi], 0xa
jmp 0x426592
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042a5c1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x426593
mov byte [esi], 0xd
jmp 0x426592
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x446930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42658f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x426593
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42659c
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 + 0x446930]
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 0x4265df
cmp word [esi], dx
jne 0x4265df
or byte [edi + eax + 0x28], 4
jmp 0x4265e4
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 0x426737
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 0x426717
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x426626
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42665c
cmp eax, edx
jae 0x426668
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 0x4265fe
jmp 0x426737
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 0x426713
cmp dword [ebp - 0x14], 0
je 0x426713
mov eax, dword [ebx*4 + 0x446930]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4266eb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4266b4
mov word [esi], cx
jmp 0x4266e7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x446930]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x446930]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x446930]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x426737
pop ebx
cmp word [ebp - 4], bx
jne 0x4266fc
cmp esi, dword [ebp + 0xc]
jne 0x4266fc
mov word [esi], bx
jmp 0x426734
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042a5c1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x426737
push 0xd
jmp 0x426730
mov ecx, dword [ebx*4 + 0x446930]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42672e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x426737
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