joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bcb5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x49bd52
push ebx
push esi
call fcn.0049bc7e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00498b79
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49bcff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49bd51
push edi
push eax
call fcn.0049456d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x49bd1f
call fcn.00494533
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49bd50
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00498b79
add esp, 0x20
test eax, eax
jne 0x49bd3e
push edi
call fcn.00494533
jmp 0x49bd46
push ebx
call fcn.00494533
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x49bd55
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49bd66
pop esi
ret
push ebx
push edi
push esi
call fcn.0049bc7e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049456d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49bd8e
push ebx
push esi
push edi
call fcn.00482d10
add esp, 0xc
push 0
call fcn.00494533
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x49c4e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049c003
Function at 0x49f2a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xb671e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f2e6
cmp byte [ebx], 0xa
jne 0x49f2e6
or byte [edi + eax + 0x28], 4
jmp 0x49f2eb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49f3ea
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49f3cd
inc eax
cmp dl, 0xd
je 0x49f317
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49f33d
cmp eax, ecx
jae 0x49f34b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49f2ff
jmp 0x49f3ea
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f3c8
cmp dword [ebp - 0x10], 0
je 0x49f3c8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xb671e0]
test byte [eax + edi + 0x28], 0x48
je 0x49f3a2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49f38d
mov byte [esi], dl
jmp 0x49f39e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xb671e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49f3ea
cmp byte [ebp - 1], 0xa
jne 0x49f3b1
cmp esi, ebx
jne 0x49f3b1
mov byte [esi], 0xa
jmp 0x49f3e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049f216
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f3ea
mov byte [esi], 0xd
jmp 0x49f3e9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xb671e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f3e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f3ea
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f3f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xb671e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f439
cmp word [ebx], dx
jne 0x49f439
or byte [eax + edi + 0x28], 4
jmp 0x49f43e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49f5a1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49f581
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49f47f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49f4b5
cmp eax, edx
jae 0x49f4c3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49f45a
jmp 0x49f5a1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f57c
cmp dword [ebp - 0x18], 0
je 0x49f57c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xb671e0]
test byte [eax + edi + 0x28], 0x48
je 0x49f552
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49f516
mov word [esi], cx
jmp 0x49f54d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xb671e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xb671e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xb671e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49f5a1
pop eax
cmp word [ebp - 4], ax
jne 0x49f562
cmp esi, ebx
jne 0x49f562
mov word [esi], ax
jmp 0x49f59e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049f216
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49f5a1
push 0xd
pop eax
jmp 0x49f55d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xb671e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49f59b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49f5a1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a0f71
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004a0eed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4a10e0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4a10e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4a1095
jg 0x4a0fcd
test eax, eax
je 0x4a108b
push 1
push 0x1000
call fcn.00495ba2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4a0ff0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4a1082
push 0x8000
push ebx
call fcn.00493405
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4a1019
jg 0x4a1014
cmp ecx, 0x1000
jb 0x4a1019
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004972bb
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a105e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4a1014
jl 0x4a1045
test ecx, ecx
jne 0x4a1006
push dword [ebp - 0xc]
push ebx
call fcn.00493405
push esi
call fcn.00494533
add esp, 0xc
xor ebx, ebx
jmp 0x4a10ee
cmp byte [edi + 0x24], 0
je 0x4a1075
cmp dword [edi + 0x20], 5
jne 0x4a1075
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4a1080
mov ebx, dword [edi + 0x18]
jmp 0x4a1082
xor ebx, ebx
push esi
call fcn.00494533
pop ecx
jmp 0x4a10ee
test ecx, ecx
jg 0x4a1057
jl 0x4a1095
test eax, eax
jae 0x4a1057
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049f216
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a10b5
cmp byte [edi + 0x1c], 0
je 0x4a1057
jmp 0x4a10e6
push ebx
call fcn.0049c971
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4a1057
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4a10ee
cmp byte [edi + 0x1c], 0
je 0x4a10eb
mov ebx, dword [edi + 0x18]
jmp 0x4a10ee
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0049f216
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a3b30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x4a3bf7
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
cmp edx, 0x20
jb 0x4a3bd4
push edi
mov eax, edx
mov edi, edx
and eax, 0x1f
xorps xmm3, xmm3
sub edi, eax
mov ebx, esi
movaps xmm2, xmm3
mov eax, ebp
sub ebx, ebp
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x4a3b70
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x4a3bf0
sub esi, ebp
lea eax, [ecx + ebp]
sub edx, ecx
nop
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x4a3be0
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
movzx eax, bl
pop ebx
ret

Function at 0x4a3d40
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00481770
mov eax, dword [0x572c40]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4a3ddf
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4a3ddf
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00404f40
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0048dcd0
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00481761
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00404f40
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0048dcd0
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.004a3c00
test eax, eax
jle 0x4a3e73
push 0x52d108
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4a3e87
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00481761
add esp, 0x108
ret
push 0x10
push 0x52d110
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00481761
add esp, 0x108
ret
Function at 0x4b0910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00481770
mov eax, dword [0x572c40]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.004a86e0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004a8540
add esp, 0xc
test eax, eax
je 0x4b0a12
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004a8220
add esp, 0xc
test eax, eax
je 0x4b0a12
lea eax, [esp + 0x20]
push eax
call fcn.004a8480
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x4b0a30
push edi
call fcn.004a9830
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.004b1040
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4b0a12
push esi
call fcn.004b1860
add esp, 4
test eax, eax
jle 0x4b0a12
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.004b0df0
add esp, 0x18
test eax, eax
jle 0x4b0a12
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.004b1780
add esp, 0x14
test eax, eax
jle 0x4b0a12
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.004b0fe0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00481761
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x4b0a48
cmp dword [edi], edx
je 0x4b0a72
inc eax
add ecx, 4
cmp eax, 4
jl 0x4b0a35
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004a7280
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00481761
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4b0aa6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004a7280
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00481761
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00481761
add esp, 0x6c
ret
Function at 0x4bd4e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00481770
mov eax, dword [0x572c40]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x4bd546
cmp edi, dword [esi]
je 0x4bd53d
test ebp, ebp
je 0x4bd5c0
test ebx, ebx
js 0x4bd5c0
mov eax, 1
mov dword [esi], edi
jmp 0x4bd54c
mov edi, dword [esi]
test edi, edi
je 0x4bd5c0
test ebp, ebp
je 0x4bd6db
push edi
call fcn.004b08d0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4bd580
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004a3ea0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4bd5db
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.004a82c0
add esp, 0xc
test eax, eax
je 0x4bd5c0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.004a8470
add esp, 0xc
test eax, eax
je 0x4bd5c0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.004a8220
add esp, 0xc
test eax, eax
jne 0x4bd5f7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00481761
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4bd5c0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.00482d10
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4bd61a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.00483290
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4bd620
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.004a82c0
add esp, 0xc
test eax, eax
je 0x4bd5c0
push edi
call fcn.004b08d0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004a8470
add esp, 0x10
test eax, eax
je 0x4bd5c0
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4bd670
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.004a82c0
add esp, 0xc
test eax, eax
je 0x4bd5c0
push edi
call fcn.004b08d0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004a8470
add esp, 0x10
test eax, eax
je 0x4bd5c0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.004a8540
add esp, 8
test eax, eax
je 0x4bd5c0
mov eax, 1
jmp 0x4bd5c2
test eax, eax
je 0x4bd6b9
jmp 0x4bd61e
Function at 0x501b60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x501b77
mov edi, ecx
jmp 0x501b7b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x501b8b
mov eax, ebx
jmp 0x501b95
push eax
push ebx
call fcn.004add80
add esp, 8
test eax, eax
jne 0x501b9d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x501bbb
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x501ba5
cmp esi, dword [edi + 4]
jge 0x501bd0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x501bc0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x501bf4
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x501bf1
dec ecx
test ecx, ecx
jg 0x501be3
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x514930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51495d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51495d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x515d79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00481770
mov eax, dword [0x572c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00495820
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x515dbb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x515f17
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004817e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xb671e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0049f1f8
mov ecx, dword [esi*4 + 0xb671e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x515f10
cmp eax, dword [ecx + edi + 0x24]
jne 0x515f10
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x515f10
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049f1f8
add esp, 0x14
test edx, edx
jl 0x515f10
jg 0x515e86
test eax, eax
jb 0x515f10
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x515f10
jl 0x515ea0
cmp dword [ebp - 0x1008], eax
ja 0x515f10
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x515ebe
test ebx, ebx
je 0x515ef7
cmp ecx, edi
jae 0x515ef7
mov al, byte [ecx]
cmp al, 0xd
jne 0x515ed8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x515ee4
cmp byte [ecx + 1], 0xa
jne 0x515ee4
inc ecx
jmp 0x515ee4
movzx eax, al
movsx eax, byte [eax + 0x5735c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x515ebe
cmp edx, ebx
jne 0x515ebe
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x515f15
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00481761
leave
ret
Function at 0x5166af
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x572c40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x55ebf0
push esi
call fcn.0049cc86
pop ecx
pop ecx
test eax, eax
jne 0x5166dd
xor al, al
jmp 0x51675a
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005163f0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x516717
push dword [ebp - 0x210]
call fcn.00484ef8
xor al, al
jmp 0x516758
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51671d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x51673d
push edx
call fcn.005165e6
pop ecx
test al, al
je 0x516708
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x51674b
mov bl, 1
push dword [ebp - 0x210]
call fcn.00484ef8
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00481761
leave
ret

Function at 0x517410
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x572c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x517453
call fcn.00492003
mov dword [eax], 0xf
call fcn.00492016
mov dword [eax], 0xd
call fcn.0048e0df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
leave
ret
test eax, eax
jne 0x51745a
inc eax
jmp 0x517447
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x517445
xor eax, eax
cmp ecx, 1
setne al
jmp 0x517447