joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c48e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x4d7518
xor ebx, ebx
mov eax, 7
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ebx
push edi
mov dword [esp + 0xc], esi
mov word [esi + 8], bx
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x4a], bl
mov byte [esi + 0x4b], bl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov dword [esp + 0x18], ebx
mov word [esi + 0x68], bx
mov cl, 1
mov byte [esi + 0x80], bl
mov byte [esi + 0x81], bl
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov byte [esi + 0x9c], cl
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
lea edi, [esi + 0xac]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
push str.form
mov byte [esp + 0x1c], cl
mov word [edi + 4], bx
call fcn.004a94d1
add esp, 4
push eax
push str.form
mov ecx, edi
call fcn.004057c0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xdc], bl
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46c6b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 0xec]
push edi
mov edi, dword [esi + 0xf0]
push ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], edi
call fcn.004a7d19
push edi
mov ebp, eax
call fcn.004a7d19
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x46c75d
test eax, eax
je 0x46c75d
mov esi, dword [esi + 0xe8]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
test ebx, ebx
jle 0x46c727
lea esp, [esp]
mov al, cl
mov dl, 0x21
imul dl
mov dl, byte [ecx + ebp]
add al, bl
sub al, 0x4a
xor dl, al
mov byte [ecx + ebp], dl
inc ecx
cmp ecx, ebx
jl 0x46c710
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push ebp
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], esi
call fcn.00450b60
add esp, 0x10
test eax, eax
je 0x46c74b
xor bl, bl
jmp 0x46c766
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx], eax
mov dword [ecx], esi
jmp 0x46c762
mov byte [esp + 0x13], 0
mov bl, byte [esp + 0x13]
test ebp, ebp
je 0x46c773
push ebp
call fcn.004a8eb3
add esp, 4
test bl, bl
jne 0x46c788
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c788
push eax
call fcn.004a8eb3
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 8

Function at 0x46c7a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x46c7b9
xor al, al
pop esi
add esp, 0xc
ret 8
push ebx
mov ebx, dword [esi + 0x114]
push ebp
push edi
mov edi, dword [esi + 0x118]
push ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], edi
call fcn.004a7d19
push edi
mov ebp, eax
call fcn.004a7d19
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x46c85d
test eax, eax
je 0x46c85d
mov esi, dword [esi + 0x110]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
test ebx, ebx
jle 0x46c827
lea esp, [esp]
mov al, cl
mov dl, 0x21
imul dl
mov dl, byte [ecx + ebp]
add al, bl
sub al, 0x48
xor dl, al
mov byte [ecx + ebp], dl
inc ecx
cmp ecx, ebx
jl 0x46c810
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push ebp
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], esi
call fcn.00450b60
add esp, 0x10
test eax, eax
je 0x46c84b
xor bl, bl
jmp 0x46c866
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx], eax
mov dword [ecx], esi
jmp 0x46c862
mov byte [esp + 0x13], 0
mov bl, byte [esp + 0x13]
test ebp, ebp
je 0x46c873
push ebp
call fcn.004a8eb3
add esp, 4
test bl, bl
jne 0x46c888
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c888
push eax
call fcn.004a8eb3
add esp, 4
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret 8
Function at 0x46ed00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push eax
mov dword [ebp], eax
call fcn.004a7d19
mov edx, dword [esp + 0x10]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x46ed28
pop esi
xor al, al
pop ebp
ret 8
mov ecx, dword [ebp]
mov esi, dword [esi + 4]
push edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
pop edi
jle 0x46ed6f
push ebx
lea ebx, [ebx]
mov eax, dword [edx]
lea esi, [eax + ecx]
mov al, cl
mov bl, 0x21
imul bl
add al, byte [ebp]
mov bl, byte [esi]
add al, 0x7d
xor bl, al
mov byte [esi], bl
mov eax, dword [ebp]
inc ecx
cmp ecx, eax
jl 0x46ed50
pop ebx
pop esi
mov al, 1
pop ebp
ret 8
Function at 0x472320
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov edx, ecx
mov ebp, ebx
mov dword [esp + 0xc], edx
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x472334
sub ebp, ecx
je 0x472519
push esi
lea eax, [edx + 8]
push edi
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], 6
jmp 0x472360
xor edx, edx
mov eax, ecx
div ebp
and edi, 0xffffff
movsx esi, byte [edx + ebx]
xor edx, edx
shl esi, 0x18
or esi, edi
inc ecx
mov eax, ecx
div ebp
movsx eax, byte [edx + ebx]
shl eax, 0x10
xor eax, esi
and eax, 0xff0000
xor esi, eax
xor edx, edx
inc ecx
mov eax, ecx
div ebp
movsx edx, byte [edx + ebx]
shl edx, 8
xor edx, esi
and edx, 0xff00
xor esi, edx
xor edx, edx
inc ecx
mov eax, ecx
div ebp
xor eax, eax
mov al, byte [edx + ebx]
xor eax, esi
and eax, 0xff
xor esi, eax
mov eax, dword [esp + 0x1c]
xor dword [eax - 4], esi
xor edx, edx
inc ecx
mov eax, ecx
div ebp
and esi, 0xffffff
movsx edi, byte [edx + ebx]
xor edx, edx
shl edi, 0x18
or edi, esi
inc ecx
mov eax, ecx
div ebp
mov esi, dword [esp + 0x1c]
movsx edx, byte [edx + ebx]
shl edx, 0x10
xor edx, edi
and edx, 0xff0000
xor edi, edx
xor edx, edx
inc ecx
mov eax, ecx
div ebp
movsx eax, byte [edx + ebx]
shl eax, 8
xor eax, edi
and eax, 0xff00
xor edi, eax
xor edx, edx
inc ecx
mov eax, ecx
div ebp
mov eax, dword [esi]
movsx edx, byte [edx + ebx]
xor edx, edi
and edx, 0xff
xor edi, edx
xor eax, edi
inc ecx
mov dword [esi], eax
mov eax, ecx
xor edx, edx
div ebp
movsx eax, byte [edx + ebx]
shl eax, 0x18
xor edx, edx
and edi, 0xffffff
or edi, eax
inc ecx
mov eax, ecx
div ebp
add esi, 0xc
mov dword [esp + 0x1c], esi
movsx edx, byte [edx + ebx]
shl edx, 0x10
xor edx, edi
and edx, 0xff0000
xor edi, edx
xor edx, edx
inc ecx
mov eax, ecx
div ebp
movsx eax, byte [edx + ebx]
shl eax, 8
xor eax, edi
and eax, 0xff00
xor edi, eax
xor edx, edx
inc ecx
mov eax, ecx
div ebp
mov eax, dword [esi - 8]
movsx edx, byte [edx + ebx]
xor edx, edi
and edx, 0xff
xor edi, edx
xor eax, edi
mov dword [esi - 8], eax
mov eax, dword [esp + 0x10]
inc ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x472360
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
add esi, 8
mov edi, 9
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00471aa0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [esi - 4], edx
mov dword [esi], eax
add esi, 8
dec edi
jne 0x4724b3
mov ebx, dword [esp + 0x14]
lea esi, [ebx + 0x50]
mov ebp, 4
mov edi, 0x80
lea ebx, [ebx]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00471aa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
dec edi
jne 0x4724f0
dec ebp
jne 0x4724e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x479410
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.004a9710
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x479455
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x479455
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x508f60
call fcn.004abcfa
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.004abca4
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4794ce
call fcn.00479350
test eax, eax
je 0x4794ce
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x104]
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x481270
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x4812d3
mov al, byte [edi]
test al, al
je 0x4812d3
push ebx
push ebp
mov ebx, 0x100
lea esp, [esp]
movsx eax, al
or eax, ebx
mov edx, eax
shr edx, 2
xor edx, eax
and edx, 0xf
mov ecx, 0x20
sub ecx, edx
mov ebp, esi
shr ebp, cl
mov ecx, edx
shl esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edi + 1]
or ebp, esi
xor ebp, ecx
add ebx, 0x100
inc edi
test al, al
mov esi, ebp
jne 0x481290
pop ebp
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x488b30
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x488c0c
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
jl 0x488ba6
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x488bf9
movzx edx, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x488bb8
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x488be6
mov edx, 0x3d
jmp 0x488bf3
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x488b50
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x496cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x496cd9
mov esi, ebx
mov ebx, eax
jmp 0x496cdb
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jle 0x496cf1
push eax
push edi
call fcn.00478bc0
add esp, 8
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x496d1a
push ebp
jmp 0x496d00
mov ecx, dword [ebx]
mov ebp, dword [ecx + eax*4]
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x496d00
pop ebp
cmp eax, dword [esi + 4]
jge 0x496d32
nop
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x496d20
mov esi, dword [esi + 4]
test esi, esi
mov dword [edi + 4], esi
jle 0x496d58
mov eax, dword [edi]
lea eax, [eax + esi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x496d58
mov edx, dword [edi + 4]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [edi + 4], edx
jg 0x496d42
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4a9811
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4ead70
call fcn.004adb7c
push 8
call fcn.004ad01f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x50f54c], esi
jne 0x4a9845
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x50f548], esi
mov al, byte [ebp + 0x10]
mov byte [0x50f544], al
cmp dword [ebp + 0xc], edi
jne 0x4a988f
cmp dword [0x510f70], edi
je 0x4a987f
mov eax, dword [0x510f6c]
sub eax, 4
mov dword [0x510f6c], eax
cmp eax, dword [0x510f70]
jb 0x4a987f
mov eax, dword [eax]
cmp eax, edi
je 0x4a9860
call eax
jmp 0x4a9860
push 0x4f7050
mov eax, 0x4f7044
call fcn.004a978f
pop ecx
push 0x4f705c
mov eax, 0x4f7054
call fcn.004a978f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4a98c0
cmp dword [ebp + 0x10], edi
jne 0x4a98ce
mov dword [0x50f54c], esi
push dword [ebp + 8]
call fcn.004a974d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4a98cd
push 8
call fcn.004acf6a
pop ecx
ret
call fcn.004adbb7
ret
Function at 0x4a9a5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x508e4c]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x4a9ae5
push esi
call fcn.004b1c48
test eax, eax
pop ecx
jne 0x4a9aad
call fcn.004ac547
mov dword [eax], 0xf
call fcn.004ac53e
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8ea5
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x4a9af8
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4a9a9d
inc eax
cmp eax, esi
ja 0x4a9a9d
test edi, edi
mov ecx, edi
jne 0x4a9b2e
cmp eax, dword [ebp + 0x10]
jg 0x4a9b0f
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.004a9c81
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4a9b43
call fcn.004ac53e
mov dword [eax], 0xc
jmp 0x4a9a9d
cmp eax, dword [ebp + 0x10]
jle 0x4a9b43
call fcn.004ac53e
mov dword [eax], 0x22
jmp 0x4a9a9d
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004aa02a
pop ecx
pop ecx
jmp 0x4a9a9f
Function at 0x4a9cdc
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4eadb0
call fcn.004adb7c
mov edi, 0x94
mov eax, edi
call fcn.004a9710
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 [0x50f50c], ecx
mov eax, dword [esi + 4]
mov dword [0x50f518], eax
mov edx, dword [esi + 8]
mov dword [0x50f51c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x50f510], esi
cmp ecx, 2
je 0x4a9d3c
or esi, 0x8000
mov dword [0x50f510], esi
shl eax, 8
add eax, edx
mov dword [0x50f514], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4a9d77
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a9d77
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a9d8f
cmp eax, 0x20b
je 0x4a9d7c
mov dword [ebp - 0x1c], esi
jmp 0x4a9da3
cmp dword [ecx + 0x84], 0xe
jbe 0x4a9d77
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a9d9d
cmp dword [ecx + 0x74], 0xe
jbe 0x4a9d77
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b1c99
pop ecx
test eax, eax
jne 0x4a9db7
push 0x1c
call fcn.004a9cb8
pop ecx
call fcn.004b03d6
test eax, eax
jne 0x4a9dc8
push 0x10
call fcn.004a9cb8
pop ecx
call fcn.004b1a39
mov dword [ebp - 4], esi
call fcn.004b303a
test eax, eax
jge 0x4a9de1
push 0x1b
call fcn.004a9c93
pop ecx
call fcn.004b2f9b
mov dword [0x510f64], eax
call fcn.004b2e31
mov dword [0x50f554], eax
call fcn.004b2d9b
test eax, eax
jge 0x4a9e06
push 8
call fcn.004a9c93
pop ecx
call fcn.004b2b68
test eax, eax
jge 0x4a9e17
push 9
call fcn.004a9c93
pop ecx
push 1
call fcn.004a97a7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4a9e2d
push eax
call fcn.004a9c93
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004b2b22
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4a9e4e
movzx eax, word [ebp - 0x40]
jmp 0x4a9e51
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041f660
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a9e6f
push edi
call fcn.004a98d4
call fcn.004a98f6
jmp 0x4a9ea1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004adbb7
ret
Function at 0x4b1b65
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.004a9710
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b1c00
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 [0x50f50c]
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 0x4b1c00
cmp eax, 1
je 0x4b1c21
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 0x4b1c00
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4b1bcd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4b1bfc
xor eax, eax
inc eax
jmp 0x4b1c40
cmp edi, eax
jae 0x4b1c04
xor eax, eax
jmp 0x4b1c40
cmp eax, esi
jae 0x4b1c0b
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 [0x50f50c]
jmp 0x4b1c24
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 0x4b1c48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b1c76
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4b1c7b
cmp eax, 1
je 0x4b1c7b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b280d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x508e4c]
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 + 0x509700]
je 0x4b2844
inc eax
cmp eax, 0x13
jb 0x4b2835
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x509700]
jne 0x4b2967
mov eax, dword [0x50f558]
cmp eax, 1
je 0x4b2942
cmp eax, edx
jne 0x4b2874
cmp dword [0x508eb4], 1
je 0x4b2942
cmp ecx, 0xfc
je 0x4b2967
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 0x4b28aa
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004b0580
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004adfd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b28de
mov eax, edi
push eax
call fcn.004adfd0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4eb8c4
push edi
call fcn.004a83c0
add esp, 0x10
push edi
call fcn.004adfd0
push dword [esi + 0x509704]
mov ebx, eax
call fcn.004adfd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a9710
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004b0580
push edi
push ebx
call fcn.004b0590
push 0x4eb8c0
push ebx
call fcn.004b0590
push dword [esi + 0x509704]
push ebx
call fcn.004b0590
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004b9f43
add esp, 0x2c
jmp 0x4b2967
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x509704]
push dword [esi]
call fcn.004adfd0
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.004a8ea5
add ebp, 0x90
leave
ret