joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c340
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.004a7989
push edi
mov ebp, eax
call fcn.004a7989
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x46c3ed
test eax, eax
je 0x46c3ed
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 0x46c3b7
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 0x46c3a0
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.00450860
add esp, 0x10
test eax, eax
je 0x46c3db
xor bl, bl
jmp 0x46c3f6
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx], eax
mov dword [ecx], esi
jmp 0x46c3f2
mov byte [esp + 0x13], 0
mov bl, byte [esp + 0x13]
test ebp, ebp
je 0x46c403
push ebp
call fcn.004a8b23
add esp, 4
test bl, bl
jne 0x46c418
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c418
push eax
call fcn.004a8b23
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 8

Function at 0x46c430
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x110]
test eax, eax
jne 0x46c449
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.004a7989
push edi
mov ebp, eax
call fcn.004a7989
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x46c4ed
test eax, eax
je 0x46c4ed
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 0x46c4b7
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 0x46c4a0
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.00450860
add esp, 0x10
test eax, eax
je 0x46c4db
xor bl, bl
jmp 0x46c4f6
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [edx], eax
mov dword [ecx], esi
jmp 0x46c4f2
mov byte [esp + 0x13], 0
mov bl, byte [esp + 0x13]
test ebp, ebp
je 0x46c503
push ebp
call fcn.004a8b23
add esp, 4
test bl, bl
jne 0x46c518
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46c518
push eax
call fcn.004a8b23
add esp, 4
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret 8
Function at 0x46e970
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.004a7989
mov edx, dword [esp + 0x10]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x46e998
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 0x46e9df
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 0x46e9c0
pop ebx
pop esi
mov al, 1
pop ebp
ret 8
Function at 0x471f90
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 0x471fa4
sub ebp, ecx
je 0x472189
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 0x471fd0
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 0x471fd0
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.00471710
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 0x472123
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.00471710
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 0x472160
dec ebp
jne 0x472155
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x479080
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.004a91d0
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
test eax, eax
je 0x4790c5
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileType]
test eax, eax
je 0x4790c5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x508f60
call fcn.004ab5fa
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.004ab5a4
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
jae 0x47913e
call fcn.00478fc0
test eax, eax
je 0x47913e
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 0x480ef0
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 0x480f53
mov al, byte [edi]
test al, al
je 0x480f53
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 0x480f10
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 0x4887b0
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 0x48888c
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
jl 0x488826
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 + 0x4ffe00]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4ffe00]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x4ffe00]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x4ffe00]
mov byte [ecx], dl
jmp 0x488879
movzx edx, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x488838
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + 0x4ffe00]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4ffe00]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x488866
mov edx, 0x3d
jmp 0x488873
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x4ffe00]
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 0x4887d0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x496880
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 0x496899
mov esi, ebx
mov ebx, eax
jmp 0x49689b
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jle 0x4968b1
push eax
push edi
call fcn.00478830
add esp, 8
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x4968da
push ebp
jmp 0x4968c0
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 0x4968c0
pop ebp
cmp eax, dword [esi + 4]
jge 0x4968f2
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 0x4968e0
mov esi, dword [esi + 4]
test esi, esi
mov dword [edi + 4], esi
jle 0x496918
mov eax, dword [edi]
lea eax, [eax + esi*4 - 4]
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x496918
mov edx, dword [edi + 4]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [edi + 4], edx
jg 0x496902
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4a9356
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 0x4a93de
push esi
call fcn.004b1366
test eax, eax
pop ecx
jne 0x4a93a6
call fcn.004abe47
mov dword [eax], 0xf
call fcn.004abe3e
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8b15
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 0x4a93f1
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x4a9396
inc eax
cmp eax, esi
ja 0x4a9396
test edi, edi
mov ecx, edi
jne 0x4a9427
cmp eax, dword [ebp + 0x10]
jg 0x4a9408
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.004a957a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4a943c
call fcn.004abe3e
mov dword [eax], 0xc
jmp 0x4a9396
cmp eax, dword [ebp + 0x10]
jle 0x4a943c
call fcn.004abe3e
mov dword [eax], 0x22
jmp 0x4a9396
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004a97a9
pop ecx
pop ecx
jmp 0x4a9398
Function at 0x4a95d5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4eac88
call fcn.004ad480
mov edi, 0x94
mov eax, edi
call fcn.004a91d0
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 [0x50f824], ecx
mov eax, dword [esi + 4]
mov dword [0x50f830], eax
mov edx, dword [esi + 8]
mov dword [0x50f834], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x50f828], esi
cmp ecx, 2
je 0x4a9635
or esi, 0x8000
mov dword [0x50f828], esi
shl eax, 8
add eax, edx
mov dword [0x50f82c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4a9670
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a9670
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a9688
cmp eax, 0x20b
je 0x4a9675
mov dword [ebp - 0x1c], esi
jmp 0x4a969c
cmp dword [ecx + 0x84], 0xe
jbe 0x4a9670
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a9696
cmp dword [ecx + 0x74], 0xe
jbe 0x4a9670
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004b13b7
pop ecx
test eax, eax
jne 0x4a96b0
push 0x1c
call fcn.004a95b1
pop ecx
call fcn.004afde6
test eax, eax
jne 0x4a96c1
push 0x10
call fcn.004a95b1
pop ecx
call fcn.004b2956
mov dword [ebp - 4], esi
call fcn.004b2758
test eax, eax
jge 0x4a96da
push 0x1b
call fcn.004a958c
pop ecx
call fcn.004b26b9
mov dword [0x510f44], eax
call fcn.004b254f
mov dword [0x50f50c], eax
call fcn.004b24b9
test eax, eax
jge 0x4a96ff
push 8
call fcn.004a958c
pop ecx
call fcn.004b2286
test eax, eax
jge 0x4a9710
push 9
call fcn.004a958c
pop ecx
push 1
call fcn.004b0789
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4a9726
push eax
call fcn.004a958c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.004b2240
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4a9747
movzx eax, word [ebp - 0x40]
jmp 0x4a974a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041f210
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a9768
push edi
call fcn.004b08b6
call fcn.004b08d8
jmp 0x4a979a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004ad4bb
ret
Function at 0x4b07f3
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4eb9e8
call fcn.004ad480
push 8
call fcn.004ac91f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x50f864], esi
jne 0x4b0827
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x50f860], esi
mov al, byte [ebp + 0x10]
mov byte [0x50f85c], al
cmp dword [ebp + 0xc], edi
jne 0x4b0871
cmp dword [0x50ff0c], edi
je 0x4b0861
mov eax, dword [0x50ff08]
sub eax, 4
mov dword [0x50ff08], eax
cmp eax, dword [0x50ff0c]
jb 0x4b0861
mov eax, dword [eax]
cmp eax, edi
je 0x4b0842
call eax
jmp 0x4b0842
push 0x4f704c
mov eax, 0x4f7040
call fcn.004b0771
pop ecx
push 0x4f7058
mov eax, 0x4f7050
call fcn.004b0771
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4b08a2
cmp dword [ebp + 0x10], edi
jne 0x4b08b0
mov dword [0x50f864], esi
push dword [ebp + 8]
call fcn.004b072f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4b08af
push 8
call fcn.004ac86a
pop ecx
ret
call fcn.004ad4bb
ret

Function at 0x4b1283
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.004a91d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4b131e
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 [0x50f824]
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 0x4b131e
cmp eax, 1
je 0x4b133f
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 0x4b131e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4b12eb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4b131a
xor eax, eax
inc eax
jmp 0x4b135e
cmp edi, eax
jae 0x4b1322
xor eax, eax
jmp 0x4b135e
cmp eax, esi
jae 0x4b1329
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 [0x50f824]
jmp 0x4b1342
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 0x4b1366
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b1394
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 0x4b1399
cmp eax, 1
je 0x4b1399
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b1f2b
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 0x4b1f62
inc eax
cmp eax, 0x13
jb 0x4b1f53
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x509700]
jne 0x4b2085
mov eax, dword [0x50f510]
cmp eax, 1
je 0x4b2060
cmp eax, edx
jne 0x4b1f92
cmp dword [0x508eb4], 1
je 0x4b2060
cmp ecx, 0xfc
je 0x4b2085
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 0x4b1fc8
lea eax, [ebp - 0x7c]
push 0x4eb7c8
push eax
call fcn.004aff90
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004ad9e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b1ffc
mov eax, edi
push eax
call fcn.004ad9e0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4eb7c4
push edi
call fcn.004a8030
add esp, 0x10
push edi
call fcn.004ad9e0
push dword [esi + 0x509704]
mov ebx, eax
call fcn.004ad9e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a91d0
mov ebx, esp
push 0x4ebda8
push ebx
call fcn.004aff90
push edi
push ebx
call fcn.004affa0
push 0x4eb7c0
push ebx
call fcn.004affa0
push dword [esi + 0x509704]
push ebx
call fcn.004affa0
push 0x12010
push 0x4eb78c
push ebx
call fcn.004b9b0c
add esp, 0x2c
jmp 0x4b2085
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x509704]
push dword [esi]
call fcn.004ad9e0
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.004a8b15
add ebp, 0x90
leave
ret
Function at 0x4b254f
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x50fa7c]
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 0x4b2598
call ebp
mov esi, eax
cmp esi, ebx
je 0x4b257e
mov dword [0x50fa7c], 1
jmp 0x4b259d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4b2593
push 2
pop eax
mov dword [0x50fa7c], eax
jmp 0x4b2598
mov eax, dword [0x50fa7c]
cmp eax, 1
jne 0x4b25f5
cmp esi, ebx
jne 0x4b25b0
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4b25b0
xor eax, eax
jmp 0x4b269c
cmp word [esi], bx
mov eax, esi
je 0x4b25c5
inc eax
inc eax
cmp word [eax], bx
jne 0x4b25b7
inc eax
inc eax
cmp word [eax], bx
jne 0x4b25b7
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004a957a
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4b25e8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4b269c
push ebp
push esi
push edi
call fcn.004ad5e0
add esp, 0xc
jmp 0x4b25da
cmp eax, 2
je 0x4b25fe
cmp eax, ebx
jne 0x4b25a9
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4b25a9
cmp byte [ebp], bl
mov esi, ebp
je 0x4b2634
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x4b25a9
push esi
add edi, eax
call fcn.004ad9e0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4b2611
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004a957a
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4b26ad
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4b268e
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 0x4b26a3
push edi
call fcn.004ad9e0
push esi
lea edi, [edi + eax + 1]
call fcn.004a9141
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4b2654
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.004a9dd4
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x4b25a9
Function at 0x4b26b9
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x50fa80]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x4b26f9
call esi
test eax, eax
je 0x4b26de
mov dword [0x50fa80], 1
jmp 0x4b26fe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4b26f5
mov dword [0x50fa80], 2
jmp 0x4b2707
xor eax, eax
jmp 0x4b2755
cmp eax, 1
jne 0x4b2702
call esi
jmp 0x4b2755
cmp eax, 2
jne 0x4b26f5
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 0x4b274d
lea eax, [esi + esi]
push eax
call fcn.004a957a
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4b274d
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4b2751
push ebp
call fcn.004a9dd4
pop ecx
xor eax, eax
jmp 0x4b2753
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret