joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432eee
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x9c]
push esi
push eax
call fcn.0045b9c0
add esp, 0xc
push 0x58
lea eax, [ebp - 0x5c]
push esi
push eax
mov byte [ebp - 0x9c], 0x80
call fcn.0045b9c0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
call fcn.00424919
push dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004327d0
pop esi
leave
ret

Function at 0x433055
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [esp + 8], 0
jne 0x433060
xor eax, eax
jmp 0x433085
lea ecx, [eax + 0x1004]
push ecx
push eax
add eax, 0x1000
push eax
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x433462
Capabilities:
Get hostname

Disassembly:
mov eax, 0x4921e0
call fcn.00491844
sub esp, 0x134
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x13f]
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push eax
call fcn.0045b6e0
pop ecx
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00432eee
add esp, 0xc
mov ecx, 0x4b9e00
call fcn.00405fe2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
movzx eax, byte [ebp + ebx - 0x34]
push eax
push str._02x
mov ecx, esi
call fcn.0042b7ae
inc ebx
cmp ebx, 0x10
pop ecx
pop ecx
jl 0x4334f8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x433523
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, 0x492379
call fcn.00491844
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21e]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov word [ebp - 0x220], bx
call fcn.0045b9c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, 0x4b9e00
call fcn.00405fe2
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
mov eax, esi
push str._010lu
mov dword [ebp - 0x18], 1
call fcn.0041fde1
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x433b4d
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4948d8
call fcn.00491844
sub esp, 0x2c
mov eax, dword [0x4b9e00]
push ebx
push esi
mov ecx, 0x4b9e00
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], str.wq.cloud.duba.net
mov dword [ebp - 0x18], str.221.228.204.36:80
mov dword [ebp - 0x14], str.122.193.207.36:80
mov dword [ebp - 0x20], 0xf
call fcn.0040a52c
mov byte [ebp - 4], 1
xor esi, esi
push str.http:__
lea eax, [ebp - 0x10]
push eax
call fcn.0041ffb0
push dword [ebp + esi*4 - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0042b78b
push 0x2f
lea eax, [ebp - 0x10]
call fcn.0042b70f
push str.cityinfo
lea eax, [ebp - 0x10]
push eax
call fcn.0042b78b
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
push 0x1c
push dword [ebp + 8]
push ebx
call fcn.0042d7fe
add esp, 0x10
cmp dword [ebp - 0x24], 0
jne 0x433bf8
inc esi
cmp esi, 3
jb 0x433b9f
or esi, 0xffffffff
jmp 0x433c12
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x433c04
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041fb55
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.0040a4e1
lea eax, [ebx - 0x10]
call fcn.00405ffd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43430a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.0046e500
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x120]
push str..PhysicalDrive_d
push eax
call fcn.004346de
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4344a9
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0045b9c0
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0045b9c0
add esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x37d0]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43449a
mov eax, dword [ebp - 0x37c4]
push ebx
lea esi, [ebp - 0xcd8]
lea ecx, [ebp - 0x37d0]
call fcn.004341c6
mov eax, dword [ebp - 0x37c0]
push ebx
lea esi, [ebp - 0x8f0]
lea ecx, [ebp - 0x37d0]
call fcn.004341c6
mov eax, dword [ebp - 0x37bc]
push ebx
lea esi, [ebp - 0x10c0]
lea ecx, [ebp - 0x37d0]
call fcn.004341c6
mov eax, dword [ebp - 0x37b8]
push 1
lea esi, [ebp - 0x508]
lea ecx, [ebp - 0x37d0]
call fcn.004341c6
add esp, 0x10
cmp byte [0x4bb088], bl
jne 0x43446a
movsx eax, byte [ebp - 0x508]
push eax
call fcn.0045e1db
test eax, eax
pop ecx
jne 0x43443e
movsx eax, byte [ebp - 0x4f5]
push eax
call fcn.0045e1db
test eax, eax
pop ecx
je 0x43446a
lea eax, [ebp - 0x508]
push eax
push 0x4bb088
call fcn.004346f9
lea eax, [ebp - 0x8f0]
push eax
push 0x4bb488
call fcn.004346f9
add esp, 0x10
mov dword [ebp - 0x10], 1
push edi
lea eax, [ebp - 0x37d0]
push ebx
push eax
call fcn.0045b9c0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x37d0]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x4344a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x434327
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4381c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4382c0
cmp dword [ebp + 0xc], edi
je 0x4382c0
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
xor ebx, ebx
push edi
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4382ad
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp + 8], edi
mov word [ebp - 0x210], di
call fcn.0045b9c0
mov eax, dword [esi + 0x10]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4382ad
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 8]
jne 0x4382ad
cmp eax, 1
je 0x43825d
cmp eax, 2
jne 0x438287
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0041fa93
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], edi
jne 0x43827f
add eax, 0xfffffff0
call fcn.00405ffd
jmp 0x4382ad
add eax, 0xfffffff0
call fcn.00405ffd
cmp dword [esi + 0x18], 4
jne 0x4382aa
push 4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], edi
call fcn.0045a430
add esp, 0xc
cmp dword [ebp + 0x10], edi
jbe 0x4382ad
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
je 0x4382bb
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x4382c2
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x438670
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4ac688
call fcn.004916d4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x43871e
cmp dword [ebp + 0xc], eax
je 0x43871e
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x43871e
mov ebx, 0x103
cmp esi, ebx
ja 0x43871e
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045832c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x43871a
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0045b9c0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x43871a
cmp eax, ebx
ja 0x43871a
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0045bc42
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x43871a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x43872d
push dword [ebp - 0x1c]
call fcn.0045b76b
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0049170f
ret 8
Function at 0x4389af
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49517e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call fcn.0043d218
mov dword [esp + 0x1c], eax
call fcn.0043d16f
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
call fcn.004309e5
lea edi, [esp + 0x40]
mov dword [esp + 0x94], esi
call fcn.00420112
mov byte [esp + 0x94], 1
push dword [0x4bb890]
mov esi, 0x4a2470
push esi
lea eax, [esp + 0x78]
call fcn.0041fde1
push dword [0x4bb894]
lea eax, [esp + 0x80]
push esi
call fcn.0041fde1
add esp, 0x10
push dword [0x4bb898]
lea eax, [esp + 0x7c]
push eax
call fcn.0041ffb0
push dword [0x4bb89c]
lea eax, [esp + 0x84]
push eax
call fcn.0041ffb0
call fcn.0043d2c1
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.0043e709
pop ecx
mov byte [esp + 0x94], 2
push dword [eax]
lea eax, [esp + 0x80]
push eax
call fcn.0041ffb0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0x94], 3
mov ecx, dword [ebx + 0xc]
xor esi, esi
cmp ecx, esi
je 0x438b03
mov eax, dword [esp + 0xc]
xor edx, edx
div ecx
push esi
push 0x15180
push dword [esp + 0x34]
push dword [esp + 0x34]
mov edi, edx
imul edi, dword [ebx + 0x10]
add edi, dword [ebx + 8]
call fcn.0046dc70
cmp eax, edi
jge 0x438afb
mov dword [esp + 0x10], 0x165
jmp 0x438b03
mov dword [esp + 0x14], 1
push esi
push dword [esp + 0x10]
lea ecx, [esp + 0x48]
push dword [esp + 0x18]
push 1
push 0x1e
call fcn.00420333
cmp dword [esp + 0x14], esi
je 0x438b27
cmp dword [ebx + 0x14], esi
je 0x438b27
xor esi, esi
inc esi
lea ecx, [esp + 0x40]
call fcn.00420183
mov ecx, dword [esp + 0x8c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43902e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49517e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
and dword [esp + 4], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 1
call fcn.0043d218
mov dword [esp + 0x1c], eax
call fcn.0043d16f
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
call fcn.004309e5
and dword [esp + 0x94], 0
lea edi, [esp + 0x40]
call fcn.00420112
mov byte [esp + 0x94], 1
push dword [0x4bb890]
mov esi, 0x4a2470
push esi
lea eax, [esp + 0x78]
call fcn.0041fde1
push dword [0x4bb894]
lea eax, [esp + 0x80]
push esi
call fcn.0041fde1
add esp, 0x10
push dword [0x4bb898]
lea eax, [esp + 0x7c]
push eax
call fcn.0041ffb0
push dword [0x4bb89c]
lea eax, [esp + 0x84]
push eax
call fcn.0041ffb0
call fcn.0043d2c1
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.0043e709
pop ecx
mov byte [esp + 0x94], 2
push dword [eax]
lea eax, [esp + 0x80]
push eax
call fcn.0041ffb0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
xor esi, esi
push esi
push 0x15180
push edx
push eax
mov byte [esp + 0xa4], 3
call fcn.0046dc70
cmp eax, dword [ebx + 0xc]
jg 0x43916a
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 8]
jb 0x43916a
mov dword [esp + 0x10], 0x167
jmp 0x43916e
mov dword [esp + 0x14], esi
push esi
push dword [esp + 0x10]
lea ecx, [esp + 0x48]
push dword [esp + 0x18]
push 1
push 0x1e
call fcn.00420333
lea ecx, [esp + 0x40]
call fcn.00420183
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a925
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x43a947
xor eax, eax
inc eax
jmp 0x43a9b1
cmp dword [edi], esi
je 0x43a950
xor ebx, ebx
inc ebx
jmp 0x43a995
lea eax, [ebp - 8]
push eax
push 0x4a4680
push 1
push esi
push 0x4a4670
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x43a96f
push 2
jmp 0x43a994
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x43a984
push 3
jmp 0x43a994
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x43a995
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x43a9a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x43a9af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x43b037
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push str.DownloadControl____Start
mov esi, 0x4bb8e8
mov edi, eax
call fcn.0043f4ec
pop ecx
mov eax, edi
call fcn.0043ade4
test eax, eax
jne 0x43b072
push str.DownloadControl_curlExecuter_Invalid
call fcn.0043f4ec
pop ecx
mov eax, pe_nt_image_headers32
jmp 0x43b1bc
push dword [ebp + 8]
push edi
call fcn.0043af0b
mov ebx, eax
test ebx, ebx
je 0x43b093
push str.DownloadControl_GetDownloadFileLength_Failure
call fcn.0043f4ec
pop ecx
mov eax, ebx
jmp 0x43b1bc
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x43b0aa
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x43b0c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push dword [edi + 4]
call fcn.0043bd96
test eax, eax
pop ecx
je 0x43b0d8
push dword [edi + 4]
push ebx
call fcn.0043ac7d
jmp 0x43b0dd
mov eax, 0x80004005
test eax, eax
jge 0x43b0f6
push str.DownloadControl_CreateFile_Failure
call fcn.0043f4ec
pop ecx
mov eax, 0x102
jmp 0x43b1bc
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x103
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
mov ebx, edi
call fcn.0043b1c3
push dword [ebp - 4]
mov ebx, eax
push dword [edi + 0xc]
push dword [ebp - 8]
push ebx
push str.DownloadControl____ExE_CurlCode___d__Count___d__CurrentSize___d__ResCode___d
call fcn.0043f4ec
add esp, 0x14
test ebx, ebx
jne 0x43b142
cmp dword [ebp - 4], 0xce
je 0x43b160
cmp dword [ebp - 4], 0xc8
je 0x43b160
cmp ebx, 0x1c
je 0x43b152
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x25d
jle 0x43b108
jmp 0x43b164
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.0043ad12
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0043ad55
mov eax, dword [esi]
test eax, eax
je 0x43b18d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x43b1a1
test ebx, ebx
je 0x43b19c
mov dword [eax], ebx
jmp 0x43b1a1
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
mov esi, 0x4bb8e8
push dword [ebp - 0xc]
push str.DownloadControl____End_HRESULT___d__Count___d
call fcn.0043f4ec
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43ba21
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x43baa1
mov eax, dword [esi]
push ebx
mov dword [ebp - 4], edi
mov ebx, dword [eax - 0xc]
push edi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.004248a1
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp eax, edi
jne 0x43ba78
xor eax, eax
jmp 0x43ba7f
push eax
call fcn.0045b6e0
pop ecx
mov edx, esi
call fcn.00408576
cmp dword [ebp - 0x10], edi
je 0x43ba97
cmp dword [ebp - 4], ebx
jne 0x43ba97
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x43bb9e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4941e9
call fcn.00491844
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0045b9c0
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4b9e00]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4b9e00
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x4a4818
call fcn.0041fde1
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x40], si
mov esi, dword [ebp - 0x10]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43bc44
cmp dword [ebp + 0x10], ebx
je 0x43bc41
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43bc57
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x43bc64
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.00405ffd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43bd96
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x493fdb
call fcn.00491844
sub esp, 0xc
mov eax, dword [0x4b9e00]
push ebx
push esi
push edi
mov ecx, 0x4b9e00
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0041fa93
push 0x5c
push 3
pop ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00405f5c
mov esi, eax
inc esi
je 0x43be36
mov ecx, esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.0041fca6
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0041feaa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43be25
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x43be39
mov ecx, esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00405f5c
inc eax
mov esi, eax
jne 0x43bddf
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ffd
lea eax, [edi - 0x10]
call fcn.00405ffd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43c194
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x492333
call fcn.00491844
sub esp, 0x68
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x43c1b3
xor eax, eax
jmp 0x43c2f6
mov eax, dword [0x4b9e00]
push esi
mov ecx, 0x4b9e00
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x4a4818
call fcn.0041fde1
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.00430cfd
test eax, eax
jne 0x43c2d9
push 0x40
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0045b9c0
and dword [ebp - 0x30], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x44], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], 0x4a482c
mov dword [ebp - 0x20], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x43c283
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x43c283
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x43c280
mov dword [ebp - 0x20], 0x430
jmp 0x43c283
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x30], ebx
mov edi, eax
je 0x43c2b2
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x43c2c0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x43c2cb
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x43c2d9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
pop esi
je 0x43c2e9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret