joyce8/EMBER2024-capa huggingface dataset:
Function at 0x563815
Capabilities:
Read file on windows

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

Function at 0x563820
Capabilities:
Read file on windows

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

Function at 0x5717a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
xor dl, dl
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebp
push esi
push edi
test bl, 3
jne 0x5718d1
test al, 3
jne 0x5718d1
mov edi, ecx
mov dword [esp + 0x10], 0
shr edi, 2
xor esi, esi
test edi, edi
je 0x57188c
cmp edi, 8
jb 0x571855
mov ebp, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x14], ebx
and edx, 0xfffffff8
add eax, 0x10
xorps xmm3, xmm3
sub dword [esp + 0x14], ebp
xorps xmm2, xmm2
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x571804
mov eax, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edi
jae 0x571890
mov ebp, ebx
lea edx, [eax + esi*4]
sub ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edi
mov ebx, dword [esp + 0x14]
sub ebp, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [edx + ebx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or edi, eax
sub ebp, 1
jne 0x571872
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x571894
xor edi, edi
jmp 0x571894
mov edi, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x5718a8
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x20]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x571994
cmp ecx, 0x20
jb 0x571975
mov esi, ecx
add eax, 0x10
and esi, 0xffffffe0
xorps xmm3, xmm3
mov dword [esp + 0x1c], esi
xorps xmm2, xmm2
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + ebx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x571910
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x571994
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
mov al, byte [ebx + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x571984
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x406760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406784
xor eax, eax
test eax, eax
je 0x406797
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406797
xor ecx, ecx
jmp 0x40679a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4068f4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ce
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406925
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
not eax
pop esi
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2c857d97
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x19741f8b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x28c45b7f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x36183175
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001740
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.10014fe0
mov eax, dword [0x1001e040]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 3
je 0x100017d9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x2004]
push str.TELEMETRY___04d:_04d_:
push eax
call fcn.100017f0
lea eax, [ebp - 0x2004]
add esp, 0x10
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001790
lea ecx, [ebp + 0x10]
sub eax, edx
push ecx
push 0
push dword [ebp + 0xc]
sar eax, 1
mov ecx, 0x1000
sub ecx, eax
push ecx
lea ecx, [ebp - 0x2004]
lea eax, [ecx + eax*2]
push eax
call fcn.10001630
push dword [eax + 4]
push dword [eax]
call fcn.10008942
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001821
mov esp, ebp
pop ebp
ret

Function at 0x10008d01
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008d40
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008d40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008d40
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008d40
cmp dword [ecx + 0x74], 0xe
jbe 0x10008d40
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000d080
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 0x1000d11d
push ebx
push esi
call fcn.1000d049
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.1000cfdd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d0ca
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d11c
push edi
push eax
call fcn.10009de5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d0ea
call fcn.10009dab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d11b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000cfdd
add esp, 0x20
test eax, eax
jne 0x1000d109
push edi
call fcn.10009dab
jmp 0x1000d111
push ebx
call fcn.10009dab
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 0x1000d38a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017bc0
push 0x10017bb8
push str.FlsAlloc
push 0x1f
call fcn.1000d2a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d3be
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001611c]
call esi
jmp 0x1000d3c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d408
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017bd0
push 0x10017bc8
push str.FlsGetValue
push 0x21
call fcn.1000d2a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d43f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001611c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000d447
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017bd8
push 0x10017bd0
push str.FlsSetValue
push 0x22
call fcn.1000d2a6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d481
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001611c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10014bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10014bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7f3778bf
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x691c4995
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40563b
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop esi
mov ecx, dword [ebp - 0x508]
mov edx, dword [ecx]
mov dword [ebp - 0x508], edx
mov eax, dword [ebp - 0x508]
cmp eax, dword [ebp - 0xc9c]
je 0x40566b
mov ecx, dword [ebp - 0x508]
cmp dword [ecx + 0x30], 0
jne 0x405421
mov dword [ebp - 0x2d4], 0
Function at 0x426a65
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x426ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426aae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426ab5
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work13_s_src_burnenginemsuengine.cpp
call fcn.004038f5
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0044311f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042de30
leave
ret 4

Function at 0x429ac7
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44e534
mov dword [ebp - 4], esi
test eax, eax
je 0x429ae6
mov edx, dword [eax]
jmp 0x429af3
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x429af1
mov edx, dword [ecx]
jmp 0x429af3
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x429afc
mov edi, dword [ecx]
test eax, eax
je 0x429b0e
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429b1d
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call fcn.00405678
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.00447353
test eax, eax
je 0x429b9b
mov eax, dword [ebp - 4]
test al, 1
je 0x429b9b
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429b73
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429b7a
mov esi, 0x80004005
push esi
push 0x538
push str.c:_agent_work13_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0044311f
add esp, 0xc
jmp 0x429c19
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push fcn.004299a0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429c19
cmp dword [ebx + 0x20], esi
je 0x429bd9
mov esi, 0x80070642
push esi
push 0x542
push str.c:_agent_work13_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429bf0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429bf7
mov esi, 0x80004005
push esi
push 0x546
push str.c:_agent_work13_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0044311f
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x446a2a
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 0x118
push 0
push eax
call fcn.0042f710
mov eax, dword [0x46f7dc]
add esp, 0xc
test eax, eax
jne 0x446b10
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 [0x46f7e0], ecx
jne 0x446aa0
xor eax, eax
inc eax
jmp 0x446b0b
cmp dword [ebp - 0x11c], 5
jne 0x446ad1
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x446ab7
push 2
jmp 0x446b0a
cmp ecx, 1
jne 0x446ac0
push 3
jmp 0x446b0a
xor eax, eax
cmp ecx, 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
jmp 0x446b0b
cmp dword [ebp - 0x11c], 6
jne 0x446b08
cmp dword [ebp - 0x118], 0
jne 0x446af1
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x446b0b
cmp dword [ebp - 0x118], 1
jne 0x446b08
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x446b0b
push 9
pop eax
mov dword [0x46f7dc], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46f7e0]
mov dword [edi], eax
pop edi
pop esi
call fcn.0042de30
leave
ret 8

Function at 0x446f24
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x44700b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x446f6a
cmp eax, 0x50
je 0x446f62
cmp eax, 0xb7
jne 0x446f6a
xor esi, esi
inc esi
jmp 0x44700b
cmp eax, 3
jne 0x446ffa
movzx eax, word [edi]
mov ebx, esi
mov ecx, edi
test ax, ax
je 0x446ff3
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x446f8b
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x446f84
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x446ff3
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040419a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x44700b
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x44700b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446fdf
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44700b
push esi
push 0x454
push str.c:_agent_work13_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x44700b
mov esi, 0x80070003
jmp 0x44700b
test eax, eax
jg 0x447002
mov esi, eax
jmp 0x44700b
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x447065
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.00447353
test eax, eax
je 0x4470ee
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x4470bb
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4470bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4470b1
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4470bb
push esi
push 0x5c4
jmp 0x4470e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4470ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4470db
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4470ed
push esi
push 0x5ca
push str.c:_agent_work13_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
pop ebx
mov eax, esi
pop esi
leave
ret 4

Function at 0x4470f5
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x44710c
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x447209
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x447144
cmp edi, 0x50
je 0x44713c
cmp edi, 0xb7
jne 0x447144
xor esi, esi
inc esi
jmp 0x447208
cmp edi, 2
jne 0x44715d
push esi
push dword [ebp + 8]
call fcn.00447353
test eax, eax
je 0x4471ff
push 3
pop edi
cmp edi, 3
jne 0x4471f7
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x4471f0
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x447181
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x44717a
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
push 0
pop esi
test ecx, ecx
je 0x4471f0
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.0040419a
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
js 0x447208
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x447208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4471dc
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x447208
push esi
push 0x4d4
push str.c:_agent_work13_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x447208
mov esi, 0x80070003
jmp 0x447208
test edi, edi
jg 0x4471ff
mov esi, edi
jmp 0x447208
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x449225
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.0044780f
mov esi, eax
test esi, esi
js 0x44937b
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 0x44934c
cmp dword [ebp - 4], 0
je 0x44937a
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 0x449326
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x4492aa
cmp ebx, dword [ebp - 4]
jb 0x449279
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x4492f4
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.0044780f
test eax, eax
js 0x4492f4
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 0x4492f4
cmp ebx, 8
jb 0x4492cd
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x44931a
cmp dword [eax], 0
je 0x44931a
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00448b5e
mov esi, eax
test esi, esi
js 0x44937a
cmp dword [ebp - 4], 0
jne 0x44924f
jmp 0x44937a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44933d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x449344
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x449370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x449363
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44936a
mov esi, 0x80004005
push esi
push 0x19a
push str.c:_agent_work13_s_srclibsdutildlutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24

Function at 0x44b8a5
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 0x44b8f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44b8e6
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44b8f7
push esi
push 0x18
push str.c:_agent_work13_s_srclibsdutilinetutil.cpp
call fcn.004038f5
jmp 0x44b903
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