joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d620
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ff10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x43d67d
mov ecx, dword [0x4af2c0]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 1
jne 0x43d851
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
jmp 0x43d851
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x48], xmm0
movq qword [ebp - 0x40], xmm0
movq qword [ebp - 0x38], xmm0
cmp eax, 0x18
jbe 0x43d714
push ecx
call fcn.0046208f
mov eax, dword [0x4af2c0]
imul eax, eax
cdq
mov ecx, 0x17
idiv ecx
add esp, 4
cmp edx, 0xe
jne 0x43d6d4
mov edi, 1
mov eax, edi
mov edx, 0x15
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x43d6c4
mov dword [0x4af2c0], ecx
push esi
mov dword [esi + 8], 0
call fcn.00460a34
add esp, 4
call fcn.0043f040
test al, al
jne 0x43d851
push 4
call fcn.00460a63
mov esi, eax
call fcn.00461e71
mov dword [esi], eax
push esi
mov dword [0x4af2c0], eax
call fcn.00460a34
add esp, 8
jmp 0x43d851
push eax
push ecx
lea eax, [ebp - 0x48]
push 0x18
push eax
call fcn.00462094
push dword [esi + 8]
call fcn.0046208f
push esi
mov dword [esi + 8], 0
call fcn.00460a34
add esp, 0x18
cmp dword [ebp - 0x48], 0xe
jne 0x43d851
push 0
lea ecx, [ebp - 0x20]
call fcn.0042daf0
mov edx, dword [0x4af2c0]
mov dword [ebp - 4], 0
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0x14
jne 0x43d783
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.0042da50
lea eax, [ebp - 0x30]
push eax
push str.left
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042dd80
call fcn.0043f110
test al, al
jne 0x43d7e2
mov esi, dword [0x4af2c0]
mov ecx, 1
cmp esi, ecx
jle 0x43d7dc
mov edi, edi
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x43d7d0
mov dword [0x4af2c0], ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
call fcn.0042da50
lea eax, [ebp - 0x30]
push eax
push str.right
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0042dd80
sub esp, 0x10
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.0042d8b0
push ecx
mov ecx, esp
push str.onButtonClick
mov byte [ebp - 4], 3
call fcn.00401b30
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 0
call dword [eax + 0x3c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0042dd80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43dff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x4af2c0]
push esi
lea eax, [edx + 1]
imul eax, edx
mov esi, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 5
jne 0x43e022
push 4
call fcn.00460a63
mov ecx, dword [0x4af2c0]
add esp, 4
mov dword [eax], ecx
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0043ebe0
mov esi, eax
test esi, esi
je 0x43e070
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x440680
push 0
push 0
mov dword [ebp - 4], 0
call fcn.004643ad
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x43e068
mov ecx, esi
call fcn.0042dd80
push esi
call fcn.00460a34
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x440120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
push eax
call fcn.0043ebe0
mov esi, eax
test esi, esi
jne 0x4401f6
mov ecx, dword [0x4af2c0]
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0xe
idiv esi
cmp edx, 0xa
jne 0x440247
push ebx
xor ebx, ebx
lea eax, [ebp - 0x52c]
lea ecx, [ecx]
xor edx, edx
mov dword [ebp - 0x534], edx
mov dword [ebp - 0x530], eax
mov edi, edi
lea edi, [edx + 1]
mov eax, ecx
cdq
lea esi, [ebx + 1]
idiv esi
mov eax, ecx
sub eax, ebx
mov esi, edx
imul esi, eax
mov eax, ecx
cdq
idiv edi
add esi, eax
sub esi, dword [ebp - 0x534]
push esi
push 0x490f88
call fcn.004628cc
mov eax, dword [ebp - 0x530]
mov edx, edi
add eax, 4
add esp, 8
mov dword [ebp - 0x534], edi
mov dword [ebp - 0x530], eax
cmp edx, 0x16
jge 0x4401d3
mov ecx, dword [0x4af2c0]
jmp 0x440180
inc ebx
cmp ebx, 0xf
jge 0x4401e1
mov ecx, dword [0x4af2c0]
jmp 0x440170
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x538]
push eax
push 0
push esi
push 0x43f320
push 0
push 0
mov dword [ebp - 0x538], 0
call fcn.004643ad
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x440240
call fcn.0043f070
test al, al
jne 0x440230
inc dword [0x4af2c0]
mov ecx, esi
call fcn.0042dd80
push esi
call fcn.00460a34
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00461234
mov esp, ebp
pop ebp
ret 0x10
Function at 0x441070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0043a710
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x44113e
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], edi
test ecx, ecx
je 0x4410c9
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x44112b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x44112b
push dword [ebp - 4]
push eax
call fcn.00444a40
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov edi, eax
test edi, edi
jne 0x441112
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x441133
test ebx, ebx
je 0x441133
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x441133
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x44113e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442af0
Capabilities:
Check mutex on windows

Disassembly:
push edi
mov edi, ecx
call fcn.004455e0
test al, al
jne 0x442b3c
push esi
mov esi, dword [0x4af2c0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x7b]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004601e0
push eax
call fcn.0046208f
add esp, 8
pop esi
mov ecx, edi
pop edi
jmp fcn.00442590
Function at 0x4448d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4448e9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4448f5
sub eax, edi
inc eax
add edx, eax
add esi, eax
cmp eax, 1
jne 0x4448f0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4456f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [0x4af2c0]
push edi
lea ecx, [esi + 1]
imul ecx, esi
mov eax, ecx
cdq
mov edi, 0x14
idiv edi
mov bl, 1
cmp edx, 0x11
jne 0x4457c9
mov eax, ecx
cdq
mov edi, 0x16
idiv edi
cmp edx, 5
je 0x4457c3
and ecx, 0x80000003
jns 0x445734
dec ecx
or ecx, 0xfffffffc
inc ecx
cmp ecx, 3
jne 0x4457c3
xor edx, edx
nop
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x445740
mov dword [0x4af2c0], esi
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x446040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4807f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
mov dword [edi + 0x24], 0
lea ecx, [edi + 0x5c]
mov dword [ebp - 4], 0
call fcn.00445f10
mov dword [edi + 0x28], vtable.WTL::CMessageFilter.0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], vtable.WTL::CIdleHandler.0
call fcn.00445fc0
lea ecx, [edi + 0x74]
call fcn.00401e60
mov dword [edi], vtable.CIEPopupDialog.0
mov dword [edi + 0x28], vtable.CIEPopupDialog.1.0
mov dword [edi + 0x2c], vtable.CIEPopupDialog.2.0
mov dword [edi + 0x30], vtable.CIEPopupDialog.3.0
mov dword [edi + 0x80], 0
mov dword [edi + 0x94], 0
mov byte [edi + 0x98], 0
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x9c], eax
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xa0], eax
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xa4], eax
xorps xmm0, xmm0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov byte [edi + 0xb0], 0
movq qword [edi + 0x84], xmm0
movq qword [edi + 0x8c], xmm0
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 0x4464f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4808ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CIEPopupDialog.0
mov dword [esi + 0x28], vtable.CIEPopupDialog.1.0
mov dword [esi + 0x2c], vtable.CIEPopupDialog.2.0
mov dword [esi + 0x30], vtable.CIEPopupDialog.3.0
mov edx, dword [esi + 0xa4]
sub edx, 0x10
or edi, 0xffffffff
mov dword [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x446561
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0xa0]
sub edx, 0x10
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x446580
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x9c]
sub edx, 0x10
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44659f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x4465af
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ebx, [esi + 0x74]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebx + 8]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4465cd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 8], 0
mov edx, dword [ebx + 4]
sub edx, 0x10
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4465eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x5c]
call fcn.00446620
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x446607
push eax
call fcn.0045fa5d
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 0x4469d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov dword [ebp - 0x98], 0x94
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x446a3d
mov eax, dword [ebp - 0x94]
cmp eax, 5
jae 0x446a2d
cmp eax, 4
jne 0x446a3d
cmp dword [ebp - 0x90], 0x5a
jb 0x446a3d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00461234
mov esp, ebp
pop ebp
ret
Function at 0x449d70
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [0x4af2c0]
push ebx
push esi
lea eax, [ecx + 1]
lea esi, [ecx + 2]
imul esi, eax
imul esi, ecx
mov eax, esi
cdq
mov ecx, 0x15
idiv ecx
mov bl, 1
cmp edx, 1
jne 0x449db9
mov eax, esi
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 7
jne 0x449db4
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
pop esi
xor al, al
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret
Function at 0x4554c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xff
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x455571
mov ecx, dword [0x4af2c0]
push ebx
lea ebx, [ecx + 1]
lea eax, [ecx + 2]
imul eax, ebx
imul eax, ecx
cdq
mov dword [ebp - 0x10c], 9
idiv dword [ebp - 0x10c]
cmp edx, 8
jne 0x455559
sub ecx, 0
je 0x45554f
dec ecx
je 0x455543
mov dword [0x4af2c0], ebx
jmp 0x455559
mov dword [0x4af2c0], 0
jmp 0x455559
mov dword [0x4af2c0], 2
test byte [ebp - 0xf2], 0x80
pop ebx
jne 0x455571
push 0
push 1
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4555a5
test byte [ebp - 0xf2], 0x80
jne 0x4555a5
push 0
push 3
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret
Function at 0x456210
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ef0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x45640e
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x45640e
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [0x4af2c0]
imul eax, eax
cdq
mov ecx, 0xc
idiv ecx
mov dword [ebp - 4], 0
mov byte [ebp + 0xf], 0
cmp edx, 0xa
jne 0x4562a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x4af2c0], edx
mov eax, dword [ebx]
test eax, eax
jne 0x4562b1
or esi, 0xffffffff
jmp 0x4562d5
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jge 0x4562be
or esi, 0xffffffff
jmp 0x4562d5
push eax
push ecx
call fcn.004627c2
mov esi, eax
add esp, 8
test esi, esi
jne 0x4562d3
or esi, 0xffffffff
jmp 0x4562d5
sub esi, dword [edi]
call fcn.00459da0
test al, al
jne 0x4562ee
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp esi, 0xffffffff
je 0x4563bb
mov eax, dword [ebx]
add esi, dword [eax - 0xc]
js 0x456404
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
cmp esi, edx
jg 0x456404
mov al, byte [ecx + esi]
cmp al, 0x3d
jne 0x456317
inc esi
test esi, esi
js 0x456404
cmp esi, edx
jg 0x456404
mov al, byte [ecx + esi]
cmp al, 0x22
jne 0x456331
inc esi
jmp 0x456353
push esi
mov ecx, edi
call fcn.004139a0
cmp al, 0x27
jne 0x456342
mov byte [ebp + 0xf], 1
inc esi
cmp byte [ebp + 0xf], 0
mov eax, 0x20
mov ecx, 0x27
cmovne eax, ecx
mov ecx, dword [edi]
test esi, esi
js 0x456379
cmp esi, dword [ecx - 0xc]
jge 0x456379
movzx eax, al
push eax
lea eax, [ecx + esi]
push eax
call fcn.00463625
add esp, 8
test eax, eax
je 0x456379
sub eax, dword [edi]
cmp eax, 0xffffffff
jne 0x45637e
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00405ec0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402970
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4563bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00403ee0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4563f0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403930
mov ecx, dword [ebp + 8]
push 0x490f70
call fcn.00401b30
mov eax, dword [ebp + 8]
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 0x456bf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [0x4af2c0]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x128], eax
lea eax, [ebx + 1]
imul eax, ebx
cdq
mov ecx, 0x11
idiv ecx
mov dword [ebp - 0x124], 0
cmp edx, 9
jne 0x456c7a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0xd8291584
div ecx
mov esi, edx
call edi
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
lea esi, [edx - 1]
test esi, esi
jg 0x456c63
mov ebx, dword [0x4af2c0]
mov eax, dword [0x4b0c14]
push 0x103
mov dword [0x4b07e8], eax
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00462e00
lea ecx, [ebx + 2]
lea eax, [ebx + 1]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0xc
idiv ecx
add esp, 0xc
cmp edx, 0xb
jne 0x456d20
mov eax, ebx
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
mov esi, 0xd3
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x456d15
mov eax, ebx
mov ebx, dword [ebp - 0x11c]
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
lea esp, [esp]
test edi, edi
jle 0x456d04
mov eax, edx
mov ecx, edi
add esi, eax
dec eax
dec ecx
jne 0x456cf8
mov ecx, dword [ebp - 0x118]
add edx, ecx
dec ebx
jne 0x456cf0
mov ebx, dword [0x4af2c0]
mov eax, dword [ebp - 0x11c]
inc ecx
mov dword [ebp - 0x118], ecx
cmp ecx, esi
jl 0x456cd4
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [0x4b0c14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x120]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x456d81
movzx esi, ax
push 0
push esi
call fcn.00403750
add esp, 8
test eax, eax
je 0x456da8
push esi
push eax
mov ecx, ebx
call fcn.00405c50
jmp 0x456da8
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456d90
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
mov ecx, ebx
call fcn.00408620
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret

Function at 0x456dd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.004645da
mov edx, dword [0x4af2c0]
add esp, 4
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 1
jne 0x456e29
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x4069d37d
div ecx
mov esi, edx
call edi
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
lea esi, [edx - 1]
test esi, esi
jg 0x456e16
pop edi
pop esi
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x457000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call fcn.00459e20
cmp edi, 0xffffffff
jne 0x457030
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45715b
cmp ebx, dword [ebp + 0x10]
ja 0x45715b
push esi
mov dword [ebp - 4], 0
call fcn.00459ff0
test al, al
jne 0x45709d
mov esi, dword [0x4af2c0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x7b]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004601e0
push eax
call fcn.0046208f
add esp, 8
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004456c0
test al, al
jne 0x457101
mov esi, dword [0x4af2c0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004601e0
push eax
call fcn.0046208f
add esp, 8
test ebx, ebx
jne 0x45710e
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [0x4af2c0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov esi, 0x12
idiv esi
cmp edx, 0xe
jne 0x45714f
xor esi, esi
test ecx, ecx
je 0x457149
mov eax, ecx
and eax, 1
add esi, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jne 0x457137
mov dword [0x4af2c0], esi
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret