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

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x409413
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x409422
pop dword [ebp - 0x18]
mov eax, 0x409422
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3b36a
push 0
mov eax, 0x67c6c01b
sub eax, 0x6785cf8b
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xb9d22cb3
sub ecx, 0xb9d1d940
xor edx, edx
add edx, eax
mov edi, 0x41aa00
add edi, dword [ebp - 0x18]
mov esi, 0x6eef35b3
sub esi, 0xe01397a5
xor dword [ebp - 0x10], ebx
mov ebx, dword [edi]
mov dword [ebp - 4], 0x8631941f
add ebx, esi
mov dword [edx], ebx
xor dword [ebp - 0xc], edx
add edx, 4
add edi, 0xaa40bd09
add edi, 0x55bf42fb
loop 0x409478
add eax, 0x858d42ca
sub eax, 0x858c022b
mov ebx, eax
add eax, 0x6698ae3e
add eax, 0x996751c7
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x424630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f677b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esi], vtable.Sexy::LevelParser.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
push edi
mov dword [ebp - 0x14], esi
mov byte [esi + 0xc], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov al, byte [ebp - 0xd]
lea edi, [esi + 0x54]
mov ecx, edi
mov byte [ebp - 4], 2
mov byte [edi], al
call fcn.00406150
mov dword [edi + 4], eax
mov byte [eax + 0x249], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov cl, byte [ebp - 0xd]
lea edi, [esi + 0x60]
mov byte [edi], cl
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00406150
mov dword [edi + 4], eax
mov byte [eax + 0x249], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dl, byte [ebp - 0xd]
lea edi, [esi + 0x6c]
mov ecx, edi
mov byte [ebp - 4], 4
mov byte [edi], dl
call fcn.004664f0
mov dword [edi + 4], eax
mov byte [eax + 0x39], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov al, byte [ebp - 0xd]
lea edi, [esi + 0x98]
mov byte [ebp - 4], 7
mov byte [edi], al
mov ecx, edi
call fcn.00482400
mov ecx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], 0xf
mov byte [esi + 0xa8], bl
mov byte [esi + 0x24], bl
mov dword [esi + 4], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4298a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [0x5480e4]
je 0x4298b8
mov ecx, 0x548ac0
jmp 0x481310
mov ecx, 0x5480f0
jmp 0x481b90
Function at 0x464550
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push 0
push 0
call dword [eax + 0xb4]
mov ecx, dword [esi + 0x2fc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov byte [esi + 0x2f0], 1
mov ecx, esi
pop esi
jmp dword [edx + 0x20]

Function at 0x464580
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x2f1]
test al, al
jne 0x464665
mov al, byte [esi + 0x51d]
test al, al
mov byte [esi + 0x2f1], 1
je 0x4645cc
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xb4]
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xb8]
mov al, byte [esi + 0x504]
test al, al
je 0x4645ef
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ecx]
push 0xa
call edi
mov al, byte [esi + 0x504]
test al, al
jne 0x4645e0
pop edi
mov ecx, dword [esi + 0x324]
test ecx, ecx
je 0x4645fe
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x314]
call fcn.00481540
mov ecx, dword [esi + 0x314]
call fcn.00490410
test eax, eax
jne 0x46461f
mov byte [esi + 0x318], 1
mov al, byte [esi + 0x2f2]
test al, al
jne 0x464640
mov eax, dword [esi + 0x31c]
test eax, eax
je 0x464640
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x464640
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [esi + 0x2fc]
test eax, eax
je 0x464653
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [esi + 0x380]
test al, al
je 0x464665
mov edx, dword [esi]
mov ecx, esi
pop esi
jmp dword [edx + 0x44]
pop esi
ret
Function at 0x465bc0
Capabilities:
Print debug messages

Disassembly:
mov al, byte [0x57ef14]
test al, al
push esi
mov esi, ecx
jne 0x465ce6
mov al, byte [esi + 0x51d]
test al, al
mov al, byte [esi + 0x501]
je 0x465c50
test al, al
je 0x465c15
mov al, byte [esi + 0x502]
test al, al
jne 0x465c15
mov al, byte [esi + 0x57c]
test al, al
je 0x465c15
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x502], 1
call dword [eax + 0x30]
mov cl, byte [esi + 0x502]
cmp cl, byte [esi + 0x57c]
jne 0x465ce6
mov eax, dword [esi + 0x49c]
cmp eax, dword [esi + 0x568]
je 0x465ce6
mov cl, byte [esi + 0x4dd]
test cl, cl
jne 0x465ccf
inc eax
mov dword [esi + 0x49c], eax
jmp 0x465cba
test al, al
je 0x465caa
mov al, byte [esi + 0x502]
test al, al
jne 0x465caa
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x502], 1
call dword [eax + 0x30]
mov al, byte [esi + 0x51c]
test al, al
je 0x465caa
push edi
mov ecx, esi
call fcn.004648d0
push 1
lea edi, [esi + 0x53c]
push 0
mov ecx, edi
call fcn.0048e7d0
push 5
push 9
mov ecx, edi
call fcn.0048e7d0
pop edi
mov al, byte [esi + 0x4dd]
test al, al
jne 0x465ccf
inc dword [esi + 0x49c]
mov ecx, dword [esi + 0x2dc]
call fcn.00479f70
test al, al
je 0x465ccf
inc dword [esi + 0x4ec]
mov ecx, dword [esi + 0x324]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ecx, dword [esi + 0xd0]
pop esi
jmp fcn.00496a50
pop esi
ret

Function at 0x466130
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ecx + 0x51d]
test al, al
je 0x466143
mov al, 1
pop ebp
ret 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x466160
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 4
Function at 0x4661c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x2fc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4662ac
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
push edi
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
mov dword [ebp + 8], ecx
jb 0x466206
mov ecx, dword [ecx]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x466208
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 1
call ebx
push edi
push 7
call ebx
push edi
push 0x10
call ebx
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
cmp ecx, 0x10
mov ecx, dword [ebp + 8]
jb 0x46623e
mov ecx, dword [ecx]
push 0
push 0
push eax
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
lea edx, [edi + edi + 2]
push edx
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
cmp edx, 0x10
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
jb 0x46627c
mov edx, dword [edx]
push edi
push eax
push ecx
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 4]
push ebx
mov word [eax + edi*2], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x466f10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x5d8]
lea eax, [ebp - 0x28]
push eax
call fcn.00485310
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call dword [edx + 0x50]
cmp dword [ebp - 0x10], 0x10
pop esi
jb 0x466f5f
mov eax, dword [ebp - 0x24]
push eax
call fcn.004e11d0
add esp, 4
mov al, byte [ebp + 8]
test al, al
je 0x466f6d
push 0
call fcn.004e28bf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x468680
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x503]
test al, al
push edi
je 0x46869b
mov eax, dword [esi]
call dword [eax + 0x80]
mov ecx, dword [esi + 0x49c]
cmp ecx, dword [esi + 0x4ac]
jl 0x4686b3
mov al, byte [esi + 0x4b0]
test al, al
je 0x46872b
mov cl, byte [0x57ef58]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov eax, 1
test al, cl
jne 0x4686e0
or dword [0x57ef58], eax
call ebx
mov dword [0x57ef54], eax
jmp 0x4686e0
mov edi, dword [esi + 0x49c]
cmp edi, dword [esi + 0x4ac]
jl 0x4686f8
mov al, byte [esi + 0x4b0]
test al, al
je 0x46872b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
cmp edi, dword [esi + 0x49c]
je 0x468724
call ebx
sub eax, dword [0x57ef54]
cmp eax, 0x3e8
jb 0x4686e0
call ebx
mov edx, dword [esi]
mov ecx, esi
mov dword [0x57ef54], eax
call dword [edx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x4a8]
test al, al
jne 0x468849
fld qword [esi + 0x4a0]
fcomp qword [0x4ff9c8]
fnstsw ax
test ah, 0x41
jne 0x468849
fild dword [esi + 0x488]
fdiv qword [esi + 0x4a0]
call fcn.004e11d8
mov edi, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x48c]
mov ebx, eax
mov ecx, ebx
xor eax, eax
sub ecx, edx
cmp ecx, edi
mov dword [ebp - 4], eax
jl 0x468809
mov edx, dword [esi + 0x484]
inc edx
mov ecx, edx
cmp ecx, 0xa
mov dword [esi + 0x484], edx
jl 0x4687a0
mov cl, byte [esi + 0x502]
test cl, cl
jne 0x468809
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi + 0x48c]
add eax, edi
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x3e8
mov dword [esi + 0x48c], eax
jle 0x4687cd
lea edx, [ebx - 0x3e8]
mov dword [esi + 0x48c], edx
mov edi, dword [ebp - 4]
mov al, byte [esi + 0x502]
test al, al
jne 0x468849
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
sub eax, ebx
add eax, eax
sub eax, edi
cmp eax, 0xfa
jle 0x46883e
mov eax, 0xfa
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, esi
call fcn.004685e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x484], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esi + 0x48c]
cmp eax, edi
jge 0x4687cd
mov edx, dword [esi + 0x494]
sub edi, eax
inc edx
push edi
mov dword [esi + 0x494], edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4687d0
test eax, eax
jl 0x468849
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, esi
call fcn.004685e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ad90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov al, byte [esi + 0x3d4]
test al, al
push edi
mov edi, dword [ebp + 8]
je 0x46addc
cmp dword [esi + 0x3f0], 0x10
mov ecx, dword [esi + 0x3ec]
jb 0x46adbb
mov eax, dword [esi + 0x3dc]
jmp 0x46adc1
lea eax, [esi + 0x3dc]
push ecx
push eax
mov eax, dword [edi + 0x14]
push eax
push 0
mov ecx, edi
call fcn.00403530
test eax, eax
jne 0x46addc
pop edi
mov al, 1
pop esi
pop ebp
ret 8
mov cl, byte [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov byte [esi + 0x3d5], cl
push edi
lea ecx, [esi + 0x3d8]
mov byte [esi + 0x3d4], 1
call fcn.00408e40
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x3f4], eax
cmp dword [edi + 0x18], 0x10
jb 0x46ae13
mov eax, dword [edi + 4]
jmp 0x46ae16
lea eax, [edi + 4]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x46add4
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x5c]
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x46e970
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa3d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, dword [ecx + 0x2fc]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46ea01
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x46e9fb
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp eax, ebx
je 0x46e9fb
mov ecx, eax
push edi
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x46e9e0
sub ecx, edi
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00408ff0
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00408e40
cmp dword [ebp - 0x18], 0x10
jb 0x46ea31
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004e11d0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.004e19df
mov esp, ebp
pop ebp
ret 4
Function at 0x480e30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push str.IMAGEHLP.DLL
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [0x57f404], eax
jne 0x480e69
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004e19df
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.SymInitialize
push eax
call esi
test eax, eax
mov dword [0x57f408], eax
jne 0x480e93
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004e19df
mov esp, ebp
pop ebp
ret
mov eax, dword [0x57f404]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x57f40c], eax
je 0x480e81
mov ecx, dword [0x57f404]
push str.SymCleanup
push ecx
call esi
test eax, eax
mov dword [0x57f414], eax
je 0x480e81
mov edx, dword [0x57f404]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x57f410], eax
je 0x480e81
mov eax, dword [0x57f404]
push str.StackWalk
push eax
call esi
test eax, eax
mov dword [0x57f418], eax
je 0x480e81
mov ecx, dword [0x57f404]
push str.SymFunctionTableAccess
push ecx
call esi
test eax, eax
mov dword [0x57f41c], eax
je 0x480e81
mov edx, dword [0x57f404]
push str.SymGetModuleBase
push edx
call esi
test eax, eax
mov dword [0x57f420], eax
je 0x480e81
mov eax, dword [0x57f404]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x57f424], eax
je 0x480e81
push 4
call dword [0x57f40c]
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [ebp - 0x10c]
push 0x2f
push edx
call fcn.004e41b0
add esp, 8
test eax, eax
jne 0x480f83
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.004e41b0
add esp, 8
test eax, eax
je 0x480f86
mov byte [eax], 0
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x10c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480f95
sub eax, esi
mov dword [ebp - 8], eax
jne 0x480fa5
xor edx, edx
push 1
push edx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [0x57f408]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, dword [ebp + 4]
pop esi
call fcn.004e19df
mov esp, ebp
pop ebp
ret
Function at 0x480ff0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
jne 0x481012
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x481073
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x481073
lea eax, [ecx + 0x10]
lea ebx, [ebx]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x48105e
mov ecx, edx
cmp edi, esi
jb 0x481068
add ecx, esi
cmp edi, ecx
jbe 0x48107c
mov ecx, dword [ebp - 4]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x481050
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
sub edi, esi
pop esi
mov dword [edx], ebx
mov dword [eax], edi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4810a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetThreadPriority]
push 2
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
test eax, eax
jne 0x4810d9
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0
push 0x64
push edx
push eax
call fcn.004e2b90
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
adc eax, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x481118
jg 0x481130
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jb 0x481118
lea edx, [ebp - 0x18]
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push 0x64
push ecx
push edx
call fcn.004e2c40
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret