joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499d53
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5162b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499d93
cmp byte [ebx], 0xa
jne 0x499d93
or byte [eax + edi + 0x28], 4
jmp 0x499d98
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x499e96
mov al, byte [edx]
cmp al, 0x1a
je 0x499e78
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x499dc7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x499dec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x499df6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x499da9
jmp 0x499e96
push 0
lea eax, [ebp - 0xc]
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 0x499e73
cmp dword [ebp - 0xc], 0
je 0x499e73
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5162b0]
test byte [eax + edi + 0x28], 0x48
je 0x499e4d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x499e38
mov byte [esi], dl
jmp 0x499e49
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5162b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x499e96
cmp byte [ebp - 1], 0xa
jne 0x499e5c
cmp esi, ebx
jne 0x499e5c
mov byte [esi], 0xa
jmp 0x499e95
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049a8d3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x499e96
mov byte [esi], 0xd
jmp 0x499e95
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5162b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499e92
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499e96
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x499e9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5162b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499ee2
cmp word [esi], dx
jne 0x499ee2
or byte [edi + eax + 0x28], 4
jmp 0x499ee7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49a03a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49a01a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x499f29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x499f5f
cmp eax, edx
jae 0x499f6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x499f01
jmp 0x49a03a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49a016
cmp dword [ebp - 0x14], 0
je 0x49a016
mov eax, dword [ebx*4 + 0x5162b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x499fee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x499fb7
mov word [esi], cx
jmp 0x499fea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5162b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5162b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5162b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49a03a
pop ebx
cmp word [ebp - 4], bx
jne 0x499fff
cmp esi, dword [ebp + 0xc]
jne 0x499fff
mov word [esi], bx
jmp 0x49a037
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049a8d3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49a03a
push 0xd
jmp 0x49a033
mov ecx, dword [ebx*4 + 0x5162b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49a031
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49a03a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a7050
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 0x4a70ed
push ebx
push esi
call fcn.004a7019
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.0049d39d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a709a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a70ec
push edi
push eax
call fcn.0049aa72
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a70ba
call fcn.00498637
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a70eb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049d39d
add esp, 0x20
test eax, eax
jne 0x4a70d9
push edi
call fcn.00498637
jmp 0x4a70e1
push ebx
call fcn.00498637
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 0x4a70f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a7101
pop esi
ret
push ebx
push edi
push esi
call fcn.004a7019
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049aa72
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a7129
push ebx
push esi
push edi
call fcn.004a99b0
add esp, 0xc
push 0
call fcn.00498637
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a74ed
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a713e

Function at 0x4a8640
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a867f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a867f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a867f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a867f
cmp dword [ecx + 0x74], 0xe
jbe 0x4a867f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4b05f0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
shr edx, 0x10
movzx edi, ax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x15b0
nop dword [eax + eax]
cmp eax, 0x10
jb 0x4b079e
xorps xmm7, xmm7
nop dword [eax]
cmp dword [ebp + 0x14], 0x15b0
movaps xmm6, xmm7
movd xmm0, edx
movaps xmm5, xmm7
cmova eax, dword [esp + 0xc]
and eax, 0xfffffff0
movd xmm4, edi
sub dword [ebp + 0x14], eax
movaps xmmword [esp + 0x10], xmm0
cmp eax, 0x20
jb 0x4b06ca
mov edx, eax
shr edx, 5
nop
movups xmm2, xmmword [esi]
sub eax, 0x20
movups xmm3, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ecx], xmm2
movaps xmm1, xmm2
movaps xmm0, xmm3
pmaddubsw xmm2, xmmword [0x4d68b0]
paddd xmm6, xmm4
movups xmmword [ecx + 0x10], xmm3
add ecx, 0x20
pmaddubsw xmm3, xmmword [0x4d68a0]
psadbw xmm1, xmm7
pmaddwd xmm2, xmmword [0x4d6890]
psadbw xmm0, xmm7
pmaddwd xmm3, xmmword [0x4d6890]
paddd xmm4, xmm1
paddd xmm4, xmm0
movaps xmm0, xmmword [esp + 0x10]
paddd xmm0, xmm2
movaps xmmword [esp + 0x10], xmm0
paddd xmm5, xmm3
sub edx, 1
jne 0x4b0660
pslld xmm6, 5
paddd xmm5, xmm0
movaps xmm3, xmm7
paddd xmm5, xmm6
cmp eax, 0x10
jb 0x4b0720
movaps xmm2, xmm4
shr eax, 4
movups xmm1, xmmword [esi]
add esi, 0x10
paddd xmm3, xmm2
movaps xmm0, xmm1
psadbw xmm0, xmm7
movups xmmword [ecx], xmm1
add ecx, 0x10
paddd xmm4, xmm0
movaps xmm0, xmm1
pmaddubsw xmm0, xmmword [0x4d68a0]
movaps xmm2, xmm4
pmaddwd xmm0, xmmword [0x4d6890]
paddd xmm5, xmm0
sub eax, 1
jne 0x4b06e5
movaps xmm0, xmm4
pslld xmm3, 4
psrldq xmm0, 8
mov eax, 0x80078071
paddd xmm0, xmm4
paddd xmm3, xmm5
movd edi, xmm0
movaps xmm1, xmm3
punpckhqdq xmm1, xmm3
paddd xmm1, xmm3
mul edi
pshufd xmm0, xmm1, 1
paddd xmm0, xmm1
shr edx, 0xf
imul eax, edx, 0xfff1
movd edx, xmm0
sub edi, eax
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
movd edx, xmm0
sub edx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edx
cmp eax, 0x10
jae 0x4b0630
test eax, eax
jne 0x4b0620
shl edx, 0x10
or edx, edi
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4b07c4
sub esi, ecx
dec eax
lea ecx, [ecx + 1]
mov dword [ebp + 0x14], eax
mov al, byte [esi + ecx - 1]
mov byte [ecx - 1], al
movzx eax, al
add edi, eax
mov eax, dword [ebp + 0x14]
add edx, edi
test eax, eax
jne 0x4b07a4
mov dword [esp + 8], edx
mov eax, 0x80078071
mul edi
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xfff1
mul dword [esp + 8]
sub edi, ecx
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, dword [esp + 8]
shl eax, 0x10
or eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b0840
Capabilities:
Compute adler32 checksum

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 8
test ecx, ecx
jne 0x4b0855
lea eax, [ecx + 1]
vzeroupper
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4b086a
mov eax, dword [esp + 0x10]
pop edi
vzeroupper
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov eax, edx
vmovdqu ymm7, ymmword [0x4d6c80]
mov dword [esp + 4], edx
shr eax, 0x10
movzx edx, dx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
nop
cmp edi, 0x10
jb 0x4b0a08
cmp edi, 0x20
jb 0x4b09ce
vpxor xmm6, xmm6, xmm6
nop word [eax + eax]
vmovd xmm3, eax
cmp edi, 0x15b0
mov eax, edi
vmovd xmm1, edx
mov edx, 0x15b0
cmova eax, edx
and eax, 0xffffffe0
sub edi, eax
vmovdqu ymm5, ymm1
vmovdqu ymm4, ymm6
cmp eax, 0x20
jb 0x4b0919
mov edx, dword [esp + 0x24]
shr eax, 5
vmovdqu ymm0, ymmword [ecx]
add ecx, 0x20
vpsadbw ymm2, ymm0, ymm6
test edx, edx
je 0x4b08f7
vmovdqu ymmword [esi], ymm0
add esi, 0x20
vpmaddubsw ymm0, ymm0, ymm7
vpmaddwd ymm0, ymm0, ymmword [0x4d6c60]
vpaddd ymm1, ymm2, ymm1
vpaddd ymm4, ymm4, ymm5
vpaddd ymm3, ymm0, ymm3
vmovdqu ymm5, ymm1
sub eax, 1
jne 0x4b08e1
vpslld ymm0, ymm4, 5
vpaddd ymm2, ymm0, ymm3
vmovdqu ymm0, ymmword [0x4d6c40]
vpermd ymm1, ymm0, ymm1
vpunpckhqdq xmm0, xmm1, xmm1
vpaddd xmm1, xmm0, xmm1
vpshufd xmm0, xmm1, 1
vpaddd xmm0, xmm0, xmm1
vmovd edx, xmm0
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
vmovd edx, xmm0
vextracti128 xmm0, ymm2, 1
vpaddd xmm1, xmm0, xmm2
vpunpckhqdq xmm0, xmm1, xmm1
sub edx, eax
mov eax, 0x80078071
vpaddd xmm1, xmm0, xmm1
mov dword [esp + 0xc], edx
vpshufd xmm0, xmm1, 1
vpaddd xmm0, xmm0, xmm1
vmovd edx, xmm0
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
vmovd edx, xmm0
sub edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
cmp edi, 0x20
jae 0x4b08b0
mov edx, eax
shl edx, 0x10
mov dword [esp + 8], edx
mov edx, dword [esp + 0xc]
or dword [esp + 8], edx
test edi, edi
jne 0x4b0890
mov eax, dword [esp + 8]
pop esi
pop edi
vzeroupper
add esp, 8
ret
cmp dword [esp + 0x24], 0
push edi
push ecx
je 0x4b09f0
push esi
push dword [esp + 0x14]
vzeroupper
call fcn.004b05f0
add esp, 0x10
pop esi
pop edi
vzeroupper
add esp, 8
ret
push dword [esp + 0x10]
vzeroupper
call fcn.004afbb0
add esp, 0xc
pop esi
pop edi
vzeroupper
add esp, 8
ret
cmp dword [esp + 0x24], 0
je 0x4b0a48
test edi, edi
je 0x4b0a30
sub ecx, esi
mov al, byte [ecx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
movzx eax, al
add edx, eax
add dword [esp + 0x1c], edx
sub edi, 1
jne 0x4b0a15
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0xc]
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul ecx, edx, 0xfff1
sub esi, ecx
jmp 0x4b0a7b
test edi, edi
je 0x4b0a65
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add edx, eax
add dword [esp + 0x1c], edx
sub edi, 1
jne 0x4b0a50
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0xc]
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov eax, 0x80078071
mul dword [esp + 0x1c]
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, dword [esp + 0x1c]
shl eax, 0x10
or eax, esi
pop esi
pop edi
vzeroupper
add esp, 8
ret
Function at 0x4b431d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4b4344
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4b4347
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004b42f9
pop esi
leave
ret 8

Function at 0x4b4881
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.004b4371
mov edi, eax
test edi, edi
jne 0x4b48a8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x4b48f1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4b48ec
test al, 0x10
je 0x4b48ec
test eax, 0x400
je 0x4b48e8
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004b48f7
push dword [ebp - 4]
mov esi, eax
call fcn.004b43dc
test esi, esi
jne 0x4b48ec
xor edx, edx
jmp 0x4b48ee
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4b91de
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]
push dword [ebp + 0xc]
push ebx
call fcn.004b915a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b9356
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b9356
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b9305
jg 0x4b9237
test eax, eax
je 0x4b92fb
push 1
push 0x1000
call fcn.00498c1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b925d
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4b92f2
push 0x8000
push ebx
call fcn.004b66c8
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4b9289
jg 0x4b9284
cmp ecx, 0x1000
jb 0x4b9289
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00498437
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b92ce
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 0x4b9284
jl 0x4b92b5
test ecx, ecx
jne 0x4b9276
push dword [ebp - 0xc]
push ebx
call fcn.004b66c8
push esi
call fcn.00498637
add esp, 0xc
xor edi, edi
jmp 0x4b9367
cmp byte [edi + 0x24], 0
je 0x4b92e5
cmp dword [edi + 0x20], 5
jne 0x4b92e5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b92f0
mov edi, dword [edi + 0x18]
jmp 0x4b92f2
xor edi, edi
push esi
call fcn.00498637
pop ecx
jmp 0x4b9367
test ecx, ecx
jg 0x4b92c7
jl 0x4b9305
test eax, eax
jae 0x4b92c7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049a8d3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b9328
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b92c7
jmp 0x4b935f
push ebx
call fcn.0049f017
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b92c7
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4b9367
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b9364
mov edi, dword [edi + 0x18]
jmp 0x4b9367
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0049a8d3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b94a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b94cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b94cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x78121269
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x40860f6e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
xor al, 0x69
cmp byte [ebp - 0x53], cl
and dh, ch
mov dword [edi], esp
lodsd eax, dword [esi]
aas
popfd
xor al, 0xe1
mov eax, 0x37b7ad12
dec ebp
mov cl, 0x9c
mov esi, 0xb8299574
fsubr qword [edx]
mov dword [ecx + 0x399da92b], edx
dec edx
sbb eax, 0xfc4cb7ac
in eax, dx
add al, 0x72
std
popfd
mov ah, 0x89
sub al, 0x62
mov ebp, 0xa82901e4
or edx, dword [edi - 0x46764b62]
adc ecx, edi
adc al, 0xf9
mov eax, dword [0xe6345cb7]
mov esp, 0x329ea20c
sal dword [eax], 0xb7
dec esp
xor al, 0x18
mov ecx, 0x37ef78b4
jns 0x1000a4a7
outsb dx, byte [esi]
movsb byte es:[edi], byte [esi]
or eax, 0x52e7a66b
sub al, 0x9d
mov ch, 0xfd
les eax, [ebx]
inc eax
xchg esp, eax
sub al, 0x60
mov bh, 0x80
push 0xffffffffffffff9e
movsb byte es:[edi], byte [esi]
mov ch, byte [ecx - 0x75f540ef]
popfd
les ecx, [ecx - 0x74835f57]
invalid
Function at 0x40825d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x408295
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x408283
mov al, 1
jmp 0x4082df
cmp dword [ebx + 0x54], ecx
jne 0x40828c
mov al, 2
jmp 0x4082df
cmp dword [ebx + 0x7c], ecx
jne 0x4082df
mov al, 3
jmp 0x4082df
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4082aa
mov al, 4
jmp 0x4082df
cmp ecx, 5
jne 0x4082ca
cmp ebx, 0
jne 0x4082b8
mov al, 5
jmp 0x4082df
cmp ebx, 1
jne 0x4082c1
mov al, 6
jmp 0x4082df
cmp ebx, 2
jne 0x4082ca
mov al, 7
jmp 0x4082df
cmp ecx, 6
jne 0x4082d6
cmp ebx, 0
jne 0x4082d8
mov al, 8
jmp 0x4082df
cmp ebx, 1
jne 0x4082df
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bedb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bd81b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005ac70a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4bee32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005a9407
mov eax, dword [eax]
push 0x674290
push eax
call fcn.005966b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005ac995
test bl, bl
je 0x4bee32
push 0x674290
lea ecx, [esp + 0xc]
call fcn.005acd71
push 0x677fd8
lea ecx, [esp + 0xc]
call fcn.005acd71
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4bee6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005ac995
jmp 0x4bef39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4beef2
lea edx, [esp + 0x7c]
push 0x677fd4
push edx
call fcn.005966b4
add esp, 8
test eax, eax
je 0x4beef2
lea eax, [esp + 0x7c]
push 0x677fd0
push eax
call fcn.005966b4
add esp, 8
test eax, eax
je 0x4beef2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4bee82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005ac995
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4c0190
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4c01f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc