joyce8/EMBER2024-capa huggingface dataset:
Function at 0x551400
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cba0
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], 0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x5514e9
mov ecx, dword [0x5dfbe0]
test ecx, ecx
je 0x5514bd
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x5514bd
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00430ce0
mov dword [ebp - 0x34], str.CloudFolderCleanup
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], str.C:jenkins_slaveDailymain_metaDesktopWinmain_rebarcosy_srcCloudFolderCleanup.cpp
mov dword [ebp - 0x28], 0x92
mov dword [ebp - 0x24], str.sibcrux::CreateLink
mov byte [ebp - 0x20], 1
mov edx, str.Failed_to_initialize_COM.
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.00416960
lea ecx, [ebp - 0xcc]
call fcn.00430bd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5515fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0x5af0c0
push 1
push 0
push 0x5af0d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x5515de
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5515de
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push 0
mov edx, dword [eax]
push dword [ecx]
push eax
call dword [edx + 0x44]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push 0x5ccac0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x18]
js 0x5515c9
test eax, eax
je 0x5515c9
push 1
mov byte [ebp - 4], 3
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5515e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5515e3
mov byte [ebp - 4], 0
mov esi, 0x80004005
test eax, eax
je 0x5515e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5515e3
mov esi, 0x80004005
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5515fd
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x552620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ce73
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], 0
call fcn.00414d80
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
mov dword [ebp - 0x130], 1
push 0
push eax
call fcn.00570cd0
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5526b3
cmp dword [ebp - 0x120], 0xa
jb 0x5526b3
mov al, 1
jmp 0x5526b5
xor al, al
test al, al
mov ecx, 0x5cca58
mov edx, 0x5cca3c
cmove edx, ecx
lea ecx, [ebp - 0x128]
call fcn.00414d80
mov ecx, edx
mov dword [ebp - 4], 1
call fcn.00416660
push eax
push edx
lea ecx, [ebp - 0x128]
call fcn.004163d0
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 2
call fcn.00414d80
mov ecx, 0x5bf0c8
mov byte [ebp - 4], 3
call fcn.00416660
push eax
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004163d0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x128]
push esi
push edi
push str.cloud_fld__s_s.ico
push ebx
call fcn.00544cc0
lea ecx, [esi - 0x10]
add esp, 0x10
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x552758
cmp dword [ecx + 4], 0
jle 0x552758
push ecx
call fcn.00577de8
add esp, 4
add edi, 0xfffffff0
lock xadd dword [edi + 8], esi
dec esi
test esi, esi
jg 0x552774
cmp dword [edi + 4], 0
jle 0x552774
push edi
call fcn.00577de8
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
Function at 0x55c0f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e2ad
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
push 0xf0000000
push 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x55c1a2
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x55c1a2
push 0
push esi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x55c1a2
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x55c1a2
mov byte [ebp - 0x21], 1
jmp 0x55c1f2
xor al, al
mov byte [ebp - 0x21], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.005440a0
mov dword [ebp - 4], 0
push dword [eax]
push str.Cannot_compute_hash:__s
push dword [ebp - 0x34]
call fcn.00544cc0
mov ecx, dword [ebp - 0x38]
add esp, 0xc
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x55c1f2
cmp dword [ecx + 4], 0
jle 0x55c1f2
push ecx
call fcn.00577de8
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x55c200
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x55c210
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x21]
test al, al
je 0x55c221
mov ecx, dword [ebp - 0x3c]
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [ecx], xmm0
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.0056eb71
mov esp, ebp
pop ebp
ret

Function at 0x56f88c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x56f8cb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56f8cb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56f8cb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x56f8cb
cmp dword [ecx + 0x74], 0xe
jbe 0x56f8cb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x58196f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0056fae0
mov eax, dword [0x5da084]
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.005871fc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5819b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x581b0d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00596a90
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 + 0x5df0d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0058b96e
mov ecx, dword [esi*4 + 0x5df0d8]
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 0x581b06
cmp eax, dword [edi + ecx + 0x24]
jne 0x581b06
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 0x581b06
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0058b96e
add esp, 0x14
test edx, edx
jl 0x581b06
jg 0x581a7c
test eax, eax
jb 0x581b06
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x581b06
jl 0x581a96
cmp dword [ebp - 0x1008], eax
ja 0x581b06
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x581ab4
test ebx, ebx
je 0x581aed
cmp ecx, edi
jae 0x581aed
mov al, byte [ecx]
cmp al, 0xd
jne 0x581ace
lea eax, [edi - 1]
cmp ecx, eax
jae 0x581ada
cmp byte [ecx + 1], 0xa
jne 0x581ada
inc ecx
jmp 0x581ada
movzx eax, al
movsx eax, byte [eax + 0x5da310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x581ab4
cmp edx, ebx
jne 0x581ab4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x581b0b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0056eb71
leave
ret

Function at 0x5886d5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a7bd4
push 0x5a7bcc
push str.FlsAlloc
push 0x1e
call fcn.00588502
mov esi, eax
add esp, 0x10
test esi, esi
je 0x588709
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a2354]
call esi
jmp 0x58870f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x588753
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5a7be4
push 0x5a7bdc
push str.FlsGetValue
push 0x20
call fcn.00588502
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58878a
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a2354]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x589ea3
Capabilities:
Read file on windows

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

Function at 0x58ae0c
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 + 0x5df0d8]
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 0x58ae4c
cmp byte [ebx], 0xa
jne 0x58ae4c
or byte [eax + edi + 0x28], 4
jmp 0x58ae51
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x58af4f
mov al, byte [edx]
cmp al, 0x1a
je 0x58af31
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x58ae80
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x58aea5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x58aeaf
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 0x58ae62
jmp 0x58af4f
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 0x58af2c
cmp dword [ebp - 0xc], 0
je 0x58af2c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5df0d8]
test byte [eax + edi + 0x28], 0x48
je 0x58af06
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x58aef1
mov byte [esi], dl
jmp 0x58af02
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5df0d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x58af4f
cmp byte [ebp - 1], 0xa
jne 0x58af15
cmp esi, ebx
jne 0x58af15
mov byte [esi], 0xa
jmp 0x58af4e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0058b98c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x58af4f
mov byte [esi], 0xd
jmp 0x58af4e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5df0d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58af4b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58af4f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58af58
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 + 0x5df0d8]
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 0x58af9b
cmp word [esi], dx
jne 0x58af9b
or byte [edi + eax + 0x28], 4
jmp 0x58afa0
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 0x58b0f3
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 0x58b0d3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x58afe2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x58b018
cmp eax, edx
jae 0x58b024
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 0x58afba
jmp 0x58b0f3
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 0x58b0cf
cmp dword [ebp - 0x14], 0
je 0x58b0cf
mov eax, dword [ebx*4 + 0x5df0d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x58b0a7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x58b070
mov word [esi], cx
jmp 0x58b0a3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5df0d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5df0d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5df0d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x58b0f3
pop ebx
cmp word [ebp - 4], bx
jne 0x58b0b8
cmp esi, dword [ebp + 0xc]
jne 0x58b0b8
mov word [esi], bx
jmp 0x58b0f0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0058b98c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x58b0f3
push 0xd
jmp 0x58b0ec
mov ecx, dword [ebx*4 + 0x5df0d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58b0ea
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58b0f3
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 0x58f523
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 0x58f5c0
push ebx
push esi
call fcn.0058f4ec
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.0058b9ea
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x58f56d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x58f5bf
push edi
push eax
call fcn.0058630b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x58f58d
call fcn.005862d1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x58f5be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0058b9ea
add esp, 0x20
test eax, eax
jne 0x58f5ac
push edi
call fcn.005862d1
jmp 0x58f5b4
push ebx
call fcn.005862d1
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 0x58f5c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x58f5d4
pop esi
ret
push ebx
push edi
push esi
call fcn.0058f4ec
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0058630b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x58f5fc
push ebx
push esi
push edi
call fcn.00570750
add esp, 0xc
push 0
call fcn.005862d1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x58fd48
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058f86f
Function at 0x5961df
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059615b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x596357
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x596357
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x596306
jg 0x596238
test eax, eax
je 0x5962fc
push 1
push 0x1000
call fcn.00587b78
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x59625e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5962f3
push 0x8000
push ebx
call fcn.005849af
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x59628a
jg 0x596285
cmp ecx, 0x1000
jb 0x59628a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00589627
add esp, 0x10
cmp eax, 0xffffffff
je 0x5962cf
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x596285
jl 0x5962b6
test ecx, ecx
jne 0x596277
push dword [ebp - 0xc]
push ebx
call fcn.005849af
push esi
call fcn.005862d1
add esp, 0xc
xor edi, edi
jmp 0x596368
cmp byte [edi + 0x24], 0
je 0x5962e6
cmp dword [edi + 0x20], 5
jne 0x5962e6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5962f1
mov edi, dword [edi + 0x18]
jmp 0x5962f3
xor edi, edi
push esi
call fcn.005862d1
pop ecx
jmp 0x596368
test ecx, ecx
jg 0x5962c8
jl 0x596306
test eax, eax
jae 0x5962c8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0058b98c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x596329
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5962c8
jmp 0x596360
push ebx
call fcn.00581f76
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5962c8
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x596368
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x596365
mov edi, dword [edi + 0x18]
jmp 0x596368
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0058b98c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5969b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5969dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5969dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ec10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x476d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046b6b2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ec92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046959d
mov eax, dword [eax]
push 0x11551d0
push eax
call fcn.0045b6a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046b93d
test bl, bl
je 0x40ec92
push 0x11551d0
lea ecx, [esp + 0xc]
call fcn.0046bccd
push 0x1158d60
lea ecx, [esp + 0xc]
call fcn.0046bccd
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40ecce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046b93d
jmp 0x40ed99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40ed52
lea edx, [esp + 0x7c]
push 0x1158d5c
push edx
call fcn.0045b6a4
add esp, 8
test eax, eax
je 0x40ed52
lea eax, [esp + 0x7c]
push 0x1158d58
push eax
call fcn.0045b6a4
add esp, 8
test eax, eax
je 0x40ed52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ece2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046b93d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x410010
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x410072
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc