joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484a50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d9278
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.004cfade
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004843f0
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.004cfa0c
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.004cc1f6
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.004cc1f6
push 1
push 0
push 0
mov ecx, esi
call fcn.004cc19e
push 1
push 0
push 1
mov ecx, esi
call fcn.004cc19e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004cfb50
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x484bd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d9298
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.004cfade
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004843f0
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.004cfa0c
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 0x484c94
cmp dword [esp + 0x40], 1
jne 0x484c92
cmp ecx, eax
jge 0x484c94
mov eax, ecx
cmp eax, 0xc8
jge 0x484ca0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00484a50
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.004cfb50
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x485420
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d9303
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.004ca5cf
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.004cfd86
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004d13f9
test eax, eax
je 0x48553c
mov ecx, dword [esp + 0x3c]
call fcn.004cfdb3
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 0x485500
push edi
mov ecx, esi
call fcn.004cd371
mov ecx, esi
call fcn.004856a0
cmp dword [esp + 0x38], 1
jne 0x485535
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.004cd4db
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 0x487f60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x487f93
push esi
call fcn.004962b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x487f8c
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 0x488019
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x488002
mov eax, dword [esi + 8]
test eax, eax
je 0x487fb7
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 0x487ffe
cmp eax, 2
je 0x488002
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x487faa
cmp eax, 3
je 0x487fdd
cmp eax, 1
jne 0x487faa
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 0x487faa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x487faa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00488040
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x488028
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00488040
add esp, 4
pop esi
ret

Function at 0x4888b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4888d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4888d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4888d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4a3750
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d978b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x4a3830
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x507e3c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x4a3830
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.004c94e2
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x507e30
mov ecx, esi
call fcn.004c5e07
push str.gt_
push 0x507e24
mov ecx, esi
call fcn.004c5e07
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004c9796
lea ecx, [esp + 4]
call fcn.004c985a
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004c8e97
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.004c9582
jmp 0x4a3843
mov esi, dword [esp + 0x130]
push 0x51fffc
mov ecx, esi
call fcn.004c8e97
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x4a5750
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4a57f3
test eax, eax
jbe 0x4a57f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4a57f3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4a579e
xor esi, esi
jmp 0x4a57a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4a57cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004a9160
add esi, eax
push esi
mov ebx, esi
call fcn.004a9160
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4a57b0
pop ebp
test edi, edi
pop edi
jne 0x4a57f3
test ebx, ebx
je 0x4a57f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b9240
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4a5955
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a5a6d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a5a6d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004caa21
mov esi, eax
test esi, esi
je 0x4a5a6d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4a5a6d
mov ecx, esi
call fcn.004a58e0
cmp edi, eax
jge 0x4a5a6d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4a59f3
mov dword [esp + 0x34], 1
jmp 0x4a5a4e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4a5a6d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004a4e10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4abfb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x4ac105
cmp di, 0x801
ja 0x4ac105
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x4ac105
cmp bx, 0xc
ja 0x4ac105
mov al, byte [esp + 0x30]
test al, al
je 0x4ac004
push edi
call fcn.004ac540
add esp, 4
cmp ax, bx
je 0x4ac004
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.004ac110
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.004abf30
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x4ac105
test ebx, ebx
jne 0x4ac099
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x4ac0fb
test al, al
je 0x4ac08c
push 0xffffffffffffffe1
jmp 0x4ac08e
push 0x1f
push ebp
push edi
push esi
call fcn.004abee0
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.004abee0
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.004ac110
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.004abf30
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x4ac066
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x4ad7b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4da0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x52f0e0
lea ecx, [esp + 4]
call fcn.004c8e97
push 0x50e9dc
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.004c8e97
push 0x50e9d8
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004c8e97
push 0x50e9d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.004c8e97
push 0x50e9d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.004c8e97
push 0x50e9cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.004c8e97
push 0x50e9c8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.004c8e97
push 0x50e9c4
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.004c8e97
push 0x50e9c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.004c8e97
push 0x50e9bc
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.004c8e97
push 0x50e9b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.004c8e97
push 0x50e9b4
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.004c8e97
push 0x50e9b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.004c8e97
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x4ad8e0
cmp eax, 0xc
jle 0x4ad8e0
mov ecx, dword [esp + 0x48]
push 0x52f0e0
call fcn.004c8fb2
jmp 0x4ad8ee
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.004c8f62
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.004c8e29
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.004c8e29
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.004c8e29
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.004c8e29
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.004c8e29
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.004c8e29
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.004c8e29
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.004c8e29
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.004c8e29
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.004c8e29
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.004c8e29
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.004c8e29
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004c8e29
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x4ae370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4da275
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [edi], method.CWnd.virtual_0
mov dword [esp + 0x18], 0
lea esi, [edi + 0x84]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x4dc]
mov byte [esp + 0x18], 7
call fcn.004d1357
lea ecx, [esi + 0x4a0]
mov byte [esp + 0x18], 6
call fcn.004d1357
lea ecx, [esi + 0x488]
mov byte [esp + 0x18], 5
call fcn.004c8e29
lea ecx, [esi + 0x484]
mov byte [esp + 0x18], 4
call fcn.004c8e29
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 3
call fcn.004aaf10
mov ecx, esi
mov byte [esp + 0x18], 2
call fcn.004c9cd1
lea ecx, [edi + 0x80]
mov byte [esp + 0x18], 1
call fcn.004c8e29
lea esi, [edi + 0x48]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xc
call fcn.004c8e29
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 0xb
call fcn.004c8e29
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 0xa
call fcn.004c8e29
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 9
call fcn.004c8e29
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 8
call fcn.004c8e29
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 0
call fcn.004c8e29
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.004cb0d0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4c9d0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4c9d31
cmp dword [edi + 0x3c], 0
jne 0x4c9d31
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004d2901
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004c9d5e
pop edi
pop esi
pop ebx
ret 8

Function at 0x4cb40c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cb444
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.004c92d0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c92a8
jmp 0x4cb450
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ccafa
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 0x4ccb3c
call fcn.004d2901
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ccb3c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ccb33
xor eax, eax
jmp 0x4ccb44
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ccb4a
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d2e31
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 0x4d2e5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d2e7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d2d97
jmp 0x4d2e7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d2e7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d2d97
test edi, edi
mov eax, edi
jne 0x4d2e67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040927c
test esi, esi
jne 0x406ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409404
jmp 0x406ae4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069d4
mov edi, eax
test esi, esi
je 0x406ae4
cmp dword [ebx], 0
je 0x406ae4
dec esi
jmp 0x406acd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406b18
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x407fb4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040838c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408134
test edi, edi
je 0x408134
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408074
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40804f
cmp edi, 0xffffffff
je 0x408013
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408013
mov byte [esp], 0
jmp 0x408134
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40804f
test ebx, ebx
jne 0x408045
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408045
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408134
call 0x4084ac
dec ebp
test ebp, ebp
jg 0x407ff8
cmp edi, 0xffffffff
je 0x408074
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408072
mov byte [esp], 0
jmp 0x408134
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407fc2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408074
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004081a0
mov edx, eax
mov ebx, dword [0x6b28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4080d8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4080d6
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4080d8
xor edi, edi
cmp byte [esp], 0
je 0x4080fe
mov ebx, dword [esi]
test bl, 1
jne 0x408114
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080de
mov byte [esp + 1], 1
jmp 0x408114
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4080fe
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40808b
cmp byte [esp], 0
je 0x408134
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408edc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6b2058], 0
je 0x408f43
cmp word [0x6b2344], 0xd7b2
jne 0x408f05
cmp dword [0x6b234c], 0
jbe 0x408f05
mov eax, 0x6b2340
call dword [0x6b235c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x408f70
call fcn.00409ca4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x695032], 0
jne 0x408f5f
push 0
push 0x6959c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40913c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x695034], 0
je 0x409167
mov edx, edi
mov eax, esi
call dword [0x695034]
mov ebx, eax
jmp 0x409178
mov eax, 8
call fcn.00406710
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6b2059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409104
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4091a8
mov eax, ebx
call fcn.0040672c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc