joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431780
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4731f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4317b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4318cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4317cd
mov eax, 0xffffffc7
jmp 0x4318ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4317de
cmp dword [esi + 8], eax
jne 0x4317cd
cmp dword [esi + 8], eax
jne 0x4317f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4317f7
mov eax, 0xffffffc7
jmp 0x4318ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43180b
push eax
mov ecx, ebx
call fcn.00430fb0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402540
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43183c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402560
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430720
test eax, eax
mov dword [esp + 0x38], eax
je 0x43186f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53ed90
call fcn.00402740
mov eax, dword [esp + 0x38]
jmp 0x4318ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004315e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4318b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431600
mov esi, eax
test esi, esi
jne 0x4318e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004315e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431885
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53ed90
call fcn.00402740
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53ed90
call fcn.00402740
mov eax, esi
jmp 0x4318ce

Function at 0x434a00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434a60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434a60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434a60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434a60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43abf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046a852
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a590
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046a780
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00466f6c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00466f6c
push 1
push 0
push 0
mov ecx, esi
call fcn.00466f14
push 1
push 0
push 1
mov ecx, esi
call fcn.00466f14
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046a8c4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ad70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046a852
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a590
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046a780
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ae34
cmp dword [esp + 0x40], 1
jne 0x43ae32
cmp ecx, eax
jge 0x43ae34
mov eax, ecx
cmp eax, 0xc8
jge 0x43ae40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043abf0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046a8c4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b5b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4738b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00465388
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046aafa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c052
test eax, eax
je 0x43b6cc
mov ecx, dword [esp + 0x3c]
call fcn.0046ab27
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b690
push edi
mov ecx, esi
call fcn.004680e7
mov ecx, esi
call fcn.0043b830
cmp dword [esp + 0x38], 1
jne 0x43b6c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468251
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e0f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e123
push esi
call fcn.00441200
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e11c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e1a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e192
mov eax, dword [esi + 8]
test eax, eax
je 0x43e147
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e18e
cmp eax, 2
je 0x43e192
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e13a
cmp eax, 3
je 0x43e16d
cmp eax, 1
jne 0x43e13a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e13a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e13a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e1d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e1b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e1d0
add esp, 4
pop esi
ret

Function at 0x46617d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4661b5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464234
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046420c
jmp 0x4661c1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4678b2
call fcn.0046d554
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4678b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4678a9
xor eax, eax
jmp 0x4678ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004678c0
pop edi
pop esi
pop ebx
ret 4

Function at 0x46da84
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dab2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dad0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d9ea
jmp 0x46dad0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dad0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d9ea
test edi, edi
mov eax, edi
jne 0x46daba
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408963
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov esi, dword [esp]
add esp, 4
sub eax, edx
sub eax, 0x78dc5ad7
call fcn.00408995
mov eax, edx
xor dword [ebx], esi
inc ebx
cmp ebx, ecx
jne fcn.00408963
sub esp, 4
mov dword [esp], 0x86ce80a
mov eax, dword [esp]
add esp, 4
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0x85a05907
add eax, 0x7a9fd8fc
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xc24d6bec
add dword [ebp - 0x48], 0x8c04d95f
mov dword [ebp - 0x44], 0xdf603823
sub dword [ebp - 0x44], 0xad2cebde
mov dword [ebp - 0x40], 0xce79fcef
add dword [ebp - 0x40], 0x7dd2473f
mov dword [ebp - 0x3c], 0xe38bd03e
sub dword [ebp - 0x3c], 0xe38bd03e
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xc5421141
sub dword [ebp - 0x48], 0x50cfa7eb
mov dword [ebp - 0x44], 0xe19614f0
sub dword [ebp - 0x44], 0xa029b37b
mov dword [ebp - 0x40], 0xd0169f61
sub dword [ebp - 0x40], 0x6ca732f5
mov dword [ebp - 0x3c], 0x45d4c731
sub dword [ebp - 0x3c], 0x45d4c731
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x3d19f0e2
add eax, 0xc3268ff2
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3b741
push 0
call eax
mov ecx, 0xe4e8c71c
add ecx, 0x1b179454
mov edi, eax
mov esi, 0x411000
add esi, dword [ebp - 0x38]
mov ebx, 0x1c8f1914
sub ebx, 0x9f35e513
sub dword [ebp - 0x1c], 0xfe9c3e04
mov edx, dword [esi]
sub dword [ebp - 0x18], 0xd175edff
sub edx, ebx
xor dword [ebp - 0x30], 0xd59ee255
mov dword [edi], edx
add edi, 0x6a90eb2d
sub edi, 0x6a90eb29
add esi, 0x724deaf5
sub esi, 0x724deaf1
loop 0x40331a
add eax, 0x16093
mov ebx, eax
add eax, 0x993ede27
add eax, 0x66c121de
mov ecx, 0xb8502daf
sub ecx, 0xb8102daf
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cffb
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cffb
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cffb
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cffb
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cffb
mov dword [0x41203c], eax
call fcn.0040cffb
test eax, eax
jge 0x402550
push 8
call fcn.0040cffb
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cffb
pop ecx
push 1
call fcn.0040cffb
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cffb
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cffb
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cffb
jmp 0x402495

Function at 0x40cffb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40d00a
pop dword [ebp - 0x40]
mov eax, 0x40d00a
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3909a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xb33907b8
sub ecx, 0xb338c07e
mov esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x40]
mov ebx, 0x6bb58034
sub dword [ebp - 0xc], 0xa53a95f3
mov edx, dword [edi]
add dword [ebp - 8], edi
xor edx, ebx
sub dword [ebp - 0x10], 0xce6f4a58
mov dword [esi], edx
xor dword [ebp - 0x2c], eax
add esi, 0x2e21d081
sub esi, 0x2e21d07d
add edi, 0x6049de19
sub edi, 0x6049de15
loop 0x40d053
add eax, 0x6551564a
sub eax, 0x6550468f
xor ebx, ebx
add ebx, eax
add eax, 0x7a8eef16
add eax, 0x857110ef
mov ecx, 0x6683278
sub ecx, 0x6283278
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401710
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x401723
xor eax, eax
jmp 0x4018a7
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
push 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4018a4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4018a4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401896
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40188c
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x14]
jge 0x401797
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
jmp 0x40179d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jge 0x4017b3
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
jmp 0x4017b9
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401882
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x18], 0
je 0x401843
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x14]
jne 0x401816
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
je 0x401843
push 0xcc0020
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x401866
push 0xcc0020
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402277
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41245b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x418750
lea ecx, [ebp - 0x14]
call fcn.00403b40
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [0x418974]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x4e20
jae 0x402306
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x418970]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x18], 0x103
je 0x402304
jmp 0x402306
jmp 0x4022c6
cmp dword [ebp - 0x18], 0x103
jne 0x40232c
push 0
mov eax, dword [0x418970]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov ecx, dword [0x418978]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x418970]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x418974]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x418978]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41894c], 0
je 0x402398
mov edx, dword [0x41894c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x402387
push 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
call dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
jmp 0x40238e
mov dword [ebp - 0x2c], 0
mov dword [0x41894c], 0
jmp 0x4023aa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x20006
push 0
push 0x4154e0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402d42
xor eax, eax
jmp 0x402dba
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402d7c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402dba
push 0x20
mov eax, dword [ebp + 0x10]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x402db5
xor eax, eax
jmp 0x402dba
mov eax, 1
mov esp, ebp
pop ebp
ret