joyce8/EMBER2024-capa huggingface dataset:
Function at 0x781c5d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x781c7e
mov eax, 0x8876086c
jmp 0x781d71
cmp dword [ebp + 0x7c], esi
je 0x781d00
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x781ce0
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00822070
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x781d00
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x781d19
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x781d5f
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x781d5f
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x781d5f
cmp eax, esi
je 0x781d6c
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x781d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x781d71
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x7e10a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x7e10ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x7e11ae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x883320]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x883320]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x883320]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x883320]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x883320]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x883320]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x883320]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x883320]
xor eax, edx
inc ecx
dec edi
jne 0x7e10c6
pop edi
test esi, esi
je 0x7e11d0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x883320]
xor eax, edx
inc ecx
dec esi
jne 0x7e11b2
pop esi
pop ebx
not eax
ret
Function at 0x7eaab0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xfc
push ebx
mov ebx, dword [esp + 0x104]
push ebp
push esi
mov esi, dword [esp + 0x110]
xor ebp, ebp
push edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov ecx, ebx
mov edx, esi
mov eax, dword [ecx]
add ecx, 4
mov edi, dword [esp + eax*4 + 0x50]
lea eax, [esp + eax*4 + 0x50]
inc edi
dec edx
mov dword [eax], edi
jne 0x7eab1a
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x128]
cmp eax, esi
jne 0x7eab54
mov ecx, dword [esp + 0x124]
mov dword [ecx], ebp
mov dword [edx], ebp
mov eax, dword [edx]
mov ecx, 1
mov dword [esp + 0x10], eax
cmp dword [esp + ecx*4 + 0x50], ebp
jne 0x7eab6b
inc ecx
cmp ecx, 0xf
jbe 0x7eab5f
cmp eax, ecx
mov dword [esp + 0x14], ecx
jae 0x7eab79
mov dword [esp + 0x10], ecx
mov eax, ecx
mov esi, 0xf
cmp dword [esp + esi*4 + 0x50], ebp
jne 0x7eab87
dec esi
jne 0x7eab7e
cmp eax, esi
mov dword [esp + 0x28], esi
jbe 0x7eab95
mov dword [esp + 0x10], esi
mov eax, esi
mov dword [edx], eax
mov edx, 1
shl edx, cl
cmp ecx, esi
jae 0x7eabaf
sub edx, dword [esp + ecx*4 + 0x50]
js 0x7eabca
inc ecx
add edx, edx
cmp ecx, esi
jb 0x7eaba2
lea ecx, [esi*4]
mov dword [esp + 0x30], ecx
lea edi, [esp + ecx + 0x50]
mov ecx, dword [esp + ecx + 0x50]
sub edx, ecx
mov dword [esp + 0x4c], edx
jns 0x7eabda
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0xfc
ret
add ecx, edx
mov dword [esp + 0x94], ebp
mov dword [edi], ecx
xor ecx, ecx
dec esi
je 0x7eabfd
xor edi, edi
add ecx, dword [esp + edi + 0x54]
add edi, 4
dec esi
mov dword [esp + edi + 0x94], ecx
jne 0x7eabec
mov esi, ebx
xor edi, edi
mov ecx, dword [esi]
add esi, 4
cmp ecx, ebp
mov dword [esp + 0x20], esi
je 0x7eac2d
mov esi, dword [esp + ecx*4 + 0x90]
mov ebx, dword [esp + 0x134]
lea ecx, [esp + ecx*4 + 0x90]
mov dword [ebx + esi*4], edi
inc esi
mov dword [ecx], esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x114]
inc edi
cmp edi, ecx
jb 0x7eac01
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ebx, eax
xor edi, edi
mov ecx, dword [esp + ecx + 0x90]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
neg ebx
cmp ecx, esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xd0], edi
mov dword [esp + 0x30], edi
jg 0x7eaf2b
mov esi, dword [esp + 0x38]
lea edx, [ecx - 1]
mov dword [esp + 0x40], edx
lea edx, [esp + ecx*4 + 0x50]
mov dword [esp + 0x24], edx
Function at 0x8195c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x819600
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0xc9abd8]
test eax, eax
jle 0x819614
inc eax
mov dword [0xc9abd8], eax
jmp 0x8196e1
push str.QuickTime.qts
call fcn.0081dae0
add esp, 4
mov dword [0xc9abdc], eax
test eax, eax
jne 0x819637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
jmp 0x8196a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._CallComponentFunctionWithStorage
push eax
call esi
test eax, eax
mov dword [0x8e2a14], eax
je 0x8196a4
mov edx, dword [0xc9abdc]
push str._CallComponent
push edx
call esi
test eax, eax
mov dword [0x8e2a10], eax
je 0x8196a4
mov eax, dword [0xc9abdc]
push str.theQuickTimeDispatcher
push eax
call esi
test eax, eax
mov dword [0x8e2a0c], eax
je 0x8196a4
mov ecx, dword [esp + 0x10c]
mov dword [0x8e2a08], 0
push ecx
call fcn.008194b0
mov esi, eax
add esp, 4
test si, si
jne 0x8196a9
inc dword [0xc9abd8]
jmp 0x8196e1
mov esi, 0xfffff7d2
mov eax, dword [0xc9abdc]
test eax, eax
je 0x8196c3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0xc9abdc], 0
mov eax, 0x8194d0
mov dword [0x8e2a08], 0x819700
mov dword [0x8e2a10], eax
mov dword [0x8e2a14], eax
mov dword [0x8e2a0c], eax
test edi, edi
je 0x8196f3
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
add esp, 0x100
ret
Function at 0x823bdb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0082adbe
xor esi, esi
inc esi
cmp dword [0xc9ac48], esi
pop ecx
jne 0x823c03
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0xc9ac44], esi
mov byte [0xc9ac40], al
jne 0x823c69
mov ecx, dword [0xc9d42c]
test ecx, ecx
je 0x823c4a
mov eax, dword [0xc9d428]
sub eax, 4
cmp eax, ecx
jmp 0x823c43
mov eax, dword [eax]
test eax, eax
je 0x823c35
call eax
mov eax, dword [0xc9d428]
sub eax, 4
cmp eax, dword [0xc9d42c]
mov dword [0xc9d428], eax
jae 0x823c2d
mov eax, 0x8a5a34
mov esi, 0x8a5a3c
cmp eax, esi
mov edi, eax
jae 0x823c69
mov eax, dword [edi]
test eax, eax
je 0x823c62
call eax
add edi, 4
cmp edi, esi
jb 0x823c5a
mov eax, 0x8a5a40
mov esi, 0x8a5a48
cmp eax, esi
mov edi, eax
jae 0x823c88
mov eax, dword [edi]
test eax, eax
je 0x823c81
call eax
add edi, 4
cmp edi, esi
jb 0x823c79
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x823c99
push 8
call fcn.0082ad12
jmp 0x823cab
push dword [ebp + 8]
mov dword [0xc9ac48], 1
call fcn.00823afe
pop ecx
pop ebp
ret

Function at 0x8266a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x8266c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0082b193
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x8266e4
test byte [esp + 8], 2
je 0x8266e4
call fcn.0082b181
mov dword [eax], 0xd
call fcn.0082b18a
mov dword [eax], 5
jmp 0x8266bd
xor eax, eax
ret
Function at 0x82b44a
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 0x82b610
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0xc9c300]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x82b610
test cl, 0x48
je 0x82b4b0
mov al, byte [eax + 5]
cmp al, 0xa
je 0x82b4b0
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 0x82b502
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x82b4ea
call fcn.0082b181
mov dword [eax], 9
call fcn.0082b18a
mov dword [eax], esi
jmp 0x82b4fa
cmp eax, 0x6d
je 0x82b610
push eax
call fcn.0082b193
pop ecx
or eax, 0xffffffff
jmp 0x82b612
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x82b60b
test edx, edx
je 0x82b525
cmp byte [ebx], 0xa
jne 0x82b525
or al, 4
jmp 0x82b527
and al, 0xfb
mov byte [ecx], al
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 0x82b605
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x82b5f5
cmp al, 0xd
je 0x82b55b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x82b5e7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x82b575
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x82b570
add dword [ebp + 0x10], 2
jmp 0x82b5c9
mov dword [ebp + 0x10], eax
jmp 0x82b5e3
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 0x82b59d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x82b5e3
cmp dword [ebp - 0xc], 0
je 0x82b5e3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x82b5be
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x82b5c9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x82b5e6
cmp ebx, dword [ebp + 0xc]
jne 0x82b5ce
cmp byte [ebp - 1], 0xa
jne 0x82b5ce
mov byte [ebx], 0xa
jmp 0x82b5e6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0082b912
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x82b5e7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x82b53f
jmp 0x82b605
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x82b605
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x82b612
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x82b6c2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x8e31bc]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x82b6eb
xor eax, eax
jmp 0x82b859
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0xc9c300]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x82b71e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00834389
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x82b7f0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x82b82b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x82b779
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x82b76a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x82b74d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x82b7b9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x82b7c2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x82b73e
jmp 0x82b7c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x82b854
cmp dword [ebp - 8], edi
je 0x82b82b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x82b81d
call fcn.0082b181
mov dword [eax], 9
call fcn.0082b18a
mov dword [eax], esi
jmp 0x82b826
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x82b812
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x82b7c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x82b7c4
push dword [ebp - 8]
call fcn.0082b193
pop ecx
or eax, 0xffffffff
jmp 0x82b857
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x82b840
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x82b840
xor eax, eax
jmp 0x82b857
call fcn.0082b181
mov dword [eax], 0x1c
call fcn.0082b18a
mov dword [eax], edi
jmp 0x82b826
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0082aad4
leave
ret
Function at 0x82d520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x8e31bc]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x8e3480]
je 0x82d54d
inc eax
cmp eax, 0x12
jb 0x82d53e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x8e3480]
jne 0x82d681
mov eax, dword [0xc9ac58]
cmp eax, 1
je 0x82d65c
cmp eax, edx
jne 0x82d57d
cmp dword [0x8e2eb4], 1
je 0x82d65c
cmp ecx, 0xfc
je 0x82d681
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x82d5b6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00826590
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00826330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x82d5f8
lea eax, [ebp - 0x10c]
push eax
call fcn.00826330
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x86550c
push edi
call fcn.00821f40
add esp, 0x10
push edi
call fcn.00826330
push dword [esi + 0x8e3484]
mov ebx, eax
call fcn.00826330
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00822070
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00826590
push edi
push ebx
call fcn.008265a0
push 0x88c210
push ebx
call fcn.008265a0
push dword [esi + 0x8e3484]
push ebx
call fcn.008265a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00835177
add esp, 0x2c
jmp 0x82d681
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x8e3484]
push dword [esi]
call fcn.00826330
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0082aad4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8338f9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00822070
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x83398e
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0xc9ac08]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x83398e
cmp eax, 1
je 0x8339a6
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x83398e
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x833963
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x83398a
xor eax, eax
inc eax
jmp 0x8339c2
cmp esi, ebx
jae 0x833992
xor eax, eax
jmp 0x8339c2
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0xc9ac08]
jmp 0x8339a8
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x834fc2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x83502d
push 0x3d
push dword [ebp + 8]
call fcn.00836697
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x83502d
cmp dword [ebp + 8], esi
je 0x83502d
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0xc9ac28]
cmp eax, dword [0xc9ac2c]
jne 0x835013
mov edi, eax
call fcn.00834f61
mov dword [0xc9ac28], eax
cmp eax, ebx
jne 0x83506c
cmp dword [ebp + 0xc], ebx
je 0x835035
cmp dword [0xc9ac30], ebx
je 0x835035
call fcn.0082c3ec
test eax, eax
je 0x83506c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x835170
push 4
call fcn.00824257
cmp eax, ebx
pop ecx
mov dword [0xc9ac28], eax
je 0x83502d
mov dword [eax], ebx
cmp dword [0xc9ac30], ebx
jne 0x83506c
push 4
call fcn.00824257
cmp eax, ebx
pop ecx
mov dword [0xc9ac30], eax
je 0x83502d
mov dword [eax], ebx
mov ebx, dword [0xc9ac28]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00834f14
mov edi, eax
test edi, edi
pop ecx
jl 0x8350c5
cmp dword [ebx], 0
je 0x8350c5
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0082413f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x8350ad
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x8350fb
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x8350a4
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00824269
test eax, eax
pop ecx
pop ecx
je 0x8350fb
jmp 0x8350f6
cmp dword [ebp - 4], 0
jne 0x835169
test edi, edi
jge 0x8350d5
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00824269
test eax, eax
pop ecx
pop ecx
je 0x83502d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0xc9ac28], eax
cmp dword [ebp + 0xc], 0
je 0x835152
push dword [ebp + 8]
call fcn.00826330
inc eax
inc eax
push eax
call fcn.00824257
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x835152
push dword [ebp + 8]
push esi
call fcn.00826590
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x83514b
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0082413f
pop ecx
cmp dword [ebp - 4], 0
je 0x835161
push dword [ebp + 8]
call fcn.0082413f
pop ecx
mov eax, dword [ebp - 8]
jmp 0x835030
push esi
call fcn.0082413f
pop ecx
xor eax, eax
jmp 0x835030
Function at 0x835177
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0xc9afa0], ebx
push esi
push edi
jne 0x8351f7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x835232
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x88de48
push edi
call esi
test eax, eax
mov dword [0xc9afa0], eax
je 0x835232
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0xc9afa4], eax
call esi
cmp dword [0xc9ac08], 2
mov dword [0xc9afa8], eax
jne 0x8351f7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0xc9afb0], eax
je 0x8351f7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0xc9afac], eax
mov eax, dword [0xc9afac]
test eax, eax
je 0x83523c
call eax
test eax, eax
je 0x835223
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xc9afb0]
test eax, eax
je 0x835223
test byte [ebp - 8], 1
jne 0x83523c
cmp dword [0xc9ac14], 4
jb 0x835236
or byte [ebp + 0x12], 0x20
jmp 0x83525b
xor eax, eax
jmp 0x83526b
or byte [ebp + 0x12], 4
jmp 0x83525b
mov eax, dword [0xc9afa4]
test eax, eax
je 0x83525b
call eax
mov ebx, eax
test ebx, ebx
je 0x83525b
mov eax, dword [0xc9afa8]
test eax, eax
je 0x83525b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xc9afa0]
pop edi
pop esi
pop ebx
leave
ret