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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x469004]
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 0x43ce13
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042b370
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00443c3c
test eax, eax
jns 0x43ce3d
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 0x43ce63
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x43ce5b
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.00447ed3
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.0043d1dc
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.0043d1dc
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.0043d1dc
mov eax, dword [0x4697ac]
add esp, 0x34
sub eax, ebx
je 0x43cf04
sub eax, 1
je 0x43cefc
sub eax, 1
je 0x43cef4
sub eax, 1
je 0x43ceec
sub eax, 1
jne 0x43cf0a
mov esi, dword [str.debug]
jmp 0x43cf0a
mov esi, dword [str.verbose]
jmp 0x43cf0a
mov esi, dword [str.standard]
jmp 0x43cf0a
mov esi, dword [str.warning]
jmp 0x43cf0a
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.0043d1dc
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x43cf30
push dword [ebp - 0x418]
call fcn.00444e5d
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042a807
mov esp, ebp
pop ebp
ret

Function at 0x43d21a
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 [0x4697a8]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x43d256
push edi
push ebx
push 0x46a51c
call fcn.004407ce
mov esi, eax
test esi, esi
js 0x43d2ac
xor esi, esi
jmp 0x43d2ac
test eax, eax
je 0x43d2ac
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 0x43d28a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43d29c
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x43d2ac
mov ecx, dword [0x4697a8]
jmp 0x43d25a
push esi
push 0x31b
push str.logutil.cpp
call fcn.0043bf09
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d8ab
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
push esi
push edi
test eax, eax
je 0x43d96d
cmp word [eax], cx
je 0x43d96d
push ecx
push eax
lea eax, [ebp - 4]
push eax
call fcn.004405ef
mov esi, eax
test esi, esi
js 0x43d9f5
lea eax, [ebp - 4]
push eax
call fcn.0043d5f9
mov esi, eax
test esi, esi
js 0x43d9f5
mov edi, dword [ebp + 0x14]
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jb 0x43d9e8
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0044036c
mov esi, eax
add esp, 0xc
test esi, esi
js 0x43d9f4
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push edi
call fcn.0044036c
mov esi, eax
add esp, 0x10
test esi, esi
js 0x43d9f4
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43d9e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43d9c4
inc ebx
mov esi, 0x800700b7
cmp ebx, dword [ebp + 0x10]
jbe 0x43d906
jmp 0x43d9f4
mov edi, 0x104
lea eax, [ebp - 4]
push edi
push eax
call fcn.0044032a
mov esi, eax
test esi, esi
js 0x43d9f5
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x43d8f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2f3
push str.pathutil.cpp
call fcn.0043bf09
jmp 0x43d9f5
cmp eax, 3
jne 0x43d9d6
push 0
push dword [edi]
call fcn.004445f5
mov esi, eax
jmp 0x43d9e8
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x43d9e8
xor esi, esi
test esi, esi
js 0x43d9f4
push edi
call fcn.0043d5f9
mov esi, eax
pop ebx
cmp dword [ebp - 8], 0
je 0x43da03
push dword [ebp - 8]
call fcn.00444e5d
cmp dword [ebp - 4], 0
je 0x43da11
push dword [ebp - 4]
call fcn.00444e5d
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43e310
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.0042b370
xor eax, eax
lea edi, [ebp - 0x14]
cmp dword [ebp + 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0x44a510
cmovne eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.0044036c
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x43e3c2
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 0x43e3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xa9
push str.procutil.cpp
call fcn.0043bf09
jmp 0x43e3c2
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 0x43e3d5
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x43e3e2
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x43e3ef
push dword [ebp - 4]
call fcn.00444e5d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x442c63
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x469004]
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.00442df1
cmp dword [ebp - 0x14], ebx
je 0x442c9f
mov dword [esi], 1
jmp 0x442cd3
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 0x442cd3
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x442cd3
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x442ce3
push dword [ebp - 0x10]
call fcn.00444e5d
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042a807
mov esp, ebp
pop ebp
ret 4
Function at 0x442cf5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
push 0
push eax
call fcn.0042b370
mov eax, dword [0x46a5f8]
add esp, 0xc
test eax, eax
jne 0x442dd5
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
push 4
or ecx, eax
pop edx
mov dword [0x46a5fc], ecx
cmp dword [ebp - 0x11c], edx
jne 0x442d6b
xor eax, eax
inc eax
jmp 0x442dd0
cmp dword [ebp - 0x11c], 5
jne 0x442d96
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x442d82
push 2
jmp 0x442dcf
cmp ecx, 1
jne 0x442d8b
push 3
jmp 0x442dcf
push 9
cmp ecx, 2
pop eax
cmove eax, edx
jmp 0x442dd0
cmp dword [ebp - 0x11c], 6
jne 0x442dcd
cmp dword [ebp - 0x118], 0
jne 0x442db6
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x442dd0
cmp dword [ebp - 0x118], 1
jne 0x442dcd
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x442dd0
push 9
pop eax
mov dword [0x46a5f8], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46a5fc]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042a807
mov esp, ebp
pop ebp
ret 8
Function at 0x4430ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004492a0
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
movlpd qword [ebp - 0x100c], xmm0
xor esi, esi
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x100c]
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], ecx
cmp dword [ebp + 0x10], 0
jne 0x44311b
cmp dword [ebp + 0x14], 0
jne 0x44311b
mov eax, 0x1000
jmp 0x443146
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x443140
ja 0x443132
cmp eax, 0x1000
jbe 0x443140
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x443146
mov dword [ebp - 0x1008], edx
push 0
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x1008], eax
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4431c6
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x443196
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00443ffa
mov esi, eax
test esi, esi
js 0x4431f4
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x1010]
add edi, eax
adc ecx, 0
mov dword [ebp - 0x1010], ecx
cmp ecx, dword [ebp + 0x14]
ja 0x4431bb
jb 0x4431b3
cmp edi, dword [ebp + 0x10]
jae 0x4431bb
test eax, eax
jne 0x443108
test ebx, ebx
je 0x4431f4
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x4431f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x412
push str.fileutil.cpp
call fcn.0043bf09
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a807
mov esp, ebp
pop ebp
ret 0x14
Function at 0x443209
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4432e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x44324f
cmp eax, 0x50
je 0x443247
cmp eax, 0xb7
jne 0x44324f
xor esi, esi
inc esi
jmp 0x4432e0
cmp eax, 3
jne 0x4432d2
movzx eax, word [ebx]
mov edi, esi
mov ecx, ebx
test ax, ax
je 0x4432cb
push 0x5c
pop edx
cmp ax, dx
cmove edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x443263
test edi, edi
je 0x4432cb
push esi
xor eax, eax
push ebx
mov word [edi], ax
call fcn.004445f5
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x4432e0
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4432e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4432e0
push esi
push 0x457
push str.fileutil.cpp
call fcn.0043bf09
jmp 0x4432e0
mov esi, 0x80070003
jmp 0x4432e0
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x44333a
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.0044361f
test eax, eax
je 0x4433c1
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x44338f
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x44338f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x44338f
push esi
push 0x5c7
jmp 0x4433b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4433c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4433c0
push esi
push 0x5cd
push str.fileutil.cpp
call fcn.0043bf09
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4433ca
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
xor eax, eax
mov ebx, esi
inc eax
cmp dword [ebp + 0x10], ebx
cmovne ebx, eax
cmp dword [ebp + 0x14], esi
je 0x4433e4
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4434d3
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x44341c
cmp edi, 0x50
je 0x443414
cmp edi, 0xb7
jne 0x44341c
xor esi, esi
inc esi
jmp 0x4434d2
cmp edi, 2
jne 0x443435
push esi
push dword [ebp + 8]
call fcn.0044361f
test eax, eax
je 0x4434c4
push 3
pop edi
cmp edi, 3
jne 0x4434c4
mov eax, dword [ebp + 0xc]
mov edi, esi
mov edx, eax
movzx ecx, word [eax]
test cx, cx
je 0x4434bd
mov dword [ebp + 0x10], 0x5c
cmp cx, word [ebp + 0x10]
cmove edi, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x443454
test edi, edi
je 0x4434bd
push esi
xor ecx, ecx
push eax
mov word [edi], cx
call fcn.004445f5
mov esi, eax
mov eax, dword [ebp + 0x10]
mov word [edi], ax
test esi, esi
js 0x4434d2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4434d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x4434d2
push esi
push 0x4d7
push str.fileutil.cpp
call fcn.0043bf09
jmp 0x4434d2
mov esi, 0x80070003
jmp 0x4434d2
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x443c3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x443c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443c91
push esi
push 0x120
push str.fileutil.cpp
call fcn.0043bf09
jmp 0x443d38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x443cac
mov esi, 0x8007000e
push esi
push 0x124
jmp 0x443c82
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x443ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443ce7
push esi
push 0x128
push str.fileutil.cpp
call fcn.0043bf09
jmp 0x443d31
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x45ff94
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x443d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x443d1e
push esi
push 0x12d
jmp 0x443cdb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x443ffa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x444040
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x44404a
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x44400b
jmp 0x44405a
push esi
push 0x3f2
push str.fileutil.cpp
call fcn.0043bf09
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4445f5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4446bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x444625
xor esi, esi
jmp 0x4446bc
cmp eax, 3
je 0x444636
push 0
push edi
call fcn.004446c4
test eax, eax
jne 0x44461e
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x4446a9
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x444646
test ebx, ebx
je 0x4446a9
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.004445f5
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4446bb
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4446a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x444695
xor esi, esi
inc esi
jmp 0x4446bb
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4446bb
xor esi, esi
jmp 0x4446bb
mov esi, 0x80070003
push esi
push 0x7d
push str.dirutil.cpp
call fcn.0043bf09
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4446c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4446e8
test al, 0x10
je 0x4446e8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4446e5
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4455aa
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.0044036c
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4456b6
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 0x445634
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xcc
push str.dlutil.cpp
call fcn.0043bf09
jmp 0x4456b6
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 0x44567c
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x445666
cmp ecx, 8
jb 0x445637
cmp ecx, 8
je 0x445672
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4456aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xd3
push str.dlutil.cpp
call fcn.0043bf09
cmp edi, 0xffffffff
je 0x4456b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x445b3c
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.00443add
mov esi, eax
test esi, esi
js 0x445c92
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 0x445c63
cmp dword [ebp - 4], 0
je 0x445c91
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 0x445c3d
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x445bc1
cmp ebx, dword [ebp - 4]
jb 0x445b90
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x445c0b
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00443add
test eax, eax
js 0x445c0b
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 0x445c0b
cmp ebx, 8
jb 0x445be4
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x445c31
cmp dword [eax], 0
je 0x445c31
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00445488
mov esi, eax
test esi, esi
js 0x445c91
cmp dword [ebp - 4], 0
jne 0x445b66
jmp 0x445c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1b1
jmp 0x445c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1a5
push str.dlutil.cpp
call fcn.0043bf09
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x24