joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6f6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d7152
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4d710e
mov eax, dword [ebp - 4]
call fcn.004d8940
cmp ebx, eax
jge 0x4d710e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004c7a18
mov edx, dword [0x4c95ac]
call fcn.00404854
mov esi, eax
mov eax, esi
call fcn.004ca470
test al, al
je 0x4d7104
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4d70f8
xor eax, eax
push ebp
push 0x4d70f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d7524
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.004210e8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405d04
mov eax, dword [ebp - 8]
call fcn.00405ad4
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d72e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d713c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4d70f0
mov eax, dword [ebp - 4]
call fcn.004d75a8
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040df04
jmp 0x4d713c
mov eax, dword [ebp - 8]
call fcn.004055e4
jmp 0x4d713c
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040d2c8
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41b7c0]
call fcn.00411a50
call fcn.00404f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7159
lea eax, [ebp - 0x54]
call fcn.004055e4
ret
Function at 0x4dd748
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4dd954
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x583710]
cmp dword [eax + 0x26c], 0
jle 0x4dd936
mov eax, dword [0x583710]
cmp dword [eax + 0x268], 0
jle 0x4dd936
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x4dd968
call fcn.0040e790
mov ecx, dword [ebp - 0x10]
mov edx, dword [0x583d28]
mov edx, dword [edx]
lea eax, [ebp - 4]
call fcn.004058fc
mov eax, dword [ebp - 4]
call fcn.0040d52c
test al, al
je 0x4dd7e1
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040d52c
test al, al
je 0x4dd7e1
inc ebx
jmp 0x4dd78b
mov eax, dword [0x583710]
mov eax, dword [eax + 0x268]
cdq
push edx
push eax
mov eax, dword [0x583aec]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41c278]
call fcn.0042159c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4dd855
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x583710]
mov eax, dword [eax + 0x26c]
cdq
push edx
push eax
mov eax, dword [0x583aec]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.004dd640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd85c
mov eax, dword [ebp - 8]
call fcn.004046a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd95b
lea eax, [ebp - 0x10]
call fcn.004055e4
lea eax, [ebp - 4]
call fcn.004055e4
ret

Function at 0x4ddbd0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov esi, eax
lea edi, [esp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebp, edx
mov edx, ebp
mov eax, 0x57c398
mov ecx, 0x48
call fcn.004035b8
lea edx, [ebp + 0x48]
mov eax, 0x57c3e0
mov ecx, 0x1000
call fcn.004035b8
xor edi, edi
mov esi, 0x12
mov dword [esp + 8], ebp
xor edx, edx
mov eax, 4
shl edx, 8
movzx ecx, byte [esp + edi + 0xc]
or edx, ecx
inc edi
cmp edi, 0x10
jl 0x4ddc2a
xor edi, edi
dec eax
jne 0x4ddc18
mov eax, dword [esp + 8]
xor dword [eax], edx
add dword [esp + 8], 4
dec esi
jne 0x4ddc11
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
xor esi, esi
mov edx, esp
mov eax, ebp
mov cl, 1
call fcn.004ddcac
mov eax, dword [esp]
mov dword [ebp + esi*4], eax
mov eax, dword [esp + 4]
mov dword [ebp + esi*4 + 4], eax
add esi, 2
cmp esi, 0x11
jle 0x4ddc48
mov edi, 4
mov ebx, ebp
xor esi, esi
mov edx, esp
mov eax, ebp
mov cl, 1
call fcn.004ddcac
mov eax, dword [esp]
mov dword [ebx + esi*4 + 0x48], eax
mov eax, dword [esp + 4]
mov dword [ebx + esi*4 + 0x4c], eax
add esi, 2
cmp esi, 0xff
jle 0x4ddc73
add ebx, 0x400
dec edi
jne 0x4ddc71
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ddcac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov byte [esp], cl
mov esi, edx
mov ebx, eax
lea edi, [esp + 1]
mov edx, edi
mov eax, esi
mov ecx, 8
call fcn.004035b8
cmp byte [esp], 0
je 0x4ddd50
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, 1
movzx edx, byte [edi + 3]
mov edx, dword [ebx + edx*4 + 0x48]
movzx ecx, byte [edi + 2]
add edx, dword [ebx + ecx*4 + 0x448]
movzx ecx, byte [edi + 1]
xor edx, dword [ebx + ecx*4 + 0x848]
movzx ecx, byte [edi]
add edx, dword [ebx + ecx*4 + 0xc48]
mov ecx, dword [ebx + eax*4]
xor ecx, dword [esi + 4]
xor edx, ecx
mov dword [esi + 4], edx
movzx edx, byte [edi + 7]
mov edx, dword [ebx + edx*4 + 0x48]
movzx ecx, byte [edi + 6]
add edx, dword [ebx + ecx*4 + 0x448]
movzx ecx, byte [edi + 5]
xor edx, dword [ebx + ecx*4 + 0x848]
movzx ecx, byte [edi + 4]
add edx, dword [ebx + ecx*4 + 0xc48]
mov ecx, dword [ebx + eax*4 + 4]
xor ecx, dword [esi]
xor edx, ecx
mov dword [esi], edx
add eax, 2
cmp eax, 0x10
jle 0x4ddcda
mov eax, dword [ebx + 0x44]
xor dword [esi + 4], eax
jmp 0x4dddcd
mov eax, dword [ebx + 0x44]
xor dword [esi + 4], eax
mov eax, 0x10
movzx edx, byte [edi + 7]
mov edx, dword [ebx + edx*4 + 0x48]
movzx ecx, byte [edi + 6]
add edx, dword [ebx + ecx*4 + 0x448]
movzx ecx, byte [edi + 5]
xor edx, dword [ebx + ecx*4 + 0x848]
movzx ecx, byte [edi + 4]
add edx, dword [ebx + ecx*4 + 0xc48]
mov ecx, dword [ebx + eax*4]
xor ecx, dword [esi]
xor edx, ecx
mov dword [esi], edx
movzx edx, byte [edi + 3]
mov edx, dword [ebx + edx*4 + 0x48]
movzx ecx, byte [edi + 2]
add edx, dword [ebx + ecx*4 + 0x448]
movzx ecx, byte [edi + 1]
xor edx, dword [ebx + ecx*4 + 0x848]
movzx ecx, byte [edi]
add edx, dword [ebx + ecx*4 + 0xc48]
mov ecx, dword [ebx + eax*4 - 4]
xor ecx, dword [esi + 4]
xor edx, ecx
mov dword [esi + 4], edx
sub eax, 2
cmp eax, 1
jge 0x4ddd5b
mov eax, dword [ebx]
xor dword [esi], eax
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x4de5b0
Capabilities:
Hash data with md5

Disassembly:
push ebx
add esp, 0xffffffa8
mov ebx, eax
mov edx, esp
mov eax, ebx
mov ecx, 0x58
call fcn.004035b8
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
mov edx, ebx
mov eax, esp
mov ecx, 0x58
call fcn.004035b8
add esp, 0x58
pop ebx
ret

Function at 0x4df064
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
mov edi, esp
mov ebp, 0x57d420
mov eax, dword [ebp]
mov dword [ebx + 4], eax
push edi
call sub.kernel32.dll_GetLocalTime
mov ecx, dword [ebp]
and ecx, 0xf
mov esi, dword [ebx + 4]
shl esi, cl
movzx eax, word [edi + 8]
or ax, word [edi + 0xc]
movzx eax, ax
shl eax, 0x10
movzx edx, word [edi + 0xa]
or dx, word [edi + 0xe]
movzx edx, dx
or eax, edx
xor esi, eax
mov dword [ebx + 4], esi
mov dword [ebp], esi
inc dword [ebp]
cmp dword [ebx + 4], 0
je 0x4df074
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e200c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x100c], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4e2143
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx], 0x1000
jle 0x4e206b
lea edx, [ebp - 0x100c]
mov eax, dword [0x583464]
call fcn.00407974
mov ecx, dword [ebp - 0x100c]
mov dl, 1
mov eax, dword [0x40b74c]
call fcn.00411a14
call fcn.00404f18
xor ecx, ecx
mov eax, dword [ebx]
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
mov byte [ebp + ecx - 0x1008], al
inc ecx
cmp dword [ebx], 0x7f
jle 0x4e20c3
mov eax, dword [ebx]
mov esi, 0xff
cdq
idiv esi
mov esi, eax
test esi, esi
jne 0x4e2098
mov esi, 1
mov eax, esi
or al, 0x80
mov byte [ebp + ecx - 0x1008], al
add ecx, esi
mov eax, esi
test eax, eax
jle 0x4e20be
mov edx, dword [ebx]
and dl, 0xff
mov byte [ebp + ecx - 0x1008], dl
shr dword [ebx], 8
dec ecx
dec eax
jne 0x4e20ab
inc esi
add ecx, esi
jmp 0x4e20cd
mov eax, dword [ebx]
mov byte [ebp + ecx - 0x1008], al
inc ecx
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebx], eax
cmp dword [ebx], 0x1000
jle 0x4e2103
lea edx, [ebp - 0x1010]
mov eax, dword [0x583464]
call fcn.00407974
mov ecx, dword [ebp - 0x1010]
mov dl, 1
mov eax, dword [0x40b74c]
call fcn.00411a14
call fcn.00404f18
lea edx, [ebp + ecx - 0x1008]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004035b8
mov ecx, dword [ebx]
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1008]
call fcn.004035b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e214a
lea eax, [ebp - 0x1010]
mov edx, 2
call fcn.00405608
ret

Function at 0x4e4024
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e40cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004055e4
mov esi, 3
lea ebx, [esi + 0x41]
lea eax, [ebp - 8]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00403d1c
mov edx, 0x4e40e0
lea eax, [ebp - 0xc]
mov cl, 2
call fcn.00403cec
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00405848
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4e40ab
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004057cc
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004058b0
inc esi
cmp esi, 0x1a
jne 0x4e4051
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e40d6
lea eax, [ebp - 0x10]
call fcn.004055e4
lea eax, [ebp - 4]
call fcn.004055e4
ret
Function at 0x4e46b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4e4740
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
push edx
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00405854
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 4]
call fcn.004127c0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405638
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4747
lea eax, [ebp - 0x114]
call fcn.004055e4
lea eax, [ebp - 4]
call fcn.004055e4
ret

Function at 0x4f3650
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x57f7b8], 0
mov eax, dword [0x584190]
cmp dword [eax], 2
jne 0x4f3829
mov eax, dword [0x583808]
cmp dword [eax], 5
jl 0x4f3829
call fcn.004eb2a8
test al, al
jne 0x4f3681
call fcn.004eb2b4
call fcn.004eb2a0
mov dword [0x57f7c0], eax
push 0x4f382c
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f784], eax
cmp dword [0x57f784], 0
jne 0x4f36dc
mov edx, 0x8000
mov eax, 0x4f3840
call fcn.00413910
mov dword [0x57f7bc], eax
mov eax, dword [0x57f7bc]
mov dword [0x57f7c0], eax
push 0x4f382c
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f784], eax
cmp dword [0x57f784], 0
je 0x4f3824
push 0x4f384c
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f788], eax
cmp dword [0x57f788], 0
je 0x4f3824
push 0x4f3858
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f78c], eax
cmp dword [0x57f78c], 0
je 0x4f3824
mov byte [0x57f7b8], 1
push 0x4f3868
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f790], eax
push 0x4f3874
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f794], eax
push 0x4f3880
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f798], eax
push 0x4f3890
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f79c], eax
push 0x4f38a0
mov eax, dword [0x57f7c0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f7a0], eax
mov edx, 0x8000
mov eax, 0x4f38b8
call fcn.00413910
mov dword [0x57f7c4], eax
cmp dword [0x57f7c4], 0
je 0x4f3829
push 0x4f38c8
mov eax, dword [0x57f7c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f7a4], eax
push 0x4f38e4
mov eax, dword [0x57f7c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f7a8], eax
push 0x4f3904
mov eax, dword [0x57f7c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f7ac], eax
push 0x4f3920
mov eax, dword [0x57f7c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f7b0], eax
push 0x4f3938
mov eax, dword [0x57f7c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x57f7b4], eax
ret
call fcn.004f35d0
ret
Function at 0x4f5f20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f6048
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004f5e0c
mov eax, dword [esi]
call fcn.00406a2c
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4e6440]
call fcn.00406be8
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004035b8
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004035b8
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00406a2c
mov dword [ebp - 0xc], eax
mov eax, dword [0x583fd8]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004e80e0
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00403e38
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00406a2c
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004e7ffc
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.004e7e10
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004e80d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f604f
lea eax, [ebp - 4]
mov edx, dword [0x4e6440]
call fcn.00406ce8
ret

Function at 0x50be2c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call fcn.00405d04
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x50be51
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call fcn.00405a74
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x50be70
mov eax, ebx
mov edx, dword [esp]
call fcn.00405d04
pop ecx
pop edx
pop ebx
ret

Function at 0x510198
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x5101f2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0051018c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0050e9b8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0050e5d0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5101f9
lea eax, [ebp - 4]
call fcn.004055e4
ret
Function at 0x528460
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ebx, 0xe
mov eax, 0x5821c0
movzx edx, byte [eax]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
or esi, edx
inc eax
dec ebx
jne 0x52846e
xor ebx, ebx
mov ecx, 0x581dc0
mov eax, ebx
mov edx, 8
test al, 1
je 0x52849d
shr eax, 1
xor eax, esi
jmp 0x52849f
shr eax, 1
dec edx
jne 0x528493
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x52848c
pop esi
pop ebx
ret

Function at 0x5284b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
mov ebp, 0x581dc0
test esi, esi
je 0x5284c9
test edi, edi
jg 0x5284d0
xor eax, eax
jmp 0x5285cf
mov ebx, 0xdbc66688
cmp dword [0x581dbc], 0
je 0x5284e3
call fcn.00528460
xor ebx, 0xffffffff
cmp edi, 8
jl 0x5285ab
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jge 0x5284ef
test edi, edi
je 0x5285ca
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [ebp + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
jne 0x5285af
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x528b84
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x528b8d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x528d33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00528ecc
xor eax, eax
push ebp
push 0x528d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x528bdc
call fcn.00404fc4
jmp 0x528d18
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x528c9f
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x528c2d
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x528c2d
lea eax, [ebp - 0x10]
call fcn.00528948
push dword [ebp - 0x10]
push 0x528d4c
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405978
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x528c62
lea eax, [ebp - 0x18]
call fcn.00528948
push dword [ebp - 0x18]
push 0x528d4c
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405978
mov eax, dword [ebp - 0x14]
call fcn.00405a74
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x528cfb
lea eax, [ebp - 0x20]
call fcn.00528948
push dword [ebp - 0x20]
push 0x528d4c
push ebx
push 0x528d58
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00405978
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00528b4c
jmp 0x528cfb
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x528cc2
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x528cc2
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x528cd8
mov eax, ebx
call fcn.00405a74
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x528cfb
lea eax, [ebp - 0x24]
mov ecx, 0x528d58
mov edx, ebx
call fcn.004058fc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00528b4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528d18
mov eax, dword [ebp - 4]
call fcn.00528ed8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528d3a
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00405608
ret
Function at 0x52abd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x52abf5
inc edi
mov eax, esi
call fcn.004058a4
cmp edi, eax
jg 0x52ac07
cmp byte [esi + edi - 1], 0x20
je 0x52abf4
mov eax, esi
test eax, eax
je 0x52ac12
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x52acd4
cmp byte [esi + edi - 1], 0x2e
je 0x52acf8
jmp 0x52acd4
cmp byte [esi + edi - 1], 0x2e
jne 0x52ac7c
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x52acf8
cmp dword [esp + 8], 0xff
jg 0x52acf8
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x52ac60
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x52ac68
mov bl, 1
jmp 0x52ac76
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x52acf8
jmp 0x52acd3
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x52aca1
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x52acd3
inc edi
mov eax, esi
call fcn.004058a4
cmp edi, eax
jg 0x52acb3
cmp byte [esi + edi - 1], 0x20
je 0x52aca0
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x52accb
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x52acf8
jmp 0x52ace3
inc edi
mov eax, esi
call fcn.004058a4
cmp edi, eax
jle 0x52ac2a
cmp dword [esp + 4], 3
jne 0x52acf8
cmp dword [esp + 8], 0xff
jg 0x52acf8
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret