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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x4a2317
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0043ca22
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.005120d1
add esp, 8
test eax, eax
jl 0x4a2300
mov eax, 8
call fcn.0043ed40
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004a2140
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4a2300
push 0x530b20
push esi
call fcn.00444b1a
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4a23f1
jmp 0x4a2374
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x4a2382
cmp ebx, 0x400
mov esi, ebx
jl 0x4a2387
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.00444835
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4a23d5
fild dword [esp + 0x44]
mov eax, 8
call fcn.0043ed40
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004a2140
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4a2370
sub ebx, esi
test ebx, ebx
jg 0x4a2370
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00440478
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00512e90
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043ca22
mov esp, ebp
pop ebp
ret

Function at 0x4adf10
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0043d050
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x4af410
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4af475
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4af475
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00449d79
add eax, 0x40
push eax
call fcn.00452d3b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043ca22
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.005124b4
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4af504
call fcn.004af2d0
test eax, eax
jle 0x4af504
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
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.0043ca22
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043ca22
add esp, 0x108
ret

Function at 0x4af560
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4af584
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x4af576
pop esi
movzx eax, cl
pop edi
ret

Function at 0x4af970
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4af9b7
mov al, byte [edx]
test al, al
je 0x4af9b7
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x4af987
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4b4800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x4b4830
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b4830
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4b48a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4b488a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4b48a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4b493a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x4b4928
lea eax, [esi + esi]
call fcn.00445b60
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x4b493a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b48d3
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4b493a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0044079b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b49de
call fcn.00444e7b
cmp dword [eax], 2
je 0x4b4920
call fcn.00444e7b
cmp dword [eax], 9
jne 0x4b4932
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.00444b1a
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b49de
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004a74e0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x5404a0
push eax
push 0x55696c
push ecx
push str.fopen_
push 5
call fcn.004a77e0
add esp, 0x2c
call fcn.00444e7b
cmp dword [eax], 2
jne 0x4b49b0
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004a74e0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ca22
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004a74e0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ca22
mov esp, ebp
pop ebp
ret
push 0x586514
call fcn.004a3300
mov edi, eax
add esp, 4
test edi, edi
jne 0x4b4a10
push esi
call fcn.00440478
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ca22
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.004a2d40
push esi
push 1
push 0x6a
push edi
call fcn.004a30a0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ca22
mov esp, ebp
pop ebp
ret
Function at 0x4dea50
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 0x4deb33
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4deace
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4deb20
shl edx, 0x10
cmp edi, 2
jne 0x4deadf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4deb0d
lea edx, [edi + 0x3c]
jmp 0x4deb1a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4dea70
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x4f3540
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4f3559
mov esi, edi
mov edi, eax
jmp 0x4f355b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4f356b
mov eax, ebx
jmp 0x4f3575
push eax
push ebx
call fcn.004ac090
add esp, 8
test eax, eax
jne 0x4f357d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4f3599
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4f3584
cmp eax, dword [esi + 4]
jge 0x4f35b0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4f35a0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4f35d1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4f35ce
dec eax
test eax, eax
jg 0x4f35c0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4fd107
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0043ed40
mov eax, dword [0x581de4]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x4fd274
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.004adf50
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004ae050
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00514400
push ebp
call fcn.004adf50
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004ae050
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00514400
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4fd123
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.0043ca22
add esp, 0xa0
ret
Function at 0x50d770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x592e00
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x50d780
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x593200
jl 0x50d779
cmp esi, 0x800
jae 0x50d7da
lea ecx, [esi*4 + 0x592e00]
mov eax, dword [ecx - 0x400]
add ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x592e00]
xor edx, eax
cmp ecx, 0x594e00
mov dword [ecx - 4], edx
jl 0x50d7b2
mov dword [0x591bb0], fcn.0050e280
call fcn.0050e460
pop edi
pop esi
test eax, eax
jne 0x50d7f9
mov dword [0x591bb0], 0x50e330
ret
Function at 0x510c9e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00510c33
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043d050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x510ced
cmp dword [ebp - 0x1c], 5
jb 0x510d05
jmp 0x510d01
cmp dword [ebp - 0x10], 1
jne 0x510d05
cmp dword [ebp - 0x1c], 4
ja 0x510d01
jne 0x510d05
cmp dword [ebp - 0x18], 0
jbe 0x510d05
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x573a30
call fcn.00510b24
test eax, eax
jge 0x510d26
mov byte [0x591c60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043ca22
add ebp, 0x78
leave
ret
Function at 0x35a3df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
jmp 0x35a3e0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x35a3e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x35a3e00
mov eax, 1
add ebx, ebx
jne 0x35a3e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x35a3e34
jne 0x35a3e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x35a3e53
dec eax
add ebx, ebx
jne 0x35a3e40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x35a3e18
add ebx, ebx
jne 0x35a3e4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x35a3ea5
xor ecx, ecx
sub eax, 3
jb 0x35a3e6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x35a3eda
sar eax, 1
mov ebp, eax
jmp 0x35a3e76
add ebx, ebx
jne 0x35a3e76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x35a3e44
inc ecx
add ebx, ebx
jne 0x35a3e84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x35a3e44
add ebx, ebx
jne 0x35a3e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x35a3e86
jne 0x35a3ea2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x35a3e86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x35a3ec4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x35a3eb6
jmp 0x35a3e06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x35a3ec4
add edi, ecx
jmp 0x35a3e06
pop esi
mov edi, esi
mov ecx, 0x16d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x35a3ee2
cmp byte [edi], 0x48
jne 0x35a3ee2
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 0x35a3ee7
mov ebp, dword [esi + 0x63034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x35a3f42
sub esp, 0xffffff80
jmp 0x3541747

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 0x10001080
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100d6236
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x1013d900]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
xor ebx, ebx
test byte [0x1014e8bc], 1
mov esi, ecx
jne 0x100010f0
or dword [0x1014e8bc], 1
push 0x100d89a0
mov dword [0x1014e8d8], 0xf
mov dword [0x1014e8d4], ebx
mov byte [0x1014e8c4], bl
call fcn.10057410
add esp, 4
cmp dword [0x1014e8d4], ebx
jne 0x10001225
push 0x206
lea ecx, [esp + 0x4a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x50], ax
call fcn.1005e2a0
push str.C:log_
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.100596df
lea eax, [esp + 0x5c]
push eax
push str._sgswb.log
lea edx, [esp + 0x26c]
call fcn.10001ee0
add esp, 0x20
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10001159
xor al, al
jmp 0x10001236
xor edx, edx
lea eax, [esp + 0x44]
mov word [esp + 0x10], dx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10001173
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
lea esi, [esp + 0x10]
call fcn.10001ab0
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x464], ebx
call fcn.10001300
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x1014e8c0
mov byte [esp + 0x46c], 1
call fcn.10005490
cmp dword [esp + 0x40], 0x10
jb 0x100011d0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10032562
add esp, 4
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x24], 8
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x100011ff
mov edx, dword [esp + 0x10]
push edx
call fcn.10032562
add esp, 4
xor eax, eax
push 9
mov word [esp + 0x14], ax
push str.flush.txt
mov eax, 0x1014e8c0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.100018f0
jmp 0x10001234
push 0xffffffffffffffff
push ebx
push 0x1014e8c0
mov ecx, esi
call fcn.10005490
mov al, 1
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.10056c06
add esp, 0x458
ret
Function at 0x10002420
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100d72e2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x101298d0
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.10003250
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.10003900
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x1014e8dc]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.100032e0
test eax, eax
jne 0x10002517
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x10002510
or eax, 4
push ebx
push eax
call fcn.100051f0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x10003900
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100d526b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100772f1
push 4
mov dword [esp + 0x20], 0
call fcn.10032528
mov edi, eax
add esp, 4
test edi, edi
je 0x1000397e
call fcn.100777ff
mov dword [edi], eax
call fcn.1007762d
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.1007743c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10003973
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.10077464
jmp 0x10003980
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4