joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55ffe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd8000]
mov dword [edi + 0x10639c], 0x4b222529
push edi
or ebp, 0xffffffff
jmp 0x56000a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x560011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x560000
mov eax, 1
add ebx, ebx
jne 0x560023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x560034
jne 0x560053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x560053
dec eax
add ebx, ebx
jne 0x560040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x560018
add ebx, ebx
jne 0x56004f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5600a5
xor ecx, ecx
sub eax, 3
jb 0x56006b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5600da
sar eax, 1
mov ebp, eax
jmp 0x560076
add ebx, ebx
jne 0x560076
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x560044
inc ecx
add ebx, ebx
jne 0x560084
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x560044
add ebx, ebx
jne 0x560091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x560086
jne 0x5600a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x560086
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5600c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5600b6
jmp 0x560006
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5600c4
add edi, ecx
jmp 0x560006
pop esi
mov edi, esi
mov ecx, 0x7566
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5600e2
cmp byte [edi], 0x19
jne 0x5600e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5600e7
lea edi, [esi + 0x15c000]
mov eax, dword [edi]
or eax, eax
je 0x56015f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x161870]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16194c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x560114
mov ecx, edi
jns 0x560143
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x161950]
or eax, eax
je 0x560159
mov dword [ebx], eax
add ebx, 4
jmp 0x560131
call dword [esi + 0x161958]
mov ebp, dword [esi + 0x161954]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x560193
sub esp, 0xffffff80
jmp 0x401458
Function at 0x401b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push 1
push 0
push 0x4155dc
push 0x80000002
mov edi, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b5b
lea ecx, [ebp - 0x1c]
push 0x413a60
push ecx
mov dword [ebp - 0x1c], 0x415598
call fcn.004094da
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
lea esi, [edi + 0x21c]
push edx
push esi
push 0
push 0
push 0x415588
push eax
mov dword [ebp - 0x14], 0x100
call ebx
test eax, eax
je 0x401b89
mov byte [esi], 0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
lea esi, [edi + 0x31c]
push ecx
push esi
push 0
push 0
push 0x415574
push edx
mov dword [ebp - 0x14], 0x100
call ebx
test eax, eax
je 0x401bb1
mov byte [esi], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x415564
push 0x415548
mov ecx, edi
call fcn.00401c00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push 1
push 0
push 0x4155dc
push 0x80000002
mov ebx, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401f1e
lea ecx, [ebp - 0x24]
push 0x413a60
push ecx
mov dword [ebp - 0x24], 0x415598
call fcn.004094da
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
lea edi, [ebx + 0x21c]
push edx
push edi
push 0
push 0
push 0x415588
push eax
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x401f4c
mov byte [edi], 0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
lea edi, [ebx + 0x31c]
push ecx
push edi
push 0
push 0
push 0x415574
push edx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x401f74
mov byte [edi], 0
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push 0x415548
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401fb1
lea edx, [ebp - 0x1c]
push 0x413a60
push edx
mov dword [ebp - 0x1c], 0x41570c
call fcn.004094da
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x12c]
push eax
push ecx
push 0
push 0
push 0x415564
push edx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x401feb
lea eax, [ebp - 0x28]
push 0x413a60
push eax
mov dword [ebp - 0x28], 0x4156e4
call fcn.004094da
mov ecx, dword [ebp - 0x18]
push ecx
call edi
lea edx, [ebp - 0x12c]
push edx
call fcn.00412cec
lea eax, [ebp - 0x12c]
push 0x4156cc
push eax
call fcn.00409520
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40203e
lea edx, [ebp - 0x20]
push 0x413a60
push edx
mov dword [ebp - 0x20], 0x41568c
call fcn.004094da
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x11c]
push eax
push edi
push 0
push 0
push 0x415788
push ecx
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x402066
mov byte [edi], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
lea edi, [ebx + 0x1c]
push edx
push edi
push 0
push 0
push 0x415764
push eax
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x40208d
mov byte [edi], 0
jmp 0x402099
mov ecx, dword [ebp - 0x14]
push ecx
push edi
mov ecx, ebx
call fcn.00402110
mov al, byte [ebx + 0x31c]
lea edi, [ebx + 0x31c]
test al, al
jne 0x4020d9
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push edi
push 0
push 0
push 0x415744
push eax
mov dword [ebp - 0x14], 0x100
call esi
test eax, eax
je 0x4020cd
mov byte [edi], 0
jmp 0x4020d9
mov ecx, dword [ebp - 0x14]
push ecx
push edi
mov ecx, ebx
call fcn.00402110
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404370
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 8]
cmp eax, 0x40
ja case.0x40438b.12
xor edx, edx
mov dl, byte [eax + 0x4044a8]
jmp dword [edx*4 + 0x404494]
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.00404760
mov eax, dword [0x419600]
test eax, eax
jne 0x4043ff
mov edx, dword [esi + 4]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 4], edx
push eax
call fcn.004044f0
cmp dword [esi + 4], 0x1a
jne 0x4043da
mov eax, dword [esp + 8]
mov ecx, dword [0x4192b4]
push eax
push 0x1b
push 0x102
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
ret 8
mov edx, dword [esi]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
ret 8
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.00404760
mov eax, dword [0x419600]
test eax, eax
je 0x40441c
mov ecx, dword [esp + 8]
mov edx, dword [0x4192b4]
push ecx
push 0x1b
push 0x102
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
ret 8
mov edx, dword [esi + 4]
dec edx
mov eax, edx
mov dword [esi + 4], edx
test eax, eax
jg 0x40442d
inc eax
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.004044f0
mov ecx, dword [esi]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
ret 8
mov edx, dword [esp + 8]
mov eax, dword [0x4192b4]
push edx
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
ret 8
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x404482
mov edx, dword [esi + 0x18]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 8
mov eax, dword [esi + 0x18]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 8
Function at 0x4067e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
push edi
push ebx
push 0
mov esi, ecx
call fcn.00406ec0
mov eax, dword [esi + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
xor esi, esi
mov ebp, 0x419764
mov ecx, dword [esi*4 + 0x415e80]
lea edx, [esp + 0x18]
push ecx
push 0x415ef8
push edx
call fcn.00409000
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x4197b4]
not ecx
dec ecx
push ecx
mov ecx, eax
imul ecx, esi
push edx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
push 5
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [0x4197a4]
mov eax, dword [0x4197a8]
mov ecx, dword [ebp + 4]
push 0xff0062
push 0
push 0
push 0
push edx
mov edx, dword [ebp]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
inc esi
add ebp, 0xc
cmp esi, 5
jl 0x40681c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret 4
Function at 0x4072b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + edx]
lea ecx, [edx + ecx*2]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x78], ecx
mov ecx, eax
shl ecx, 8
xor esi, esi
sub ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x20], 0xa
jmp 0x407303
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x6c]
cmp eax, 1
jne 0x40731f
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x407375
cmp eax, 2
jne 0x40733b
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x14], edx
jmp 0x407379
cmp eax, 3
jne 0x407357
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
jmp 0x407379
cmp eax, 4
jne 0x407379
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
xor edx, edx
mov dh, byte [esp + 0x10]
and eax, 0xff
mov dl, byte [esp + 0x14]
shl edx, 8
or edx, eax
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov edi, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], edx
lea ebx, [esi + 0xf]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edi
lea ecx, [eax + ebx - 0xf]
push edx
push ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push edi
push 0x415fac
push eax
call fcn.00409000
mov eax, dword [esp + 0x88]
add edi, 2
add eax, 0x1fe
mov dword [esp + 0x28], edi
mov dword [esp + 0x88], eax
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov edx, dword [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + 0xf]
push ecx
lea ecx, [esp + 0x38]
push ecx
push ebx
push eax
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x70]
push 0
push esi
push eax
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x78]
push esi
push ecx
push ebp
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
add esi, ecx
dec eax
mov dword [esp + 0x20], eax
jne 0x4072ff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x18
Function at 0x408400
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [0x4197b8]
mov esi, dword [esp + 0x38]
xor edi, edi
mov dword [0x41979c], esi
cmp eax, edi
je 0x408427
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x419748]
mov ecx, dword [0x41979c]
push edi
push eax
push edi
push ecx
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 1
push edi
push 0x416138
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [0x4197b8], eax
jne 0x40847b
push 0x10
push 0x415460
push 0x41611c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00409d4c
mov edx, dword [0x41979c]
push edi
push 0x408380
push edx
call dword [sym.imp.USER32.dll_EnumChildWindows]
test eax, eax
jne 0x4084ab
push 0x10
push 0x415460
push 0x4160fc
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00409d4c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x4082b0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp eax, edi
mov dword [0x4197b0], eax
jne 0x4084e2
push 0x10
push 0x415460
push 0x4160e4
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00409d4c
mov edx, dword [0x4197b8]
mov eax, dword [0x419748]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x2c
push ecx
push edi
push 0x404
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x82
mov dword [esp + 0x34], 0x50
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x408570
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40858d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40858d
xor edi, edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40859b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi]
mov ecx, dword [0x419748]
push 0
push fcn.00403c50
push eax
push 0x67
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 1
push 0xffffffffffffffeb
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0x18]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x18]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
ret
Function at 0x4085f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40860d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40860d
xor edi, edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40861b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi]
mov ecx, dword [0x419748]
push 0
push fcn.00403c50
push eax
push 0x68
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 2
push 0xffffffffffffffeb
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0x18]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x18]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
ret
Function at 0x408920
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
mov dword [esp + 8], 0
cmp dword [esi + 4], 0xffffffff
jne 0x40893f
fld dword [0x4133a4]
pop esi
add esp, 0x3c
ret
push ebx
push ebp
lea eax, [esp + 0x38]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
push ebp
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push ecx
push 0
push 0
lea edx, [esp + 0x20]
push 4
push edx
push 0xc0002008
push eax
mov dword [esp + 0x30], 2
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x34]
push ecx
call ebx
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0
lea eax, [esp + 0x20]
push 4
push eax
push 0xc0002008
push ecx
mov dword [esp + 0x30], 2
call edi
lea edx, [esp + 0x2c]
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [esp + 0x30]
push 0
sbb ecx, edx
push 0x3e8
push ecx
push eax
call fcn.00409ee0
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push eax
call fcn.00409e30
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fild qword [esp + 0x44]
mov eax, dword [esp + 0x14]
inc eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x4133a0]
mov dword [esp + 0x14], eax
fnstsw ax
test ah, 5
jnp 0x4089c4
mov edx, dword [esp + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
fild dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [0x41339c]
pop edi
pop ebp
pop ebx
pop esi
fdivp st(1)
add esp, 0x3c
ret
Function at 0x408df0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412e20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, edi
mov dword [ebp - 0x24], eax
jne 0x408e3f
lea eax, [ebp - 0x14]
push 0x413a60
push eax
mov dword [ebp - 0x14], 0x4163ec
call fcn.004094da
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
jne 0x408e62
lea ecx, [ebp - 0x18]
push 0x413a60
push ecx
mov dword [ebp - 0x18], 0x4163b8
call fcn.004094da
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, 0x32
jle 0x408e9e
lea edx, [ebp - 0x1c]
push 0x413a60
push edx
mov dword [ebp - 0x1c], 0x416310
call fcn.004094da
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0x10
push 0x416304
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x408ef0
ret
push eax
call fcn.0040963e
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov esi, edi
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x408eb4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40a
jne 0x408ee5
mov eax, edi
cmp byte [eax], 0x20
jne 0x408eda
inc eax
jmp 0x408ed2
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x408ef3
push edi
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x408ef3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x408f00
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
je 0x408f0d
push edi
call fcn.004095d5
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cb9c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbc4
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret