joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x5091a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x5091a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x509dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00509f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00509f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00509eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00509f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00509ecb
push ecx
push dword [ebp + 8]
call fcn.00509f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00509f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00509ecb
push ecx
push dword [ebp + 8]
call fcn.00509f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00509f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00509ecb
push ecx
push dword [ebp + 8]
call fcn.00509f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00509f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00509ecb
cmp ecx, 0x2b
jne 0x509e0f
leave
ret 0xc

Function at 0x50b4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x50b544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x83f90
push 0
call dword [eax + 0x20]
test eax, eax
je 0x50b5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x83f90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x83f90
call fcn.0050b3fa
push 0x83f90
push dword [ebp + 0xc]
call fcn.005091a8
test eax, eax
jne 0x50b5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x83f90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0050b5dd
test eax, eax
je 0x50b5d6
jmp 0x50b574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x50b5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x50b60b
Capabilities:
Terminate process

Disassembly:
call fcn.0050b618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43c650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x37000]
push edi
jmp 0x43c66a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c660
mov eax, 1
add ebx, ebx
jne 0x43c683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c678
jne 0x43c694
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c678
xor ecx, ecx
sub eax, 3
jb 0x43c6a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43c71a
mov ebp, eax
add ebx, ebx
jne 0x43c6b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c6c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c6e4
inc ecx
add ebx, ebx
jne 0x43c6d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c6c5
jne 0x43c6e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c6c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43c704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c6f5
jmp 0x43c666
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43c704
add edi, ecx
jmp 0x43c666
pop esi
mov edi, esi
mov ecx, 0x249
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43c722
cmp byte [edi], 2
jne 0x43c722
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43c727
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43c79f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3eef8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3efac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43c754
mov ecx, edi
jns 0x43c783
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3efb0]
or eax, eax
je 0x43c799
mov dword [ebx], eax
add ebx, 4
jmp 0x43c771
call dword [esi + 0x3efc0]
mov ebp, dword [esi + 0x3efb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43c7d3
sub esp, 0xffffff80
jmp 0x4030fa
Function at 0x40cb70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40cb85
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cbc4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40cbc0
lea ebx, [ebx]
cmp esi, edx
jae 0x40cbc4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40cbb0
cmp esi, edx
jb 0x40cbc9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40e180
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f13
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x34c], 0
call fcn.00411740
test al, al
jne 0x40e1f1
mov ebx, dword [0x578ad4]
xor esi, esi
mov edi, ebx
inc esi
dec edi
cmp esi, 0xcc
jb 0x40e1e1
mov ebx, dword [ebp - 0x348]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x34c], 1
cmp edx, 0xa
jne 0x40e245
call fcn.004f1791
mov ecx, dword [0x578ad4]
cmp ecx, eax
jne 0x40e245
dec ecx
mov dword [0x578ad4], ecx
mov eax, dword [0x5771f0]
push 0
push ebx
push ecx
mov esi, esp
mov ecx, 0x5771f0
mov dword [ebp - 0x348], esp
mov dword [ebp - 0x344], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.AltCamp
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x40e299
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x40e2a7
push edi
push eax
mov ecx, esi
call fcn.00408b00
jmp 0x40e2a7
push 7
push str.AltCamp
mov ecx, esi
call fcn.0040c730
mov eax, dword [0x5771f0]
push ecx
mov esi, esp
mov ecx, 0x5771f0
mov dword [ebp - 4], 2
mov dword [ebp - 0x344], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str.Chrome
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x40e2f6
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x40e304
push edi
push eax
mov ecx, esi
call fcn.00408b00
jmp 0x40e304
push 6
push str.Chrome
mov ecx, esi
call fcn.0040c730
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
call fcn.0040f3b0
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x40fb50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fbc1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40fb8f
cmp eax, 2
jne 0x40fbab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40fbbb
test ecx, ecx
je 0x40fbb6
test cl, 1
jne 0x40fbab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40fbbb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x411430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x411445
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x411450
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411450
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x411e00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 5
jne 0x411e3d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.00411f90
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x411f3e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x411f3e
cmp eax, dword [ebp + 0x14]
ja 0x411f3e
xor eax, eax
test esi, esi
je 0x411eff
cmp eax, esi
jae 0x411e83
movzx edx, byte [eax + ebx]
inc eax
jmp 0x411e85
xor edx, edx
cmp eax, esi
jae 0x411e93
movzx ecx, byte [eax + ebx]
mov dword [ebp + 8], ecx
inc eax
jmp 0x411e9a
mov dword [ebp + 8], 0
cmp eax, esi
jae 0x411ea5
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x411ea7
xor ecx, ecx
shl edx, 8
add edx, dword [ebp + 8]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x411e7c
mov edi, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 4]
sub esi, eax
cmp dword [esi*4 + 0x52a4a8], ecx
jle 0x411f30
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x52a4a8]
jl 0x411f20
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], edx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4120d0
Capabilities:
Delete registry key
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x578ad4]
mov eax, esi
imul eax, esi
cdq
mov ecx, 6
idiv ecx
cmp edx, 5
jne 0x41211d
xor ecx, ecx
test esi, esi
je 0x412115
mov eax, esi
and eax, 1
add ecx, eax
mov eax, esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jne 0x412103
mov esi, ecx
mov dword [0x578ad4], esi
call fcn.00412680
test al, al
jne 0x4121b3
xor edx, edx
lea esp, [esp]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x412130
mov dword [0x578ad4], esi
lea eax, [ebp - 0x2e8]
push eax
push 0x2001f
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412263
call fcn.00412650
test al, al
jne 0x412226
mov esi, dword [0x578ad4]
xor edx, edx
lea esp, [esp]
mov ecx, dword [ebp + edx*4 - 0x2d8]
add ecx, dword [ebp + edx*4 - 0x2dc]
add edx, 4
add ecx, dword [ebp + edx*4 - 0x2f0]
add ecx, dword [ebp + edx*4 - 0x2f4]
mov eax, ecx
shl eax, 6
sub eax, ecx
add esi, eax
cmp edx, 0x2e0
jb 0x4121f0
mov dword [0x578ad4], esi
push 5
push str.tempo
push 1
push str.Tempo
push dword [ebp - 0x2e8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x412257
push str.Tempo
push dword [ebp - 0x2e8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 0x2e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret

Function at 0x412840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41285b
test al, 0x10
je 0x41285b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x412950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00412840
add esp, 4
test al, al
je 0x412969
mov al, 1
pop esi
pop ebp
ret
push ebx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x4129c7
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
cdq
mov esi, 0x12
idiv esi
cmp edx, 0xf
jne 0x4129b8
xor esi, esi
test ecx, ecx
je 0x4129b2
jmp 0x4129a0
mov eax, ecx
and eax, 1
add esi, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jne 0x4129a0
mov dword [0x578ad4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov al, 1
je 0x4129c9
mov al, bl
pop ebx
pop esi
pop ebp
ret

Function at 0x412e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdd8
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x578ad4]
imul eax, eax
cdq
mov ecx, 7
idiv ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xdd8], edi
cmp edx, 6
jne 0x412f1b
xor eax, eax
push 0xd20
push eax
mov word [ebp - 0xd28], ax
lea eax, [ebp - 0xd26]
push eax
call fcn.004f2250
add esp, 0xc
xor edi, edi
xor esi, esi
lea esp, [esp]
xor eax, eax
test edi, edi
je 0x412efa
test eax, eax
je 0x412efa
lea ecx, [esi + eax]
lea edx, [ebp - 0xd28]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0xd7a]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0x29
jl 0x412ed2
add esi, 0x29
inc edi
cmp esi, 0x691
jl 0x412ed0
movsx eax, word [ebp - 8]
mov edi, dword [ebp - 0xdd8]
mov dword [0x578ad4], eax
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412f61
call fcn.00413ad0
test al, al
jne 0x412f4e
lea eax, [ebp - 0xdd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x413950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512808
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x577680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4139a4
xor bl, bl
jmp 0x413a09
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x4139da
push 0
lea ecx, [ebp + 0xc]
call fcn.00408cf0
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413a2d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x577680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 0x2d], 0
call fcn.0046c9b0
test al, al
jne 0x413d74
mov esi, dword [0x578ad4]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub esi, eax
xor ecx, ecx
lea eax, [esi + 0x7b]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ef820
push eax
call fcn.004f0683
add esp, 8
call fcn.0041bc10
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test al, al
jne 0x413d9d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [edi]
call esi
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x413dfa
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
push 0
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413dfa
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 0x2d], 1
mov ebx, dword [0x578ad4]
lea ecx, [ebx + 2]
lea eax, [ebx + 1]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0x11
jne 0x413e48
xor ecx, ecx
lea edi, [ebp - 0x2c]
mov edi, edi
mov eax, ebx
inc ecx
cdq
xor esi, esi
idiv ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], edx
mov edi, edi
lea ecx, [esi + 1]
mov esi, ecx
cmp esi, 0xd
jl 0x413e30
mov ecx, dword [ebp - 0x3c]
add edi, 0xd
cmp ecx, 3
jl 0x413e20
mov esi, dword [ebp - 0x38]
cmp esi, 0xffffffff
je 0x413e54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f0cd4
mov esp, ebp
pop ebp
ret
Function at 0x415780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x41579c
mov ecx, dword [ebp + 0xc]
call fcn.004057e0
mov al, 1
pop edi
pop ebp
ret
mov byte [ebp + 0xb], 0
call fcn.00416de0
test al, al
jne 0x4157b9
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
push ebx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jne 0x4157ea
push dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00402720
mov al, byte [ebp + 0xb]
pop ebx
pop edi
pop ebp
ret
push esi
push ebx
call fcn.004ef820
add esp, 4
mov esi, eax
call fcn.00416e30
test al, al
jne 0x41586d
mov ecx, dword [0x578ad4]
test ecx, ecx
je 0x41586d
lea esp, [esp]
mov eax, ecx
and eax, 0x80000001
jns 0x41581e
dec eax
or eax, 0xfffffffe
inc eax
jne 0x41582b
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x415832
lea ecx, [ecx*2 + 1]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*2]
sub edx, eax
mov dword [0x578ad4], ecx
sub edx, 0
je 0x41585c
sub edx, 2
je 0x41585f
dec edx
je 0x415860
jmp 0x415869
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x578ad4], ecx
test ecx, ecx
jne 0x415810
push ebx
push 0
push esi
call fcn.004f2250
mov eax, dword [edi]
add esp, 0xc
push 0
push 0
push ebx
push esi
push dword [eax - 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4158a5
push dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00402720
jmp 0x415973
test esi, esi
jne 0x4158ad
xor ecx, ecx
jmp 0x4158bb
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4158b2
sub ecx, edx
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0040c690
mov byte [ebp + 0xb], 1
call fcn.00416e10
test al, al
jne 0x4158d8
dec dword [0x578ad4]
call fcn.00416cd0
test al, al
jne 0x415973
mov edx, dword [0x578ad4]
xor edi, edi
lea ecx, [ecx]
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc edi
add edx, eax
cmp edi, 0x100
jl 0x4158f0
mov dword [0x578ad4], edx
test esi, esi
je 0x415980
push esi
call fcn.004f0683
add esp, 4
mov al, byte [ebp + 0xb]
pop esi
pop ebx
pop edi
pop ebp
ret