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

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e02789b
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e02789b
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8
Function at 0x2e01e341
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e030586
call fcn.2e02e16c
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e45f
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e456
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e02789b
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e449
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010c49
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e02789b
test al, al
jne 0x2e01e3fc
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e02789b
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e3ff
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e439
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e430
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e02789b
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e02789b
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e02789b
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e14a
ret
Function at 0x2e02789b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x2e0278aa
pop dword [ebp - 4]
mov eax, 0x2e0278aa
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x77a60eef
sub dword [ebp - 0x14], 0x2953c9a4
mov dword [ebp - 0x10], 0xa6622b92
sub dword [ebp - 0x10], 0x742edf4d
mov dword [ebp - 0xc], 0xe54654d1
add dword [ebp - 0xc], 0x6705ef5d
mov dword [ebp - 8], 0x738f577f
add dword [ebp - 8], 0x8c70a881
lea eax, [ebp - 0x14]
push eax
mov eax, 0xfb712f28
sub eax, 0xcd6e0e60
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xb426c97
add dword [ebp - 0x14], 0x692ffcbf
mov dword [ebp - 0x10], 0xae6e277c
add dword [ebp - 0x10], 0x92fe39f9
mov dword [ebp - 0xc], 0x6c0b4d67
add dword [ebp - 0xc], 0xf7641f05
mov dword [ebp - 8], 0x7a6ae936
sub dword [ebp - 8], 0x7a6ae936
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x44384
push 0
call eax
mov ecx, 0x86bf6201
add ecx, 0x7940f2de
xor edx, edx
add edx, eax
mov esi, 0x34de3e34
sub esi, 0x6d8d034
add esi, dword [ebp - 4]
mov ebx, 0xe152f2a1
add ebx, 0xfedaa6df
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
add edx, 4
add esi, 0xcad3c4a8
add esi, 0x352c3b5c
loop 0x2e0279c4
add eax, 0x9b54d937
add eax, 0x64ac6d18
mov ebx, eax
add eax, 0x630c8359
sub eax, 0x630c8354
mov ecx, 0x8955bdbc
add ecx, 0xa4aa4244
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401780
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x5c
mov eax, dword [0x422f90]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1548], 0
je 0x40184b
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea edx, [esi + 0x15c4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esi + 0x1504], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
mov ecx, edx
mov edx, dword [esi + 0x1504]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esi + 0x1504]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x12]
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0xe]
push eax
movzx eax, word [esp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push str._02d:_02d:_02d__d
push ecx
call fcn.0040a975
add esp, 0x18
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.0040a9f0
add esp, 0x5c
ret
Function at 0x401cd0
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x119fc], edx
lea edx, [esi + 0x119f0]
push edx
push 0
push esi
push 0x401ca0
mov dword [esi + 0x11a04], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x119f8], ecx
mov ecx, dword [esp + 0x1c]
push 0x2000
push 0
mov dword [esi + 0x11a00], eax
mov dword [esi + 0x119f4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x119ec], eax
pop esi
ret 0x14
Function at 0x4034a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call fcn.00408f10
cmp eax, dword [esi + 0x2004]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jge 0x4034cd
mov eax, dword [esi + 0x2008]
mov ecx, dword [esi + eax*4 + 4]
push edi
push ecx
call ebx
jmp 0x4034cf
xor eax, eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov ecx, esi
call fcn.00408f10
cmp eax, dword [esi + 0x2004]
jge 0x4034f8
mov edx, dword [esi + 0x2008]
mov eax, dword [esi + edx*4 + 4]
push edi
push eax
call ebx
jmp 0x4034fa
xor eax, eax
pop edi
pop esi
pop ebx
mov dword [esp + 4], eax
jmp dword [sym.imp.USER32.dll_UpdateWindow]

Function at 0x403510
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call fcn.00408f10
cmp eax, dword [esi + 0x2004]
jne 0x403530
pop edi
mov eax, 0x41d652
pop esi
ret 4
push edi
mov ecx, esi
call fcn.00408f10
cmp eax, dword [esi + 0x2004]
jge 0x403554
mov eax, dword [esi + 0x2008]
mov ecx, dword [esi + eax*4 + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x403556
xor eax, eax
push 0xff
lea edi, [esi + 0x2010]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
mov ecx, esi
call fcn.00408e50
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x406ef0
Capabilities:
Accept command line arguments
Create process on windows
Set current directory

Disassembly:
sub esp, 0x258
mov eax, dword [0x422f90]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x264]
test eax, eax
push ebx
push esi
mov ecx, 8
push edi
mov edi, dword [esp + 0x268]
mov dword [0x4244cc], ecx
je 0x406f2f
cmp byte [eax], 0x38
jne 0x406f2f
mov dword [0x4244cc], ecx
mov dword [0x4244c8], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x60]
nop
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x406f40
cmp byte [esp + 0x60], 0x22
jne 0x406f6c
lea eax, [esp + 0x61]
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax - 1], cl
add eax, 1
test cl, cl
jne 0x406f60
lea eax, [esp + 0x60]
push 0x22
push eax
call fcn.0040ad20
add esp, 8
test eax, eax
je 0x406f82
mov byte [eax], 0
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.0040ade0
add esp, 8
test eax, eax
je 0x406f98
mov byte [eax], 0
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x104
call fcn.0040b4af
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
add esp, 4
test esi, esi
je 0x406fe9
push 0x41d3ac
push str.Trace
call fcn.0040ac12
push 0x41d624
push eax
mov dword [esi], eax
call fcn.0040a9ff
mov eax, dword [esi]
push eax
call fcn.0040ae80
add esp, 0x14
push 0x14
call ebx
jmp 0x406feb
xor esi, esi
cmp dword [0x4244cc], 6
mov dword [0x424518], esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
jne 0x407011
push 0
push 0x405ea0
push 0
push str.DEVS6CFG
push edi
call esi
cmp dword [0x4244cc], 8
jne 0x40702b
push 0
push 0x405ea0
push 0
push str.DEVS8CFG
push edi
call esi
mov ecx, dword [0x4244b8]
test ecx, ecx
je 0x407054
cmp dword [ecx + 0x90], 0
je 0x407054
mov ecx, dword [0x424518]
push 0x41d9bc
call fcn.004030f0
mov ecx, dword [0x4244b8]
mov eax, dword [0x4244bc]
test eax, eax
je 0x40706c
push eax
call fcn.0040b44c
mov ecx, dword [0x4244b8]
add esp, 4
test ecx, ecx
je 0x407080
mov esi, ecx
call fcn.00407140
push esi
call fcn.0040b44c
add esp, 4
mov eax, dword [0x424518]
test eax, eax
je 0x407092
push eax
call fcn.0040b44c
add esp, 4
cmp dword [0x42451c], 0
je 0x4070f2
push 0x3e8
call ebx
push 0x44
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0040a590
add esp, 0xc
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x68]
push ecx
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 1
mov word [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a9f0
add esp, 0x258
ret 0x10
Function at 0x407300
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x41c18b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x422f90]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
push 0x958
call fcn.0040b4af
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x407234
mov eax, dword [edi + 0x84]
mov dword [esi + 8], eax
lea eax, [edi + 0x88]
mov ecx, esi
mov dword [esi + 0x850], eax
mov dword [esi], 1
mov dword [esi + 0x8a4], 0
call fcn.00407ec0
jmp 0x407236
xor esi, esi
mov dword [0x424430], esi
cmp dword [esi], 0
mov dword [esp + 0x1c], 0xffffffff
jne 0x4072a9
mov ecx, dword [edi + 0x84]
push 0x41d9fc
push 0x400
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x424430]
test ecx, ecx
je 0x40728b
cmp dword [ecx], 0
mov esi, ecx
je 0x407282
push 1
push str._Normal_Termination
call fcn.00407e00
push esi
call fcn.0040b44c
add esp, 4
mov dword [0x424430], 0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
lea edx, [esp + 0x10]
push edx
push 0
push edi
push 0x407110
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [edi + 0x80], eax
nop
push 0x64
call esi
mov eax, dword [0x424430]
cmp dword [eax + 0x31c], 0
je 0x4072d0
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
jmp 0x4071c0
Function at 0x409880
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
push 0x1000
lea ecx, [esi + 0x2110]
push 0
push ecx
mov dword [esi], vtable.CTRL_BOX.0
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0xffffff9c
mov dword [esi + 0x512c], eax
call fcn.0040a590
add esp, 0xc
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
push 0x80ffff
mov dword [esi + 0x4124], eax
call edi
push 0x41d3bc
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x258
push 0
push 0
push 0
push 0x10
mov dword [esi + 0x5128], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
idiv dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x3120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x409840
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov eax, esi
pop esi
ret 8

Function at 0x409884
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
push 0x1000
lea ecx, [esi + 0x2110]
push 0
push ecx
mov dword [esi], vtable.CTRL_BOX.0
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0xffffff9c
mov dword [esi + 0x512c], eax
call fcn.0040a590
add esp, 0xc
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
push 0x80ffff
mov dword [esi + 0x4124], eax
call edi
push 0x41d3bc
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x258
push 0
push 0
push 0
push 0x10
mov dword [esi + 0x5128], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
idiv dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x3120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x409840
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x409fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push 0x443b48
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x443b48
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409fc1
sub eax, edx
cmp eax, 3
jne 0x409fe0
cmp byte [0x443b4a], 0x5c
jne 0x409fe0
mov byte [0x443b4a], bl
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x409ffc
mov edx, 0x443b48
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x409ff0
mov eax, dword [esp + 0x70]
mov esi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a002
mov edi, 0x443b48
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x40a015
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov edi, 0x41d8fc
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x10], 0x4c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x443b48
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x200
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x88002c
mov word [esp + 0x48], bx
mov word [esp + 0x4a], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0x409e60
mov dword [esp + 0x58], ebx
jne 0x40a0ca
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x40a0ce
mov eax, dword [esp + 0x74]
mov edi, 0x41d93c
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a0eb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
cmp eax, ebx
jne 0x40a0f9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov edi, 0x41d93c
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a16b
cmp word [esp + 0x4a], bx
mov edi, dword [esp + 0x1c]
jne 0x40a16b
mov esi, dword [esp + 0x28]
lea esi, [esi + esi - 1]
xor eax, eax
cmp esi, ebx
jbe 0x40a137
mov cl, byte [edi]
add edi, 1
test cl, cl
jne 0x40a124
add eax, 1
movzx edx, ax
cmp edx, esi
jb 0x40a124
lea eax, [edi + 1]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a140
mov edi, 0x443b48
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x40a153
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 0x443b48
pop ebx
add esp, 0x4c
ret

Function at 0x40a9f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422f90]
jne 0x40a9fa
repz ret
jmp fcn.0040d6f7
Function at 0x40fe48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40fe75
call fcn.0040d6c6
mov dword [eax], esi
call fcn.0040d6b3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040d654
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40fe51
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d6d9
pop ecx
call fcn.0040d6b3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x40fecb
test al, 1
je 0x40fecb
test byte [esp + 0xc], 2
je 0x40fecb
call fcn.0040d6c6
mov dword [eax], 5
call fcn.0040d6b3
mov dword [eax], 0xd
jmp 0x40fe9b
xor eax, eax
pop esi
ret
Function at 0x417c27
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004110d2
xor ebx, ebx
cmp dword [0x444650], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x417cfc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x417c67
xor eax, eax
jmp 0x417dc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f1d8
push edi
call esi
cmp eax, ebx
je 0x417c60
push eax
call fcn.0041106f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444650], eax
call esi
push eax
call fcn.0041106f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444654], eax
call esi
push eax
call fcn.0041106f
mov dword [0x444658], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f916
test eax, eax
pop ecx
pop ecx
je 0x417cca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d558
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x417cfc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041106f
cmp eax, ebx
pop ecx
mov dword [0x444660], eax
je 0x417cfc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041106f
pop ecx
mov dword [0x44465c], eax
mov eax, dword [0x44465c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417d75
cmp dword [0x444660], esi
je 0x417d75
push eax
call fcn.004110db
pop ecx
call eax
cmp eax, ebx
je 0x417d42
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x444660]
call fcn.004110db
pop ecx
call eax
test eax, eax
je 0x417d42
test byte [ebp - 0x18], 1
jne 0x417d75
lea eax, [ebp - 0xc]
push eax
call fcn.0040f989
test eax, eax
pop ecx
je 0x417d5d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d558
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417d6c
or dword [ebp + 0x10], 0x200000
jmp 0x417da6
or dword [ebp + 0x10], 0x40000
jmp 0x417da6
mov eax, dword [0x444654]
cmp eax, esi
je 0x417da6
push eax
call fcn.004110db
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417da6
mov eax, dword [0x444658]
cmp eax, esi
je 0x417da6
push dword [ebp - 4]
push eax
call fcn.004110db
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x444650]
call fcn.004110db
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f62b
mov eax, dword fs:[0]
push eax
mov eax, 0x10078
call fcn.0040f240
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10018], 0
mov dword [ebp - 0x10014], 7
mov word [ebp - 0x10028], ax
lea ecx, [ebp - 0x10028]
mov dword [ebp - 4], eax
call section..text
sub esp, 0x18
lea eax, [ebp - 0x10028]
mov ecx, esp
push eax
call fcn.004018d0
call fcn.00401460
add esp, 0x18
mov dword [ebp - 0x10084], 0x44
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x10028]
push str.binMetaGUI.exe
push eax
lea eax, [ebp - 0x10010]
movlpd qword [ebp - 0x10080], xmm0
push eax
movlpd qword [ebp - 0x10078], xmm0
movlpd qword [ebp - 0x10070], xmm0
movlpd qword [ebp - 0x10068], xmm0
movlpd qword [ebp - 0x10060], xmm0
movlpd qword [ebp - 0x10058], xmm0
movlpd qword [ebp - 0x10050], xmm0
movlpd qword [ebp - 0x10048], xmm0
movups xmmword [ebp - 0x10040], xmm0
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x10010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
test esi, esi
je 0x401793
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401757
sub eax, edx
sar eax, 1
je 0x401793
push 0x414c18
lea eax, [ebp - 0x10010]
push 0x8000
push eax
call fcn.0040591a
push esi
lea eax, [ebp - 0x10010]
push 0x8000
push eax
call fcn.0040591a
add esp, 0x18
lea eax, [ebp - 0x10040]
push eax
lea eax, [ebp - 0x10084]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4017ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401811
push 0xffffffffffffffff
push dword [ebp - 0x10040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1002c]
mov dword [ebp - 0x1002c], 0
push eax
push dword [ebp - 0x10040]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10040]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1003c]
call esi
mov esi, dword [ebp - 0x1002c]
mov edx, dword [ebp - 0x10014]
cmp edx, 8
jb 0x40184d
mov ecx, dword [ebp - 0x10028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401869
push edx
push ecx
call fcn.00402104
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004020c3
mov esp, ebp
pop ebp
ret
call fcn.00405b9a
int3