joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459364
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, 0x80000
cmp esi, 0x7ff80000
mov ebx, edx
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
cmp byte [esi], 0xe9
jne 0x4593c9
lea ecx, [esi + 5]
add ecx, dword [esi + 1]
cmp ecx, esi
jae 0x4593b8
cmp ecx, 0x80000000
lea eax, [ecx + 0x7ff80000]
mov edi, 0xfff80000
cmovb edi, eax
jmp 0x4593c9
cmp ecx, 0x7ff80000
lea eax, [ecx - 0x7ff80000]
mov ebx, edx
cmova ebx, eax
mov edx, dword [0x5806b8]
mov eax, dword [0x5806c0]
test edx, edx
jne 0x4593e4
test eax, eax
je 0x4593f7
mov edx, eax
mov dword [0x5806b8], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4593f7
cmp ecx, ebx
jb 0x4593f7
cmp ecx, edi
jbe 0x45947b
mov edx, eax
test eax, eax
jmp 0x459415
test edx, edx
je 0x459410
mov eax, dword [edx + 8]
test eax, eax
je 0x459410
cmp eax, ebx
jb 0x459410
cmp eax, edi
jbe 0x45947b
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x5806b8], edx
jne 0x4593fd
and esi, 0xffff0000
mov ecx, ebx
mov edx, esi
call fcn.004592bb
mov edx, eax
test edx, edx
jne 0x459441
mov edx, edi
mov ecx, esi
call fcn.00459215
mov edx, eax
test edx, edx
je 0x4594a0
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x5806c0]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x5806b8], edx
mov dword [0x5806c0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x45946b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x4594a0
cmp esi, edi
ja 0x4594a0
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.00503920
add esp, 0xc
mov eax, esi
jmp 0x4594a2
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x45952d
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5806b4], eax
je 0x459554
mov eax, 0x10dd
jmp 0x4595e2
push ebx
push esi
push edi
mov edi, dword [0x5806c8]
xor ebx, ebx
test edi, edi
je 0x4595a1
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x45958f
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x45958f
call fcn.004594a6
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.005010b4
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x459563
mov dword [0x5806c8], ebx
call fcn.004591bf
mov edi, dword [0x5806c4]
test edi, edi
je 0x4595d1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.005010b4
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x4595b6
pop edi
pop esi
mov dword [0x5806c4], ebx
xor eax, eax
mov dword [0x5806b4], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500b45
leave
ret
Function at 0x4598a3
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5806b0]
push esi
mov esi, ecx
test eax, eax
jne 0x45990a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x4598bd
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.00500e07
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4598f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.005010b4
and dword [0x5806bc], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x5806b0], esi
jmp 0x459909
mov eax, dword [0x5806c4]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x5806c4], edi
pop edi
pop esi
ret
Function at 0x46e540
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 4]
test eax, eax
je 0x46e58d
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46e582
cmp dword [ebp - 8], 0x103
jne 0x46e58d
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x46ef90
push 0
push 0
call fcn.0051264f
xor ebx, ebx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne bl
test eax, eax
je 0x46e5bb
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test ebx, ebx
pop ebx
jne 0x46e5d1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
push 0x3e8
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x46f660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x57c54c]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov esi, reloc.WS2_32.dll_bind
push edi
cmp ecx, 1
jne 0x46f69b
mov esi, bind
jmp 0x46f6af
cmp ecx, 2
jne 0x46f6a7
mov esi, reloc.WS2_32.dll_accept
jmp 0x46f6af
cmp ecx, 3
mov eax, esi
cmove esi, eax
cmp dword [ebp + 0xc], 0x40
mov ecx, 0x20019
mov eax, 0x20119
mov dword [esp + 0x18], ebx
cmovne eax, ecx
mov dword [esp + 0xc], eax
call fcn.00415290
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x46f704
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x4f676552
push ecx
push eax
mov dword [esp + 0x30], 0x4b6e6570
mov dword [esp + 0x34], 0x78457965
mov word [esp + 0x38], 0x41
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
mov eax, dword [edi + 0x2c]
push 0
push dword [esp + 0x1c]
push esi
call eax
test eax, eax
je 0x46f734
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
push 0x209
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], 0x208
push 0
push eax
call fcn.00503920
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x20], 1
call fcn.00415290
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46f789
movaps xmm0, xmmword [0x5647b0]
lea ecx, [esp + 0x24]
push ecx
push eax
movups xmmword [esp + 0x2c], xmm0
mov byte [esp + 0x3c], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x30], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x30]
push 0
push dword [esp + 0x24]
push edi
call eax
test eax, eax
jne 0x46f81d
lea ebx, [eax + 1]
cmp dword [ebp + 0x10], eax
je 0x46f81d
lea ecx, [esp + 0x38]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f7b7
sub ecx, edx
xor eax, eax
xor edx, edx
test ecx, ecx
jle 0x46f7e3
nop dword [eax + eax]
mov bl, byte [esp + eax + 0x38]
cmp bl, 0x22
je 0x46f7de
mov byte [esp + edx + 0x38], bl
inc edx
inc eax
cmp eax, ecx
jl 0x46f7d0
mov byte [esp + edx + 0x38], 0
call fcn.004074f0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46f811
movaps xmm0, xmmword [str.PathFileExistsA]
lea ecx, [esp + 0x24]
push ecx
push eax
movups xmmword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi + 0x18]
call eax
mov ebx, eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x46f860
call fcn.00415290
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46f85a
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x43676552
push ecx
push eax
mov dword [esp + 0x30], 0x65736f6c
mov dword [esp + 0x34], 0x79654b
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x34]
push edi
call eax
mov ecx, dword [esp + 0x24c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x46fac0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x57c54c]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
test edi, edi
je 0x46fbea
push 0x228
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x22c
push 0
push eax
call fcn.00503920
add esp, 0xc
call fcn.00412f10
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46fb5b
movaps xmm0, xmmword [0x564780]
lea ecx, [esp + 0x240]
push ecx
push eax
movups xmmword [esp + 0x248], xmm0
mov dword [esp + 0x258], 0x70616e53
mov dword [esp + 0x25c], 0x746f6873
mov byte [esp + 0x260], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x134]
push 0
push 2
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x46fbea
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46fbca
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0051212b
add esp, 8
test eax, eax
je 0x46fbc2
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x46fb84
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x46fc10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5379fb
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x57c54c]
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 edi, ecx
call fcn.00412f10
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46fc7c
movaps xmm0, xmmword [0x564780]
lea ecx, [ebp - 0x2c]
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x70616e53
mov dword [ebp - 0x18], 0x746f6873
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x134]
push 0
push 2
call eax
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
jne 0x46fc9a
xor eax, eax
jmp 0x46fdb8
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46fc93
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x254]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.005010ea
mov esi, eax
add esp, 4
test esi, esi
je 0x46fd2a
push ebx
push 0
push esi
call fcn.00503920
add esp, 0xc
lea eax, [ebp - 0x254]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x46fd2a
push esi
call fcn.005010e5
add esp, 4
lea ecx, [ebp - 0x294]
call fcn.00408360
jmp 0x46fd53
push esi
lea ecx, [ebp - 0x44]
call fcn.00408320
push esi
call fcn.005010e5
add esp, 4
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x294]
push eax
call fcn.004082e0
lea ecx, [ebp - 0x44]
call fcn.00408260
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x294]
mov eax, dword [edi + 4]
push ecx
cmp dword [edi + 8], eax
je 0x46fd76
mov ecx, eax
call fcn.004082e0
add dword [edi + 4], 0x18
jmp 0x46fd7e
push eax
mov ecx, edi
call fcn.0040c2a0
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 0xffffffff
call fcn.00408260
mov ebx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46fcb6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
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.00500b45
mov esp, ebp
pop ebp
ret
Function at 0x46fde0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], pe_nt_image_headers32
push 0
push eax
mov ebx, ecx
call fcn.00503920
add esp, 0xc
call fcn.00412f10
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x46fe54
movaps xmm0, xmmword [0x564780]
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x70616e53
mov dword [ebp - 0xc], 0x746f6873
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x134]
push 0
push 2
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x46fea9
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x46fea2
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.005122db
add esp, 8
test eax, eax
je 0x46febc
lea eax, [ebp - 0x148]
push eax
push esi
call edi
test eax, eax
jne 0x46fe80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500b45
mov esp, ebp
pop ebp
ret

Function at 0x4701f0
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.GetNativeSystemInfo
push str.kernel32.dll
movaps xmmword [ebp - 0x40], xmm0
movaps xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x470248
lea ecx, [ebp - 0x40]
push ecx
call eax
jmp 0x470252
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x40]
cmp ax, 6
je 0x47027b
cmp ax, 0xa
je 0x47027b
cmp ax, 9
je 0x47027b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4717a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537b69
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57c54c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
call fcn.00408360
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x471941
mov ecx, dword [ebp - 0x1c]
nop word [eax + eax]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x14], al
inc ecx
mov ah, byte [ebp - 0x12]
inc esi
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0xe], ah
mov byte [ebp + 0xb], dl
mov byte [ebp - 0xd], dh
cmp esi, 3
jne 0x47188c
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x18]
mov ecx, 0x580690
push eax
call fcn.004649a0
mov ecx, edi
movzx eax, byte [eax]
push eax
call fcn.004649d0
inc esi
cmp esi, 4
jl 0x471860
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp + 0xb]
mov dh, byte [ebp - 0xd]
test ebx, ebx
jne 0x471800
mov dword [ebp + 8], esi
test esi, esi
je 0x471941
mov eax, esi
cmp esi, 3
jge 0x4718c5
cmp eax, 3
jae 0x471955
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4718a9
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x4718c8
mov cl, byte [ebp - 0xe]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x471927
mov esi, eax
movzx eax, byte [ebp + ebx - 0x18]
mov ecx, 0x580690
push eax
call fcn.004649a0
mov ecx, edi
movzx eax, byte [eax]
push eax
call fcn.004649d0
inc ebx
cmp ebx, esi
jl 0x471904
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x471941
mov ebx, 3
sub ebx, esi
push 0x3d
mov ecx, edi
call fcn.004649d0
sub ebx, 1
jne 0x471933
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00501272
int3
Function at 0x471bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
jb 0x471bfc
mov edx, dword [edx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004717a0
add esp, 4
mov dword [ebp - 4], 1
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x471c42
cmp eax, ebx
jbe 0x471cc5
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
mov al, byte [ecx + ebx]
xor al, 0x6b
mov byte [edx + ebx], al
inc ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
ja 0x471c20
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push eax
cmovae edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.004717a0
add esp, 4
xor esi, esi
mov dword [ebp - 0x30], 1
cmp dword [edi + 0x10], esi
jbe 0x471c9b
push esi
mov ecx, edi
call fcn.004649a0
push esi
mov ecx, edi
cmp byte [eax], 0x2b
jne 0x471c80
call fcn.004649a0
mov byte [eax], 0x5f
jmp 0x471c95
call fcn.004649a0
cmp byte [eax], 0x2f
jne 0x471c95
push esi
mov ecx, edi
call fcn.004649a0
mov byte [eax], 0x2d
inc esi
cmp esi, dword [edi + 0x10]
jb 0x471c66
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00408260
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
call fcn.0040bc10
int3

Function at 0x471cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], 0
call fcn.00471960
mov dword [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x471d4f
cmp eax, edi
jbe 0x471d8a
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
mov al, byte [ecx + edi]
xor al, 0x6b
mov byte [edx + edi], al
inc edi
mov eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x471d2d
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.00471960
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
call fcn.00408260
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 - 0x14]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
call fcn.0040bc10
int3
Function at 0x471d90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x471e9d
cmp word [ebx], 0
je 0x471e9d
cmp word [ebx + 2], 0x3a
jne 0x471e9d
cmp word [ebx + 4], 0x5c
jne 0x471e9d
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x471dc6
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005010ea
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x471e16
push 2
push 0x55eb5c
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.00502d03
mov esi, eax
add esp, 8
test esi, esi
je 0x471e8a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471e4c
test al, 0x10
jne 0x471e55
push 0
push edi
call ebx
test eax, eax
je 0x471e83
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.00502d03
mov esi, eax
add esp, 8
test esi, esi
jne 0x471e37
push edi
call fcn.005010e5
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.005010e5
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471eb0
Capabilities:
Check if file exists
Get file attributes
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f4
call fcn.00501720
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x471ed7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x472032
test al, 0x10
jne 0x472032
cmp dword [esi + 0x14], 0x10
jb 0x471ef7
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47201a
push edi
push 0x1000
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x10f4], 0x67452301
push 0
push eax
mov dword [ebp - 0x10f0], 0xefcdab89
mov dword [ebp - 0x10ec], 0x98badcfe
mov dword [ebp - 0x10e8], 0x10325476
mov dword [ebp - 0x10e4], 0
mov dword [ebp - 0x10e0], 0
mov dword [ebp - 0x10dc], 0
call fcn.00503920
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x1058]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push esi
call edi
test eax, eax
je 0x471fc4
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x471fc4
push eax
lea edx, [ebp - 0x1054]
lea ecx, [ebp - 0x10f4]
call fcn.00477ca0
add esp, 4
cmp dword [ebp - 0x1058], 0
ja 0x471f80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10f4]
movups xmmword [ebp - 0x14], xmm0
call fcn.00477d80
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00503920
add esp, 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x14]
call fcn.00477e30
add esp, 4
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472005
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
mov ecx, ebx
call fcn.0040add0
xor eax, eax
cmp dword [ebx + 0x10], eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00500b45
mov esp, ebp
pop ebp
ret