joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cf1b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44cfb8
push ebx
push esi
call fcn.0044cee4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044b284
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44cf65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44cfb7
push edi
push eax
call fcn.0044af71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44cf85
call fcn.0044af37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44cfb6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044b284
add esp, 0x20
test eax, eax
jne 0x44cfa4
push edi
call fcn.0044af37
jmp 0x44cfac
push ebx
call fcn.0044af37
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x105bf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105bf1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105bf07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105bf06a
add dl, dl
jne 0x105bf089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105bf0dc
xor eax, eax
add dl, dl
jne 0x105bf096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105bf17d
add dl, dl
jne 0x105bf0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105bf0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105bf0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105bf0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105bf0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105bf075
mov eax, 1
add dl, dl
jne 0x105bf0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105bf0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105bf0e1
sub eax, ebx
mov ebx, 1
jne 0x105bf128
mov ecx, 1
add dl, dl
jne 0x105bf10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105bf119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105bf105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105bf075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105bf13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105bf14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105bf136
cmp eax, 0x7d00
jae 0x105bf16d
cmp eax, 0x500
jb 0x105bf168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105bf075
cmp eax, 0x7f
ja 0x105bf170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105bf075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105bf19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105bf075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov eax, dword [0x80d368]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80d36c]
push esi
mov esi, dword [edx + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00401030
mov eax, dword [0x80d370]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x80d374]
add edi, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1dfdf24], 0xc
mov dword [ebp - 4], eax
jne 0x4010c2
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x1dfdf24]
cmp eax, 0xfa9
jne 0x4010de
mov dword [0x1dfdf20], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010f9
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edx, dword [ebp + 8]
mov dword [0x1dfde74], ebx
mov eax, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1dfdf1c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp - 0xc]
pop edi
mov dword [edx + 4], esi
pop esi
mov dword [edx], eax
pop ebx
leave
ret 4
Function at 0x4057ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c788]
jne 0x4057c4
repz ret
jmp fcn.0040938f

Function at 0x408c7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058bc
and dword [ebp - 4], 0
cmp dword [0x8163bc], 0
mov ebx, eax
jne 0x408d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408ddc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408ddc
push eax
call fcn.0040584a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8163bc], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8163c0], eax
call esi
push eax
call fcn.0040584a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8163c4], eax
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x8163cc], eax
test eax, eax
je 0x408d2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040584a
pop ecx
mov dword [0x8163c8], eax
mov eax, dword [0x8163c8]
cmp eax, ebx
je 0x408d83
cmp dword [0x8163cc], ebx
je 0x408d83
push eax
call fcn.004058c5
push dword [0x8163cc]
mov esi, eax
call fcn.004058c5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408d83
test edi, edi
je 0x408d83
call esi
test eax, eax
je 0x408d7a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408d7a
test byte [ebp - 0xc], 1
jne 0x408d83
or dword [ebp + 0x10], 0x200000
jmp 0x408dbc
mov eax, dword [0x8163c0]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408dbc
mov eax, dword [0x8163c4]
cmp eax, ebx
je 0x408dbc
push eax
call fcn.004058c5
pop ecx
test eax, eax
je 0x408dbc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8163bc]
call fcn.004058c5
pop ecx
test eax, eax
je 0x408ddc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408dde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001030
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
push esi
cmp dword [esp + 0xc], 1
jne 0x100011d8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push eax
call dword [0x1000534c]
add esp, 4
test eax, eax
je 0x1000109d
xor ecx, ecx
jmp 0x10001067
add ecx, 1
cmp eax, ecx
je 0x1000109d
cmp word [esi + ecx*2], 0x72
jne 0x10001060
cmp word [esi + ecx*2 + 2], 0x65
jne 0x10001060
cmp word [esi + ecx*2 + 4], 0x6e
jne 0x10001060
cmp word [esi + ecx*2 + 6], 0x64
jne 0x10001060
cmp word [esi + ecx*2 + 8], 0x65
jne 0x10001060
cmp word [esi + ecx*2 + 0xa], 0x72
jne 0x10001060
mov eax, 1
jmp 0x1000109f
xor eax, eax
mov dword [0x1000d088], eax
cmp dword [0x1000d078], 0
jne 0x100011d8
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call esi
mov dword [0x1000d078], eax
push str.ntdll.dll
call esi
mov dword [0x1000d07c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000502e
push dword [0x1000d078]
call esi
mov dword [0x1000d08c], eax
push 0x10005043
push dword [0x1000d078]
call esi
mov dword [0x1000d090], eax
push 0x10005059
push dword [0x1000d078]
call esi
mov dword [0x1000d094], eax
push 0x1000506e
push dword [0x1000d078]
call esi
mov dword [0x1000d0a0], eax
push 0x1000507e
push dword [0x1000d078]
call esi
mov dword [0x1000d098], eax
push 0x10005099
push dword [0x1000d078]
call esi
mov dword [0x1000d09c], eax
push 0x100050b4
push dword [0x1000d078]
call esi
mov dword [0x1000d0ac], eax
push 0x100050ca
push dword [0x1000d078]
call esi
mov dword [0x1000d0b8], eax
push 0x100050df
push dword [0x1000d078]
call esi
mov dword [0x1000d0b0], eax
push str.NtSetInformationVirtualMemory
push dword [0x1000d07c]
call esi
mov dword [0x1000d0a8], eax
push 0x10005113
push dword [0x1000d07c]
call esi
mov dword [0x1000d0b4], eax
push str.NtQueryInformationToken
push dword [0x1000d07c]
call esi
mov dword [0x1000d0bc], eax
push str.NtSetInformationThread
push dword [0x1000d07c]
call esi
mov dword [0x1000d0a4], eax
call fcn.100011e0
call fcn.10001390
call fcn.10001460
mov dword [0x1000d058], eax
call fcn.10001580
mov eax, 1
pop esi
ret
Function at 0x100011e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push eax
call dword [0x1000534c]
add esp, 4
test eax, eax
je 0x10001387
xor ecx, ecx
jmp 0x1000121b
add ecx, 1
cmp eax, ecx
je 0x10001387
cmp word [edi + ecx*2], 0x67
jne 0x10001210
cmp word [edi + ecx*2 + 2], 0x70
jne 0x10001210
cmp word [edi + ecx*2 + 4], 0x75
jne 0x10001210
push edi
call dword [0x1000534c]
add esp, 4
cmp eax, 6
jb 0x10001387
mov ebx, eax
lea esi, [eax + eax]
add esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10001387
mov esi, eax
lea edx, [ebx + ebx]
xor ebp, ebp
mov eax, 1
jmp 0x1000128b
mov ebp, eax
add eax, 1
cmp cx, 0x22
je 0x100012a1
cmp ebx, eax
je 0x100012a1
movzx ecx, word [edi + eax*2]
cmp cx, 0x5c
je 0x10001280
cmp cx, 0x2f
je 0x10001280
jmp 0x10001282
cmp word [edi], 0x22
lea ebx, [edi + 2]
cmovne ebx, edi
mov eax, ebp
add eax, ebp
push eax
push ebx
mov edi, edx
push edx
push esi
call fcn.10001bf0
add esp, 0x10
movzx eax, word [ebx + ebp*2]
or eax, 0x20
cmp ax, 0x76
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 2]
or eax, 0x20
cmp ax, 0x69
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 4]
or eax, 0x20
cmp ax, 0x76
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 6]
or eax, 0x20
cmp ax, 0x61
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 8]
or eax, 0x20
cmp ax, 0x6c
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 0xa]
or eax, 0x20
cmp ax, 0x64
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 0xc]
or eax, 0x20
cmp ax, 0x69
jne 0x10001377
cmp word [ebx + ebp*2 + 0xe], 0x2e
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 0x10]
or eax, 0x20
cmp ax, 0x65
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 0x12]
or eax, 0x20
cmp ax, 0x78
jne 0x10001377
movzx eax, word [ebx + ebp*2 + 0x14]
or eax, 0x20
cmp ax, 0x65
jne 0x10001377
lea eax, [esi + ebp*2]
push 0x16
push 0x100051d8
push edi
push eax
call fcn.10001bf0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001390
Capabilities:
Start service

Disassembly:
push ebx
push edi
push esi
push eax
push str.vivaldi.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10001456
push str.IsSandboxedProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000d0c0], eax
test eax, eax
je 0x10001403
call eax
test al, al
je 0x10001419
push str.dwrite.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10001456
mov esi, eax
mov dword [esp], 0
mov eax, esp
push eax
push esi
call fcn.10002010
add esp, 8
push dword [esp]
push eax
push esi
push section..data
push str.ADVAPI32.DLL
call fcn.10002060
add esp, 0x14
jmp 0x10001456
push 0x40
push str._BUG_
push str.Function__IsSandboxedProcess____not_found_in_EXPORT_TABLE__
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10001456
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x10001456
mov esi, eax
push 0x14
push str.FontCache
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x10001456
mov edi, eax
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
push esi
call ebx
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x10001850
Capabilities:
Get uefi variable

Disassembly:
mov eax, dword [0x1000d0a0]
test eax, eax
je 0x1000185b
jmp eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push str.00000000_0000_0000_0000_000000000000
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, 2
sub eax, ecx
ret 4

Function at 0x10002010
Capabilities:
Parse pe header

Disassembly:
push esi
mov ecx, dword [esp + 8]
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x1000205e
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1000205e
movzx esi, word [ecx + edx + 0x18]
cmp esi, 0x20b
je 0x10002048
xor eax, eax
movzx esi, si
cmp esi, 0x10b
jne 0x1000205c
mov eax, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x84]
mov dword [eax], esi
mov eax, dword [ecx + edx + 0x80]
add eax, ecx
pop esi
ret
Function at 0x10002060
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
je 0x10002231
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10002231
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10002231
mov edx, 0x62
mov eax, dword [ecx]
mov dword [esp], eax
test eax, eax
jne 0x100020c0
cmp dword [ecx + 0x10], 0
jne 0x100020c0
cmp dword [ecx + 8], 0
jne 0x100020c0
cmp dword [ecx + 0xc], 0
jne 0x100020c0
cmp dword [ecx + 4], 0
je 0x10002239
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
mov eax, dword [esp + 0x28]
mov al, byte [esi + eax]
test al, al
je 0x1000212c
add esi, dword [esp + 0x28]
mov ebx, ebp
mov ah, byte [ebx]
add ebx, 1
add esi, 1
nop dword [eax]
test ah, ah
je 0x1000212c
or al, 0x20
or ah, 0x20
cmp al, ah
jne 0x10002116
movzx eax, byte [esi]
cmp al, 0x2e
jne 0x10002110
mov ah, byte [ebx]
add ebx, 1
add esi, 1
mov al, 0x2e
cmp ah, 0x2e
jne 0x100020e0
jmp 0x1000212c
test al, al
jne 0x100020d4
jmp 0x1000212c
add ecx, 0x14
mov eax, 1
sub edx, 1
jae 0x10002092
jmp 0x10002231
mov ebx, dword [edi]
mov eax, 2
test ebx, ebx
je 0x10002231
mov eax, dword [esp + 0x28]
add dword [esp], eax
mov ecx, dword [ecx + 0x10]
add ecx, eax
mov dword [esp + 4], ecx
jmp 0x1000215e
mov ebx, dword [edi + 8]
add edi, 8
test ebx, ebx
je 0x1000222c
mov eax, dword [esp]
mov eax, dword [eax]
test eax, eax
je 0x10002150
mov esi, dword [esp + 4]
mov ebp, dword [esp]
mov ecx, dword [esp + 0x28]
mov cl, byte [eax + ecx + 2]
test cl, cl
je 0x100021f0
mov edx, dword [esp + 0x28]
add edx, eax
add edx, 2
mov eax, ebx
mov ch, byte [eax]
add eax, 1
add edx, 1
nop dword [eax]
test ch, ch
je 0x100021f0
or cl, 0x20
or ch, 0x20
cmp cl, ch
jne 0x100021d0
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x100021c0
mov ch, byte [eax]
add eax, 1
add edx, 1
mov cl, 0x2e
cmp ch, 0x2e
jne 0x10002190
jmp 0x100021f0
test cl, cl
jne 0x10002185
jmp 0x100021f0
add esi, 4
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x1000216e
jmp 0x10002150
test esi, esi
je 0x10002150
mov dword [esp + 8], 0
lea ebx, [esp + 8]
push ebx
push 0x40
push 4
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebp
test eax, eax
je 0x10002150
mov eax, dword [edi + 4]
mov dword [esi], eax
push ebx
push 0x20
push 4
push esi
call ebp
jmp 0x10002150
mov eax, 2
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
jmp 0x10002231

Function at 0x10003d50
Capabilities:
Manipulate console buffer

Disassembly:
push eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop ecx
ret

Function at 0x10004050
Capabilities:
Get process image filename

Disassembly:
jmp 0x100041d2
jmp dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]

Function at 0x10004060
Capabilities:
Get process image filename

Disassembly:
jmp 0x100041d8
jmp dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
Function at 0x403c3b
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403c90
push dword [esp + 0x10]
push 0x403bba
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4135e4]
test esi, esi
je 0x403ce9
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x403c88
cmp byte [esi + 0x10], 0
je 0x403c88
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x403c64
jmp 0x403ce9
mov esi, dword [0x4135e4]
test esi, esi
je 0x403ce9
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403ce2
cmp byte [esi + 0x11], 0
je 0x403cbe
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403cd5
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x4135e4
call fcn.0040ec5c
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x403c9d
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x403d8c
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x413c7c]
call fcn.0040e4f6
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x403e8c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x403de2
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x403dda
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x403e22
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x403e64
push 0x22
pop edx
cmp cx, dx
je 0x403e14
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x403e04
xor ecx, ecx
cmp word [eax], cx
je 0x403e64
mov ecx, eax
add eax, 2
jmp 0x403e66
test dx, dx
je 0x403e6c
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x403e14
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x403e5a
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x403e64
cmp cx, dx
je 0x403e57
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x403e47
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x403e2c
jmp 0x403e14
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x403e6e
xor edx, edx
cmp dword [ebp], ebx
jne 0x403e77
test edi, edi
jne 0x403e94
test edx, edx
je 0x403e7c
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x403dd0
test edi, edi
jne 0x403ea5
mov eax, ebx
jmp 0x403ea9
test esi, esi
je 0x403ea5
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x403ea9
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40554a
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x413cc4]
call fcn.0040e58d
mov ebx, eax
test ebx, ebx
je 0x4055ae
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x405573
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4055ae
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0040ee30
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0040ef00
pop edi
pop esi
pop ebx
ret 8

Function at 0x4076d6
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40784c
mov eax, dword [esp + 0x24]
dec eax
je 0x40782f
dec eax
jne 0x40784c
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040768f
pop ecx
test eax, eax
je 0x40778d
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x407750
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40782b
dec ebx
je 0x407827
dec ebx
je 0x407806
dec ebx
je 0x4077c0
sub ebx, 4
jne 0x40784c
test edi, edi
jne 0x40784c
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40784c
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x407750
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40774b
sub edi, 0
je 0x4077f8
dec edi
je 0x4077ea
dec edi
je 0x4077dc
dec edi
jne 0x40784c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40784c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40784c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40784c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40784c
sub edi, 0
je 0x407823
dec edi
je 0x40781f
dec edi
jne 0x40784c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40784c
push 0x3c
jmp 0x40784b
push 0x32
jmp 0x40784b
push 0x14
jmp 0x40784b
push 5
jmp 0x40784b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407849
cmp eax, 0xa
je 0x407845
cmp eax, 0x5a
jne 0x40784c
push 0x28
jmp 0x40784b
push 0x1e
jmp 0x40784b
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret