joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x445968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00401000
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
call ebp
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov edi, eax
test edi, edi
jl 0x401256
mov esi, 1
jmp 0x401345
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
push 0
lea edx, [esp + 0x38]
push 0
push edx
push 0x400
push edi
push 0
push 0x1300
mov byte [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4012a9
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push eax
push edi
push str.Download_failed.__Error__0x_08lX_n_n_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x44]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4012bc
push edi
lea eax, [esp + 0x3c]
push str.Download_failed.__Error__0x_08lX_n_nNo_message_available.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
push str.Download_file:
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
call fcn.00444fb0
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
push 0x451068
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
push esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
push 0x451064
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x30]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
push esi
call ebp
lea ecx, [esp + 0x30]
xor esi, esi
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401020
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4055d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dl, byte [esi]
test dl, dl
je 0x4055f7
push edi
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x4055de
pop edi
xor edx, edx
pop esi
div dword [ecx + 4]
mov eax, edx
ret 4
Function at 0x408d10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push edi
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x408d1d
mov byte [esp + 0x20], cl
xor edi, edi
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov dl, byte [edi + esi]
and eax, 0xff
xor ebx, ebx
mov bl, byte [eax + ebp]
mov ebp, edx
and ebp, 0xff
add ecx, ebx
add ecx, ebp
and ecx, 0x800000ff
jns 0x408d5f
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
mov bl, byte [ecx + esi]
mov byte [edi + esi], bl
mov byte [ecx + esi], dl
cdq
idiv dword [esp + 0x1c]
inc edi
cmp edi, 0x100
mov byte [esp + 0x20], dl
jl 0x408d2e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40edc0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4462b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push str.HOME
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov esi, eax
test esi, esi
push 8
je 0x40ee1d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x40ee51
push esi
mov ecx, eax
call fcn.00423580
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 1
je 0x40ee51
push 0x460190
mov ecx, eax
call fcn.00423580
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x415d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, 0xd
push ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], esi
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ebx, eax
lea eax, [esp + 0x50]
push eax
push str.BBox
mov ecx, ebx
call fcn.00409ad0
cmp dword [esp + 0x50], 6
je 0x415e06
lea ecx, [esp + 0x50]
call fcn.0042a5e0
push str.Bad_form_bounding_box
mov ecx, esi
call fcn.00411850
push eax
call fcn.0042a9c0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
xor esi, esi
lea edi, [esp + 0x88]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x5c]
push esi
call fcn.00401420
cmp dword [esp + 0xc], 1
jne 0x415e2b
fild dword [esp + 0x14]
jmp 0x415e2f
fld qword [esp + 0x14]
fstp qword [edi]
lea ecx, [esp + 0xc]
call fcn.0042a5e0
inc esi
add edi, 8
cmp esi, 4
jl 0x415e0f
lea ecx, [esp + 0x50]
call fcn.0042a5e0
lea edx, [esp + 0x70]
mov ecx, ebx
push edx
push str.Matrix
call fcn.00409ad0
cmp dword [esp + 0x70], 6
jne 0x415ea0
xor esi, esi
lea edi, [esp + 0x1c]
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00401420
cmp dword [esp + 0xc], 1
jne 0x415e86
fild dword [esp + 0x14]
jmp 0x415e8a
fld qword [esp + 0x14]
fstp qword [edi]
lea ecx, [esp + 0xc]
call fcn.0042a5e0
inc esi
add edi, 8
cmp esi, 6
jl 0x415e6a
jmp 0x415f00
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x3ff00000
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3ff00000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x70]
call fcn.0042a5e0
fld qword [ebp + 0x1c]
fsub qword [ebp + 0xc]
fld qword [esp + 0x98]
fsub qword [esp + 0x88]
lea ecx, [esp + 0x60]
fdivp st(1)
push ecx
push str.Resources
mov ecx, ebx
fabs
fld qword [ebp + 0x24]
fsub qword [ebp + 0x14]
fld qword [esp + 0xa8]
fsub qword [esp + 0x98]
fdivp st(1)
fabs
fst qword [esp + 0x88]
fld st(1)
fmul qword [esp + 0x24]
fstp qword [esp + 0x24]
fld st(0)
fmul qword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld st(1)
fmul qword [esp + 0x34]
fstp qword [esp + 0x34]
fmul qword [esp + 0x3c]
fstp qword [esp + 0x3c]
fmul qword [esp + 0x44]
fld qword [esp + 0x88]
fmul qword [esp + 0x4c]
fstp qword [esp + 0x4c]
fadd qword [ebp + 0xc]
fstp qword [esp + 0x44]
fld qword [esp + 0x4c]
fadd qword [ebp + 0x14]
fstp qword [esp + 0x4c]
call fcn.00409ad0
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
xor eax, eax
cmp ecx, 7
setne al
dec eax
lea edx, [esp + 0x88]
lea ecx, [esp + 0x1c]
and eax, edi
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x54]
push eax
push edx
call fcn.00415ff0
lea ecx, [esp + 0x60]
call fcn.0042a5e0
lea ecx, [esp + 0x50]
call fcn.0042a5e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x417360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
push esi
push 0x461e74
mov eax, dword [ebp + 0x38]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x41739c
mov ecx, dword [ebp + 0x38]
mov edx, dword [ecx + 4]
push edx
push str.External_font_file__s_vanished
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, dword [esp + 0x24]
push 0
push 0
push esi
mov dword [edi], eax
call ebx
mov eax, dword [edi]
push eax
call fcn.00422840
mov ecx, dword [edi]
push esi
mov ebx, eax
push ecx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [edi]
add esp, 0x30
cmp eax, ecx
je 0x4173f2
mov edx, dword [ebp + 0x38]
push edx
push str.Error_reading_external_font_file__s
push 0xffffffffffffffff
call fcn.0042a9c0
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x41f920
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
push edi
mov edx, dword [esi + 4]
mov esi, dword [esi]
test esi, esi
mov edi, ecx
jle 0x41f94c
push ebx
mov cl, byte [edx]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
dec esi
mov eax, ecx
jne 0x41f934
pop ebx
xor edx, edx
div dword [edi + 4]
pop edi
pop esi
mov eax, edx
ret 4
Function at 0x422840
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x422849
ret
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
test eax, eax
jne 0x422848
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Out_of_memory_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x422880
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jne 0x42289d
mov eax, dword [esp + 4]
test eax, eax
je 0x42289a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 4]
push eax
test ecx, ecx
je 0x4228b2
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
jmp 0x4228bb
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
test eax, eax
jne 0x42289c
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Out_of_memory_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
Function at 0x423260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446c4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x449ecc
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4232f0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4232b7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4232e1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4232f6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4232f6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4498e0
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4498cc
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x424c70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x446e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x424d1a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x424d01
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x424d01
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x424d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x424d92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x424fa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x425094
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00424d30
test eax, eax
jne 0x425094
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00424d30
test eax, eax
jne 0x425094
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x425065
lea eax, [esp + 0x10]
push 0x4679e8
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x425065
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x425068
mov byte [esi], 0
push 0x45f804
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x427db0
Capabilities:
Change the wallpaper

Disassembly:
sub esp, 0x16c
mov eax, dword [esp + 0x170]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov dword [esi + 0x18], eax
call edi
push 0xe
mov dword [esi + 0x3c], eax
call edi
push 0xf
mov dword [esi + 0x40], eax
call edi
push 4
mov dword [esi + 0x44], eax
call edi
push 0xd
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
push 0x11
mov dword [esi + 0x54], eax
call edi
push 0xf
mov dword [esi + 0x58], eax
call edi
push 0x14
mov dword [esi + 0x5c], eax
call edi
push 0x10
mov dword [esi + 0x60], eax
call edi
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
xor ebx, ebx
push 3
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x18]
push ecx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x50]
push ebx
push 0xa2
push edx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x24], 0x14
mov dword [esi + 0x28], 0x14
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x20], 0x808080
mov dword [esp + 0x28], 0xc0c0c0
mov dword [esp + 0x30], 0xffffff
mov dword [esp + 0x34], eax
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
push ebx
push 1
push 5
push 0x13
push 0x13
mov edi, eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x30], eax
push ecx
push edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x55
lea edx, [esp + 0x24]
push ebx
xor eax, eax
lea edi, [esp + 0x28]
push edx
push ebx
rep stosd dword es:[edi], eax
push 0x29
mov dword [esp + 0x34], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
add esp, 0x16c
ret 4
Function at 0x427f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and ebx, 0xffff
mov eax, dword [esi + 0x18]
push 0xf1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x427f59
pop edi
pop esi
pop ebx
ret 4
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x427f6e
pop edi
pop esi
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x427f81
pop edi
pop esi
pop ebx
ret 4
cmp word [edi], 1
je 0x427f8f
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
xor edx, edx
xor eax, eax
mov dx, word [edi + 2]
xor ecx, ecx
mov dword [esi + 0x24], edx
mov ax, word [edi + 4]
mov dword [esi + 0x28], eax
mov cx, word [edi + 6]
push 0
push ecx
push 5
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x427fc1
pop edi
pop esi
pop ebx
ret 4
mov ecx, dword [esi + 0x44]
push ebp
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov edx, dword [esi + 0x18]
push ebx
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ebx, eax
mov eax, dword [esi + 0x2c]
push 0xc0c0c0
push ebx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ebp, ebp
xor ecx, ecx
cmp word [edi + 6], bp
lea ebx, [edi + 8]
jbe 0x428028
mov ax, word [ebx]
test ax, ax
je 0x42801a
mov edx, ecx
inc ecx
mov dword [esp + 0x14], ecx
push eax
push edx
mov ecx, esi
call fcn.00428040
mov ecx, dword [esp + 0x14]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x427ffe
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 4

Function at 0x4295d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x429632
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x429640
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42972b
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.004295d0
add esp, 0xc
test eax, eax
jne 0x42972b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.004295d0
add esp, 0xc
test eax, eax
jne 0x42972b
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x429705
lea edx, [esp + 0x10]
push 0x4679e8
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x429705
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x429708
mov byte [esi], 0
push 0x45f804
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x4297e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x42983c
mov edi, 0x467088
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.pdf2word.DAT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x467a38
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4298a3
mov ecx, dword [esp + 0x114]
push esi
push 0x400
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x104
ret