joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482ee9
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x482f14
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x483000
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x482f44
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x482fff
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x482f6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x482f33
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0043d29b
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x18]
push 0x4a44be
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x482fe1
movzx eax, byte [esi + ebx]
push eax
push str._02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x482fc1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.00437884
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x483565
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.0043d3ea
mov eax, dword [edi]
and word [eax], 0
mov edi, dword [edi]
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret
Function at 0x485c56
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x485c69
xor eax, eax
jmp 0x485e1f
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x485c7b
xor eax, eax
jmp 0x485e1e
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x485e1b
add esi, ebx
cmp dword [esi], 0x4550
jne 0x485e1b
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x485e1b
test al, 2
je 0x485e1b
cmp word [esi + 0x14], 0xe0
jne 0x485e1b
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00482a77
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x485e1b
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x485d03
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x485cfd
cmp esi, dword [ebp + 0xc]
jae 0x485cfd
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x485cef
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x485d3e
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x485e1b
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.00412515
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x485e16
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x485da1
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x485de5
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.00412515
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x485de5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x485dfb
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x485d91
xor eax, eax
inc eax
jmp 0x485e1d
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x48ee7d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x48ee9b
cmp ax, 0x42
je 0x48ee9b
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x48f02f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop ebp
ret
Function at 0x492846
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4b0450
call fcn.004906d4
mov edi, 0x94
mov eax, edi
call fcn.0048faf0
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 [0x4bed3c], ecx
mov eax, dword [esi + 4]
mov dword [0x4bed48], eax
mov edx, dword [esi + 8]
mov dword [0x4bed4c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4bed40], esi
cmp ecx, 2
je 0x4928a6
or esi, 0x8000
mov dword [0x4bed40], esi
shl eax, 8
add eax, edx
mov dword [0x4bed44], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4928e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4928e1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4928f9
cmp eax, 0x20b
je 0x4928e6
mov dword [ebp - 0x1c], esi
jmp 0x49290d
cmp dword [ecx + 0x84], 0xe
jbe 0x4928e1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x492907
cmp dword [ecx + 0x74], 0xe
jbe 0x4928e1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00496d37
pop ecx
test eax, eax
jne 0x492921
push 0x1c
call fcn.00492822
pop ecx
call fcn.00495358
test eax, eax
jne 0x492932
push 0x10
call fcn.00492822
pop ecx
call fcn.0049cf05
mov dword [ebp - 4], esi
call fcn.00494091
test eax, eax
jge 0x49294b
push 0x1b
call fcn.004927fd
pop ecx
call fcn.0049ce66
mov dword [0x4bf6f0], eax
call fcn.0049ccfc
mov dword [0x4bed30], eax
call fcn.0049cc66
test eax, eax
jge 0x492970
push 8
call fcn.004927fd
pop ecx
call fcn.0049ca33
test eax, eax
jge 0x492981
push 9
call fcn.004927fd
pop ecx
push 1
call fcn.00492c26
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x492997
push eax
call fcn.004927fd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.0049c9ed
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4929b8
movzx eax, word [ebp - 0x40]
jmp 0x4929bb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407fe6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4929d9
push edi
call fcn.00492d53
call fcn.00492d75
jmp 0x492a0b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0049070f
ret
Function at 0x492c90
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4b0488
call fcn.004906d4
push 8
call fcn.004946bd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4bed7c], esi
jne 0x492cc4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4bed78], esi
mov al, byte [ebp + 0x10]
mov byte [0x4bed74], al
cmp dword [ebp + 0xc], edi
jne 0x492d0e
cmp dword [0x4bf6e8], edi
je 0x492cfe
mov eax, dword [0x4bf6e4]
sub eax, 4
mov dword [0x4bf6e4], eax
cmp eax, dword [0x4bf6e8]
jb 0x492cfe
mov eax, dword [eax]
cmp eax, edi
je 0x492cdf
call eax
jmp 0x492cdf
push 0x4bc0d8
mov eax, 0x4bc0d0
call fcn.00492c0e
pop ecx
push 0x4bc0e4
mov eax, 0x4bc0dc
call fcn.00492c0e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x492d3f
cmp dword [ebp + 0x10], edi
jne 0x492d4d
mov dword [0x4bed7c], esi
push dword [ebp + 8]
call fcn.00492bcc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x492d4c
push 8
call fcn.00494608
pop ecx
ret
call fcn.0049070f
ret
Function at 0x4948f5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4bd33c]
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 0x494931
xor eax, eax
jmp 0x494a9b
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 + 0x4bf5e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x49496f
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0049d599
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x494a09
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x494a6c
jmp 0x494993
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 0x4949ce
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4949bf
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 0x49499f
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 0x494a2d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x494a36
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x494991
jmp 0x494a36
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 0x494a2d
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x494a36
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x494a96
cmp dword [ebp - 0x68], eax
je 0x494a69
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x494a5e
call fcn.00494870
mov dword [eax], 9
call fcn.00494879
mov dword [eax], esi
jmp 0x494a91
push dword [ebp - 0x68]
call fcn.00494882
pop ecx
jmp 0x494a91
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x494a7e
cmp byte [edi], 0x1a
jne 0x494a7e
xor eax, eax
jmp 0x494a99
call fcn.00494870
mov dword [eax], 0x1c
call fcn.00494879
and dword [eax], 0
or eax, 0xffffffff
jmp 0x494a99
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0049d310
add ebp, 0x3a4
leave
ret
Function at 0x496757
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x496785
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x49678c
cmp ebx, dword [eax + 4]
jae 0x49678c
xor eax, eax
jmp 0x49697c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x49679d
xor eax, eax
inc eax
jmp 0x49697b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4967b3
cmp ecx, edx
jae 0x4968f8
cmp dword [eax + 4], 0
je 0x4967bc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4967a4
cmp dword [ebp + 8], 0
je 0x4967de
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4968f8
cmp eax, esi
jae 0x4968f8
mov eax, dword [0x4beef8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x496803
cmp dword [esi*4 + 0x4bef00], edi
je 0x4968fc
inc esi
cmp esi, eax
jl 0x4967f1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x496978
cmp dword [ebp - 8], 0x1000000
jne 0x496978
test byte [ebp - 0xc], 0xcc
je 0x496881
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x496978
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x496978
cmp word [eax + 0x18], 0x10b
jne 0x496978
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x496978
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x496881
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x496881
test byte [ecx + 0x27], 0x80
jne 0x4968f8
push 1
push 0x4bef40
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x496795
mov ecx, dword [0x4beef8]
test ecx, ecx
mov edx, ecx
jle 0x4968b5
lea eax, [ecx*4 + 0x4beefc]
cmp dword [eax], edi
je 0x4968b5
dec edx
sub eax, 4
test edx, edx
jg 0x4968a9
test edx, edx
jne 0x4968e6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4968c2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4968da
lea eax, [edx*4 + 0x4bef00]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4968c8
cmp ecx, 0x10
jge 0x4968e6
inc ecx
mov dword [0x4beef8], ecx
push 0
push 0x4bef40
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x496795
xor eax, eax
jmp 0x49697b
test esi, esi
jle 0x496795
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4bef40
call ebx
test eax, eax
jne 0x496795
cmp dword [esi*4 + 0x4bef00], edi
je 0x496952
mov eax, dword [0x4beef8]
lea esi, [eax - 1]
test esi, esi
jl 0x496940
cmp dword [esi*4 + 0x4bef00], edi
je 0x49693c
dec esi
jns 0x496930
test esi, esi
jge 0x496950
cmp eax, 0x10
jge 0x49694b
inc eax
mov dword [0x4beef8], eax
lea esi, [eax - 1]
jmp 0x496952
je 0x49696a
xor ecx, ecx
test esi, esi
jl 0x49696a
lea eax, [ecx*4 + 0x4bef00]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x496958
push 0
push 0x4bef40
call ebx
jmp 0x496795
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4969e1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0048faf0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x496a7c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4bed3c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x496a7c
cmp eax, 1
je 0x496a9d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x496a7c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x496a49
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x496a78
xor eax, eax
inc eax
jmp 0x496abc
cmp edi, eax
jae 0x496a80
xor eax, eax
jmp 0x496abc
cmp eax, esi
jae 0x496a87
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4bed3c]
jmp 0x496aa0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49c6d8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4bd33c]
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 + 0x4bd350]
je 0x49c70f
inc eax
cmp eax, 0x13
jb 0x49c700
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4bd350]
jne 0x49c832
mov eax, dword [0x4bed34]
cmp eax, 1
je 0x49c80d
cmp eax, edx
jne 0x49c73f
cmp dword [0x4bcb8c], 1
je 0x49c80d
cmp ecx, 0xfc
je 0x49c832
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 0x49c775
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0048f860
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00494b60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x49c7a9
mov eax, edi
push eax
call fcn.00494b60
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b68a8
push edi
call fcn.0049ed10
add esp, 0x10
push edi
call fcn.00494b60
push dword [esi + 0x4bd354]
mov ebx, eax
call fcn.00494b60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0048faf0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0048f860
push edi
push ebx
call fcn.0048f870
push 0x4b6888
push ebx
call fcn.0048f870
push dword [esi + 0x4bd354]
push ebx
call fcn.0048f870
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004a0618
add esp, 0x2c
jmp 0x49c832
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4bd354]
push dword [esi]
call fcn.00494b60
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.0049d310
add ebp, 0x90
leave
ret
Function at 0x49ccfc
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4bf23c]
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 0x49cd45
call ebp
mov esi, eax
cmp esi, ebx
je 0x49cd2b
mov dword [0x4bf23c], 1
jmp 0x49cd4a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x49cd40
push 2
pop eax
mov dword [0x4bf23c], eax
jmp 0x49cd45
mov eax, dword [0x4bf23c]
cmp eax, 1
jne 0x49cda2
cmp esi, ebx
jne 0x49cd5d
call ebp
mov esi, eax
cmp esi, ebx
jne 0x49cd5d
xor eax, eax
jmp 0x49ce49
cmp word [esi], bx
mov eax, esi
je 0x49cd72
inc eax
inc eax
cmp word [eax], bx
jne 0x49cd64
inc eax
inc eax
cmp word [eax], bx
jne 0x49cd64
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00490eb4
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x49cd95
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x49ce49
push ebp
push esi
push edi
call fcn.0048fff0
add esp, 0xc
jmp 0x49cd87
cmp eax, 2
je 0x49cdab
cmp eax, ebx
jne 0x49cd56
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x49cd56
cmp byte [ebp], bl
mov esi, ebp
je 0x49cde1
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x49cd56
push esi
add edi, eax
call fcn.00494b60
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x49cdbe
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00490eb4
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x49ce5a
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x49ce3b
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 0x49ce50
push edi
call fcn.00494b60
push esi
lea edi, [edi + eax + 1]
call fcn.00490a3d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x49ce01
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.00490a53
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x49cd56
Function at 0x49ce66
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4bf240]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x49cea6
call esi
test eax, eax
je 0x49ce8b
mov dword [0x4bf240], 1
jmp 0x49ceab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x49cea2
mov dword [0x4bf240], 2
jmp 0x49ceb4
xor eax, eax
jmp 0x49cf02
cmp eax, 1
jne 0x49ceaf
call esi
jmp 0x49cf02
cmp eax, 2
jne 0x49cea2
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 0x49cefa
lea eax, [esi + esi]
push eax
call fcn.00490eb4
mov ebp, eax
test ebp, ebp
pop ecx
je 0x49cefa
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x49cefe
push ebp
call fcn.00490a53
pop ecx
xor eax, eax
jmp 0x49cf00
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4a0618
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4bf2cc], ebx
push esi
push edi
jne 0x4a0698
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a06d3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4bf2cc], eax
je 0x4a06d3
push 0x4b8344
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4bf2d0], eax
call esi
cmp dword [0x4bed3c], 2
mov dword [0x4bf2d4], eax
jne 0x4a0698
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4bf2dc], eax
je 0x4a0698
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4bf2d8], eax
mov eax, dword [0x4bf2d8]
test eax, eax
je 0x4a06dd
call eax
test eax, eax
je 0x4a06c4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4bf2dc]
test eax, eax
je 0x4a06c4
test byte [ebp - 8], 1
jne 0x4a06dd
cmp dword [0x4bed48], 4
jb 0x4a06d7
or byte [ebp + 0x12], 0x20
jmp 0x4a06fc
xor eax, eax
jmp 0x4a070c
or byte [ebp + 0x12], 4
jmp 0x4a06fc
mov eax, dword [0x4bf2d0]
test eax, eax
je 0x4a06fc
call eax
mov ebx, eax
test ebx, ebx
je 0x4a06fc
mov eax, dword [0x4bf2d4]
test eax, eax
je 0x4a06fc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4bf2cc]
pop edi
pop esi
pop ebx
leave
ret