joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4454a4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], ebx
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x445508
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00430ec0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404143
test eax, eax
jns 0x445532
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x445558
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x445550
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.0044bce7
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.004458ce
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.004458ce
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.004458ce
mov eax, dword [0x46e878]
add esp, 0x34
sub eax, ebx
je 0x4455f9
sub eax, 1
je 0x4455f1
sub eax, 1
je 0x4455e9
sub eax, 1
je 0x4455e1
sub eax, 1
jne 0x4455ff
mov esi, dword [str.debug]
jmp 0x4455ff
mov esi, dword [str.verbose]
jmp 0x4455ff
mov esi, dword [str.standard]
jmp 0x4455ff
mov esi, dword [str.warning]
jmp 0x4455ff
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.004458ce
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x445625
push dword [ebp - 0x418]
call fcn.00403136
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00430093
leave
ret

Function at 0x44590c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46e874]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x445948
push edi
push ebx
push 0x46f760
call fcn.00402e52
mov esi, eax
test esi, esi
js 0x44599f
xor esi, esi
jmp 0x44599f
test eax, eax
je 0x44599f
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44597d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44597b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44598f
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x44599f
mov ecx, dword [0x46e874]
jmp 0x44594c
push esi
push 0x310
push str.c:_agent_work36_swix_srclibsdutillogutil.cpp
call fcn.004013b3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x445adf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push 0x44
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00430ec0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x445b11
mov eax, 0x44e568
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.004029f6
mov esi, eax
add esp, 0x10
test esi, esi
js 0x445b94
mov cx, word [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov word [ebp - 0x28], cx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x445b89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x445b70
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x445b77
mov esi, 0x80004005
push esi
push 0xcd
push str.c:_agent_work36_swix_srclibsdutilprocutil.cpp
call fcn.004013b3
jmp 0x445b94
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [eax], ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x445ba7
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x445bb4
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x445bc1
push dword [ebp - 4]
call fcn.00403136
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4480b4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00448243
cmp dword [ebp - 0x14], ebx
je 0x4480f0
mov dword [esi], 1
jmp 0x448124
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
test eax, eax
je 0x448124
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x448124
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x448134
push dword [ebp - 0x10]
call fcn.00403136
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00430093
leave
ret 4
Function at 0x448144
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push edi
mov edi, dword [ebp + 0xc]
push pe_nt_image_headers32
push 0
push eax
call fcn.00430ec0
mov eax, dword [0x46f800]
add esp, 0xc
test eax, eax
jne 0x44822a
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
cmp dword [ebp - 0x11c], 4
mov dword [0x46f804], ecx
jne 0x4481ba
xor eax, eax
inc eax
jmp 0x448225
cmp dword [ebp - 0x11c], 5
jne 0x4481eb
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x4481d1
push 2
jmp 0x448224
cmp ecx, 1
jne 0x4481da
push 3
jmp 0x448224
xor eax, eax
cmp ecx, 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
jmp 0x448225
cmp dword [ebp - 0x11c], 6
jne 0x448222
cmp dword [ebp - 0x118], 0
jne 0x44820b
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x448225
cmp dword [ebp - 0x118], 1
jne 0x448222
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x448225
push 9
pop eax
mov dword [0x46f800], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46f804]
mov dword [edi], eax
pop edi
pop esi
call fcn.00430093
leave
ret 8

