joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e450
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [eax + eax + 0x50]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
push ecx
push str.CustomURLProtocol::Failed_with_error__d:__s
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalSize]
shr eax, 1
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040e250
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x58
call fcn.00409b50
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov esp, ebp
pop ebp
ret
Function at 0x40fbe0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fce1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40fc23
xor eax, eax
jmp 0x40fce3
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40fc76
jmp 0x40fccc
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x40fc8c
jmp 0x40fccc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x40fc9c
jmp 0x40fccc
mov dword [ebp - 0x1c], 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40fcc1
jmp 0x40fccc
mov dword [ebp - 0x14], 1
xor eax, eax
jne 0x40fc4f
cmp dword [ebp - 0xc], 0xffffffff
je 0x40fcdc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x40fce3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40ff40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x3c], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00437410
add esp, 0xc
mov dword [ebp - 0x38], 0x400
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40ff75
mov edx, dword [ebp - 0x38]
or edx, 0x40
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 8]
call fcn.00409b80
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
call fcn.00409b80
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40ffc2
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40ffc2
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x40], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x40ffd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x860], 0x44
mov dword [ebp - 0x85c], 0
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.00437410
add esp, 0xc
mov dword [ebp - 0x818], 0
xor ecx, ecx
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x80c], ecx
xor edx, edx
mov word [ebp - 0x808], dx
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.00437410
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00409b80
push eax
mov ecx, dword [ebp + 8]
call fcn.00409b80
push eax
push str.__s___s
push 0x400
lea ecx, [ebp - 0x808]
push ecx
call fcn.00430635
add esp, 0x14
mov dword [ebp - 0x834], 1
mov dx, word [ebp + 0x14]
mov word [ebp - 0x830], dx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
call fcn.00414ae0
test eax, eax
jbe 0x4100a5
mov ecx, dword [ebp + 0x18]
call fcn.00409b80
mov dword [ebp - 4], eax
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x860]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x410122
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x4100ed
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp - 0x818], 0
je 0x410103
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x814], 0
je 0x410119
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
jmp 0x41013b
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, byte [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040ff40
add esp, 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret

Function at 0x410150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e9b3
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x238]
push eax
call fcn.00414ca0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00409aa0
mov edx, dword [ebp - 0x450]
or edx, 1
mov dword [ebp - 0x450], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00409b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00409b30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x411520
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00437410
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str._s_s.lnk
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00430635
add esp, 0x14
lea eax, [ebp - 0x31c]
push eax
push 0x4804bc
push 1
push 0
push 0x48053c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov cl, byte [0x48ac1f]
mov byte [ebp - 0x318], cl
push 0x103
push 0
lea edx, [ebp - 0x317]
push edx
call fcn.00437410
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
push 0x48054c
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x31c]
push eax
mov ecx, dword [edx]
call ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x31c]
push edx
mov eax, dword [ecx + 0x50]
call eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x31c]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x31c]
push eax
mov ecx, dword [edx + 0x24]
call ecx
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x31c]
push edx
mov eax, dword [ecx + 0x44]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x31c]
push ecx
mov edx, dword [eax + 0x2c]
call edx
push 0
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x320]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x320]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x31c]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x411700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ef28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48dd14
lea ecx, [ebp - 0x30]
call fcn.004086f0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.004099f0
push 0x48dd18
lea ecx, [ebp - 0x30]
call fcn.004099f0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x41176c
push str._5386
lea ecx, [ebp - 0x30]
call fcn.004099f0
jmp 0x411779
push str._5387
lea ecx, [ebp - 0x30]
call fcn.004099f0
push 0
push 0x48ac35
lea ecx, [ebp - 0x30]
call fcn.00409a50
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0x48dd2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00408830
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x4117d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f958
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004116e0
movzx eax, al
test eax, eax
je 0x411929
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x84], esp
push str.pin.exe
call fcn.0040ce20
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00410150
add esp, 0x20
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x80]
push edx
call fcn.004149d0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040fcf0
add esp, 0x20
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xa4]
call fcn.00409a50
push eax
push 0x48dd44
push 0x65
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call fcn.0040fbe0
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.00408830
lea ecx, [ebp - 0x80]
call fcn.00409b80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411918
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea eax, [ebp - 0x80]
push eax
call fcn.004149d0
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040fcf0
add esp, 0x20
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb0]
call fcn.00409a50
push eax
push 1
call fcn.00411700
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00408830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409b30
jmp 0x41198d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x90], esp
mov eax, dword [ebp + 8]
push eax
call fcn.004086f0
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040fe10
add esp, 0x20
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xbc]
call fcn.00409b80
push eax
push 1
call fcn.004114f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00409b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x41a960
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x41a970
xor eax, eax
jmp 0x41ab0d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x41aace
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x48cd68]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x48cd68]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x48cd68]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x48cd68]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x48cd68]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x48cd68]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x48cd68]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x48cd68]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x41a979
cmp dword [ebp + 0x10], 0
je 0x41ab07
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x48cd68]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x41aad4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x41ab10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x48cd68]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x48cd68]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x41bad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x41bb1f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41bb15
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x41bb79
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x41bb3f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043a470
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x41d3ab
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x41d3b5
mov eax, 0x1000000
jmp 0x41d4cb
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x41d3de
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x41d44f
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x41d44f
mov ecx, dword [ebp - 0x18]
add ecx, 0x242
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x2e], 0
jne 0x41d42e
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x48d21c]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x41d483
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x41d483
mov eax, 0x2000000
jmp 0x41d4cb
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041b7b0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41d4a9
mov eax, dword [ebp - 0xc]
jmp 0x41d4cb
mov eax, dword [ebp - 4]
push eax
call fcn.0041be80
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x41d4c9
mov eax, 0x200
jmp 0x41d4cb
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f340
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
push str._optputtype
lea ecx, [ebp - 0x70]
call fcn.0040ce20
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x4c], eax
push 0x1388
push 0x1388
push 0x1388
push 0x1388
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x51], 0
cmp dword [ebp - 0x4c], 0
je 0x41f4bf
push 0
mov ecx, dword [ebp - 0x80]
movzx edx, word [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x80]
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x78], esp
push eax
call fcn.00408630
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00422650
add esp, 0x20
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov ecx, dword [ebp - 0x8c]
call fcn.00409b80
push eax
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x2c]
call fcn.00409b30
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00421ea0
add esp, 0xc
mov dword [ebp - 0x94], eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x94]
call fcn.00409b80
push eax
push 0x48b660
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x48]
call fcn.00409b30
cmp dword [ebp - 0x50], 0
je 0x41f4bf
push 0
mov ecx, dword [ebp + 8]
call fcn.00414ae0
push eax
mov ecx, dword [ebp + 8]
call fcn.00414ae0
push eax
mov ecx, dword [ebp + 8]
call fcn.00409a50
push eax
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne cl
mov byte [ebp - 0x51], cl
cmp dword [ebp - 0x50], 0
je 0x41f4cf
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x74], 0
je 0x41f4df
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x4c], 0
je 0x41f4ef
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dl, byte [ebp - 0x51]
mov byte [ebp - 0x79], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00409b30
mov al, byte [ebp - 0x79]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 8