joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41ce90
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 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cea9
add dl, dl
jne 0x41cecc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf1d
xor eax, eax
add dl, dl
jne 0x41ced9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfba
add dl, dl
jne 0x41cee8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cefe
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf09
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf13
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41ceb8
mov eax, 1
add dl, dl
jne 0x41cf2b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf36
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf22
sub eax, ebx
mov ebx, 1
jne 0x41cf69
mov ecx, 1
add dl, dl
jne 0x41cf4f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf5a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf46
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41ceb8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf8b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf77
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 0x41ceb8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfdb
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 0x41ceb8
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
Function at 0x41efdc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5e94ca
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f02b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f04a
mov ecx, edx
add ecx, ebx
jmp 0x41f04a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f04a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f0bc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f0a5
test esi, esi
jbe 0x41f0bc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f097
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f0bc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f074
jmp 0x41f0bc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f0bc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e94d1
ret
Function at 0x4201e8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5ea803
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420223
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42023c
lea eax, [ebp - 0x10]
mov edx, dword [0x60630c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42024f
lea eax, [ebp - 0x10]
mov edx, dword [0x60630c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42025b
adc edx, 0
mov edx, dword [edx*4 + 0x605154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4203d5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4203c8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4203c8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420366
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420366
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420366
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420366
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4203c8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4203c8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4203ed
inc ebx
cmp ebx, 0x19
jne 0x420215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ea80a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3

Function at 0x100023c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0x457
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x100023d8
xor eax, eax
jmp 0x100023de
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0xc]
pop ebp
ret
Function at 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319f], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319f]
mov dword [ebp - 0x48], eax
mov eax, 0x401b7b
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319f]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret
Function at 0x417380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4383f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x23b6543], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x4173e7
lea eax, [ebp - 0x40]
push eax
push 0x2459780
call fcn.0041a198
add esp, 8
test eax, eax
jne 0x4173e7
push 0x2459780
push str._s_already_exists_and___forceoverwrite_not_set._Leaving_file_as_is.
push 0x2e3c
push str.MyCopyFile
push 4
call fcn.004016a0
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d55
mov esp, ebp
pop ebp
ret
push 0x800
mov edx, 0x42ddb4
mov ecx, esi
call fcn.00412100
add esp, 4
mov esi, eax
push 0x800
mov edx, 0x42ede4
mov ecx, 0x2459780
mov dword [ebp - 0x48], esi
call fcn.00412100
add esp, 4
push str._BEGIN_COPY
mov dword [ebp - 0x44], eax
call fcn.0041af1f
add esp, 4
push esi
push 0x100000
push 1
push 0x259c7e0
xor ebx, ebx
call fcn.0041b2f9
push 0x4303b0
mov esi, eax
xor edi, edi
call fcn.0041af1f
mov ecx, esi
add esp, 0x14
or ecx, edi
je 0x4174a0
mov edx, dword [ebp - 0x44]
push edx
push esi
push 1
push 0x259c7e0
call fcn.0041b579
mov ebx, eax
add esp, 0x10
xor eax, eax
cmp ebx, esi
jne 0x4174a0
cmp eax, edi
jne 0x4174a0
mov eax, dword [ebp - 0x48]
push eax
push 0x100000
push 1
push 0x259c7e0
xor ebx, ebx
call fcn.0041b2f9
push 0x4303b0
mov esi, eax
xor edi, edi
call fcn.0041af1f
mov ecx, esi
add esp, 0x14
or ecx, edi
jne 0x417452
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041bc41
mov eax, dword [ebp - 0x44]
add esp, 4
push eax
call fcn.0041bc41
add esp, 4
cmp ebx, esi
jne 0x4174c2
xor eax, eax
cmp eax, edi
je 0x4174d6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00418d55
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x381241
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x8142f80
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4119e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, 0x57e6f8
call ebx
sub eax, dword [edi + 0xc]
cmp eax, 0x3e8
jb 0x411b4d
call ebx
push 0
mov dword [edi + 0xc], eax
call fcn.0052d9f5
add esp, 4
mov esi, eax
mov eax, dword [edi + 8]
push edx
cdq
push esi
push edx
push eax
call fcn.0052d9b0
add esp, 0x10
call fcn.00545cc0
cmp dword [0xbdae28], 0
mov ecx, eax
mov dword [edi + 4], ecx
jne 0x411a50
cmp dword [0xbd8f08], 0xffffffff
je 0x411a7c
mov dword [0xbd8f08], 0xffffffff
jmp 0x411a7c
test ecx, ecx
js 0x411a7c
mov eax, dword [0xbd8f08]
cmp ecx, eax
jl 0x411a61
test eax, eax
jg 0x411a7c
cmp dword [edi], 1
jne 0x411a6e
mov dword [0xbd8f08], ecx
jmp 0x411a7c
test eax, eax
je 0x411a7c
mov dword [0xbd8f08], 0
mov eax, dword [edi]
sub eax, 0
je 0x411b4d
sub eax, 1
je 0x411b63
sub eax, 1
jne 0x411b4d
test ecx, ecx
jg 0x411b4d
push dword [edi - 0x24]
lea ebx, [edi - 0x24]
push str._Bonus_Manager____d__SetState_EMPTY
push eax
call fcn.005262e0
mov esi, dword [edi + 0x14]
add esp, 0xc
cmp esi, 0xffffffff
je 0x411b2d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
lea eax, [esp + 0x1c]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x20]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x411aea
cmp esi, dword [eax + 0x10]
jge 0x411aec
mov eax, ecx
cmp eax, ecx
jne 0x411b0b
push esi
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x411b0e
add eax, 0x18
push eax
push 0x554320
push 0
push 0
push 0
push 0
push 0
push 0
push 0xb90558
call fcn.004cdd70
add esp, 0x24
cmp dword [0xbdae28], 0
je 0x411b47
push ebx
mov ecx, 0x57e6d0
mov dword [edi], 1
call fcn.00411c90
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, 0x58
cmp edi, 0x57edd8
jl 0x4119f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jg 0x411b4d
push dword [edi - 0x24]
push str._Bonus_Manager____d__SetState_START
push 0
call fcn.005262e0
mov esi, dword [edi + 0x10]
add esp, 0xc
cmp esi, 0xffffffff
je 0x411bf1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
lea eax, [esp + 0x28]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x2c]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x411bae
cmp esi, dword [eax + 0x10]
jge 0x411bb0
mov eax, ecx
cmp eax, ecx
jne 0x411bcf
push esi
push str.Could_not_find_message__d_
push 0xa9b7bc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x411bd2
add eax, 0x18
push eax
push 0x554320
push 0
push 0
push 0
push 0
push 0
push 0
push 0xb90558
call fcn.004cdd70
add esp, 0x24
cmp dword [0xbdae28], 0
je 0x411b4d
mov eax, dword [edi + 0x18]
push 0
mov dword [edi], 2
mov dword [edi + 4], eax
call fcn.0052d9f5
mov ecx, dword [edi + 4]
add esp, 4
add ecx, eax
mov dword [esp + 0x14], edx
mov dword [edi + 8], ecx
jmp 0x411b4d
Function at 0x4165f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x5d8e70]
cmp eax, 0x3e8
jb 0x4167f4
cmp dword [0xbdae2c], 0
mov ecx, dword [0x5d8e64]
jne 0x416635
mov eax, dword [0xbd901c]
cmp eax, 0xffffffff
je 0x41664f
mov dword [0xbd901c], 0xffffffff
jmp 0x416666
cmp ecx, 1
jne 0x416646
mov eax, dword [0x5d8e68]
mov dword [0xbd901c], eax
jmp 0x41664f
mov eax, dword [0xbd901c]
test eax, eax
jne 0x41665c
test eax, eax
jle 0x416666
cmp ecx, 1
je 0x416666
test ecx, ecx
je 0x416666
mov dword [0xbd901c], 0
call esi
push 0
mov dword [0x5d8e70], eax
call fcn.0052d9f5
add esp, 4
mov esi, eax
mov eax, dword [0x5d8e6c]
push edx
cdq
push esi
push edx
push eax
call fcn.0052d9b0
mov eax, dword [0x5d8e64]
add esp, 0x10
fstp qword [ebp - 8]
cvttsd2si ecx, qword [ebp - 8]
mov dword [0x5d8e68], ecx
sub eax, 0
je 0x4167f4
sub eax, 1
je 0x4166bf
sub eax, 1
jne 0x4167f4
call fcn.00416800
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
test ecx, ecx
jle 0x416773
cmp ecx, 0x12c
jg 0x41676b
cmp dword [0x5d8e74], 0
jne 0x41676b
lea eax, [ebp - 4]
mov dword [0x5d8e74], 1
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x160
push eax
mov ecx, 0xa9b83c
call fcn.00405650
mov eax, dword [ebp - 0xc]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x416721
cmp dword [eax + 0x10], 0x160
jle 0x416723
mov eax, ecx
cmp eax, ecx
jne 0x416742
push 0x160
push str.Could_not_find_message__d_
push 0xa9b7bc
call esi
add esp, 0xc
mov ecx, 0xa9b7bc
jmp 0x416745
lea ecx, [eax + 0x18]
mov eax, dword [0xa0cdb0]
test eax, eax
jne 0x416753
or eax, 0xffffffff
jmp 0x416757
movzx eax, byte [eax + 8]
push ecx
sub esp, 0x14
mov ecx, eax
call fcn.00472920
mov ecx, dword [0x5d8e68]
add esp, 0x18
test ecx, ecx
jg 0x4167f4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x161
push eax
lea eax, [ebp - 0x14]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [ebp - 0xc]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x4167a4
cmp dword [eax + 0x10], 0x161
jle 0x4167a6
mov eax, ecx
cmp eax, ecx
jne 0x4167c5
push 0x161
push str.Could_not_find_message__d_
push 0xa9b7bc
call esi
add esp, 0xc
mov ecx, 0xa9b7bc
jmp 0x4167c8
lea ecx, [eax + 0x18]
mov eax, dword [0xa0cdb0]
test eax, eax
jne 0x4167d6
or eax, 0xffffffff
jmp 0x4167da
movzx eax, byte [eax + 8]
push ecx
sub esp, 0x14
mov ecx, eax
call fcn.00472920
add esp, 0x18
mov ecx, 0x5d8e60
push 2
call fcn.00416aa0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a720
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x5d8ff8]
cmp eax, 0x3e8
jl 0x41a905
push 0
call fcn.0052d9f5
add esp, 4
mov esi, eax
mov eax, dword [0x5d8ff4]
push edx
cdq
push esi
push edx
push eax
call fcn.0052d9b0
fmul qword [0x56a7f0]
add esp, 0x10
fstp qword [esp + 0x10]
cvttsd2si eax, qword [esp + 0x10]
mov dword [0x5d8ff0], eax
call edi
mov dword [0x5d8ff8], eax
call edi
sub eax, dword [0x5d9024]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x1b7740
jbe 0x41a82a
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1a5
push eax
lea eax, [esp + 0x20]
mov ecx, 0xa9b83c
push eax
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x41a7de
cmp dword [eax + 0x10], 0x1a5
jle 0x41a7e0
mov eax, ecx
cmp eax, ecx
jne 0x41a7ff
push 0x1a5
push str.Could_not_find_message__d_
push 0xa9b7bc
call esi
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x41a804
add eax, 0x18
je 0x41a823
mov ecx, dword [0xa0cdb0]
test ecx, ecx
jne 0x41a813
or ecx, 0xffffffff
jmp 0x41a817
movzx ecx, byte [ecx + 8]
push eax
sub esp, 0x14
call fcn.00472920
add esp, 0x18
call edi
mov dword [0x5d9024], eax
cmp dword [0x5d8ff0], 0x493e0
jg 0x41a905
call edi
sub eax, dword [0x5d903c]
cmp eax, 0xea60
jbe 0x41a905
push pe_nt_image_headers32
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0052bd20
mov eax, 0x45e7b273
mov dword [esp + 0x1c], 0x1a6
imul dword [0x5d8ff0]
add esp, 0xc
lea eax, [esp + 0x10]
sar edx, 0xe
mov ecx, 0xa9b83c
mov ebx, edx
inc edx
shr ebx, 0x1f
push eax
lea eax, [esp + 0x20]
add ebx, edx
push eax
call fcn.00405650
mov eax, dword [esp + 0x24]
mov ecx, dword [0xa9b83c]
cmp byte [eax + 0xd], 0
jne 0x41a8ac
cmp dword [eax + 0x10], 0x1a6
jle 0x41a8ae
mov eax, ecx
cmp eax, ecx
jne 0x41a8cd
push 0x1a6
push str.Could_not_find_message__d_
push 0xa9b7bc
call esi
add esp, 0xc
mov eax, 0xa9b7bc
jmp 0x41a8d0
add eax, 0x18
push ebx
push eax
lea eax, [esp + 0x30]
push eax
call esi
mov eax, dword [0xa0cdb0]
add esp, 0xc
test eax, eax
jne 0x41a8ea
or ecx, 0xffffffff
jmp 0x41a8ee
movzx ecx, byte [eax + 8]
lea eax, [esp + 0x28]
push eax
sub esp, 0x14
call fcn.00472920
add esp, 0x18
call edi
mov dword [0x5d903c], eax
cmp dword [0x5d8ff0], 0
jg 0x41a91c
push 1
push 7
mov ecx, 0x5d8f88
call fcn.00419460
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret