joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c514
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 0x45c579
lea ecx, [esi + 5]
add ecx, dword [esi + 1]
cmp ecx, esi
jae 0x45c568
cmp ecx, 0x80000000
lea eax, [ecx + 0x7ff80000]
mov edi, 0xfff80000
cmovb edi, eax
jmp 0x45c579
cmp ecx, 0x7ff80000
lea eax, [ecx - 0x7ff80000]
mov ebx, edx
cmova ebx, eax
mov edx, dword [0x58172c]
mov eax, dword [0x581734]
test edx, edx
jne 0x45c594
test eax, eax
je 0x45c5a7
mov edx, eax
mov dword [0x58172c], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x45c5a7
cmp ecx, ebx
jb 0x45c5a7
cmp ecx, edi
jbe 0x45c62b
mov edx, eax
test eax, eax
jmp 0x45c5c5
test edx, edx
je 0x45c5c0
mov eax, dword [edx + 8]
test eax, eax
je 0x45c5c0
cmp eax, ebx
jb 0x45c5c0
cmp eax, edi
jbe 0x45c62b
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x58172c], edx
jne 0x45c5ad
and esi, 0xffff0000
mov ecx, ebx
mov edx, esi
call fcn.0045c46b
mov edx, eax
test edx, edx
jne 0x45c5f1
mov edx, edi
mov ecx, esi
call fcn.0045c3c5
mov edx, eax
test edx, edx
je 0x45c650
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x581734]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x58172c], edx
mov dword [0x581734], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x45c61b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x45c650
cmp esi, edi
ja 0x45c650
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.00504c70
add esp, 0xc
mov eax, esi
jmp 0x45c652
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x45c6dd
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x581728], eax
je 0x45c704
mov eax, 0x10dd
jmp 0x45c792
push ebx
push esi
push edi
mov edi, dword [0x58173c]
xor ebx, ebx
test edi, edi
je 0x45c751
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 0x45c73f
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x45c73f
call fcn.0045c656
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.00502404
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x45c713
mov dword [0x58173c], ebx
call fcn.0045c36f
mov edi, dword [0x581738]
test edi, edi
je 0x45c781
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.00502404
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x45c766
pop edi
pop esi
mov dword [0x581738], ebx
xor eax, eax
mov dword [0x581728], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
leave
ret
Function at 0x45ca53
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x581724]
push esi
mov esi, ecx
test eax, eax
jne 0x45caba
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x45ca6d
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.00502157
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x45caa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.00502404
and dword [0x581730], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x581724], esi
jmp 0x45cab9
mov eax, dword [0x581738]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x581738], edi
pop edi
pop esi
ret
Function at 0x471860
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x57d54c]
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 0x4718ad
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4718a2
cmp dword [ebp - 8], 0x103
jne 0x4718ad
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 0x4722b0
push 0
push 0
call fcn.0051399f
xor ebx, ebx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne bl
test eax, eax
je 0x4718db
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test ebx, ebx
pop ebx
jne 0x4718f1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
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.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x472980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x57d54c]
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 0x4729bb
mov esi, accept
jmp 0x4729cf
cmp ecx, 2
jne 0x4729c7
mov esi, reloc.WS2_32.dll_accept
jmp 0x4729cf
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.00415220
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x472a24
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 0x472a54
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
push 0x209
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], 0x208
push 0
push eax
call fcn.00504c70
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x20], 1
call fcn.00415220
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472aa9
movaps xmm0, xmmword [0x5659d0]
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 0x472b3d
lea ebx, [eax + 1]
cmp dword [ebp + 0x10], eax
je 0x472b3d
lea ecx, [esp + 0x38]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472ad7
sub ecx, edx
xor eax, eax
xor edx, edx
test ecx, ecx
jle 0x472b03
nop dword [eax + eax]
mov bl, byte [esp + eax + 0x38]
cmp bl, 0x22
je 0x472afe
mov byte [esp + edx + 0x38], bl
inc edx
inc eax
cmp eax, ecx
jl 0x472af0
mov byte [esp + edx + 0x38], 0
call fcn.00407550
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472b31
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 0x472b80
call fcn.00415220
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472b7a
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.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x472de0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x57d54c]
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 0x472f0a
push 0x228
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x22c
push 0
push eax
call fcn.00504c70
add esp, 0xc
call fcn.00412ea0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472e7b
movaps xmm0, xmmword [0x5659a0]
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 0x472f0a
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x472eea
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0051347b
add esp, 8
test eax, eax
je 0x472ee2
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x472ea4
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.00501e95
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.00501e95
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.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x472f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53927b
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x57d54c]
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.00412ea0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472f9c
movaps xmm0, xmmword [0x5659a0]
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 0x472fba
xor eax, eax
jmp 0x4730d8
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x472fb3
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.0050243a
mov esi, eax
add esp, 4
test esi, esi
je 0x47304a
push ebx
push 0
push esi
call fcn.00504c70
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 0x47304a
push esi
call fcn.00502435
add esp, 4
lea ecx, [ebp - 0x294]
call fcn.004082f0
jmp 0x473073
push esi
lea ecx, [ebp - 0x44]
call fcn.004082b0
push esi
call fcn.00502435
add esp, 4
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x294]
push eax
call fcn.00408270
lea ecx, [ebp - 0x44]
call fcn.004081f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x294]
mov eax, dword [edi + 4]
push ecx
cmp dword [edi + 8], eax
je 0x473096
mov ecx, eax
call fcn.00408270
add dword [edi + 4], 0x18
jmp 0x47309e
push eax
mov ecx, edi
call fcn.0040c230
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 0xffffffff
call fcn.004081f0
mov ebx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x472fd6
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.00501e95
mov esp, ebp
pop ebp
ret
Function at 0x473100
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x128
push 0
push eax
mov ebx, ecx
call fcn.00504c70
add esp, 0xc
call fcn.00412ea0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x473174
movaps xmm0, xmmword [0x5659a0]
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 0x4731c9
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4731c2
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0051362b
add esp, 8
test eax, eax
je 0x4731dc
lea eax, [ebp - 0x148]
push eax
push esi
call edi
test eax, eax
jne 0x4731a0
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.00501e95
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.00501e95
mov esp, ebp
pop ebp
ret

Function at 0x473510
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 [0x57d54c]
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 0x473568
lea ecx, [ebp - 0x40]
push ecx
call eax
jmp 0x473572
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x40]
cmp ax, 6
je 0x47359b
cmp ax, 0xa
je 0x47359b
cmp ax, 9
je 0x47359b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x474ac0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5393e9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57d54c]
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.004082f0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x474c61
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 0x474bac
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, 0x581704
push eax
call fcn.00467b50
mov ecx, edi
movzx eax, byte [eax]
push eax
call fcn.00467b80
inc esi
cmp esi, 4
jl 0x474b80
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov dl, byte [ebp + 0xb]
mov dh, byte [ebp - 0xd]
test ebx, ebx
jne 0x474b20
mov dword [ebp + 8], esi
test esi, esi
je 0x474c61
mov eax, esi
cmp esi, 3
jge 0x474be5
cmp eax, 3
jae 0x474c75
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x474bc9
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x474be8
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 0x474c47
mov esi, eax
movzx eax, byte [ebp + ebx - 0x18]
mov ecx, 0x581704
push eax
call fcn.00467b50
mov ecx, edi
movzx eax, byte [eax]
push eax
call fcn.00467b80
inc ebx
cmp ebx, esi
jl 0x474c24
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x474c61
mov ebx, 3
sub ebx, esi
push 0x3d
mov ecx, edi
call fcn.00467b80
sub ebx, 1
jne 0x474c53
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.005025c2
int3
Function at 0x474ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539471
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57d54c]
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 0x474f1c
mov edx, dword [edx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00474ac0
add esp, 4
mov dword [ebp - 4], 1
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x474f62
cmp eax, ebx
jbe 0x474fe5
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 0x474f40
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push eax
cmovae edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00474ac0
add esp, 4
xor esi, esi
mov dword [ebp - 0x30], 1
cmp dword [edi + 0x10], esi
jbe 0x474fbb
push esi
mov ecx, edi
call fcn.00467b50
push esi
mov ecx, edi
cmp byte [eax], 0x2b
jne 0x474fa0
call fcn.00467b50
mov byte [eax], 0x5f
jmp 0x474fb5
call fcn.00467b50
cmp byte [eax], 0x2f
jne 0x474fb5
push esi
mov ecx, edi
call fcn.00467b50
mov byte [eax], 0x2d
inc esi
cmp esi, dword [edi + 0x10]
jb 0x474f86
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004081f0
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.00501e95
mov esp, ebp
pop ebp
ret
call fcn.0040bba0
int3

Function at 0x474ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539471
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57d54c]
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.00474c80
mov dword [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47506f
cmp eax, edi
jbe 0x4750aa
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 0x47504d
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.00474c80
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
call fcn.004081f0
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.00501e95
mov esp, ebp
pop ebp
ret
call fcn.0040bba0
int3
Function at 0x4750b0
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 0x4751bd
cmp word [ebx], 0
je 0x4751bd
cmp word [ebx + 2], 0x3a
jne 0x4751bd
cmp word [ebx + 4], 0x5c
jne 0x4751bd
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4750e6
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.0050243a
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 0x475136
push 2
push 0x55fb5c
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.00504053
mov esi, eax
add esp, 8
test esi, esi
je 0x4751aa
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 0x47516c
test al, 0x10
jne 0x475175
push 0
push edi
call ebx
test eax, eax
je 0x4751a3
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.00504053
mov esi, eax
add esp, 8
test esi, esi
jne 0x475157
push edi
call fcn.00502435
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.00502435
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 0x4751d0
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.00502a70
mov eax, dword [0x57d54c]
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 0x4751f7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x475352
test al, 0x10
jne 0x475352
cmp dword [esi + 0x14], 0x10
jb 0x475217
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47533a
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.00504c70
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 0x4752e4
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x4752e4
push eax
lea edx, [ebp - 0x1054]
lea ecx, [ebp - 0x10f4]
call fcn.0047af60
add esp, 4
cmp dword [ebp - 0x1058], 0
ja 0x4752a0
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.0047b040
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00504c70
add esp, 8
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x14]
call fcn.0047b0f0
add esp, 4
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475325
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
mov ecx, ebx
call fcn.0040ad60
xor eax, eax
cmp dword [ebx + 0x10], eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret