joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a856
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x1e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x14], 0
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 1], 0
call ebx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x45a9d2
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x18]
imul eax, eax, 0x34
mov eax, dword [eax + edx + 0x2c]
imul eax, eax, 0x24
add eax, dword [ecx]
push eax
call fcn.004169fe
cmp byte [ebp - 1], 0
mov ecx, eax
mov dword [ebp - 8], ecx
jne 0x45a900
call fcn.00433bc9
mov ecx, eax
call fcn.00433de8
test al, al
jne 0x45a900
push dword [0x488a28]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0x34
call fcn.0043e3e2
pop ecx
pop ecx
cmp eax, 6
jne 0x45a9a4
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 8]
call fcn.0043592e
xor ecx, ecx
test al, al
sete cl
mov eax, ecx
xor ecx, ecx
cmp eax, ecx
jne 0x45a97c
mov eax, dword [esi + 4]
push 1
push ecx
push ecx
push dword [ebp - 8]
push ecx
push eax
call edi
xor ecx, ecx
cmp eax, 0x20
setle cl
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x45a97f
push dword [ebp - 8]
push str.shell32.dll_OpenAs_RunDLL__s
call fcn.0042ea2e
pop ecx
pop ecx
push 1
push 0
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
mov eax, dword [esi + 4]
push str.RUNDLL32.EXE
push 0
push eax
call edi
xor ecx, ecx
cmp eax, 0x20
setle cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0043492c
xor eax, eax
cmp dword [ebp - 0x1c], eax
jne 0x45a977
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], eax
je 0x45a97f
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.0043492c
push 2
push dword [ebp - 0x10]
push 0x100c
push dword [ebp - 0x20]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x45a89c
jmp 0x45a9ac
mov ecx, dword [ebp - 8]
call fcn.0043492c
cmp dword [ebp - 0x14], 0
pop edi
je 0x45a9d2
push dword [0x488a30]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0x30
call fcn.0043e3e2
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x45e713
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
cmp dword [ebx], 0
je 0x45e8eb
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45e8eb
dec eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x100c
je 0x45e858
sub eax, 3
je 0x45e836
dec eax
je 0x45e814
dec eax
je 0x45e7f2
dec eax
jne 0x45e879
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
push 2
push 0xffffffffffffffff
push ebp
xor ebx, ebx
push eax
jmp 0x45e78b
mov edx, dword [esi + 0x18]
mov ecx, eax
imul ecx, ecx, 0x2c
cmp dword [ecx + edx + 8], 0
je 0x45e780
inc ebx
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 8]
push 2
push eax
push ebp
push ecx
call edi
cmp eax, 0xffffffff
jne 0x45e770
cmp byte [0x48497a], 0
je 0x45e879
cmp ebx, 1
mov dword [esp + 0x10], 9
mov dword [esp + 0x24], 0x48497a
mov dword [esp + 0x14], 0x24
jle 0x45e7cb
push ebx
push dword [0x4892f8]
call fcn.0042e9f5
pop ecx
jmp 0x45e7d6
push dword [0x4892fc]
call fcn.0042e9f5
pop ecx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043e3e2
pop ecx
pop ecx
cmp eax, 6
jne 0x45e8e9
jmp 0x45e879
call fcn.0041e600
mov ebx, dword [ebx]
mov al, byte [ebx + 0x41]
and al, 6
cmp al, 4
je 0x45e80b
or byte [ebx + 0x41], 4
jmp 0x45e8e4
and byte [ebx + 0x41], 0xfb
jmp 0x45e8e4
call fcn.0041e600
mov ebx, dword [ebx]
mov al, byte [ebx + 0x41]
and al, 0xa
cmp al, 8
je 0x45e82d
or byte [ebx + 0x41], 8
jmp 0x45e8e4
and byte [ebx + 0x41], 0xf7
jmp 0x45e8e4
call fcn.0041e600
mov ebx, dword [ebx]
mov al, byte [ebx + 0x41]
and al, 3
cmp al, 1
je 0x45e84f
or byte [ebx + 0x41], 1
jmp 0x45e8e4
and byte [ebx + 0x41], 0xfe
jmp 0x45e8e4
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
inc edx
mov ecx, ebx
test ax, ax
jge 0x45e874
call fcn.00453602
jmp 0x45e879
call fcn.0045fa1e
call fcn.0041e600
push 2
push 0xffffffffffffffff
jmp 0x45e8d3
mov ecx, dword [esi + 0x18]
mov eax, ebx
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 8]
mov ecx, dword [esp + 0x30]
dec ecx
dec ecx
je 0x45e8b7
dec ecx
je 0x45e8af
sub ecx, 4
jne 0x45e8d0
test eax, eax
je 0x45e8d0
mov ecx, dword [esi + 0x1c]
push eax
call fcn.0040471b
jmp 0x45e8d0
test eax, eax
je 0x45e8bb
and dword [eax + 0x20], 0
test eax, eax
jne 0x45e8c7
mov eax, dword [esi + 0x1c]
and dword [eax + 0x114], 0
jmp 0x45e8d0
mov ecx, dword [esi + 0x1c]
push eax
call fcn.0040523c
push 2
push ebx
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
push ebp
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45e884
call fcn.0041e612
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x461bba
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x461bd5
or eax, 0xffffffff
jmp 0x461c9a
mov eax, dword [0x5a252c]
cmp eax, dword [ebp + 0x10]
jge 0x461bea
mov ecx, dword [0x5a252c]
mov dword [ebp - 0x10], ecx
jmp 0x461bf0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x5a2528]
and ecx, 0x10
test ecx, ecx
je 0x461c0a
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x461c17
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0
jmp 0x461c29
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x461c82
mov ecx, dword [ebp - 4]
shl ecx, 4
mov word [ecx + 0x5a2530], 2
push 0x10
mov edx, dword [ebp - 4]
shl edx, 4
add edx, 0x5a2530
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4c8af8]
push edx
call sub.WS2_32.dll_sendto
cmp eax, dword [ebp + 0xc]
jne 0x461c80
mov eax, dword [0x575a5c]
add eax, 1
mov dword [0x575a5c], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x461c20
cmp dword [ebp - 8], 0
je 0x461c90
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
jmp 0x461c97
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x49dfcb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004a1914
xor esi, esi
inc esi
cmp dword [0x59c228], esi
pop ecx
jne 0x49dff3
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 [0x59c224], esi
mov byte [0x59c220], al
jne 0x49e059
mov ecx, dword [0x5d2bbc]
test ecx, ecx
je 0x49e03a
mov eax, dword [0x5d2bb8]
sub eax, 4
cmp eax, ecx
jmp 0x49e033
mov eax, dword [eax]
test eax, eax
je 0x49e025
call eax
mov eax, dword [0x5d2bb8]
sub eax, 4
cmp eax, dword [0x5d2bbc]
mov dword [0x5d2bb8], eax
jae 0x49e01d
mov eax, 0x4b9624
mov esi, 0x4b982c
cmp eax, esi
mov edi, eax
jae 0x49e059
mov eax, dword [edi]
test eax, eax
je 0x49e052
call eax
add edi, 4
cmp edi, esi
jb 0x49e04a
mov eax, 0x4b9930
mov esi, 0x4b9a34
cmp eax, esi
mov edi, eax
jae 0x49e078
mov eax, dword [edi]
test eax, eax
je 0x49e071
call eax
add edi, 4
cmp edi, esi
jb 0x49e069
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x49e089
push 8
call fcn.004a1868
jmp 0x49e09b
push dword [ebp + 8]
mov dword [0x59c228], 1
call fcn.0049deee
pop ecx
pop ebp
ret
Function at 0x49fb3e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x49fb5a
call fcn.0049dc15
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x49fbcc
push esi
push 0x88
push 1
call fcn.004a014c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x49fbb2
push esi
call fcn.004a33b6
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x49fa9e
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x49fbaa
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x49fbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0049ce99
test ebx, ebx
pop ecx
je 0x49fbc4
push ebx
call fcn.0049dc27
pop ecx
or eax, 0xffffffff
jmp 0x49fbcb
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x4a04cf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4b38f8
call fcn.004a29ac
mov edi, 0x94
mov eax, edi
call fcn.0049f7b0
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 [0x59c1e8], ecx
mov eax, dword [esi + 4]
mov dword [0x59c1f4], eax
mov edx, dword [esi + 8]
mov dword [0x59c1f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x59c1ec], esi
cmp ecx, 2
je 0x4a052f
or esi, 0x8000
mov dword [0x59c1ec], esi
shl eax, 8
add eax, edx
mov dword [0x59c1f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4a056a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a056a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a0582
cmp eax, 0x20b
je 0x4a056f
mov dword [ebp - 0x1c], esi
jmp 0x4a0596
cmp dword [ecx + 0x84], 0xe
jbe 0x4a056a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a0590
cmp dword [ecx + 0x74], 0xe
jbe 0x4a056a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004a195f
pop ecx
test eax, eax
jne 0x4a05aa
push 0x1c
call fcn.004a0455
pop ecx
call fcn.004a35b1
test eax, eax
jne 0x4a05bb
push 0x10
call fcn.004a0455
pop ecx
call fcn.004a5353
mov dword [ebp - 4], esi
call fcn.004a62db
test eax, eax
jge 0x4a05d4
push 0x1b
call fcn.004a0430
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5d1838], eax
call fcn.004a6b83
mov dword [0x59c290], eax
call fcn.004a6ae1
test eax, eax
jge 0x4a05fa
push 8
call fcn.004a0430
pop ecx
call fcn.004a68ae
test eax, eax
jge 0x4a060b
push 9
call fcn.004a0430
pop ecx
call fcn.0049df66
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4a061e
push eax
call fcn.004a0430
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004a6845
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4a063f
movzx eax, word [ebp - 0x34]
jmp 0x4a0642
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00402176
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a0660
push edi
call fcn.0049e09e
call fcn.0049e0c0
jmp 0x4a0692
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004a29e7
ret
Function at 0x4a06cc
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 0x4a0892
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5d16e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4a0892
test cl, 0x48
je 0x4a0732
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4a0732
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 0x4a0784
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4a076c
call fcn.0049dc15
mov dword [eax], 9
call fcn.0049dc1e
mov dword [eax], esi
jmp 0x4a077c
cmp eax, 0x6d
je 0x4a0892
push eax
call fcn.0049dc27
pop ecx
or eax, 0xffffffff
jmp 0x4a0894
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 0x4a088d
test edx, edx
je 0x4a07a7
cmp byte [ebx], 0xa
jne 0x4a07a7
or al, 4
jmp 0x4a07a9
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 0x4a0887
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4a0877
cmp al, 0xd
je 0x4a07dd
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4a0869
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4a07f7
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4a07f2
add dword [ebp + 0x10], 2
jmp 0x4a084b
mov dword [ebp + 0x10], eax
jmp 0x4a0865
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 0x4a081f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a0865
cmp dword [ebp - 0xc], 0
je 0x4a0865
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4a0840
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4a084b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4a0868
cmp ebx, dword [ebp + 0xc]
jne 0x4a0850
cmp byte [ebp - 1], 0xa
jne 0x4a0850
mov byte [ebx], 0xa
jmp 0x4a0868
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a6ca5
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4a0869
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4a07c1
jmp 0x4a0887
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4a0887
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4a0894
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a115e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4e2fe8]
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 0x4a1187
xor eax, eax
jmp 0x4a12f5
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 + 0x5d16e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4a11ba
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004a7682
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4a128c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4a12c7
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 0x4a1215
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4a1206
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 0x4a11e9
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 0x4a1255
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4a125e
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4a11da
jmp 0x4a1260
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4a12f0
cmp dword [ebp - 8], edi
je 0x4a12c7
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4a12b9
call fcn.0049dc15
mov dword [eax], 9
call fcn.0049dc1e
mov dword [eax], esi
jmp 0x4a12c2
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 0x4a12ae
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4a1260
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4a1260
push dword [ebp - 8]
call fcn.0049dc27
pop ecx
or eax, 0xffffffff
jmp 0x4a12f3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4a12dc
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4a12dc
xor eax, eax
jmp 0x4a12f3
call fcn.0049dc15
mov dword [eax], 0x1c
call fcn.0049dc1e
mov dword [eax], edi
jmp 0x4a12c2
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004a3651
leave
ret
Function at 0x4a4159
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4e2fe8]
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 + 0x4e31d0]
je 0x4a4186
inc eax
cmp eax, 0x12
jb 0x4a4177
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e31d0]
jne 0x4a42ba
mov eax, dword [0x59c298]
cmp eax, 1
je 0x4a4295
cmp eax, edx
jne 0x4a41b6
cmp dword [0x4e2eb4], 1
je 0x4a4295
cmp ecx, 0xfc
je 0x4a42ba
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 0x4a41ef
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0049cfb0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0049d180
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a4231
lea eax, [ebp - 0x10c]
push eax
call fcn.0049d180
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b3f70
push edi
call fcn.0049d830
add esp, 0x10
push edi
call fcn.0049d180
push dword [esi + 0x4e31d4]
mov ebx, eax
call fcn.0049d180
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0049f7b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0049cfb0
push edi
push ebx
call fcn.0049cfc0
push 0x4b3f50
push ebx
call fcn.0049cfc0
push dword [esi + 0x4e31d4]
push ebx
call fcn.0049cfc0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004aa198
add esp, 0x2c
jmp 0x4a42ba
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4e31d4]
push dword [esi]
call fcn.0049d180
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.004a3651
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a61fe
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.0049f7b0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a6293
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 [0x59c1e8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4a6293
cmp eax, 1
je 0x4a62ab
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 0x4a6293
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4a6268
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4a628f
xor eax, eax
inc eax
jmp 0x4a62c7
cmp esi, ebx
jae 0x4a6297
xor eax, eax
jmp 0x4a62c7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x59c1e8]
jmp 0x4a62ad
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 0x4a7299
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0049f7b0
mov eax, dword [0x4e2fe8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004a6ca5
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4a73c3
push 2
push esi
push dword [ebp + 8]
call fcn.004a6ca5
add esp, 0xc
cmp eax, ebx
je 0x4a73c3
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4a7366
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0049cf10
push 0x8000
push dword [ebp + 8]
call fcn.004ab7e5
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4a731f
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004a115e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a733f
sub edi, eax
test edi, edi
jg 0x4a7317
jmp 0x4a7357
call fcn.0049dc1e
cmp dword [eax], 5
jne 0x4a7354
call fcn.0049dc15
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004ab7e5
pop ecx
pop ecx
jmp 0x4a73ae
jge 0x4a73ae
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a6ca5
push dword [ebp + 8]
call fcn.004a6ebf
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4a73ae
call fcn.0049dc15
mov dword [eax], 0xd
call fcn.0049dc1e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004a6ca5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4a73c5
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004a3651
leave
ret
Function at 0x4aa198
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x59c65c], ebx
push esi
push edi
jne 0x4aa218
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4aa253
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x59c65c], eax
je 0x4aa253
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x59c660], eax
call esi
cmp dword [0x59c1e8], 2
mov dword [0x59c664], eax
jne 0x4aa218
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x59c66c], eax
je 0x4aa218
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x59c668], eax
mov eax, dword [0x59c668]
test eax, eax
je 0x4aa25d
call eax
test eax, eax
je 0x4aa244
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x59c66c]
test eax, eax
je 0x4aa244
test byte [ebp - 8], 1
jne 0x4aa25d
cmp dword [0x59c1f4], 4
jb 0x4aa257
or byte [ebp + 0x12], 0x20
jmp 0x4aa27c
xor eax, eax
jmp 0x4aa28c
or byte [ebp + 0x12], 4
jmp 0x4aa27c
mov eax, dword [0x59c660]
test eax, eax
je 0x4aa27c
call eax
mov ebx, eax
test ebx, ebx
je 0x4aa27c
mov eax, dword [0x59c664]
test eax, eax
je 0x4aa27c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x59c65c]
pop edi
pop esi
pop ebx
leave
ret