joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x40a024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4068a7
mov ecx, 5
int 0x29
push 2
call fcn.004052fb
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4069b2
test esi, esi
jne 0x4069b2
push 2
call fcn.004052fb
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040454d
mov esp, ebp
pop ebp
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov eax, 0xeeeb4
call fcn.0043f9a0
mov eax, dword [0x46acb0]
xor eax, esp
mov dword [esp + 0xeeeb0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call ebx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test esi, esi
jbe 0x40116f
xor byte [esp + eax + 0x14], 0x7b
inc eax
cmp eax, esi
jb 0x401165
push 0x40
push 0x3000
push 0xeeea8
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0xeeea8
lea edx, [esp + 0x18]
mov esi, eax
push edx
push esi
call fcn.0043ca60
add esp, 0xc
call dword [0x46ea14]
push 0
push 0
push 1
push 0
mov edi, eax
call ebx
push 0
push 0
push 0x64
push 0
push esi
mov ebx, eax
push edi
lea eax, [esp + 0x28]
push eax
call dword [0x46eb10]
test eax, eax
je 0x4011e6
push 0xffffffffffffffff
push ebx
call dword [0x46eb14]
test eax, eax
je 0x4011e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_failed___d__n
call fcn.0043cdc5
add esp, 8
mov ecx, dword [esp + 0xeeebc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c6f3
add esp, 0xeeeb4
ret

Function at 0x40512d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x405175
call fcn.00408517
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405175
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4051b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4051a1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4051a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4051b5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4139f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00408517
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x413a22
xor eax, eax
jmp 0x413ac8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x413a1b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x413a1b
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401c1f
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x413a79
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x413a68
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004126e7
push edi
mov ebx, eax
call fcn.00401c4e
pop ecx
test ebx, ebx
je 0x413abb
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00412da8
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00412e5c
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4192f8
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x41931c
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x41932a
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x419316
xor eax, eax
inc eax
pop esi
ret

Function at 0x43c6f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46acb0]
jne 0x43c6fd
repz ret
jmp fcn.004417d1
Function at 0x449f7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00441949
and dword [ebp - 4], 0
cmp dword [0x46e9a0], 0
mov ebx, eax
jne 0x44a030
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44a0e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45b850
push edi
call esi
test eax, eax
je 0x44a0e1
push eax
call fcn.004418d7
mov dword [esp], 0x45b840
push edi
mov dword [0x46e9a0], eax
call esi
push eax
call fcn.004418d7
mov dword [esp], 0x45b82c
push edi
mov dword [0x46e9a4], eax
call esi
push eax
call fcn.004418d7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46e9a8], eax
call esi
push eax
call fcn.004418d7
pop ecx
mov dword [0x46e9b0], eax
test eax, eax
je 0x44a030
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004418d7
pop ecx
mov dword [0x46e9ac], eax
mov eax, dword [0x46e9ac]
cmp eax, ebx
je 0x44a088
cmp dword [0x46e9b0], ebx
je 0x44a088
push eax
call fcn.00441952
push dword [0x46e9b0]
mov esi, eax
call fcn.00441952
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44a088
test edi, edi
je 0x44a088
call esi
test eax, eax
je 0x44a07f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44a07f
test byte [ebp - 0xc], 1
jne 0x44a088
or dword [ebp + 0x10], 0x200000
jmp 0x44a0c1
mov eax, dword [0x46e9a4]
cmp eax, ebx
je 0x44a0c1
push eax
call fcn.00441952
pop ecx
test eax, eax
je 0x44a0c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44a0c1
mov eax, dword [0x46e9a8]
cmp eax, ebx
je 0x44a0c1
push eax
call fcn.00441952
pop ecx
test eax, eax
je 0x44a0c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46e9a0]
call fcn.00441952
pop ecx
test eax, eax
je 0x44a0e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44a0e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x405d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x160]
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x160], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404183
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
push 0xa
push 0x40f
mov ecx, esi
mov dword [0x408654], ebx
call sub.MFC42.DLL_CWnd::SendDlgItemMessageA
push ebx
push 1
push 0xa
push 0x3ee
mov ecx, esi
call sub.MFC42.DLL_CWnd::SendDlgItemMessageA
push 0x9c55
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x2a0]
call sub.MFC42.DLL_CWnd::SetWindowTextA
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x408670
call edi
lea edx, [esp + 0x3c]
push edx
push 0x408328
call edi
jmp 0x4041ed
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x4041fe
push ebx
push ebx
push 0xa
push 0x40f
mov ecx, esi
mov dword [0x408654], 1
call sub.MFC42.DLL_CWnd::SendDlgItemMessageA
push ebx
push ebx
push 0xa
push 0x3ee
mov ecx, esi
call sub.MFC42.DLL_CWnd::SendDlgItemMessageA
push 0x9c55
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x2a0]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x408670
call ebx
push edi
push 0x408328
call ebx
push 0x408328
push 0x408670
mov ecx, esi
call fcn.00403c90
lea ecx, [esp + 0xc]
mov dword [esp + 0x158], 0xffffffff
call fcn.0040537c
mov ecx, dword [esp + 0x150]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x150
ret 4
Function at 0x4042e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x405d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea esi, [edi + 0xe0]
lea eax, [esp + 0x23c]
push 0x104
push eax
mov ecx, esi
mov dword [esp + 0x354], 0
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov ecx, dword [edi + 0x100]
push 0
push 0
push 0x14b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x9c60
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404439
push ebp
push 0x9c61
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x28], 0x100
call ebp
test eax, eax
jne 0x40442d
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
xor edx, edx
lea eax, [esp + 0x34]
mov dl, byte [esp + esi + 0x20]
push edx
push str.Sauve_03d
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x13c]
lea eax, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0x104
call ebp
test eax, eax
jne 0x404417
lea edx, [esp + 0x13c]
push edx
push eax
mov eax, dword [edi + 0x100]
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
inc esi
cmp esi, 0x14
jl 0x4043bd
mov esi, dword [esp + 0x1c]
pop ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
lea edx, [esp + 0x23c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov dword [esp + 0x34c], 0xffffffff
call fcn.0040537c
mov ecx, dword [esp + 0x344]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x348
ret
Function at 0x4055f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406ba8
push 0x405800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4087a0], 0xffffffff
mov dword [0x4087a4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x408794]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x408790]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40879c], ecx
call fcn.004057f0
mov eax, dword [0x408120]
test eax, eax
jne 0x405681
push 0x4057e0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004057c0
push 0x408014
push 0x408010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40878c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x408788]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40800c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40578f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4056f5
cmp al, 0x22
jne 0x4056e7
cmp byte [esi], 0x22
jne 0x4056fe
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40570e
cmp al, 0x20
ja 0x40570e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4056fe
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40572f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x405734
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x405774
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4056fe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40578f
Function at 0x403430
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405b40
test esi, esi
jne 0x403468
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405c7c
jmp 0x403486
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403314
mov edi, eax
test esi, esi
je 0x403486
cmp dword [ebx], 0
je 0x403486
dec esi
jmp 0x40346f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4034bc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x548008], 0x8088405
inc edx
mov dword [ebx + 0x548008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ca8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x548024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403d20
xor eax, eax
push ebp
push 0x403d19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403d78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x548024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x548024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ee4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x551054], 0
je 0x404f45
cmp word [0x551330], 0xd7b2
jne 0x404f0d
cmp dword [0x551338], 0
jbe 0x404f0d
mov eax, 0x55132c
call dword [0x551348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404f70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x548034], 0
jne 0x404f61
push 0
push 0x54878c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4050e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x548038], 0
je 0x40510a
mov edx, esi
mov eax, ebx
call dword [0x548038]
jmp 0x405119
mov eax, 8
call fcn.0040305c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x551055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4050ac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4081ac
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409ff8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x553b30
push 0xa
push 0x40a08c
mov eax, dword [0x553b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a01c
call fcn.00414ba0
push ebx
mov eax, dword [0x553b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a033
call fcn.00414ba0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a045
call fcn.00414ba0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x553b34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x553b38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x553b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x553b40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x553b44], ecx
add edx, dword [eax + 0x14]
mov dword [0x553b48], edx
pop esi
pop ebx
ret

Function at 0x40ba2c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40bad5
test eax, edx
je 0x40bad8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ba55
push edx
mov edx, eax
mov eax, esp
call fcn.00405d5c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ba6b
push eax
lea eax, [esp + 8]
call fcn.00405d5c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40ba7a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40baa1
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40babb
add ecx, 4
js 0x40ba92
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40bab8
push eax
mov eax, ecx
mov edx, 2
call fcn.00405184
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40ba9f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40baa1
xor eax, eax
ret
test eax, eax
je 0x40bae8
test edx, edx
jne 0x40ba3c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40ce44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ce62
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40ce83
cmp ebx, 3
je 0x40ce83
cmp ebx, 0x7b
je 0x40ce83
mov eax, esi
call fcn.0040ce04
test al, al
jne 0x40ce87
xor eax, eax
jmp 0x40ce89
mov al, 1
pop esi
pop ebx
ret

Function at 0x40ce8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40cea5
test al, 0x10
jne 0x40cea9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x411d10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411d49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c7c
jmp 0x411d52
mov eax, ebx
mov edx, esi
call fcn.00405b40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411d5c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x411d7e
movzx eax, word [esp]
jmp 0x411d80
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412630
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00412468
mov eax, dword [0x54ff94]
cmp byte [eax], 0
je 0x4126c2
mov eax, dword [0x54fad8]
call fcn.004035b8
call fcn.004031c4
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040d464
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x412710
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4126fb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x54fa20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x553b20]
call fcn.0040742c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret