joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5795c0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
or esi, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
or edx, dword [eax]
call dword [edx - 0x28]
xor edx, edx
push ebp
push 0x579615
push dword fs:[edx]
and dword fs:[edx], 0x88e8026a
shr ecx, 0xbf
mov ebx, eax
push 9
call sub.user_2.tll_GetClipboardData
inc esp
mov ecx, ebx
mov dx, 2
mov eax, esi
mov ebx, dword [eax]
fist word [ebx + 0x68]
xor eax, eax
pop edx
dec ecx
jns 0x579669
mov dword [eax], edx
push 0x57941c
mov eax, dword [edi - 4]
wait
adc bh, ch
push edx
adc bl, al
jmp fcn.004093fc
mov dword [eax], edx
push 0x579e80
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x5865a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc0
mov edi, ebx
mov esi, eax
cmp ebx, dword [ebx - 0x7d]
stosb byte es:[edi], al
add dword [edx + 0xe], esi
je 0x58662b
inc edx
jne 0x586670
jmp 0x5c76b9
cmp edi, dword [esi + 0x18]
je 0x5866b9
mov bl, 1
mov dword [esi + 0x18], edi
add dword [esi + 4], 0xffffff8b
add al, 0x80
mov eax, 0x2e4
add byte [ebp - 0xf], dh
mov eax, esi
loopne 0x58668d
sti
invalid
cmp edi, dword [esi + 0x1c]
je 0x5866c9
mov bl, 1
mov dword [esi + 0x1c], edi
mov eax, dword [esi - 0x7c]
mov eax, dword [eax + 4]
cmp byte [eax + 0x40430c], 0
je 0x586690
cmp edi, 0xffffffff
jne 0x586690
add dh, byte [ebx]
inc dword [eax + 0x2e4b8]
add byte [eax], al
xor edi, edi
cmp byte [eax + 0x2e4], 0
jne 0x5866f9
sub byte [eax + esi*8], al
xor byte [eax], al
mov eax, esi
call 0x986850
push eax
mov eax, esi
call fcn.00546194
lea ecx, [edi + 1]
shl ecx, 0xc
pop edx
call fcn.0052e83c
test bl, bl
je 0x5866e6
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 4]
sar byte [eax + 0x2e4], 0
jne 0x5866ea
add byte [ebp + 0x1e], dh
mov eax, esi
call fcn.0058a850
push eax
mov eax, esi
call fcn.00586850
push eax
mov eax, esi
call fcn.00586164
pop edx
pop ecx
call fcn.00598d74
mov ah, byte [esi]
add dword [eax], eax
add esp, 0x40
pop edi
pop esi
pop ebx
ret
mov ebx, eax
cmp edx, dword [edx + 0x10]
je 0x58676e
mov dword [ebx + 0x12], edx
mov eax, dword [ebx - 0x7c]
mov eax, dword [eax + 4]
cmp byte [eax + 0x40006e4], 0x20
jne 0x58676e
mov dword [esp + 4], 0x10
mov dword [esp + 0x28], edx
mov ecx, ebx
jmp fcn.00586850
add esp, 0x40
push esi
pop ebx
ret
Function at 0x62d004
Capabilities:
Create thread

Disassembly:
add byte [eax], al
jne 0x62d001
cmp dword [0x67a870], 0
jne 0x62cfc2
clc
sti
pop esi
fdivp st(7)
push eax
push 0
mov eax, dword [0x2672e64]
push eax
push 3
call sub.user_2.tll_SetEindmwsHkokExW
mov dword [0x67a830], eax
cmp dword [0x67882e], 0
push ebp
adc ch, byte [edx]
push 0
push 0
push 0
call sub.kernel32.dll_CreateventW
test al, 0x67
add byte [eax], cl
jne 0x62d002
push esp
push 0xffffffffffffff80
push 0
mov eax, dword [0x672c20]
push eax
push 0x20403e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x267a834], eax
add bl, dl
ret
fcmovb st(0), st(3)
add esp, 0xfffffffc
cmp dword [edi], 0x30
test al, 0x67
add byte [eax], al
jo 0x62cf9b
movsd dword es:[edi], dword [esi]
xor byte [eax - 0x17afff99], ch
lds ecx, [ebx - 0x3fcc0422]
mov dword [0x67a830], eax
mov dword [esp + 4], 0x67a834
mov edx, dword [esp + 4]
xor eax, dword [eax - 0x76fd7810]
add al, 0x24
cmp dword [esp], 0
je 0x62d082
mov eax, dword [0x8067a82c]
push eax
call sub.kernel32.dll_SetEvent
call fcn.00414f28
cmp ecx, dword [0x67a828]
je 0x62d079
jmp 0x62cfe0
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
pop edx
ret

Function at 0x65af58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x65b025
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004078e0
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push ebx
push 0x65b03c
push edi
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040a7c8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040a740
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x65b008
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
push esi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x65b00f
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65b02c
lea eax, [ebp - 4]
call int.00409e28
ret
Function at 0x6638e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6639e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x442c8c]
call fcn.0046c8ac
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x450]
mov eax, dword [eax + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xf
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x6639fc
call fcn.00425d7c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
lea edx, [ebp - 0x28]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x450]
mov eax, dword [eax + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
push 0
mov eax, dword [esi + 0x450]
mov ecx, 7
mov edx, 0x115
call fcn.00548e40
mov eax, ebx
call fcn.00407f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6639e8
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00409e40
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00409e40
ret
Function at 0x4012bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x4012cd
cmp esi, 9
jle 0x4012d8
push str.Invalid_compression_level
call fcn.004052ac
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x446994
mov dword [0x429fc8], esi
call fcn.00421740
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42707a]
mov dword [0x429fb4], ecx
movzx ecx, word [eax + 0x427078]
mov dword [0x429fcc], ecx
movzx ecx, word [eax + 0x42707c]
movzx eax, word [eax + 0x42707e]
mov dword [0x429fc0], ecx
mov dword [0x429fc4], eax
jne 0x40133a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401346
cmp esi, 9
jne 0x401346
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x456994
mov dword [0x429fb0], ebx
mov dword [0x429fd4], ebx
call dword [0x429fa8]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x429fd8], eax
je 0x4013ba
cmp eax, 0xffffffff
je 0x4013ba
mov esi, 0x106
mov dword [0x429fbc], ebx
cmp eax, esi
jae 0x401392
cmp dword [0x429fbc], ebx
jne 0x401392
call fcn.0040150b
cmp dword [0x429fd8], esi
jb 0x40137d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x456994]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401396
mov dword [0x429fb8], eax
jmp 0x4013ca
mov dword [0x429fbc], 1
mov dword [0x429fd8], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4015e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x429fc8], 3
push edi
push 2
pop edi
jg 0x401606
call fcn.0040186b
jmp 0x401868
cmp dword [0x429fd8], 0
je 0x401840
mov ecx, dword [0x429fb0]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x456996]
mov edx, dword [0x429fb8]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x446994]
mov dword [0x429fb8], eax
lea eax, [eax*2 + 0x446994]
mov word [ebx*2 + 0x436994], dx
mov ebx, dword [0x429fd0]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x429fac], eax
test edx, edx
pop edi
je 0x4016b7
cmp eax, dword [0x429fb4]
jae 0x4016b7
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4016b7
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x429fd8]
cmp edi, eax
pop ecx
jbe 0x40169a
mov edi, eax
mov ecx, dword [0x429fb0]
cmp edi, 3
jne 0x4016b7
mov eax, ecx
sub eax, dword [0x429fd0]
cmp eax, 0x1000
jbe 0x4016b7
push 2
pop edi
mov eax, dword [0x429fac]
cmp eax, 3
jb 0x401781
cmp edi, eax
ja 0x401781
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.00403af0
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x429fac]
add dword [0x429fd8], ecx
sub dword [0x429fac], 2
mov ecx, dword [0x429fb0]
movzx edx, byte [ecx + 0x456997]
mov edi, dword [0x429fb8]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x429fb8], edx
and edi, esi
mov bx, word [edx*2 + 0x446994]
dec dword [0x429fac]
lea edx, [edx*2 + 0x446994]
mov word [edi*2 + 0x436994], bx
mov word [edx], cx
jne 0x4016f8
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x429fb0], ecx
je 0x4017ef
mov eax, dword [0x429fd4]
test eax, eax
jl 0x401763
lea edx, [eax + 0x456994]
jmp 0x401765
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032f7
mov ecx, dword [0x429fb0]
add esp, 0xc
mov dword [0x429fd4], ecx
jmp 0x4017ef
cmp dword [esp + 0x10], 0
je 0x4017da
movzx eax, byte [ecx + 0x456993]
push eax
push 0
call fcn.00403af0
pop ecx
test eax, eax
pop ecx
je 0x4017d2
mov eax, dword [0x429fd4]
test eax, eax
jl 0x4017ae
lea ecx, [eax + 0x456994]
jmp 0x4017b0
xor ecx, ecx
mov edx, dword [0x429fb0]
push 0
sub edx, eax
push edx
push ecx
call fcn.004032f7
mov ecx, dword [0x429fb0]
add esp, 0xc
mov dword [0x429fd4], ecx
jmp 0x4017e2
mov ecx, dword [0x429fb0]
jmp 0x4017e2
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x429fd8]
mov dword [0x429fb0], ecx
mov ebx, 0x106
cmp dword [0x429fd8], ebx
jae 0x401818
cmp dword [0x429fbc], 0
jne 0x401818
call fcn.0040150b
cmp dword [0x429fd8], ebx
mov ecx, dword [0x429fb0]
jb 0x4017fc
cmp dword [0x429fd8], 0
jne 0x401626
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x401846
movzx eax, byte [ecx + 0x456993]
push eax
push 0
call fcn.00403af0
pop ecx
pop ecx
mov ecx, dword [0x429fb0]
mov edx, dword [0x429fd4]
test edx, edx
jl 0x401858
lea eax, [edx + 0x456994]
jmp 0x40185a
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032f7
add esp, 0xc
pop edi
pop ecx
ret
Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x429fd8], edi
mov dword [0x429fac], 2
je 0x401a32
mov ecx, dword [0x429fb0]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x456996]
mov edx, dword [0x429fb8]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x446994]
mov dword [0x429fb8], eax
lea eax, [eax*2 + 0x446994]
mov word [ebp*2 + 0x436994], dx
test edx, edx
mov word [eax], cx
je 0x4018fa
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4018fa
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x429fd8]
cmp edi, eax
pop ecx
jbe 0x4018f4
mov edi, eax
mov ecx, dword [0x429fb0]
cmp edi, 3
jb 0x40199b
sub ecx, dword [0x429fd0]
lea eax, [edi - 3]
push eax
push ecx
call fcn.00403af0
sub dword [0x429fd8], edi
cmp edi, dword [0x429fb4]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40196d
mov ecx, dword [0x429fb0]
dec edi
movzx eax, byte [ecx + 0x456997]
mov edx, dword [0x429fb8]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x429fb8], eax
mov bp, word [eax*2 + 0x446994]
lea edx, [eax*2 + 0x446994]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x436994], bp
mov word [edx], cx
jne 0x40192e
jmp 0x4019bc
mov ecx, dword [0x429fb0]
add ecx, edi
xor edi, edi
mov dword [0x429fb0], ecx
movzx eax, byte [ecx + 0x456994]
movzx edx, byte [ecx + 0x456995]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x429fb8], eax
jmp 0x4019c3
movzx eax, byte [ecx + 0x456994]
push eax
push 0
call fcn.00403af0
dec dword [0x429fd8]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x429fb0]
inc ecx
mov dword [0x429fb0], ecx
cmp dword [esp + 0x10], 0
je 0x4019f7
mov eax, dword [0x429fd4]
test eax, eax
jl 0x4019db
lea edx, [eax + 0x456994]
jmp 0x4019dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032f7
mov ecx, dword [0x429fb0]
add esp, 0xc
mov dword [0x429fd4], ecx
mov ebp, 0x106
cmp dword [0x429fd8], ebp
jae 0x401a20
cmp dword [0x429fbc], 0
jne 0x401a20
call fcn.0040150b
cmp dword [0x429fd8], ebp
mov ecx, dword [0x429fb0]
jb 0x401a04
cmp dword [0x429fd8], 0
jne 0x401898
pop esi
pop ebp
pop ebx
jmp 0x401a38
mov ecx, dword [0x429fb0]
mov edx, dword [0x429fd4]
pop edi
test edx, edx
jl 0x401a4b
lea eax, [edx + 0x456994]
jmp 0x401a4d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032f7
add esp, 0x10
ret

Function at 0x4050eb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4050f8
or eax, 0xffffffff
jmp 0x405126
cmp dword [esp + 8], 0
mov eax, dword [0x4274a4]
je 0x405126
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x4274a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x405105
pop esi
mov dword [0x4274a4], eax
not eax
ret
Function at 0x405214
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405235
call fcn.00405380
mov eax, dword [0x47a590]
mov ecx, dword [0x47b028]
add eax, dword [ebp + 0x10]
mov dword [0x47a590], eax
lea edx, [eax - 0x8400]
cmp edx, ecx
jle 0x40526e
cmp byte [0x47b0ae], 0
je 0x40526e
sub eax, ecx
push eax
call fcn.00414452
mov eax, dword [0x47a590]
pop ecx
mov dword [0x47b028], eax
pop ebp
ret
Function at 0x406b06
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
or esi, 0xffffffff
call fcn.00421740
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x406bbc
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x14]
push eax
call edi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x406b50
lea eax, [ebp - 0xc]
push eax
call edi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, esi
jae 0x406b69
mov esi, eax
dec dword [ebp - 4]
jne 0x406b41
mov ecx, dword [ebp - 0x1c]
push 0xa
mov eax, ecx
xor edx, edx
pop edi
imul esi, esi, 0x186a0
div edi
xor edx, edx
pop ebx
mov edi, eax
mov eax, esi
div edi
xor edx, edx
mov esi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x406b96
inc esi
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div esi
xor edx, edx
mov ecx, eax
mov eax, edi
div esi
mov eax, esi
mov dword [ebp - 0x24], ecx
shr eax, 1
cmp edx, eax
jbe 0x406bb3
inc ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret

Function at 0x406bcc
Capabilities:
Check for time delay via gettickcount
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425560
push 0x422120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
mov dword [ebp - 0x30], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x24], eax
push 0xf
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
call esi
sub eax, dword [ebp - 0x20]
je 0x406c1d
call esi
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
rdtsc
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
push ebx
call edi
push 0x3c
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf
push ebx
call edi
call esi
mov dword [ebp - 0x2c], eax
call esi
sub eax, dword [ebp - 0x2c]
je 0x406c4e
call esi
mov esi, eax
rdtsc
mov dword [ebp - 0x34], eax
push dword [ebp - 0x24]
push ebx
call edi
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
xor edx, edx
div esi
mov esi, eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, eax
mov eax, esi
xor edx, edx
push 0x64
pop esi
div esi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 5
jb 0x406c94
inc ecx
mov eax, ecx
jmp 0x406cb1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b126
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
push edi
mov edi, ecx
push eax
push 0xa
push dword [edi + 4]
call fcn.0041b9dd
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 8]
call fcn.00419db1
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [esi], eax
call ebx
test eax, eax
jne 0x40b171
mov edi, dword [edi + 4]
push eax
push eax
mov ecx, 0x47ab08
jmp 0x40b324
mov ecx, dword [ebp - 8]
and byte [ebp + 0xb], 0
mov al, byte [ecx]
and byte [ebp - 1], 0
mov byte [ebp - 4], al
mov eax, dword [esi]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
cmp byte [eax], 0x5c
jne 0x40b220
cmp byte [eax + 1], 0x5c
jne 0x40b220
mov byte [ebp + 0xb], 1
push ecx
call ebx
mov cl, byte [ebp + 0xb]
neg cl
sbb ecx, ecx
and ecx, 2
cmp ecx, eax
jge 0x40b29c
mov esi, dword [ebp - 8]
mov dl, byte [ecx + esi]
cmp dl, 0x3a
jne 0x40b1cb
cmp ecx, 1
jne 0x40b28b
cmp dl, 0x7c
je 0x40b28b
cmp dl, 0x2a
je 0x40b28b
cmp dl, 0x2f
je 0x40b28b
cmp dl, 0x3e
je 0x40b28b
cmp dl, 0x3c
je 0x40b28b
cmp dl, 0x3f
je 0x40b28b
cmp dl, 0x22
je 0x40b28b
test ecx, ecx
jle 0x40b219
cmp dl, 0x5c
jne 0x40b219
cmp byte [ecx + esi - 1], dl
je 0x40b27a
inc ecx
cmp ecx, eax
jl 0x40b1ba
jmp 0x40b29c
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp - 8]
cmp byte [ecx + 1], 0x3a
jne 0x40b318
cmp byte [ecx + 2], 0x5c
jne 0x40b318
cmp eax, 1
jne 0x40b257
mov edi, dword [edi + 4]
push 0
push 0
mov ecx, 0x47ab20
jmp 0x40b324
cmp eax, 3
je 0x40b1a2
cmp eax, 4
je 0x40b1a2
mov edi, dword [edi + 4]
push 0
push 0
mov ecx, 0x47ab2c
jmp 0x40b324
mov edi, dword [edi + 4]
push 0
push 0
mov ecx, 0x47ab38
jmp 0x40b324
mov edi, dword [edi + 4]
push 0
push 0
mov ecx, 0x47ab44
jmp 0x40b324
cmp byte [ebp + 0xb], 0
jne 0x40b314
lea eax, [ebp - 4]
push 1
push eax
call fcn.0040d8b6
cmp edx, dword [0x47a4f4]
pop ecx
pop ecx
mov dword [0x47a4e8], eax
mov dword [0x47a4ec], edx
ja 0x40b314
jb 0x40b2cc
cmp eax, dword [0x47a4f0]
jae 0x40b314
lea ecx, [ebp - 0x14]
call fcn.00419c64
lea eax, [ebp - 4]
mov ecx, 0x47ab50
push eax
call fcn.0041ab9e
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041a30f
mov edi, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0
push 0
call fcn.0041ab9e
push eax
push edi
mov ecx, 0x479ee8
call fcn.004191a7
lea ecx, [ebp - 0x14]
call fcn.00419d9a
jmp 0x40b335
mov al, 1
jmp 0x40b337
mov edi, dword [edi + 4]
push 0
push 0
mov ecx, 0x47ab14
call fcn.0041ab9e
push eax
push edi
mov ecx, 0x479ee8
call fcn.004191a7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b33e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push eax
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40b419
push esi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
test byte [ebp - 0x144], 0x10
je 0x40b3ff
cmp byte [ebp - 0x118], 0x2e
je 0x40b3ff
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40b3ff
push 0
push 0
push 0x18b
push 0xb
push dword [ebp + 8]
call esi
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x40b3ea
lea eax, [ebp - 0x248]
and byte [ebp - 0x248], 0
push eax
push edi
push 0x189
push 0xb
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40b3ff
inc edi
cmp edi, dword [ebp - 4]
jl 0x40b3b1
lea eax, [ebp - 0x118]
push eax
push 0
push 0x180
push 0xb
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b371
pop edi
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
leave
ret 8
Function at 0x40d24c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
jne 0x40d2a1
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
leave
ret

Function at 0x40d2a3
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d2be
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x40d2c7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40d2e5
or eax, 0xffffffff
jmp 0x40d358
push edi
push esi
call fcn.0042200e
mov edi, eax
pop ecx
test edi, edi
jne 0x40d304
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d319
push 0xfffffffffffffffd
jmp 0x40d34d
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x427c6c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40d338
push 0xfffffffffffffffc
jmp 0x40d34d
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
push 1
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
pop esi
push edi
call fcn.0042201c
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret