joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f067d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x673f64]
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.0040bd00
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00432950
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 0x434c57
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 0x434c57
xor bl, bl
jmp 0x434c9d
cmp dword [esi + 0x14], 8
mov bl, 1
mov ecx, esi
jb 0x434c63
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x434c6b
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 0x434c9d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x434cd3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434cc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434cf1
push edx
push ecx
call fcn.0058a7f7
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.0058a7e9
mov esp, ebp
pop ebp
ret
call fcn.005b1b1f
int3
Function at 0x434d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f06bd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x673f64]
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.0040bd00
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00432950
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 0x434db7
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 0x434e7d
mov edx, dword [ebp + 0xc]
cmp edx, 4
je 0x434df6
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x434dc9
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x434dd1
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 0x434e74
mov bl, 1
jmp 0x434e74
call fcn.005c0400
cmp dword [edi + 0x14], 8
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, edi
mov dword [ebp - 0x38], edi
jb 0x434e10
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.005c30c2
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov edx, eax
cmp ecx, dword [ebp - 0x34]
je 0x434edb
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0x22
je 0x434ed1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x434e4a
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 0x434eb3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434ea9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434ee5
push edx
push ecx
call fcn.0058a7f7
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.0058a7e9
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0059afa6
push str.invalid_stoi_argument
call fcn.0059af66
call fcn.005b1b1f
int3
Function at 0x434ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x673f64]
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 0x435012
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 0x43504b
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.0058a7e9
mov esp, ebp
pop ebp
ret
push edi
push 0x100000
call fcn.00454d42
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 0x43509f
mov eax, dword [ebp - 8]
test eax, eax
je 0x43509f
mov ecx, dword [ebx]
mov edx, edi
push eax
call fcn.00440660
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 0x435072
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.0058a7e9
mov esp, ebp
pop ebp
ret
Function at 0x435200
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x673f64]
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 [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 8], eax
jle 0x43537e
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 0x435260
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004059d0
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 0x4352ba
sub ebx, esi
mov edi, eax
movzx eax, word [esi]
push eax
call fcn.005c3063
mov word [ebx + esi], ax
add esp, 4
add esi, 2
cmp esi, edi
jne 0x4352a0
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x20]
cmp ebx, 8
mov ecx, 0x6452c0
cmovae eax, edi
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4352f6
test dx, dx
je 0x4352f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4352f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4352d0
xor eax, eax
jmp 0x4352fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x435344
cmp ebx, 8
jb 0x43532f
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x435325
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435396
push ecx
push edi
call fcn.0058a7f7
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 0x435240
jmp 0x43537b
mov byte [ebp - 0x21], 1
cmp ebx, 8
jb 0x435378
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x43536e
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435396
push ebx
push edi
call fcn.0058a7f7
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.0058a7e9
mov esp, ebp
pop ebp
ret
call fcn.005b1b1f
int3
Function at 0x4359d0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f081d
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x673f64]
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 0x435a24
xor bl, bl
jmp 0x435a90
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 [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
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 0x435a76
sub edx, ecx
mov ecx, edi
sar edx, 1
push edx
push esi
call fcn.004059d0
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x435ac6
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435abc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435ae4
push edx
push ecx
call fcn.0058a7f7
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.0058a7e9
mov esp, ebp
pop ebp
ret
call fcn.005b1b1f
int3
Function at 0x4394c0
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 0x439526
je 0x439567
sub eax, 0x404
cmp eax, 0x15
ja case.0x4394e9.1030
movzx eax, byte [eax + 0x4395a0]
jmp dword [eax*4 + 0x439570]
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 0x43954e
je 0x439548
sub eax, 0x80a
je 0x439548
sub eax, 0xc
je case.0x4394e9.1046
sub eax, 0x3ee
jmp 0x43955a
mov eax, 7
ret
mov eax, 6
ret
cmp eax, 0x1004
je 0x439567
cmp eax, 0x1404
je case.0x4394e9.1028
jmp fcn.00409b00
mov eax, 0xd
ret
mov eax, 0xc
ret
Function at 0x43b1c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0c0d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x673f64]
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 0x43b1f8
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 0x43b21f
xor al, al
jmp 0x43b330
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x30], eax
call fcn.00454d42
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.004059d0
push 7
push str._token
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00405ae0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x43b2a0
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
mov ecx, eax
call fcn.00405ae0
push 0xb
push str.machineId
lea ecx, [ebp - 0x2c]
call fcn.00405ae0
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x43b2c4
mov ecx, dword [ebx]
push dword [ebx + 0x10]
push ecx
mov ecx, eax
call fcn.00405ae0
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 0x647690
push eax
call fcn.0043b130
push esi
mov bl, al
call fcn.00454d3d
mov edx, dword [ebp - 0x18]
add esp, 0xc
cmp edx, 8
jb 0x43b32e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43b324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b34c
push edx
push ecx
call fcn.0058a7f7
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.0058a7e9
mov esp, ebp
pop ebp
ret
call fcn.005b1b1f
int3
Function at 0x43da40
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 0x43da96
test edi, edi
je 0x43da96
push 0
push 0
push 0
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43da96
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 0x43dab5
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 0x43dad0
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x673f64]
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 0x43db44
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 0x43db4d
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43db4d
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jne 0x43db3f
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x43db4d
mov edi, 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [esi + 0xc], 0
jne 0x43db56
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x43db79
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.0058a7e9
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.0058a7e9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43dbc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0058b370
mov eax, dword [0x673f64]
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 0x43dc26
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 0x43dc4c
cmp esi, 0x8000000a
je 0x43dc7d
test esi, esi
je 0x43dbe3
cmp esi, 1
je 0x43dc7d
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 0x14
mov byte [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43dc62
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.0058a7e9
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.0058a7e9
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43dcb0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0e74
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x43dd1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43de0c
movzx eax, ax
or eax, 0x80070000
jmp 0x43de0c
push 0x18
call fcn.00454d05
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x43dd6e
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi], vtable.BSCHolder.0
mov dword [esi + 4], 1
mov dword [esi + 8], 0x8000000a
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
test edi, edi
je 0x43dd70
mov eax, dword [edi]
push edi
call dword [eax + 4]
jmp 0x43dd70
xor esi, esi
push esi
push 0
push dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.urlmon.dll_URLOpenPullStreamW]
mov dword [ebp - 0x30], eax
test eax, eax
js 0x43ddfa
cmp dword [esi + 8], 0x8000000a
jne 0x43dddd
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x43ddd4
cmp eax, 0xffffffff
je 0x43ddc9
lea eax, [ebp - 0x2c]
push eax
call edi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esi + 8], 0x8000000a
je 0x43dda0
jmp 0x43dddd
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esi + 8]
cmp dword [esi + 4], 1
mov dword [ebp - 0x30], eax
je 0x43ddfa
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 1
call edi
cmp dword [esi + 4], 1
jne 0x43ddf0
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 4
Function at 0x43e7e0
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x64], 8
lea eax, [esi + 0x50]
push edi
jb 0x43e7f0
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 0x43e879
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 0x43e843
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 0x43e86c
mov dword [esi + 0x70], edi
jne 0x43e86c
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 0x43e8ff
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 0x43e8bd
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 0x43e8e6
mov dword [esi + 0x70], edi
jne 0x43e8e6
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 0x43e922
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.SetEndOfFile_failed__u.
jmp 0x43e89c
pop edi
mov dword [esi + 0x94], 0
mov al, 1
pop esi
pop ebx
ret