Function at 0x4493e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
call fcn.004029f6
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4494f5
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449457
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44945e
mov esi, 0x80004005
push esi
push 0xc1
push str.c:_agent_work36_swix_srclibsdutildlutil.cpp
call fcn.004013b3
jmp 0x4494f5
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4494bb
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x4494a5
cmp ecx, 8
jb 0x449476
cmp ecx, 8
je 0x4494b1
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4494e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4494d2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4494d9
mov esi, 0x80004005
push esi
push 0xc8
push str.c:_agent_work36_swix_srclibsdutildlutil.cpp
call fcn.004013b3
cmp edi, 0xffffffff
je 0x4494f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x44998e
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00403fe8
mov esi, eax
test esi, esi
js 0x449ae4
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x449ab5
cmp dword [ebp - 4], 0
je 0x449ae3
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x449a8f
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x449a13
cmp ebx, dword [ebp - 4]
jb 0x4499e2
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x449a5d
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00403fe8
test eax, eax
js 0x449a5d
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x449a5d
cmp ebx, 8
jb 0x449a36
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x449a83
cmp dword [eax], 0
je 0x449a83
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.004492c7
mov esi, eax
test esi, esi
js 0x449ae3
cmp dword [ebp - 4], 0
jne 0x4499b8
jmp 0x449ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449aa6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x449aad
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x449ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449acc
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x449ad3
mov esi, 0x80004005
push esi
push 0x19a
push str.c:_agent_work36_swix_srclibsdutildlutil.cpp
call fcn.004013b3
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x449aec
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
call fcn.00402c72
mov esi, eax
test esi, esi
js 0x449c54
xor eax, eax
push eax
push eax
push eax
push eax
push str.Burn
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x449b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449b5f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x449b66
mov esi, 0x80004005
push esi
push 0x84
push str.c:_agent_work36_swix_srclibsdutildlutil.cpp
call fcn.004013b3
jmp 0x449c54
lea eax, [ebp - 4]
push eax
push 0x78
push str.DownloadTimeout
push str.WiXBurn
call fcn.00448e41
mov eax, dword [ebp - 4]
test eax, eax
je 0x449bc7
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.00449340
mov esi, eax
test esi, esi
js 0x449c54
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call fcn.004493e9
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.0044909d
mov esi, eax
test esi, esi
js 0x449c45
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x449c45
xor ecx, ecx
cmp word [eax], cx
je 0x449c45
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x449c54
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x449c61
push eax
call fcn.00403136
test edi, edi
je 0x449c6c
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
je 0x449c7a
push dword [ebp - 8]
call fcn.00403136
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x44c00b
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x44c05d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44c04c
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44c05d
push esi
push 0x18
push str.c:_agent_work36_swix_srclibsdutilinetutil.cpp
call fcn.004013b3
jmp 0x44c069
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x44c1a0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x246c
call fcn.00430350
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x241c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2430], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x2420], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x2424], eax
lea eax, [ebp - 0x246c]
push esi
push eax
call fcn.00430ec0
add esp, 0xc
mov dword [ebp - 0x246c], 0x3c
cmp dword [ebp - 0x241c], esi
je 0x44c232
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2458], 0x101
mov dword [ebp - 0x245c], eax
mov ecx, 0x81
cmp dword [ebp - 0x2420], esi
je 0x44c251
lea eax, [ebp - 0x108]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x44c26b
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2448], eax
mov ecx, 0x801
test ebx, ebx
je 0x44c286
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2440], eax
test edi, edi
je 0x44c29c
lea eax, [ebp - 0x2418]
mov dword [ebp - 0x2434], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x246c]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2428]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x44c2e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44c2d0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44c2d7
mov esi, 0x80004005
push esi
push 0x56
push str.c:_agent_work36_swix_srclibsdutiluriutil.cpp
call fcn.004013b3
jmp 0x44c3ad
mov ecx, dword [ebp - 0x242c]
test ecx, ecx
je 0x44c2fb
mov eax, dword [ebp - 0x2460]
mov dword [ecx], eax
mov eax, dword [ebp - 0x241c]
test eax, eax
je 0x44c321
push dword [ebp - 0x2458]
push dword [ebp - 0x245c]
push eax
call fcn.00402c72
mov esi, eax
test esi, esi
js 0x44c3ad
mov eax, dword [ebp - 0x2430]
test eax, eax
je 0x44c335
mov cx, word [ebp - 0x2454]
mov word [eax], cx
mov eax, dword [ebp - 0x2420]
test eax, eax
je 0x44c357
push dword [ebp - 0x244c]
push dword [ebp - 0x2450]
push eax
call fcn.00402c72
mov esi, eax
test esi, esi
js 0x44c3ad
mov eax, dword [ebp - 0x2424]
test eax, eax
je 0x44c379
push dword [ebp - 0x2444]
push dword [ebp - 0x2448]
push eax
call fcn.00402c72
mov esi, eax
test esi, esi
js 0x44c3ad
test ebx, ebx
je 0x44c395
push dword [ebp - 0x243c]
push dword [ebp - 0x2440]
push ebx
call fcn.00402c72
mov esi, eax
test esi, esi
js 0x44c3ad
test edi, edi
je 0x44c3ad
push dword [ebp - 0x2434]
push dword [ebp - 0x2438]
push edi
call fcn.00402c72
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430093
leave
ret 0x20
Function at 0x401047
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.00404228
pop ecx
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [eax - 1]
neg edi
sbb edi, edi
neg edi
test esi, esi
je 0x401076
push dword [esp + 0xc]
call fcn.00401ece
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4019a8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x428eb4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4019d5
push edi
mov edi, dword [esp + 0xc]
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4286c0]
inc edi
sub esi, 1
jne 0x4019bc
pop edi
mov dword [0x428eb4], edx
pop esi
ret
Function at 0x402ec9
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x105
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402eec
cmp byte [esi], 0
je 0x402eec
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402f3a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
push str..wzcloudOpenWithProgids
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402f7d
xor eax, eax
jmp 0x4030ee
push esi
push edi
xor esi, esi
mov dword [ebp - 0x78], 0x104
push 0x208
lea eax, [ebp + 0x3a0]
mov edi, esi
push esi
push eax
call fcn.00403817
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x3a0]
push eax
push esi
jmp 0x4030cb
inc edi
cmp dword [ebp - 0x78], 4
jle 0x4030bb
push 4
lea eax, [ebp + 0x3a0]
push str.AppX
push eax
call fcn.0040c11b
add esp, 0xc
test eax, eax
jne 0x4030bb
push 0x208
lea eax, [ebp + 0x198]
push esi
push eax
call fcn.00403817
push 0x208
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00403817
lea eax, [ebp + 0x3a0]
mov dword [ebp - 0x74], 0x208
push eax
push str._sApplication
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004046ba
add esp, 0x28
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push 2
push str.AppUserModelID
lea eax, [ebp + 0x198]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4030bb
push str.WinZipComputing.
call fcn.0040bd22
push eax
lea eax, [ebp - 0x70]
push str.WinZipComputing.
push eax
call fcn.0040c11b
add esp, 0x10
test eax, eax
jne 0x4030bb
lea eax, [ebp + 0x3a0]
push eax
push str._sShellopen
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004046ba
mov eax, dword [ebp + 0x5b8]
add esp, 0x10
add eax, eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push esi
push 2
push str.PackageRelativeExecutable
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4030de
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x3a0]
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x402fb4
jmp 0x4030e1
xor esi, esi
inc esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
call fcn.004088ba
add ebp, 0x5ac
leave
ret
Function at 0x403103
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c300
pop ecx
cmp eax, 8
jae 0x4031cc
push esi
xor esi, esi
lea eax, [ebp - 0x2c]
push esi
push esi
push esi
push esi
push esi
push 0x20
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4031c5
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.004037ca
add esp, 0xc
test eax, eax
jne 0x4031c5
mov al, byte [ebp - 0x2c]
lea edx, [ebp - 0x2c]
test al, al
je 0x4031c5
mov cl, al
cmp al, 0x2e
je 0x403184
cmp al, 0x20
je 0x403184
inc edx
mov al, byte [edx]
mov cl, al
test al, al
jne 0x403171
test cl, cl
je 0x4031c5
cmp cl, 0x30
jb 0x403192
cmp cl, 0x39
jbe 0x403197
inc edx
mov cl, byte [edx]
jmp 0x403188
push edi
movzx edi, cl
imul esi, esi, 0xa
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x4031b2
inc edx
add esi, 0xffffffd0
add esi, edi
mov cl, byte [edx]
test cl, cl
jne 0x403198
mov ax, si
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004088ba
leave
ret 4
mov eax, 0xffff
jmp 0x4031b6
push 0x41f
push str.sfxhead.c
call fcn.00404587
int3

Function at 0x4039c7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
push edi
push 8
add esi, esi
pop edi
mov ecx, edx
sar esi, 1
shr ecx, 1
mov eax, edx
xor eax, esi
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
dec edi
test edi, edi
jg 0x4039d4
pop edi
mov eax, edx
pop esi
ret 4