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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48f338
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 0x43aa99
inc eax
mov dword [esi + 0x10], eax
jmp 0x43abac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43aaad
mov eax, 0xffffffc7
jmp 0x43abae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43aabe
cmp dword [esi + 8], eax
jne 0x43aaad
cmp dword [esi + 8], eax
jne 0x43aad7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43aad7
mov eax, 0xffffffc7
jmp 0x43abae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43aaeb
push eax
mov ecx, ebx
call fcn.0043a290
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.00409c70
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43ab1c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00409c90
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00439a00
test eax, eax
mov dword [esp + 0x38], eax
je 0x43ab4f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55e6d8
call fcn.00409e70
mov eax, dword [esp + 0x38]
jmp 0x43abae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043a8c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43ab93
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043a8e0
mov esi, eax
test esi, esi
jne 0x43abc3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043a8c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43ab65
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55e6d8
call fcn.00409e70
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], 0x55e6d8
call fcn.00409e70
mov eax, esi
jmp 0x43abae

Function at 0x43dce0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43dd40
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43dd40
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43dd40
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43dd40
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 0x43dd80
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 0x443bf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f968
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.004885fd
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443590
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.0048852b
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.00484def
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.00484def
push 1
push 0
push 0
mov ecx, esi
call fcn.00484d97
push 1
push 0
push 1
mov ecx, esi
call fcn.00484d97
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048866f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443d70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f988
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.004885fd
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443590
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.0048852b
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 0x443e34
cmp dword [esp + 0x40], 1
jne 0x443e32
cmp ecx, eax
jge 0x443e34
mov eax, ecx
cmp eax, 0xc8
jge 0x443e40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443bf0
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.0048866f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4445c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f9f3
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.0048320f
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.004888a5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00489dc1
test eax, eax
je 0x4446dc
mov ecx, dword [esp + 0x3c]
call fcn.004888d2
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 0x4446a0
push edi
mov ecx, esi
call fcn.00485f36
mov ecx, esi
call fcn.00444840
cmp dword [esp + 0x38], 1
jne 0x4446d5
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.00486071
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 0x447110
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447143
push esi
call fcn.0044a200
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44713c
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 0x4471c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4471b2
mov eax, dword [esi + 8]
test eax, eax
je 0x447167
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 0x4471ae
cmp eax, 2
je 0x4471b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44715a
cmp eax, 3
je 0x44718d
cmp eax, 1
jne 0x44715a
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 0x44715a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44715a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004471f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4471d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004471f0
add esp, 4
pop esi
ret

Function at 0x453270
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 0x453313
test eax, eax
jbe 0x453313
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453313
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 0x4532be
xor esi, esi
jmp 0x4532c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4532ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040a700
add esi, eax
push esi
mov ebx, esi
call fcn.0040a700
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4532d0
pop ebp
test edi, edi
pop edi
jne 0x453313
test ebx, ebx
je 0x453313
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00460010
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x453455
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 0x45356d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45356d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00483661
mov esi, eax
test esi, esi
je 0x45356d
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 0x45356d
mov ecx, esi
call fcn.004533c0
cmp edi, eax
jge 0x45356d
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 0x4534f3
mov dword [esp + 0x34], 1
jmp 0x45354e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45356d
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.00452900
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 0x459e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4901a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0045a210
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x5a7f2c
call fcn.00461260
mov ecx, dword [0x5627d0]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004575a0
mov esi, 0x562828
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x459eb7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x459eae
cmp al, 0xff
je 0x459eae
dec al
mov byte [ecx], al
jmp 0x459eb7
push ecx
call fcn.004819c8
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0047d6b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x459efd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x459ef4
cmp al, 0xff
je 0x459ef4
dec al
mov byte [ecx], al
jmp 0x459efd
push ecx
call fcn.004819c8
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004612e7
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x477b10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4911c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0046cb02
mov eax, dword [0x565540]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0046ca34
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00478620
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x477bb7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x477bae
cmp al, 0xff
je 0x477bae
dec al
mov byte [ecx], al
jmp 0x477bb7
push ecx
call fcn.004819c8
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x477be8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x477bdf
cmp al, 0xff
je 0x477bdf
dec al
mov byte [ecx], al
jmp 0x477be8
push ecx
call fcn.004819c8
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x484005
Capabilities:
Get graphical window text

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

Function at 0x4856f3
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 0x485735
call fcn.0048b1ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485735
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48572c
xor eax, eax
jmp 0x48573d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00485743
pop edi
pop esi
pop ebx
ret 4

Function at 0x48b6dc
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 0x48b70a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48b728
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048b642
jmp 0x48b728
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48b728
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048b642
test edi, edi
mov eax, edi
jne 0x48b712
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
movzx eax, word [esp + 0xc]
push str.BINDATA
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x401527
pop edi
pop esi
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x401549
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40154f
pop ebx
pop edi
xor eax, eax
pop esi
ret
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov esi, eax
push esi
call fcn.00402ed0
add esp, 4
mov edi, eax
test esi, esi
je 0x401570
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x4034d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421438
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x429574]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push ecx
lea ebx, [esp + 0x24]
call fcn.00402fc0
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x2c]
mov dword [esp + 0x14], ebx
test eax, 0xfffffffc
jle 0x403605
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
sar ecx, 2
cmp ebx, ecx
jb 0x403555
call fcn.004121d8
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + ebx*4]
cmp byte [ecx + 4], 0
je 0x4035ef
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0x10]
mov esi, dword [edi]
mov ebx, dword [edi + 8]
add eax, edx
add ebx, esi
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x403580
mov dword [esp + 0x18], ebx
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
lea ebx, [edi + eax]
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 0x14]
add edi, eax
cmp edi, ebx
jge 0x403597
mov ebx, edi
cmp edx, esi
jg 0x40359d
mov edx, esi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 4]
cmp eax, esi
jg 0x4035a9
mov eax, esi
mov esi, dword [esp + 0x18]
sub esi, edx
sub ebx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
test esi, esi
jle 0x4035e7
test ebx, ebx
jle 0x4035e7
sub edx, dword [ecx + 8]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
inc ebx
sar ecx, 2
cmp ebx, ecx
mov dword [esp + 0x14], ebx
jl 0x403543
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push edx
push eax
call sub.gdiplus.dll_GdipRestoreGraphics
test eax, eax
je 0x40361d
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404560
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
Function at 0x405310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x134
mov eax, dword [0x429574]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [0x42a880]
push edi
push 0xf0
push 0x64
mov edi, 1
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40549c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40549c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40549c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x405384
mov edi, dword [esp + 0x10]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x405498
add esi, 2
mov edx, dword [esi + 2]
movzx edi, ax
movzx eax, word [esi]
add esi, 2
mov ecx, 0x403
add esi, 4
mov dword [esp + 0x14], edx
cmp cx, ax
jne 0x405400
push 3
lea edx, [esp + 0x44]
push esi
lea eax, [esp + 0x44]
mov dword [esp + 0x44], edx
call fcn.00405500
mov eax, dword [esp + 0x3c]
mov edx, dword [ebp + 4]
push eax
push 0
movzx ecx, di
push 0x143
push ecx
push edx
call ebx
cmp eax, 0xffffffff
jne 0x4053e9
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x40546a
push eax
call fcn.004127a9
add esp, 4
jmp 0x40546a
mov edx, 0x1234
cmp dx, ax
jne 0x40546a
lea eax, [esp + 0x40]
push 3
mov dword [esp + 0x40], eax
push esi
lea eax, [esp + 0x44]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0xffffffff
call fcn.00405500
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], eax
cmp eax, ecx
je 0x405447
push eax
call fcn.004127a9
add esp, 4
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
push 0
movzx eax, di
push 0x40b
push eax
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x40546a
mov dword [esp + 0x10], 0
add esi, dword [esp + 0x14]
cmp dword [esp + 0x10], 0
jne 0x405380
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411f13
add esp, 0x134
ret 4
mov eax, edi
jmp 0x40547d
mov eax, edi
jmp 0x40547e