joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f160d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x4c], 0x101
mov dword [ebp - 0x48], 0x201
call fcn.0040bd10
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00432980
mov ecx, eax
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x44], ecx
xor edi, edi
nop dword [eax + eax]
cmp dword [ebp - 0x20], 8
lea edx, [ebp - 0x38]
push edx
push dword [ebp + edi*4 - 0x4c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434b6f
push 0x200
call fcn.00455202
add esp, 4
mov esi, eax
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x434afe
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
push ecx
push esi
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x434b50
cmp dword [ebp - 0x1c], 4
mov byte [ebp - 0x39], 1
jne 0x434b32
push dword [esi]
push 0x644798
push esi
call dword [0x67d074]
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434b37
mov ecx, dword [ebp - 0x40]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004059e0
push 2
push esi
call fcn.0058acab
mov eax, dword [ebp - 0x38]
add esp, 8
test eax, eax
je 0x434b69
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x39], 0
jne 0x434b7c
mov ecx, dword [ebp - 0x44]
inc edi
cmp edi, 2
jb 0x434ac0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x434bb2
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434ba8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434bd1
push edx
push ecx
call fcn.0058acab
add esp, 8
mov al, byte [ebp - 0x39]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret
call fcn.005b1fdf
int3
Function at 0x434be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f164d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x675f64]
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 edi, edx
movzx ebx, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, 1
push ecx
shl ebx, 8
lea ecx, [ebp - 0x28]
add ebx, 0xf013f
call fcn.0040bd10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00432980
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x30]
push edx
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], eax
cmovae ecx, dword [ebp - 0x28]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x434c87
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
push ebx
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x434c87
xor bl, bl
jmp 0x434ccd
cmp dword [esi + 0x14], 8
mov bl, 1
mov ecx, esi
jb 0x434c93
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x434c9b
mov edi, dword [edi]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov eax, dword [ebp - 0x30]
cmovne ebx, ecx
test eax, eax
je 0x434ccd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x434d03
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434cf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434d21
push edx
push ecx
call fcn.0058acab
add esp, 8
mov al, bl
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.0058ac9d
mov esp, ebp
pop ebp
ret
call fcn.005b1fdf
int3
Function at 0x434d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f168d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x675f64]
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 esi, edx
mov edi, dword [ebp + 8]
xor bl, bl
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
call fcn.0040bd10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00432980
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x30]
movzx eax, byte [ebp + 0x10]
lea ecx, [ebp - 0x2c]
xor eax, 1
push edx
mov edx, dword [ebp - 0x38]
shl eax, 8
add eax, 0xf013f
cmp dword [ebp - 0x18], 8
push eax
cmovae ecx, dword [ebp - 0x2c]
push 0
push ecx
push edx
mov dword [ebp - 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x434de7
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x434ead
mov edx, dword [ebp + 0xc]
cmp edx, 4
je 0x434e26
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x434df9
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x434e01
mov esi, dword [esi]
mov eax, dword [edi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x434ea4
mov bl, 1
jmp 0x434ea4
call fcn.005c08df
cmp dword [edi + 0x14], 8
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, edi
mov dword [ebp - 0x38], edi
jb 0x434e40
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
mov dword [ecx], 0
lea ecx, [ebp - 0x34]
push 0xa
push ecx
push eax
call fcn.005c3592
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov edx, eax
cmp ecx, dword [ebp - 0x34]
je 0x434f0b
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0x22
je 0x434f01
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x434e7a
mov esi, dword [esi]
mov eax, dword [edi + 0x10]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x434ee3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434ed9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434f15
push edx
push ecx
call fcn.0058acab
add esp, 8
mov al, bl
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.0058ac9d
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0059b466
push str.invalid_stoi_argument
call fcn.0059b426
call fcn.005b1fdf
int3
Function at 0x435020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov dword [ebx], 0
cmp dword [ecx + 0x14], 8
jb 0x435042
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43507b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret
push edi
push 0x100000
call fcn.00455202
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push 0
push eax
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4350cf
mov eax, dword [ebp - 8]
test eax, eax
je 0x4350cf
mov ecx, dword [ebx]
mov edx, edi
push eax
call fcn.004406c0
add esp, 4
mov dword [ebx], eax
lea eax, [ebp - 8]
push 0
push eax
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4350a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret
Function at 0x435230
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x21], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [0x67d020]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 8], eax
jle 0x4353ae
push ebx
push esi
push edi
nop dword [eax + eax]
mov edx, dword [ecx + eax*4]
mov ecx, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435290
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004059e0
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov edi, dword [ebp - 0x20]
lea esi, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
lea ebx, [ebp - 0x20]
cmovae ecx, edi
cmovae esi, edi
cmovae ebx, edi
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x4352ea
sub ebx, esi
mov edi, eax
movzx eax, word [esi]
push eax
call fcn.005c3533
mov word [ebx + esi], ax
add esp, 4
add esi, 2
cmp esi, edi
jne 0x4352d0
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x20]
cmp ebx, 8
mov ecx, 0x6466b0
cmovae eax, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435326
test dx, dx
je 0x435322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435326
add eax, 4
add ecx, 4
test dx, dx
jne 0x435300
xor eax, eax
jmp 0x43532b
sbb eax, eax
or eax, 1
test eax, eax
je 0x435374
cmp ebx, 8
jb 0x43535f
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x435355
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4353c6
push ecx
push edi
call fcn.0058acab
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 8]
jl 0x435270
jmp 0x4353ab
mov byte [ebp - 0x21], 1
cmp ebx, 8
jb 0x4353a8
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x43539e
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4353c6
push ebx
push edi
call fcn.0058acab
add esp, 8
mov ecx, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret
call fcn.005b1fdf
int3
Function at 0x435a00
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f17ed
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x675f64]
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 edi, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
jb 0x435a54
xor bl, bl
jmp 0x435ac0
push 0x208
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
lea ecx, [ebp - 0x218]
lea esi, [ebp - 0x628]
cmove esi, ecx
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push esi
call dword [0x67d04c]
push esi
call dword [0x67d040]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x435aa6
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.004059e0
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x435af6
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435aec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435b14
push edx
push ecx
call fcn.0058acab
add esp, 8
mov al, bl
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.0058ac9d
mov esp, ebp
pop ebp
ret
call fcn.005b1fdf
int3
Function at 0x4394f0
Capabilities:
Identify system language via api
Parse pe header

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
cmp eax, 0x804
ja 0x439556
je 0x439597
sub eax, 0x404
cmp eax, 0x15
ja case.0x439519.1030
movzx eax, byte [eax + 0x4395d0]
jmp dword [eax*4 + 0x4395a0]
mov eax, 1
ret
mov eax, 2
ret
mov eax, 3
ret
mov eax, 4
ret
mov eax, 5
ret
mov eax, 8
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
cmp eax, 0xc0a
ja 0x43957e
je 0x439578
sub eax, 0x80a
je 0x439578
sub eax, 0xc
je case.0x439519.1046
sub eax, 0x3ee
jmp 0x43958a
mov eax, 7
ret
mov eax, 6
ret
cmp eax, 0x1004
je 0x439597
cmp eax, 0x1404
je case.0x439519.1028
jmp fcn.00409b10
mov eax, 0xd
ret
mov eax, 0xc
ret
Function at 0x43b1f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1bdd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x675f64]
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 edi, edx
cmp dword [ecx + 0x14], 8
mov ebx, dword [ebp + 8]
jb 0x43b228
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b24f
xor al, al
jmp 0x43b360
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x30], eax
call fcn.00455202
add esp, 4
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push ecx
push dword [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
xor eax, eax
mov dword [ebp - 0x2c], 0
push str._v1_reportError
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004059e0
push 7
push str._token
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00405af0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x43b2d0
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
mov ecx, eax
call fcn.00405af0
push 0xb
push str.machineId
lea ecx, [ebp - 0x2c]
call fcn.00405af0
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x43b2f4
mov ecx, dword [ebx]
push dword [ebx + 0x10]
push ecx
mov ecx, eax
call fcn.00405af0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov ecx, esi
cmovae eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push 0x648aa8
push eax
call fcn.0043b160
push esi
mov bl, al
call fcn.004551fd
mov edx, dword [ebp - 0x18]
add esp, 0xc
cmp edx, 8
jb 0x43b35e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43b354
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b37c
push edx
push ecx
call fcn.0058acab
add esp, 8
mov al, bl
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.0058ac9d
mov esp, ebp
pop ebp
ret
call fcn.005b1fdf
int3
Function at 0x43da70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebp + 0x14], 4
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x43dac6
test edi, edi
je 0x43dac6
push 0
push 0
push 0
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43dac6
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
xorps xmm0, xmm0
push 0
movlpd qword [esp + 0x10], xmm0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x43dae5
push dword [ebp + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push ecx
call dword [eax + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x43db00
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x675f64]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x43db74
push 1
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43db7d
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43db7d
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jne 0x43db6f
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x43db7d
mov edi, 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [esi + 0xc], 0
jne 0x43db86
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x43dba9
mov eax, dword [ecx]
push ebx
push edi
push ecx
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x24]
mov eax, 0x80004001
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43dbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0058b830
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x2008]
push ecx
push 0x2000
lea ecx, [ebp - 0x2004]
push ecx
push ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x43dc56
push 0
lea ecx, [ebp - 0x200c]
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43dc7c
cmp esi, 0x8000000a
je 0x43dcad
test esi, esi
je 0x43dc13
cmp esi, 1
je 0x43dcad
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 0x14
mov byte [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43dc92
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 8], eax
mov eax, 0x80004004
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43e810
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x64], 8
lea eax, [esi + 0x50]
push edi
jb 0x43e820
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x90], eax
cmp eax, 0xffffffff
jne 0x43e8a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0xa8]
mov edi, eax
push edi
push str.CreateFileW_failed__u.
push str.DownloadSimpleTask::PrepareStart
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x43e873
movzx edi, di
or edi, 0x80070000
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x18]
mov eax, ecx
or eax, 0x80000000
mov dword [ebx + 0x18], eax
test ecx, ecx
js 0x43e89c
mov dword [esi + 0x70], edi
jne 0x43e89c
mov eax, dword [esi + 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
ret
push 0
push 0
push dword [esi + 0x7c]
push dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43e92f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.SetFilePointerEx_failed__u.
mov ecx, dword [esi + 0xa8]
push str.DownloadSimpleTask::PrepareStart
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
add esp, 0x10
test edi, edi
jle 0x43e8ed
movzx edi, di
or edi, 0x80070000
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x18]
mov eax, ecx
or eax, 0x80000000
mov dword [ebx + 0x18], eax
test ecx, ecx
js 0x43e916
mov dword [esi + 0x70], edi
jne 0x43e916
mov eax, dword [esi + 0x6c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
ret
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43e952
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.SetEndOfFile_failed__u.
jmp 0x43e8cc
pop edi
mov dword [esi + 0x94], 0
mov al, 1
pop esi
pop ebx
ret
Function at 0x445370
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x445485
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x445485
cmp edx, dword [esi + 0x10]
jae 0x445485
cmp dword [esi + 0x14], 1
jne 0x445485
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edx*4]
add edi, dword [ecx]
je 0x445485
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x445485
mov dword [ebx], edx
mov eax, dword [ecx + 0x10]
xor ecx, ecx
mov eax, dword [eax + edx*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x28], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2a]
add eax, dword [esi + 0x40]
mov dword [ebx + 0x30], eax
adc ecx, dword [esi + 0x44]
mov esi, 0x103
mov dword [ebx + 0x34], ecx
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x3c]
push eax
call fcn.005aefd0
mov byte [esi + ebx + 0x3c], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x38], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
add eax, ecx
push esi
push eax
lea eax, [ebx + 0x140]
push eax
call fcn.005aefd0
add esp, 0x18
mov byte [esi + ebx + 0x140], 0
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x446e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
push 0
push ecx
push esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x446e4b
mov esi, dword [edi + 4]
test esi, esi
je 0x446e4b
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
push eax
call dword [esi + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret