joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e10
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x466014]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
mov eax, dword [eax]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
push edi
test eax, eax
jne 0x404e6b
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x45c1bb
mov byte [esi], al
call fcn.0041bf00
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00420a61
mov esp, ebp
pop ebp
ret
mov ecx, eax
xor edi, edi
and ecx, 3
jne 0x404e85
cmp byte [eax + edx - 1], 0x3d
je 0x404e85
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
jmp 0x404ea7
mov dword [esp + 0x18], 1
cmp ecx, 2
ja 0x404e9f
cmp byte [eax + edx - 2], 0x3d
jne 0x404e9f
mov dword [esp + 0x20], edi
jmp 0x404ea7
mov dword [esp + 0x20], 1
sub eax, dword [esp + 0x18]
and eax, 0xfffffffc
mov dword [esp + 0x40], edi
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
shr ecx, 2
push 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [esp + 0x34]
add eax, dword [esp + 0x1c]
push eax
call fcn.0041bdc0
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x404f75
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
shr eax, 2
add esi, 2
inc eax
mov dword [esp + 0x28], eax
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax*4 + 0x45d010]
movzx eax, byte [esi - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x45d010]
movzx eax, byte [esi - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x45d010]
movzx eax, byte [esi - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x45d010]
mov eax, ecx
sar eax, 0x10
mov byte [edx + edi], al
mov eax, ecx
sar eax, 8
mov byte [edx + edi + 1], al
mov eax, edx
mov byte [eax + edi + 2], cl
add edi, 3
sub dword [esp + 0x28], 1
jne 0x404f10
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x404fd2
mov eax, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x24], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
mov edx, dword [eax*4 + 0x45d010]
shl edx, 6
or edx, dword [ecx*4 + 0x45d010]
mov ecx, dword [esp + 0x1c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [esp + 0x20], 0
mov byte [ecx + edi], al
je 0x404fd2
mov eax, dword [esp + 0x24]
sar edx, 8
movzx eax, byte [eax + 2]
mov eax, dword [eax*4 + 0x45d010]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + edi + 1], al
movups xmm0, xmmword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x3c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.00420a61
mov esp, ebp
pop ebp
ret
Function at 0x42174c
Capabilities:
Parse pe header

Disassembly:
push 0
push eax
call fcn.00794b50
test eax, eax
je 0x42178c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42178c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42178c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42178c
cmp dword [ecx + 0x74], 0xe
jbe 0x42178c
cmp dword [ecx + 0xe8], 0
je 0x42178c
mov al, 1
ret
xor al, al
ret

Function at 0x471c30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x471d3c
test eax, eax
je 0x471d3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x48cff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x471d23
lea edi, [eax + 4]
jmp 0x471c87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x471c9c
mov dword [ebp - 4], 2
jmp 0x471cbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x471cb3
mov dword [ebp - 4], 1
jmp 0x471cbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x471d33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x471cf6
mov byte [ecx], 0x3d
jmp 0x471d02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x471d0d
mov byte [ecx], 0x3d
jmp 0x471d13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x471c84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
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
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471d11
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x471d3c
test eax, eax
je 0x471d3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x48cff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x471d23
lea edi, [eax + 4]
jmp 0x471c87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x471c9c
mov dword [ebp - 4], 2
jmp 0x471cbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x471cb3
mov dword [ebp - 4], 1
jmp 0x471cbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x471d33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x471cf6
mov byte [ecx], 0x3d
jmp 0x471d02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x471d0d
mov byte [ecx], 0x3d
jmp 0x471d13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x471c84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
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
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6c7d84
Capabilities:
Encode data using xor

Disassembly:
push 0x9a967d25
call fcn.0086a276
fdivr st(1)
push 0x5876df70
mov edi, 0xbfef118f
dec eax
sar byte [eax], 1
mov ch, 0xf4
mov word [edi - 0x505714e8], gs
invalid

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4104e5
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
call fcn.0040f3b0
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [sym.imp.MSVCRT.dll___argc]
cmp dword [eax], 1
jle 0x410591
push 0x40cfa4
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov dword [ebp - 0x108], 1
jmp 0x410540
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
mov eax, dword [sym.imp.MSVCRT.dll___argc]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [eax]
jge 0x410582
mov eax, dword [sym.imp.MSVCRT.dll___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x108]
push dword [eax + ecx*4]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x40ec70
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x410533
push 0xa
lea eax, [ebp - 0x104]
push eax
call dword [0x401530]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
call fcn.0040f83f
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40ec74
push 0x7f
push 0
push 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4105df
xor eax, eax
jmp 0x410624
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x410227
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040fb06
push 1
pop eax
test eax, eax
je 0x410622
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410611
xor eax, eax
leave
ret 0x10

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x31965c9f
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x64f9474e
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40d3d0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5217f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x30
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x14], 1
xor ecx, ecx
mov word [ebp - 0x28], 0xeaf5
movq qword [ebp - 0x26], xmm0
mov word [ebp - 0x1e], 0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 2
jb 0x40d453
mov dword [0x55d598], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x26], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d485
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b80
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
lea eax, [ebx + 8]
mov dword [ebp - 0x14], 3
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebx + 0x1c], 0x10
push ecx
cmovae eax, dword [ebx + 8]
push eax
call fcn.00500f40
mov ecx, dword [ebp - 0x2c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x40d4f8
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5bc
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test edi, edi
je 0x40d577
push 2
push 0
push edi
call fcn.00504ea6
push edi
call fcn.00500acb
push 0
push 0
push edi
mov dword [ebp - 0x18], eax
call fcn.00504ea6
mov ecx, dword [esi + 0x10]
add esp, 0x1c
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x40d54b
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40d542
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x40d55a
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004858a0
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40d564
mov ecx, dword [esi]
push edi
push eax
push 1
push ecx
call fcn.005097bd
push edi
call fcn.00504958
add esp, 0x14
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40d5a7
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d59d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5c1
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
call fcn.00500390
int3
Function at 0x40d5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52181d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push edi
mov dword [ebp - 4], 0
xor edi, edi
xorps xmm0, xmm0
mov word [ebp - 0x1c], 0xeaf5
movq qword [ebp - 0x1a], xmm0
xor eax, eax
mov word [ebp - 0x12], di
nop dword [eax]
lea ecx, [eax - 0x79]
xor byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 2
jb 0x40d610
xorps xmm0, xmm0
mov dword [0x55d598], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1a], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], edi
lea edx, [ecx + 1]
mov dword [ebp - 0x20], edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d640
push esi
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b80
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x34]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
push eax
call fcn.00500f40
mov ecx, dword [ebp - 0x20]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x40d6a9
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d69f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
test esi, esi
je 0x40d6d6
push 2
push 0
push esi
call fcn.00504ea6
push esi
call fcn.00500acb
push esi
mov edi, eax
call fcn.00504958
add esp, 0x14
mov ecx, dword [ebp + 0x1c]
pop esi
cmp ecx, 0x10
jb 0x40d707
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d71d
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00500390
call fcn.00500390
int3
Function at 0x40d770
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52183d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
movaps xmm0, xmmword [0x548470]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2b], 0xcde5fcd5
mov word [ebp - 0x27], 0xf8ee
xor ecx, ecx
mov byte [ebp - 0x25], 0xdb
movups xmmword [ebp - 0x24], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0xd
jb 0x40d7c1
mov dword [0x55d57c], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d7f3
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b80
mov dword [ebp - 4], 0
lea esi, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
movaps xmm0, xmmword [0x547690]
cmovae esi, dword [ebp - 0x5c]
xor ecx, ecx
mov word [ebp - 0x27], 0xfcc9
mov byte [ebp - 0x25], 0xed
movups xmmword [ebp - 0x24], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 9
jb 0x40d832
mov dword [0x55d630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x27]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d864
sub ecx, edx
lea eax, [ebp - 0x27]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b80
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmp ecx, 0x10
jb 0x40d8ca
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d8c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d958
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x40d913
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d909
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d958
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
push edi
test esi, esi
je 0x40d93f
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
int3
Function at 0x40da60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x2c
push esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov word [ebp - 0x24], 0xeaf5
xor eax, eax
movq qword [ebp - 0x22], xmm0
mov word [ebp - 0x1a], 0
nop dword [eax]
lea ecx, [eax - 0x79]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 2
jb 0x40dab0
xorps xmm0, xmm0
mov dword [0x55d598], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x22], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x28], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dae1
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402b80
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
lea eax, [ebx + 8]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebx + 0x1c], 0x10
push ecx
cmovae eax, dword [ebx + 8]
push eax
call fcn.00500f40
mov ecx, dword [ebp - 0x28]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x40db49
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40db3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbb7
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
test esi, esi
je 0x40db6e
push esi
call fcn.00504958
add esp, 4
mov byte [ebp - 0x11], 1
jmp 0x40db72
mov byte [ebp - 0x11], 0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40dba2
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40db98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbbc
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
call fcn.00500390
int3

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x55d1d0
mov esi, ecx
call fcn.004fa3f2
add esp, 4
test eax, eax
jne 0x40dc3e
test esi, esi
je 0x40dc27
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dbf2
sub ecx, edx
je 0x40dc27
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40dc23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x40dc23
cmp eax, 0x20
je 0x40dc23
cmp eax, 0x45
je 0x40dc23
cmp eax, 0x24
jne 0x40dc27
mov bl, 1
jmp 0x40dc29
xor bl, bl
push 0x55d1d0
call fcn.004fa403
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004fa09b
int3

Function at 0x40dc50
Capabilities:
Create directory

Disassembly:
push esi
push 0x55d1d0
mov esi, ecx
call fcn.004fa3f2
add esp, 4
test eax, eax
jne 0x40dc7f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x55d1d0
mov esi, eax
call fcn.004fa403
add esp, 4
mov eax, esi
pop esi
ret
push eax
call fcn.004fa09b
int3