joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430d30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042b4e0
test eax, eax
je 0x430e1f
mov ecx, edi
call fcn.0042b4e0
mov ecx, eax
call fcn.00428b50
test eax, eax
jne 0x430e1f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x430e1f
mov eax, dword [0x591dc8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x430d92
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042b4e0
mov ecx, eax
call fcn.00428d80
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x430e1f
cmp ebx, eax
jne 0x430e1f
cmp dword [esp + 0x10], eax
jne 0x430e05
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x433a50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46cbf8
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 0x433a89
inc eax
mov dword [esi + 0x10], eax
jmp 0x433b9c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x433a9d
mov eax, 0xffffffc7
jmp 0x433b9e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x433aae
cmp dword [esi + 8], eax
jne 0x433a9d
cmp dword [esi + 8], eax
jne 0x433ac7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433ac7
mov eax, 0xffffffc7
jmp 0x433b9e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x433adb
push eax
mov ecx, ebx
call fcn.00433280
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.00404680
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x433b0c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004046a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004329f0
test eax, eax
mov dword [esp + 0x38], eax
je 0x433b3f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x566f50
call fcn.00404880
mov eax, dword [esp + 0x38]
jmp 0x433b9e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004338b0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433b83
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004338d0
mov esi, eax
test esi, esi
jne 0x433bb3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004338b0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x433b55
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x566f50
call fcn.00404880
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], 0x566f50
call fcn.00404880
mov eax, esi
jmp 0x433b9e

Function at 0x436ce0
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x46d228
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.004660cb
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c630
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.00465ff9
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.004628bd
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.004628bd
push 1
push 0
push 0
mov ecx, esi
call fcn.00462865
push 1
push 0
push 1
mov ecx, esi
call fcn.00462865
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046613d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ce10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d248
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.004660cb
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c630
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.00465ff9
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 0x43ced4
cmp dword [esp + 0x40], 1
jne 0x43ced2
cmp ecx, eax
jge 0x43ced4
mov eax, ecx
cmp eax, 0xc8
jge 0x43cee0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cc90
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.0046613d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d660
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d2b3
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.00460cdb
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.00466373
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046788f
test eax, eax
je 0x43d77c
mov ecx, dword [esp + 0x3c]
call fcn.004663a0
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 0x43d740
push edi
mov ecx, esi
call fcn.00463a08
mov ecx, esi
call fcn.0043d8e0
cmp dword [esp + 0x38], 1
jne 0x43d775
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.00463b43
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 0x440190
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4401c3
push esi
call fcn.004432a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4401bc
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 0x440249
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440232
mov eax, dword [esi + 8]
test eax, eax
je 0x4401e7
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 0x44022e
cmp eax, 2
je 0x440232
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4401da
cmp eax, 3
je 0x44020d
cmp eax, 1
jne 0x4401da
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 0x4401da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4401da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440270
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440258
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440270
add esp, 4
pop esi
ret

Function at 0x44c240
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 0x44c2e3
test eax, eax
jbe 0x44c2e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44c2e3
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 0x44c28e
xor esi, esi
jmp 0x44c294
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44c2bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00405080
add esi, eax
push esi
mov ebx, esi
call fcn.00405080
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44c2a0
pop ebp
test edi, edi
pop edi
jne 0x44c2e3
test ebx, ebx
je 0x44c2e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00450790
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44c425
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 0x44c53d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c53d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046112d
mov esi, eax
test esi, esi
je 0x44c53d
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 0x44c53d
mov ecx, esi
call fcn.0044c390
cmp edi, eax
jge 0x44c53d
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 0x44c4c3
mov dword [esp + 0x34], 1
jmp 0x44c51e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44c53d
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.0044b930
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 0x461ad0
Capabilities:
Get graphical window text

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

Function at 0x4631c5
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 0x463207
call fcn.00468c7f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463207
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4631fe
xor eax, eax
jmp 0x46320f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463215
pop edi
pop esi
pop ebx
ret 4
Function at 0x4691af
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 0x4691dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4691fb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469115
jmp 0x4691fb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4691fb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469115
test edi, edi
mov eax, edi
jne 0x4691e5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x30001996
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 5
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 8]
mov edi, eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 0x64]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, 0x16
push edi
mov dword [ebp + 8], eax
call ebx
lea edi, [edi + eax*2 + 4]
mov dword [ebp - 4], edi
sub edi, dword [ebp + 0xc]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.MSVCRT.dll_memmove
add esp, 0xc
push dword [ebp - 4]
call ebx
mov ecx, dword [ebp - 4]
lea ebx, [ecx + eax*2 + 5]
mov eax, dword [ebp + 8]
push 0x32
add edi, eax
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
and ebx, 0xfffffffc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esi, ebx
add esi, dword [ebp + 0xc]
lea eax, [edi + eax*2 + 3]
shr eax, 2
push esi
shl eax, 2
push ebx
push eax
call sub.MSVCRT.dll_memmove
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x300020db
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [esp + 0x14]
push ebp
push 0xb1
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
cmp dword [esp + 0x1c], 4
push ebp
jne 0x30002126
push 0xb2
push edi
call esi
push eax
call ebx
push ebp
push 0xb3
push edi
call esi
push eax
call ebx
push ebp
push 0xb4
jmp 0x30002169
cmp dword [esp + 0x20], 5
jne 0x30002158
push 0xbe
push edi
call esi
push eax
call ebx
push ebp
push 0xbf
push edi
call esi
push eax
call ebx
push ebp
push 0xc0
push edi
call esi
push eax
call ebx
push ebp
push 0xc1
jmp 0x30002169
push 0xc3
push edi
call esi
push eax
call ebx
push ebp
push 0xc4
push edi
call esi
push eax
call ebx
xor eax, eax
test ebp, ebp
sete al
push eax
push 0x71
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
xor eax, eax
cmp ebp, 5
sete al
push eax
push 0x70
push edi
call esi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 0
push 0xf4
push 0x71
push edi
call ebx
push 1
push 1
push 0xf4
push 0x70
push edi
call ebx
cmp ebp, 5
jne 0x300021df
mov eax, dword [esp + 0x1c]
push 1
push 0
push 0
push edi
mov dword [0x300067ec], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x70
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x300021e6
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push ebp
push 0xb9
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
test ebp, ebp
je 0x3000221c
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ah, ah
cmp ax, 4
jae 0x30002228
push ebp
push 0xde
push ebx
call esi
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x30002262
push ebp
add eax, 0xb9
push eax
push ebx
call esi
push eax
call edi
mov eax, dword [esp + 0x1c]
dec eax
je 0x3000225a
dec eax
je 0x30002252
dec eax
jne 0x30002289
push ebp
push 0xb1
jmp 0x30002283
push ebp
push 0x9e
jmp 0x30002283
push ebp
push 0x91
jmp 0x30002283
push 0
push 0xba
push ebx
call esi
push eax
call edi
push 0
push 0xbb
push ebx
call esi
push eax
call edi
push 0
push 0xbc
push ebx
call esi
push eax
call edi
xor eax, eax
test ebp, ebp
sete al
mov ebp, eax
push ebp
push 0x6f
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
push ebp
push 0x71
push ebx
call esi
push eax
call edi
push ebp
push 0x72
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x30004a09
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x3000669c]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30004a09
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x3000669c]
jne 0x30004a12
ret
jmp 0x300048f4
Function at 0x30004a17
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x30001748
call fcn.30004cd8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30004a57
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30004a57
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x30004a6f
cmp eax, 0x20b
je 0x30004a5c
mov dword [ebp - 0x1c], ebx
jmp 0x30004a83
cmp dword [ecx + 0x84], 0xe
jbe 0x30004a57
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x30004a7d
cmp dword [ecx + 0x74], 0xe
jbe 0x30004a57
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x3000688c], 0xffffffff
or dword [0x30006890], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x30006884]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x30006880]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x30006888], eax
call fcn.30004c4e
call fcn.30004d5d
cmp dword [0x300066a0], ebx
jne 0x30004ae3
push 0x30004d5a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.30004d48
push 0x30006010
push 0x3000600c
call sub.MSVCRT.dll__initterm
push 0x30004c92
call fcn.30004c3c
mov eax, dword [0x3000687c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x30006878]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30004b37
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30006008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30004bb5
cmp al, bl
je 0x30004b61
cmp dword [ebp - 0x20], ebx
jne 0x30004bb5
mov al, byte [esi]
cmp al, bl
je 0x30004b71
cmp al, 0x20
ja 0x30004b71
inc esi
mov dword [ebp - 0x24], esi
jmp 0x30004b61
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x30004b8d
movzx eax, word [ebp - 0x54]
jmp 0x30004b90
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30003f13
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x30004bad
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x30004c0a
cmp al, 0x22
jne 0x30004bc4
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x30004bd7
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x30004b4f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30004d13
ret