joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40130b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401342
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40133e
jmp 0x401330
cmp esi, eax
jae 0x401342
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401330
cmp esi, eax
jb 0x401349
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53acc8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x58dd10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
lea ecx, [esi + 0x30]
push eax
mov dword [ebp - 4], 0
call fcn.00402d70
mov edx, dword [esi + 0x34]
push 0
lea ecx, [esi + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40204b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x405340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53b07e
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x58dd10]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x58dd10]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
xor edi, edi
push edi
lea ebx, [esi + 0x140]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetUpdateRect]
push esi
lea ecx, [esp + 0x40]
call fcn.00418053
mov dword [esp + 0xa8], edi
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0041744c
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x18]
call fcn.00417790
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.00417e9b
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CBitmap.0
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.0041816f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00418200
lea edx, [esp + 0x2c]
lea edi, [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.00405510
mov esi, dword [esi + 0x144]
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x1c]
sub eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push 0xcc0020
push esi
push edx
push edi
push eax
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x58]
push esi
push edx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40548d
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.00418200
lea ecx, [esp + 0x18]
call fcn.00417f06
mov byte [esp + 0xa8], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00401140
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], 0
call fcn.00417f1c
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004180a7
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0051651d
mov esp, ebp
pop ebp
ret
Function at 0x407560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ab68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58dd10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
push 0x568db8
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4075b5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x568db8
cmp eax, 2
jne 0x407672
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp + 8]
push ecx
push edi
push eax
mov dword [ebp - 0x20], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 8], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov esi, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x4075fe
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x407616
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
fild dword [ebp - 0x10]
test ecx, ecx
jns 0x407626
fadd dword [0x56c67c]
fstp dword [ebp - 0x28]
mov dword [ebp + 8], edi
fild dword [ebp + 8]
test edi, edi
jns 0x407639
fadd dword [0x56c67c]
fstp dword [ebp - 0x24]
sub esp, 0x10
fld dword [ebp - 0x24]
lea edi, [ebp - 0x20]
fstp dword [esp + 0xc]
fld dword [ebp - 0x28]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00409180
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x4076f6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4075a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x4076f6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
push ecx
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [ebp - 0x10]
push ecx
push esi
push edi
push eax
call edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409140
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
add esp, 4
cmp eax, ebx
je 0x4076e3
mov dword [ebp + 8], ebx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4076f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5962d4]
cmp dword [eax - 0xc], 0
je 0x409e3c
lea ecx, [ebp - 4]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [0x5962d4]
mov edx, dword [eax - 0xc]
add edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.Start_Page
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40c8a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53adf0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58dd10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
add ecx, 0x184
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x40c8ea
lea eax, [ebp + 8]
push eax
call fcn.00402d70
jmp 0x40c8fd
mov edx, dword [ebp + 8]
push edx
push eax
push str._s_s
push ecx
call fcn.00401100
add esp, 0x10
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402e50
mov ecx, dword [ebp + 0xc]
push ecx
push 0x87
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0
push ecx
push 2
push 0
push 0
mov ebx, eax
mov eax, dword [edx]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [ebp - 0x14]
push edx
push ebx
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c972
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c991
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c9f0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b6b0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x58dd10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp edi, 0xb
jne 0x40cac5
push esi
lea ecx, [ebp - 0x10]
call fcn.00401670
push 1
push 0x568e50
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00408ff0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00408ff0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ca82
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 8]
push eax
push eax
push str._s_s.lnk
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esi + eax*2]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cae7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40cae7
cmp edi, 0x10
jne 0x40cae7
mov ecx, dword [ebp + 8]
push ecx
push str._s.lnk
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esi + eax*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d8e0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bd36
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x58dd10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 0x180
push eax
lea ecx, [ebp - 0x220]
call fcn.00402e50
push 9
push str.uninstall
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00408ff0
push 4
push str..exe
lea ecx, [ebp - 0x220]
call fcn.00408ff0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00518460
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
push 0xb
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00401670
push 1
push 0x568e50
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00408ff0
push 7
push 0x5696f8
lea ecx, [ebp - 0x21c]
call fcn.00408ff0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40d9e8
mov ecx, dword [ebp - 0x21c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x56971c
push 0x5696f8
push str._s_s.lnk
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp - 0x220]
add esp, 0x10
push 0
lea ecx, [ebp - 0x218]
push ecx
xor ecx, ecx
call fcn.0040cc20
test eax, eax
jne 0x40da4a
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40da6f
lea esi, [ebp - 0x218]
call fcn.0040cb30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051651d
mov esp, ebp
pop ebp
ret 4
Function at 0x40f710
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53adb1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push esi
mov eax, dword [0x58dd10]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
cmp dword [0x5962c4], 0
jne 0x40f894
cmp dword [0x5962c0], 0
je 0x40f894
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00518460
xor eax, eax
add esp, 0xc
lea ecx, [edi + 0x180]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.00402e50
push 7
push str.IconTip
lea ecx, [esp + 0x10]
mov dword [esp + 0xd8], 1
call fcn.00408ff0
push 4
push str..exe
lea ecx, [esp + 0x10]
call fcn.00408ff0
push 0x64
call esi
push 0x56935c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00406fb0
push str.showtip
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0xe8], 2
call fcn.00406fb0
mov eax, dword [eax]
push eax
call fcn.00517322
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f82a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [esi - 0x10]
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f949
push 0x44
lea ecx, [esp + 0x80]
push 0
push ecx
call fcn.00518460
xor eax, eax
add esp, 0xc
lea edx, [edi + 0x180]
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x80], 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00402e50
push 9
push str.jwbrowser
lea ecx, [esp + 0x10]
mov dword [esp + 0xd8], 0
call fcn.00408ff0
push 4
push str..exe
lea ecx, [esp + 0x10]
call fcn.00408ff0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 8]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x80]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [esi - 0x10]
mov dword [esp + 0xd0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0041fa9a
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x410592
push 0x80004005
call fcn.00401a10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x4105f7
mov ecx, dword [edi]
test ecx, ecx
je 0x4105f2
mov edx, dword [ebp - 4]
test edx, edx
je 0x41061c
cmp edx, 2
jbe 0x4105fd
cmp edx, 7
jne 0x41061c
test cl, 1
jne 0x4105ed
shr ecx, 1
cmp ecx, 1
jb 0x4105ed
cmp word [esi + ecx*2 - 2], 0
jne 0x4105ed
cmp ecx, 1
jbe 0x4105f7
cmp word [esi + ecx*2 - 4], 0
je 0x4105f7
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 8
test cl, 1
jne 0x41060c
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4105f7
xor edx, edx
mov word [esi], dx
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8

Function at 0x411230
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x58dd10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
jmp 0x411250
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411250
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
sub eax, esi
push edx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.004109b0
add esp, 4
lea esi, [ebp - 0x90]
lea ebx, [ebp - 0x14]
call fcn.00410a70
xor esi, esi
lea edi, [ebp - 0x37]
jmp 0x4112b0
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea ecx, [edi - 1]
push str._02x
push ecx
call fcn.00517662
shl bl, 4
movzx edx, bl
push edx
push str._02x
push edi
call fcn.00517662
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x4112b0
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x596194
call fcn.0051a3a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 0x596194
pop ebx
call fcn.0051651d
mov esp, ebp
pop ebp
ret
Function at 0x413180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x413187
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x41325d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x56bff8]
add ecx, 8
sub edx, 8
dec esi
jne 0x4131a0
pop edi
test edx, edx
je 0x41327a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x56bff8]
inc ecx
dec edx
jne 0x413261
not eax
pop esi
ret

Function at 0x413280
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56bff8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x56bff8]
mov dword [edx + 8], ecx
ret

Function at 0x4132d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x56bff8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x56bff8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x413a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x413ac6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413abc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x413ad7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0051a3a0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x413b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x413b33
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413b2e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x413b5e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x413b45
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.0051a3a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x413b73
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x413b6d
cmp byte [esi + 8], 0
je 0x413b6d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret