joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435d69
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
mov edi, 0x103
jmp 0x435e24
xor eax, eax
cmp byte [0x48a300], bl
je 0x435db6
mov eax, 0x100
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435e30
push dword [esp + 0x14]
call fcn.00435d69
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x435e30
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x435e30
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
cmp eax, edi
jne 0x435da7
mov al, 1
jmp 0x435e32
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bbf4
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48b8d8
push edi
call fcn.00451720
push 0x10
push ebx
mov esi, 0x48b8c8
push esi
call fcn.00451720
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48b8d8], 0x44
mov dword [0x48b904], eax
mov word [0x48b908], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43bc57
push dword [0x48b8c8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x43c251
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x120], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [edi + 0x124]
cmp ecx, dword [eax]
jne 0x43c29c
cmp edx, dword [edi + 0x128]
je 0x43c2b6
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [edi + 0x128], edx
jl 0x43c2b6
push edx
push ecx
push 0xfffffffffffffff5
push dword [ebp + 8]
call fcn.0043bafc
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call ebx
movzx esi, ax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
shr esi, 0xf
and esi, 1
call ebx
movzx ebx, ax
shr ebx, 0xf
and ebx, 1
cmp esi, dword [edi + 0x12c]
je 0x43c342
cmp dword [ebp + 0xc], 1
jl 0x43c342
cmp byte [edi + 0x158], 0
je 0x43c342
test esi, esi
push dword [ebp - 4]
push dword [ebp - 8]
je 0x43c303
push 0xfffffffffffffff9
jmp 0x43c333
push 0xfffffffffffffff8
push dword [ebp + 8]
call fcn.0043bafc
cmp byte [edi + 0x134], 0
je 0x43c33b
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 4]
push dword [ebp - 8]
je 0x43c331
push 0xfffffffffffffffa
jmp 0x43c333
push 0xfffffffffffffff4
push dword [ebp + 8]
call fcn.0043bafc
mov byte [edi + 0x134], 0
cmp dword [ebp + 0xc], 0
je 0x43c34e
mov dword [edi + 0x12c], esi
cmp ebx, dword [edi + 0x130]
je 0x43c374
cmp dword [ebp + 0xc], 1
jl 0x43c374
test ebx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
je 0x43c36a
push 0xfffffffffffffff7
jmp 0x43c36c
push 0xfffffffffffffff6
push dword [ebp + 8]
call fcn.0043bafc
cmp dword [ebp + 0xc], 0
je 0x43c380
mov dword [edi + 0x130], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43cfcf
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov esi, 0x48a008
je 0x43cfec
call fcn.0043b602
mov dword [0x48a070], eax
jmp 0x43cff1
mov eax, dword [0x48a070]
cmp eax, 0xffffffff
jne 0x43cffd
xor eax, eax
jmp 0x43d14c
mov ecx, dword [0x48a064]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax]
cmp byte [edi + 0x32], 0
mov ecx, dword [edi]
push ebx
mov dword [ebp + 0xc], ecx
je 0x43d03d
cmp dword [edi + 0x13c], 0
mov byte [edi + 0x32], 0
jl 0x43d03d
lea ebx, [edi + 0x148]
cmp byte [ebx], 0
je 0x43d03d
push dword [edi + 0x144]
call fcn.00441b66
mov ecx, dword [ebp + 0xc]
mov byte [ebx], 0
mov ebx, dword [ebp + 8]
cmp ebx, 8
jg 0x43d0da
je 0x43d0a5
test ebx, ebx
je 0x43d093
cmp ebx, 1
je 0x43d0a5
cmp ebx, 2
je 0x43d077
cmp ebx, 3
je 0x43d123
jle 0x43d144
cmp ebx, 5
jle 0x43d0a5
cmp ebx, 6
je 0x43d07b
jmp 0x43d144
mov byte [edi + 0x30], 1
cmp byte [edi + 0x30], 0
je 0x43d149
push 6
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43d144
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 0x30], 0
jmp 0x43d144
cmp byte [edi + 0x30], 0
jne 0x43d149
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x43d0d4
cmp ebx, 4
je 0x43d0d4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 0xc], eax
je 0x43d0d4
push dword [ebp + 0xc]
call fcn.0040b3d1
mov byte [edi + 0x30], 1
jmp 0x43d144
mov eax, ebx
sub eax, 9
je 0x43d123
sub eax, 0x37
je 0x43d11f
dec eax
je 0x43d114
dec eax
je 0x43d107
dec eax
jne 0x43d144
push eax
mov byte [edi + 0x31], al
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x43d144
push ecx
mov byte [edi + 0x31], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x43d144
push 0
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x43d144
push 1
jmp 0x43d116
cmp byte [edi + 0x30], 0
je 0x43d149
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp + 0xc], eax
je 0x43d144
push dword [ebp + 0xc]
call fcn.0040b3d1
xor eax, eax
inc eax
jmp 0x43d14b
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4412f7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x4413f3
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44132e
xor eax, eax
jmp 0x44141f
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x467904
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x441327
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], esi
mov eax, dword [ebp + 0x10]
jne 0x4413d2
cmp dword [eax], esi
jne 0x4413d2
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4413f6
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x48]
cmp eax, esi
je 0x441407
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x48], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x441b66
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x140]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x441c13
push 3
pop eax
cmp dword [esi + 0x80], eax
mov dword [ebp - 4], eax
jl 0x441c0a
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x441bfc
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], ecx
jne 0x441bfc
cmp byte [eax + 0x70], 0xb
je 0x441bfc
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [edi + 0x140]
je 0x441bd5
cmp byte [edi + 0x148], 0
je 0x441bfc
cmp cl, 0xff
je 0x441bfc
cmp byte [eax + 0x70], 0xa
je 0x441bfc
push 0
push dword [eax]
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test byte [eax + 0x72], 0x40
je 0x441bfc
cmp byte [eax + 0x70], 0x1a
jne 0x441bfc
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x80]
jle 0x441b95
mov eax, dword [ebp + 8]
mov dword [edi + 0x140], eax
push 3
pop eax
cmp dword [esi + 0x80], eax
mov dword [ebp - 4], eax
jl 0x441c97
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 0
je 0x441c89
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], ecx
jne 0x441c89
cmp byte [eax + 0x70], 0xb
je 0x441c89
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [edi + 0x140]
jne 0x441c89
test byte [eax + 0x72], 0x20
jne 0x441c89
push 0
push dword [eax]
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
push 4
push dword [eax]
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test byte [eax + 0x72], 0x40
je 0x441c89
cmp byte [eax + 0x70], 0x1a
jne 0x441c89
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x80]
jle 0x441c21
push 0
push dword [ebp + 8]
push 0x130c
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
leave
ret 4
Function at 0x444cc7
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x48a008
call fcn.0043b602
mov ecx, dword [0x48a064]
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
jne 0x444d16
xor edi, edi
cmp dword [ebx + 0x150], edi
je 0x444d76
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push dword [ebx + 0x150]
jmp 0x444d70
mov ecx, esi
call fcn.0043b629
cmp eax, 0xffffffff
je 0x444d76
mov esi, eax
mov eax, dword [0x48a078]
shl esi, 2
mov eax, dword [esi + eax]
mov eax, dword [eax]
mov cl, byte [eax + 0x70]
cmp cl, 0xe
je 0x444d76
cmp cl, 0xf
je 0x444d76
cmp cl, 0x13
je 0x444d76
cmp cl, 0x10
je 0x444d76
xor edi, edi
cmp dword [eax + 8], edi
je 0x444d76
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x48a078]
mov eax, dword [esi + eax]
mov eax, dword [eax]
push edi
push dword [ebx]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push dword [eax + 8]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4462e8
Capabilities:
Parse credit card information

Disassembly:
jmp 0x446381
cmp ecx, 0x4f
jne 0x4462ff
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax + 2]
jmp 0x44637f
cmp ecx, 0x5e
jne 0x44631b
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
cmp ecx, dword [esp + 8]
je 0x44638e
movzx ecx, byte [0x46861e]
jmp 0x44637f
cmp ecx, 0x38
jl 0x446348
cmp ecx, 0x3d
jle 0x446339
cmp ecx, 0x40
jle 0x446334
cmp ecx, 0x43
jle 0x446339
cmp ecx, 0x44
jne 0x446348
mov dl, byte [eax + 3]
jmp 0x44633c
mov dl, byte [eax + 1]
cmp dl, 0xf
je 0x446346
cmp dl, 0xe
jne 0x446348
inc eax
inc eax
movzx edx, byte [ecx + 0x4685c0]
add eax, edx
cmp dword [esp + 4], 0
je 0x446381
cmp ecx, 0x1b
jl 0x446381
cmp ecx, 0x1c
jle 0x44636c
cmp ecx, 0x1d
jle 0x446381
cmp ecx, 0x2a
jg 0x446381
movzx ecx, byte [eax - 1]
cmp cl, 0xc0
jb 0x446381
and ecx, 0x3f
movzx ecx, byte [ecx + 0x468680]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4462ed
xor eax, eax
ret
Function at 0x452ce4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x452d21
cmp dword [ebp + 0x14], edi
je 0x452d21
cmp ecx, edi
jne 0x452d28
call fcn.00455f9c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00455f3d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x452d3c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x452d5d
cmp ebx, 0xffffffff
je 0x452d4c
push ebx
push edi
push ecx
call fcn.00451720
add esp, 0xc
cmp esi, edi
je 0x452d09
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x452d09
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x452d79
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x452d80
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x452e71
test word [esi + 0xc], 0x10c
je 0x452dd4
mov eax, dword [esi + 4]
test eax, eax
je 0x452dd4
jl 0x452ed2
cmp ebx, eax
mov edi, ebx
jb 0x452da5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x452e79
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045bf74
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x452e69
cmp ebx, dword [ebp - 0xc]
jb 0x452e41
cmp dword [ebp - 0xc], 0
je 0x452dfe
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x452df3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x452dfa
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x452e09
mov eax, SysReAllocString
cmp ebx, eax
ja 0x452e09
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x452ea5
push eax
push dword [ebp - 8]
push esi
call fcn.00453783
pop ecx
push eax
call fcn.0045be77
add esp, 0xc
test eax, eax
je 0x452ee4
cmp eax, 0xffffffff
je 0x452ed2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x452e69
push esi
call fcn.0045b796
cmp eax, 0xffffffff
pop ecx
je 0x452ed6
cmp dword [ebp - 4], 0
je 0x452ea5
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x452d88
mov eax, dword [ebp + 0x14]
jmp 0x452d23
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x452e90
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00451720
add esp, 0xc
call fcn.00455f9c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x452d19
cmp dword [ebp + 0xc], 0xffffffff
je 0x452ebb
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00451720
add esp, 0xc
call fcn.00455f9c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x452d19
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x452d23
or dword [esi + 0xc], 0x10
jmp 0x452ed6
Function at 0x4562aa
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x476c70]
je 0x4562c5
inc edi
cmp edi, 0x17
jb 0x4562b6
cmp edi, 0x17
jae 0x456445
push ebp
push 3
call fcn.00461735
cmp eax, 1
pop ecx
je 0x456411
push 3
call fcn.00461735
test eax, eax
pop ecx
jne 0x4562f9
cmp dword [0x476388], 1
je 0x456411
cmp ebx, 0xfc
je 0x456444
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x478be8
push ebp
call fcn.00461459
add esp, 0xc
test eax, eax
je 0x45632f
push esi
push esi
push esi
push esi
push esi
call fcn.00455e41
add esp, 0x14
push 0x104
mov esi, 0x478c01
push esi
push 0
mov byte [0x478d05], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x456373
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00461459
add esp, 0xc
test eax, eax
je 0x456373
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00455e41
add esp, 0x14
push esi
call fcn.00451f00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4563b8
push esi
call fcn.00451f00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x478efc
push 0x469714
sub ecx, eax
push ecx
push eax
call fcn.004613a6
add esp, 0x14
test eax, eax
je 0x4563b8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00455e41
add esp, 0x14
jmp 0x4563ba
xor esi, esi
push 0x469710
push ebx
push ebp
call fcn.004612e5
add esp, 0xc
test eax, eax
je 0x4563da
push esi
push esi
push esi
push esi
push esi
call fcn.00455e41
add esp, 0x14
push dword [edi*8 + 0x476c74]
push ebx
push ebp
call fcn.004612e5
add esp, 0xc
test eax, eax
je 0x4563fc
push esi
push esi
push esi
push esi
push esi
call fcn.00455e41
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00461578
add esp, 0xc
jmp 0x456444
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x456444
cmp ebp, 0xffffffff
je 0x456444
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476c74]
push dword [esi]
call fcn.00451f00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x461057
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476dec]
jne 0x461061
repz ret
jmp fcn.00464829

Function at 0x461578
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004558b8
xor ebx, ebx
cmp dword [0x479228], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46164e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46172e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x46b4c4
push edi
call esi
cmp eax, ebx
je 0x46172e
push eax
call fcn.0045584a
mov dword [esp], 0x46b4b4
push edi
mov dword [0x479228], eax
call esi
push eax
call fcn.0045584a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47922c], eax
call esi
push eax
call fcn.0045584a
mov dword [0x479230], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044fab6
test eax, eax
pop ecx
pop ecx
je 0x46161c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e41
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46164e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045584a
cmp eax, ebx
pop ecx
mov dword [0x479238], eax
je 0x46164e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045584a
pop ecx
mov dword [0x479234], eax
mov eax, dword [0x479234]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4616d3
cmp dword [0x479238], ecx
je 0x4616d3
push eax
call fcn.004558c1
push dword [0x479238]
mov esi, eax
call fcn.004558c1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4616d3
cmp edi, ebx
je 0x4616d3
call esi
cmp eax, ebx
je 0x4616a0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4616a0
test byte [ebp - 0x18], 1
jne 0x4616d3
lea eax, [ebp - 0x10]
push eax
call fcn.0044faed
test eax, eax
pop ecx
je 0x4616bb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e41
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4616ca
or dword [ebp + 0x10], 0x200000
jmp 0x46170e
or dword [ebp + 0x10], 0x40000
jmp 0x46170e
mov eax, dword [0x47922c]
cmp eax, dword [ebp - 8]
je 0x46170e
push eax
call fcn.004558c1
cmp eax, ebx
pop ecx
je 0x46170e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46170e
mov eax, dword [0x479230]
cmp eax, dword [ebp - 8]
je 0x46170e
push eax
call fcn.004558c1
cmp eax, ebx
pop ecx
je 0x46170e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479228]
call fcn.004558c1
cmp eax, ebx
pop ecx
je 0x46172e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x461730
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015ac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_WerSetFlags]
xor ebx, ebx
push ebx
push ebx
push 0x401630
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x401644
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015e1
push ebx
push ebx
push 1
push ebx
call eax
call fcn.00402b96
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.00401cde
mov esi, dword [ebp - 4]
mov edi, eax
dec esi
je 0x4037f6
cmp esi, 1
je 0x4037de
lea eax, [ebp - 4]
push eax
lea edx, [edi + 4]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004013e4
test al, al
je 0x403805
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0x404020
push dword [edi + 4]
call dword [sym.imp.MSVCR110_CLR0400.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40160b
test esi, esi
setg cl
call fcn.00407080
jmp 0x40160b
lea edx, [edi + 4]
mov ecx, esi
call fcn.004053c0
jmp 0x401627
Function at 0x40298e
Capabilities:
Query environment variable

Disassembly:
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0
call dword [0x414068]
mov esi, eax
test esi, esi
je 0x40297c
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call ebx
mov eax, esi
jmp 0x402a25
xor eax, eax
mov word [ebp - 0x84], ax
jmp 0x4029f5
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x41400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4029ad
sub esi, ecx
sar esi, 1
mov ecx, edx
neg ecx
sbb ecx, ecx
push 0x3f
and ecx, 8
pop eax
sub eax, ecx
cmp esi, eax
ja 0x402a23
test edx, edx
je 0x402983
cmp dword [0x4140e0], ebx
jne 0x4038fe
push 0x402a34
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_wcscpy_s]
add esp, 0xc
push edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x402954
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010aa
leave
ret
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
push ecx
push edi
call fcn.0040cb2f
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
test dword [eax*4 + 0x414920], ecx
jne 0x4029de
jmp 0x402a23