joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45207c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x45215e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45213e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x388], eax
lea eax, [ebp - 4]
call fcn.004048f4
push dword [ebp - 4]
push 0x452178
push 0x45219c
lea eax, [ebx + 0x384]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebx + 0x384]
call sub.rtl120.bpl__Sysutils_DeleteFile_qqrx20System_UnicodeString
mov eax, dword [ebx + 0x384]
push eax
mov ecx, 0x4521b4
mov dl, 1
mov eax, dword [0x451140]
call fcn.004511c8
mov esi, eax
mov dword [ebx + 0x38c], esi
test esi, esi
je 0x452134
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x388]
cmp eax, 0xbb8
jae 0x452134
mov eax, dword [ebx + 0x38c]
cmp byte [eax + 0x10], 0
jne 0x452134
push 0xa
call sub.kernel32.dll_Sleep
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl120.bpl__Forms_TApplication_ProcessMessages_qqrv
jmp 0x452101
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452165
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2fe9126d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x502a09ad
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40e0f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba16
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041024e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00411427
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dde8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041daab

Function at 0x41ddf3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dc2c

Function at 0x422608
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421f76

Function at 0x422613
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004221b1
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x7b78577a
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2fb429ad
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x1d9905fd
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x167b01a9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x406cb7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
lea eax, [ebp - 0x18]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x407130
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov al, byte [0x445939]
push 4
push 8
call fcn.00402b00
add esp, 8
test eax, eax
je 0x406d77
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [eax], edi
mov dword [eax + 4], esi
push ecx
push 0x10000
mov dword [ebp - 0x20], eax
push eax
push 0x406db8
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x406d34
mov dword [ebx + 4], eax
mov byte [ebx], 4
jmp 0x406d64
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
call fcn.00403992
push 4
push 8
push dword [ebp - 0x20]
call fcn.00402b10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.0043373d
add esp, 8
ud2
Function at 0x40a45a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov edi, esp
push dword [esp + 0x28]
push dword [esp + 0x28]
push edi
call fcn.004142a8
add esp, 0xc
mov edi, dword [edi]
cmp edi, 0x80000000
jne 0x40a497
lea eax, [esp + 4]
push eax
call fcn.00407366
add esp, 4
mov dword [esi], 0x80000000
jmp 0x40a4cd
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a4b5
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x40a4cd
test edi, edi
mov dword [esi], 0x80000000
je 0x40a4cd
add edi, edi
push 2
push edi
push ebx
call fcn.00402b10
add esp, 0xc
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40d1ec
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ebx, esp
mov dword [ebx], 0
push edx
push ebx
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d233
mov eax, dword [esp]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi], 0
jmp 0x40d284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
mov dword [esp + 8], eax
mov dword [esp + 4], 0
je 0x40d268
mov ecx, 4
cmp eax, 0x3e5
je 0x40d274
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 1
jmp 0x40d284
mov ecx, 8
mov dword [esi + 4], 1
xor eax, eax
mov dword [esi + ecx], eax
lea ecx, [esp + 4]
mov dword [esi], eax
call fcn.0040c7ae
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
ret
Function at 0x40d397
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [esp], ecx
lea ecx, [esp + 0x28]
lea esi, [esp + 8]
mov dword [ecx - 4], eax
mov dword [esi + 4], eax
test edi, edi
setne bl
mov dword [ecx - 8], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ecx], ebx
cmove ecx, edi
mov edi, dword [edx]
mov edx, dword [ebp + 0xc]
mov ebx, 0x103
mov dword [esi], ebx
push eax
push ecx
push edx
push dword [ebp + 8]
push esi
push eax
push eax
push eax
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, ebx
jne 0x40d3ff
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x40d415
mov eax, dword [esp]
mov dword [eax + 4], 0
mov byte [eax], 4
jmp 0x40d446
cmp eax, 0x103
je 0x40d44e
test eax, eax
js 0x40d431
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov eax, ecx
mov byte [ecx], 4
jmp 0x40d446
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esp + 0x20]
xor ecx, ecx
lea eax, [esp + 0x18]
lea esi, [esp + 4]
mov dword [eax], ecx
mov dword [edx], 0x4366b8
mov dword [edx + 4], 1
mov dword [edx + 0x10], ecx
mov dword [edx + 8], esi
mov byte [eax + 4], 0
mov dword [edx + 0xc], ecx
lea esi, [esp + 0x10]
push edx
push eax
push esi
call fcn.0041524c
add esp, 0xc
cmp byte [esi], 4
je 0x40d495
lea ecx, [esp + 0x10]
call fcn.0040c7ae
mov ecx, 7
int 0x29
ud2
Function at 0x40d49e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x28]
lea esi, [esp + 8]
mov dword [ecx - 4], eax
mov dword [esi + 4], eax
test edi, edi
setne bl
mov dword [ecx - 8], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ecx], ebx
cmove ecx, edi
mov edi, dword [edx]
mov edx, dword [ebp + 0xc]
mov ebx, 0x103
mov dword [esi], ebx
push eax
push ecx
push edx
push dword [ebp + 8]
push esi
push eax
push eax
push eax
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, ebx
jne 0x40d50e
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x40d542
test eax, eax
js 0x40d524
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov eax, ecx
mov byte [ecx], 4
jmp 0x40d53a
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esp + 0x20]
xor ecx, ecx
lea eax, [esp + 0x18]
mov esi, esp
mov dword [eax], ecx
mov dword [edx], 0x4366b8
mov dword [edx + 4], 1
mov dword [edx + 0x10], ecx
mov dword [edx + 8], esi
mov byte [eax + 4], 0
mov dword [edx + 0xc], ecx
lea esi, [esp + 0x10]
push edx
push eax
push esi
call fcn.0041524c
add esp, 0xc
cmp byte [esi], 4
je 0x40d587
lea ecx, [esp + 0x10]
call fcn.0040c7ae
mov ecx, 7
int 0x29
ud2
Function at 0x40db28
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
lea edi, [esp + 8]
xorps xmm0, xmm0
lea ebx, [esp + 0x14]
movups xmmword [ebx], xmm0
mov dword [edi], 0
mov dword [ebx + 0x10], edi
push 0x40dc59
push ebx
push edx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x40db8c
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call edi
cmp dword [esp + 8], 0
je 0x40db6f
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40dbbf
xor ebx, ebx
mov dword [esp + 4], edi
jmp 0x40db9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ebx, ebx
mov dword [esp + 4], eax
mov ecx, edi
mov dword [esp], 0
call fcn.0040e248
cmp al, 0xb
jne 0x40dbce
mov ecx, esp
mov dword [esi + 4], 0
mov byte [esi], 4
call fcn.0040c7ae
jmp 0x40dbd3
mov edi, dword [esp + 0x10]
mov dword [esp + 4], edi
mov byte [esp], 4
mov ebx, dword [esp]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
ret

Function at 0x40dbdc
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edi, esp
xorps xmm0, xmm0
lea ebx, [esp + 0xc]
movups xmmword [ebx], xmm0
mov dword [edi], 0
mov dword [ebx + 0x10], edi
push 0x40dc59
push ebx
push edx
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x40dc41
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call edi
cmp dword [esp], 0
je 0x40dc21
mov eax, dword [esp + 4]
test eax, eax
jne 0x40dc47
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x40dc50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
Function at 0x40f861
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
lea eax, [esi + 0x40]
xorps xmm0, xmm0
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x40fc90
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, esi
movaps xmmword [eax], xmm0
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x40f8d4
mov eax, dword [esi + 0x40]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x10]
lea edx, [esi + 0x18]
mov dword [ecx + 4], eax
xor eax, eax
xor edi, edi
mov dword [edx], ecx
mov dword [edx + 4], 0x40ceb4
mov dword [ecx], eax
lea ecx, [esi + 0x20]
inc edi
mov dword [esi + 0x48], eax
mov dword [ecx], str.RNG_broken:
mov dword [ecx + 4], edi
mov dword [ecx + 0x10], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edi
push 0x436d20
push ecx
call fcn.004337eb
add esp, 8
ud2
Function at 0x4102d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
cmp byte [edx + 0x1e], 0
mov bl, byte [edx + 0x1c]
mov edi, ecx
call 0x4102e9
pop esi
setne al
xor ebp, ebp
cmp bl, 1
ja 0x410311
mov ecx, edx
mov dword [esp], eax
mov ebp, edx
call fcn.00410194
test bl, bl
je 0x4103e4
mov ecx, dword [esp]
mov edx, ebp
xor ebp, ebp
jmp 0x410315
xor ecx, ecx
xor eax, eax
movzx esi, cl
movzx eax, al
add esi, ebp
add esi, eax
mov eax, dword [edx + 4]
cmp esi, eax
ja 0x41044d
mov ebp, dword [edx]
xor ebx, ebx
cmp esi, eax
lea ecx, [ebp + esi]
mov dword [esp], ecx
je 0x410376
mov cl, byte [edx + 8]
mov dword [esp + 4], edx
xor ebx, ebx
mov edx, esi
mov dword [esp + 8], edi
mov ch, byte [ebp + eax - 1]
cmp cl, 2
ja 0x410358
cmp ch, 0x5c
jne 0x410365
jmp 0x41037b
movzx edi, ch
cmp edi, 0x5c
je 0x41037b
cmp edi, 0x2f
je 0x41037b
inc edx
dec ebp
inc ebx
cmp eax, edx
jne 0x410348
mov edi, dword [esp + 8]
mov edx, dword [esp + 4]
xor ebx, ebx
mov ebp, dword [esp]
jmp 0x410394
mov esi, eax
sub esi, ebx
cmp esi, eax
ja 0x410454
mov edi, dword [esp + 8]
mov edx, dword [esp + 4]
add ebp, eax
xor ebx, ebx
inc ebx
sub eax, esi
je 0x4103cb
mov cl, 9
cmp eax, 2
je 0x4103b9
cmp eax, 1
jne 0x4103cd
cmp byte [ebp], 0x2e
jne 0x4103cd
xor ecx, ecx
cmp byte [edx + 8], 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x4103cd
cmp byte [ebp], 0x2e
jne 0x4103cd
cmp byte [ebp + 1], 0x2e
sete cl
xor cl, 9
jmp 0x4103cd
mov cl, 0xa
add ebx, eax
mov dword [edi], ebx
mov byte [edi + 4], cl
mov dword [edi + 8], ebp
mov dword [edi + 0xc], eax
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [ebp + 8]
mov edx, ebp
xor ebp, ebp
add esi, dword [ecx*4 + 0x410460]
mov ecx, dword [esp]
jmp esi
push 0x436f74
jmp 0x410459
push 0x436f84
push eax
push esi
call fcn.00433b03
sgdt [eax]
add byte [ecx + eax], ah
add byte [eax], al
sbb al, byte [ecx]
add byte [eax], al
sgdt [eax]
add byte [ecx + eax], bh
add byte [eax], al
pop edx
add dword [eax], eax
add byte [eax + eax], ch
add byte [eax], al
Function at 0x411c56
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
lea eax, [ebp - 0x18]
mov esi, 0x200
lea edx, [ebp - 0x28]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4137c0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], 2
mov dword [edx + 8], eax
cmp esi, 0x201
jae 0x411cb4
lea eax, [ebp - 0x438]
mov edi, esi
mov ebx, 0x200
mov esi, eax
jmp 0x411ce4
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, ebx
sub esi, eax
sub ecx, eax
cmp ecx, esi
jae 0x411cdc
mov dword [ebp - 0x10], 0
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00433178
add esp, 0xc
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ebx
mov edi, ebx
mov esi, dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov dword [ebp - 0x2c], esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test eax, eax
jne 0x411d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411d65
cmp esi, edi
jne 0x411d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411dab
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
jmp 0x411c9b
ja 0x411c9b
cmp esi, ebx
mov dword [ebp - 0x10], 0
ja 0x411dc8
lea eax, [ebp - 0x38]
push esi
push dword [ebp - 0x2c]
push eax
call fcn.0040bda5
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x38]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x411d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x411d95
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00402b10
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x4372ec
push 0x28
push 0x4372c4
call fcn.0043386f
add esp, 0xc
jmp 0x411dd7
push 0x4372b4
push ebx
push esi
call fcn.00433b14
add esp, 0xc
ud2