joyce8/EMBER2024-capa huggingface dataset:
Function at 0x200025cd
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str..htm
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2000279c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x470]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x410
call esi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
call ebx
cmp dword [ebp - 8], edi
jne 0x2000279a
lea eax, [ebp - 0x470]
push 0x2000b2fc
push eax
call fcn.20003565
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x470]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2000279a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x470]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x410
call esi
push dword [ebp - 4]
mov esi, eax
call ebx
cmp esi, edi
jne 0x2000279a
xor ebx, ebx
mov ax, word [ebp + ebx*2 - 0x470]
cmp ax, 0x20
je 0x200026a6
cmp ax, 9
jne 0x200026a9
inc ebx
jmp 0x20002692
mov ax, word [ebp + ebx*2 - 0x470]
cmp ax, di
je 0x2000279a
cmp ax, 0x22
lea esi, [ebx + 1]
jne 0x200026eb
mov ebx, esi
jmp 0x200026d3
cmp word [ebp + esi*2 - 0x470], 0x22
je 0x200026f5
inc esi
cmp word [ebp + esi*2 - 0x470], di
jne 0x200026c7
jmp 0x200026f5
cmp word [ebp + esi*2 - 0x470], 0x20
je 0x200026f5
inc esi
cmp word [ebp + esi*2 - 0x470], di
jne 0x200026df
cmp ebx, edi
je 0x20002735
push 0x410
call fcn.200036a8
lea ecx, [ebp + ebx*2 - 0x470]
push ecx
push eax
mov dword [ebp - 8], eax
call fcn.2000358f
sub esi, ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x470]
push ebx
push eax
mov word [ebx + esi*2], di
call fcn.2000358f
push ebx
call fcn.200035ab
add esp, 0x18
jmp 0x2000273d
mov word [ebp + esi*2 - 0x470], di
lea eax, [ebp - 0x470]
push 0x2000b2f8
push eax
call fcn.20003565
push dword [ebp + 8]
lea eax, [ebp - 0x470]
push eax
call fcn.20003565
push 0x44
pop esi
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.20003420
push 0x10
lea eax, [ebp - 0x1c]
push edi
push eax
mov dword [ebp - 0x60], esi
call fcn.20003420
add esp, 0x28
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x470]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x200028cf
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x200029a3
lea eax, [ebp - 0x408]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x2000290b
push 5
pop ebx
jmp 0x200029a3
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.200023bd
test al, al
je 0x20002930
push edi
lea eax, [ebp - 0x208]
push eax
call fcn.2000243a
mov esi, eax
test esi, esi
jne 0x20002996
push 0x208
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x2000296b
lea eax, [ebp - 0x208]
push eax
call fcn.20002c6a
test al, al
je 0x2000296b
push edi
lea eax, [ebp - 0x208]
push eax
call fcn.2000243a
mov esi, eax
test esi, esi
jne 0x20002996
push str.Xtras
lea eax, [ebp - 0x208]
push eax
call fcn.20002c50
test al, al
je 0x20002993
push edi
lea eax, [ebp - 0x208]
push eax
call fcn.2000243a
mov esi, eax
test esi, esi
jne 0x20002996
push 2
pop ebx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x200029b0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], esi
lea eax, [ebp - 0x124]
setne bl
push eax
mov dword [ebp - 0x124], 0x114
inc ebx
or ebx, 4
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x20002a3d
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x20002a04
xor eax, eax
jmp 0x20002a4b
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x20002a00
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
pop ebx
leave
ret 4
Function at 0x20002d77
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x20002da1
mov esi, 0x80000000
xor edi, edi
mov ebx, esi
mov dword [ebp - 4], edi
jmp 0x20002e06
mov ecx, dword [ebp - 0x28]
xor eax, eax
push 0x88
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x24]
push 0x88800000
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
sub esi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
sub eax, esi
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 8]
sub eax, edi
add eax, dword [ebp - 0x10]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
push edi
push esi
push dword [ebp - 4]
push ebx
push 0x88800000
push str.Macromedia_Splash_Screen
push str.SplashScreenWindowClass
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x20002e57
push dword [ebp + 8]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x20003209
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
call fcn.20002cf3
mov esi, eax
test esi, esi
je 0x2000324a
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x2000318c
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x20003243
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x2000324a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x20003314
Capabilities:
Terminate process

Disassembly:
push 8
push 0x2000b4e0
call fcn.20004a48
push 8
call fcn.2000489d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x2000ebe8], esi
jne 0x20003348
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x2000ebe4], esi
mov al, byte [ebp + 0x10]
mov byte [0x2000ebe0], al
cmp dword [ebp + 0xc], edi
jne 0x20003392
cmp dword [0x200104f0], edi
je 0x20003382
mov eax, dword [0x200104ec]
sub eax, 4
mov dword [0x200104ec], eax
cmp eax, dword [0x200104f0]
jb 0x20003382
mov eax, dword [eax]
cmp eax, edi
je 0x20003363
call eax
jmp 0x20003363
push 0x2000e028
mov eax, 0x2000e020
call fcn.20003292
pop ecx
push 0x2000e030
mov eax, 0x2000e02c
call fcn.20003292
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x200033c3
cmp dword [ebp + 0x10], edi
jne 0x200033d1
mov dword [0x2000ebe8], esi
push dword [ebp + 8]
call fcn.20003250
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x200033d0
push 8
call fcn.200047e8
pop ecx
ret
call fcn.20004a83
ret
Function at 0x20003a58
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x2000e594]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x20003a94
xor eax, eax
jmp 0x20003bfe
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x2000f3c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x20003ad2
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.200057bd
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x20003b6c
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x20003bcf
jmp 0x20003af6
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x20003b31
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x20003b22
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x20003b02
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x20003b90
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x20003b99
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x20003af4
jmp 0x20003b99
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x20003b90
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x20003b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x20003bf9
cmp dword [ebp - 0x68], eax
je 0x20003bcc
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x20003bc1
call fcn.2000374b
mov dword [eax], 9
call fcn.20003754
mov dword [eax], esi
jmp 0x20003bf4
push dword [ebp - 0x68]
call fcn.2000375d
pop ecx
jmp 0x20003bf4
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x20003be1
cmp byte [edi], 0x1a
jne 0x20003be1
xor eax, eax
jmp 0x20003bfc
call fcn.2000374b
mov dword [eax], 0x1c
call fcn.20003754
and dword [eax], 0
or eax, 0xffffffff
jmp 0x20003bfc
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.20005a6f
add ebp, 0x3a4
leave
ret
Function at 0x20003f07
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x200040dd
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x2000f3c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x200040dd
test cl, 0x48
je 0x20003f72
cmp byte [eax + 5], 0xa
je 0x20003f72
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x20003fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x20003fac
call fcn.2000374b
mov dword [eax], 9
call fcn.20003754
mov dword [eax], esi
jmp 0x20003fbc
cmp eax, 0x6d
je 0x200040dd
push eax
call fcn.2000375d
pop ecx
or eax, 0xffffffff
jmp 0x200040df
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x200040d8
test eax, eax
je 0x20003feb
cmp byte [ebx], 0xa
jne 0x20003feb
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x20003ff4
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x200040d2
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x200040c2
cmp al, 0xd
je 0x20004026
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x200040b4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x20004040
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x2000403b
add dword [ebp + 0x10], 2
jmp 0x20004094
mov dword [ebp + 0x10], eax
jmp 0x200040b0
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x20004068
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x200040b0
cmp dword [ebp - 0xc], 0
je 0x200040b0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x20004089
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x20004094
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x200040b3
cmp ebx, dword [ebp + 0xc]
jne 0x20004099
cmp byte [ebp - 1], 0xa
jne 0x20004099
mov byte [ebx], 0xa
jmp 0x200040b3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.200057bd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x200040b4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x2000400a
jmp 0x200040d2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x200040d2
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x200040df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2000441f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x2000443f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.2000375d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x20004462
test byte [esp + 8], 2
je 0x20004462
call fcn.2000374b
mov dword [eax], 0xd
call fcn.20003754
mov dword [eax], 5
jmp 0x2000443b
xor eax, eax
ret

Function at 0x20004576
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x2000b5a0
call fcn.20004a48
mov edi, 0x94
mov eax, edi
call fcn.200074a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x2000eba8], ecx
mov eax, dword [esi + 4]
mov dword [0x2000ebb4], eax
mov edx, dword [esi + 8]
mov dword [0x2000ebb8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x2000ebac], esi
cmp ecx, 2
je 0x200045d6
or esi, 0x8000
mov dword [0x2000ebac], esi
shl eax, 8
add eax, edx
mov dword [0x2000ebb0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x20004611
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x20004611
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x20004629
cmp eax, 0x20b
je 0x20004616
mov dword [ebp - 0x1c], esi
jmp 0x2000463d
cmp dword [ecx + 0x84], 0xe
jbe 0x20004611
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x20004637
cmp dword [ecx + 0x74], 0xe
jbe 0x20004611
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.20005e11
pop ecx
test eax, eax
jne 0x20004651
push 0x1c
call fcn.20004552
pop ecx
call fcn.2000538c
test eax, eax
jne 0x20004662
push 0x10
call fcn.20004552
pop ecx
call fcn.200049c0
mov dword [ebp - 4], esi
call fcn.20005840
test eax, eax
jge 0x2000467b
push 0x1b
call fcn.2000452d
pop ecx
call fcn.200073ff
mov dword [0x200104e4], eax
call fcn.20007295
mov dword [0x2000ebf0], eax
call fcn.200071ff
test eax, eax
jge 0x200046a0
push 8
call fcn.2000452d
pop ecx
call fcn.20006fcc
test eax, eax
jge 0x200046b1
push 9
call fcn.2000452d
pop ecx
push 1
call fcn.200032aa
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x200046c7
push eax
call fcn.2000452d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.20006f86
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x200046e8
movzx eax, word [ebp - 0x40]
jmp 0x200046eb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.20002a51
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x20004709
push edi
call fcn.200033d7
call fcn.200033f9
jmp 0x2000473b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.20004a83
ret
Function at 0x20006c71
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x2000e594]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x2000e5a0]
je 0x20006ca8
inc eax
cmp eax, 0x13
jb 0x20006c99
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x2000e5a0]
jne 0x20006dcb
mov eax, dword [0x2000ebf4]
cmp eax, 1
je 0x20006da6
cmp eax, edx
jne 0x20006cd8
cmp dword [0x2000e1c4], 1
je 0x20006da6
cmp ecx, 0xfc
je 0x20006dcb
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x20006d0e
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.200035b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.200036c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x20006d42
mov eax, edi
push eax
call fcn.200036c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x2000ba98
push edi
call fcn.20008d50
add esp, 0x10
push edi
call fcn.200036c0
push dword [esi + 0x2000e5a4]
mov ebx, eax
call fcn.200036c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.200074a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.200035b0
push edi
push ebx
call fcn.200035c0
push 0x2000ba78
push ebx
call fcn.200035c0
push dword [esi + 0x2000e5a4]
push ebx
call fcn.200035c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.20008c4a
add esp, 0x2c
jmp 0x20006dcb
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x2000e5a4]
push dword [esi]
call fcn.200036c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.20005a6f
add ebp, 0x90
leave
ret
Function at 0x20007295
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x2000ef74]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x200072de
call ebp
mov esi, eax
cmp esi, ebx
je 0x200072c4
mov dword [0x2000ef74], 1
jmp 0x200072e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x200072d9
push 2
pop eax
mov dword [0x2000ef74], eax
jmp 0x200072de
mov eax, dword [0x2000ef74]
cmp eax, 1
jne 0x2000733b
cmp esi, ebx
jne 0x200072f6
call ebp
mov esi, eax
cmp esi, ebx
jne 0x200072f6
xor eax, eax
jmp 0x200073e2
cmp word [esi], bx
mov eax, esi
je 0x2000730b
inc eax
inc eax
cmp word [eax], bx
jne 0x200072fd
inc eax
inc eax
cmp word [eax], bx
jne 0x200072fd
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.20003dd7
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x2000732e
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x200073e2
push ebp
push esi
push edi
call fcn.20005480
add esp, 0xc
jmp 0x20007320
cmp eax, 2
je 0x20007344
cmp eax, ebx
jne 0x200072ef
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x200072ef
cmp byte [ebp], bl
mov esi, ebp
je 0x2000737a
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x200072ef
push esi
add edi, eax
call fcn.200036c0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x20007357
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.20003dd7
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x200073f3
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x200073d4
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x200073e9
push edi
call fcn.200036c0
push esi
lea edi, [edi + eax + 1]
call fcn.2000351d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x2000739a
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.20003cbf
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x200072ef
Function at 0x200073ff
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x2000ef78]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x2000743f
call esi
test eax, eax
je 0x20007424
mov dword [0x2000ef78], 1
jmp 0x20007444
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x2000743b
mov dword [0x2000ef78], 2
jmp 0x2000744d
xor eax, eax
jmp 0x2000749b
cmp eax, 1
jne 0x20007448
call esi
jmp 0x2000749b
cmp eax, 2
jne 0x2000743b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x20007493
lea eax, [esi + esi]
push eax
call fcn.20003dd7
mov ebp, eax
test ebp, ebp
pop ecx
je 0x20007493
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x20007497
push ebp
call fcn.20003cbf
pop ecx
xor eax, eax
jmp 0x20007499
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x20008c4a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x2000efe4], ebx
push esi
push edi
jne 0x20008cca
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x20008d05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x2000efe4], eax
je 0x20008d05
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x2000efe8], eax
call esi
cmp dword [0x2000eba8], 2
mov dword [0x2000efec], eax
jne 0x20008cca
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x2000eff4], eax
je 0x20008cca
push 0x2000be9c
push edi
call esi
mov dword [0x2000eff0], eax
mov eax, dword [0x2000eff0]
test eax, eax
je 0x20008d0f
call eax
test eax, eax
je 0x20008cf6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x2000eff4]
test eax, eax
je 0x20008cf6
test byte [ebp - 8], 1
jne 0x20008d0f
cmp dword [0x2000ebb4], 4
jb 0x20008d09
or byte [ebp + 0x12], 0x20
jmp 0x20008d2e
xor eax, eax
jmp 0x20008d3e
or byte [ebp + 0x12], 4
jmp 0x20008d2e
mov eax, dword [0x2000efe8]
test eax, eax
je 0x20008d2e
call eax
mov ebx, eax
test ebx, ebx
je 0x20008d2e
mov eax, dword [0x2000efec]
test eax, eax
je 0x20008d2e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x2000efe4]
pop edi
pop esi
pop ebx
leave
ret