joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5751c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x15c], ebx
mov ebx, ecx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x4087d8]
call fcn.00405374
xor eax, eax
push ebp
push 0x57545e
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x5752da
mov eax, dword [ebp - 0x160]
cmp word [eax + 0x42], 0
je 0x575274
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x575474
mov edx, 0x57548c
mov eax, dword [ebp - 0x160]
call fcn.00576040
lea eax, [ebp - 0x188]
mov edx, dword [ebp - 0x164]
call fcn.00404b44
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
xor eax, eax
mov dword [ebp - 0x182], eax
xor eax, eax
mov dword [ebp - 0x182], eax
mov dword [ebp - 0x17e], 3
lea eax, [ebp - 0x18c]
mov ecx, 0x5754a4
mov edx, dword [ebp - 0x164]
call fcn.00404b88
mov eax, dword [ebp - 0x18c]
call fcn.00404d34
mov dword [ebp - 0x17a], eax
mov eax, 0x5754a8
mov dword [ebp - 0x176], eax
mov word [ebp - 0x172], 0x414
lea eax, [ebp - 0x182]
push eax
call sub.shell32.dll_SHFileOperationA
jmp 0x575414
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x164]
call fcn.00404900
mov eax, dword [ebp - 0x160]
cmp word [eax + 0x42], 0
je 0x575340
lea eax, [ebp - 0x190]
push eax
mov ecx, 0x575474
mov edx, 0x57548c
mov eax, dword [ebp - 0x160]
call fcn.00576040
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 0x15c]
call fcn.00404b44
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x15c]
call fcn.00404b3c
mov edx, dword [ebp - 0x15c]
cmp byte [edx + eax - 1], 0x5c
jne 0x575375
mov eax, dword [ebp - 0x15c]
call fcn.00404b3c
mov edx, eax
lea eax, [ebp - 0x15c]
mov ecx, 1
call fcn.00404dd4
lea eax, [ebp - 0x194]
mov ecx, 0x5754b4
mov edx, dword [ebp - 0x15c]
call fcn.00404b88
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.0040a5e0
test eax, eax
jne 0x5753f2
xor eax, eax
push ebp
push 0x5753eb
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.005750b8
pop ecx
jmp 0x5753c3
push ebp
call fcn.005750b8
pop ecx
lea eax, [ebp - 0x158]
call fcn.0040a64c
test eax, eax
je 0x5753bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5753f2
lea eax, [ebp - 0x158]
call fcn.0040a688
ret
mov eax, dword [ebp - 0x164]
call fcn.00574f80
test al, al
je 0x575414
mov cl, 1
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x160]
call fcn.005751c0
mov eax, dword [ebp - 0x164]
call fcn.0040a33c
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x575465
lea eax, [ebp - 0x194]
mov edx, 4
call fcn.0040488c
lea eax, [ebp - 0x15c]
call fcn.00404868
lea eax, [ebp - 0x158]
mov edx, dword [0x4087d8]
call fcn.00405444
ret
Function at 0x576084
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x57615b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [esi + 0x42], 0
je 0x5760d8
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x576174
mov edx, 0x57618c
mov eax, esi
call fcn.00576040
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404b44
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
xor edx, edx
mov eax, ebx
call fcn.0040a510
xor eax, eax
mov dword [ebp - 0x1f], eax
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], 3
lea eax, [ebp - 0x28]
mov ecx, 0x5761a4
mov edx, ebx
call fcn.00404b88
mov eax, dword [ebp - 0x28]
call fcn.00404d34
mov dword [ebp - 0x17], eax
mov eax, 0x5761a8
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], 0x14
lea eax, [ebp - 0x1f]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 1]
mov eax, ebx
call fcn.0040a31c
test al, al
je 0x576140
mov edx, 0x5761b4
mov eax, ebx
call fcn.00576688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576162
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040488c
ret

Function at 0x5761fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ad0
add esp, 0x10c
pop ebx
ret

Function at 0x576238
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404ad0
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x576283
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
add esp, 0x100
pop ebx
ret

Function at 0x57628c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x5762dd
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404ad0
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x5762f3
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
jmp 0x5762f3
mov ecx, 0x576304
mov dl, 1
mov eax, dword [0x4087f8]
call fcn.0040e748
call fcn.00404204
add esp, 0x108
pop ebx
ret
Function at 0x5763a8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404ad0
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x5763ef
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
add esp, 0x100
pop ebx
ret

Function at 0x5764a4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
call fcn.005763f8
cmp al, 3
je 0x5764c5
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x576518
call fcn.005763f8
cmp al, 3
je 0x57650f
lea eax, [esp + 0xc]
push eax
push 0x57651c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret
Function at 0x576688
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d24
mov eax, dword [ebp - 8]
call fcn.00404d24
xor eax, eax
push ebp
push 0x57680f
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xc]
mov eax, 8
call fcn.00409da8
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x30
jne 0x576720
mov eax, dword [ebp - 8]
mov edx, 0x576824
call fcn.00404c80
jne 0x576702
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5767e7
push 5
mov eax, dword [ebp - 8]
call fcn.00404d34
push eax
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5767e7
mov dl, 1
mov eax, dword [0x41fec0]
call fcn.00403944
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5767e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, 0x576830
mov edx, dword [0x59b294]
call fcn.00404b88
mov eax, dword [ebp - 0x14]
call fcn.0040a31c
test al, al
jne 0x57676b
mov edx, 0x576848
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x576789
lea eax, [ebp - 0x18]
mov ecx, 0x576830
mov edx, dword [0x59b294]
call fcn.00404b88
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push dword [ebp - 8]
push 0x576860
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404bfc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0042435c
lea eax, [ebp - 0x20]
mov ecx, 0x576830
mov edx, dword [0x59b294]
call fcn.00404b88
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5767e7
mov eax, dword [ebp - 0x10]
call fcn.00403974
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576816
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040488c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040488c
ret
Function at 0x578d84
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x578fe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov dl, 1
call fcn.0046b4fc
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
lea ebx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x578f8f
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x578f74
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [0x598148]
mov eax, dword [eax]
call eax
push ebp
lea eax, [ebp - 0x124]
mov edx, ebx
call fcn.00404a58
mov eax, dword [ebp - 0x124]
call fcn.00578ae8
pop ecx
mov esi, eax
lea eax, [ebp - 0x22c]
mov edx, ebx
call fcn.00403454
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x12c]
call fcn.00404ac4
push dword [ebp - 0x12c]
push 0x579000
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x230]
call fcn.00578bfc
push dword [ebp - 0x230]
push 0x579000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x234]
call fcn.00578bfc
push dword [ebp - 0x234]
push 0x579000
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x238]
call fcn.00578bfc
push dword [ebp - 0x238]
push 0x579000
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
lea eax, [ebp - 0x23c]
call fcn.00578bfc
push dword [ebp - 0x23c]
lea eax, [ebp - 0x128]
mov edx, 9
call fcn.00404bfc
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x218]
call fcn.0042435c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x578f4c
cmp eax, 0
jae 0x578f74
jmp 0x578f4e
jge 0x578f74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0046b4fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x68]
mov edx, 0xff
call fcn.004307c4
lea eax, [ebp - 0x240]
mov edx, ebx
call fcn.00404a58
mov eax, dword [ebp - 0x240]
call fcn.00404b3c
add ebx, eax
inc ebx
lea eax, [ebp - 0x248]
mov edx, ebx
call fcn.00404a58
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00409808
cmp dword [ebp - 0x244], 0
jne 0x578e1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578fef
lea eax, [ebp - 0x248]
mov edx, 7
call fcn.0040488c
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.0040488c
ret
Function at 0x401e00
Capabilities:
Hash data with md5

Disassembly:
push esi
push edi
push 0x78
mov edi, ecx
call fcn.005421d4
mov esi, eax
add esp, 4
test esi, esi
jne 0x401e1e
mov dword [edi], eax
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
ret
lea ecx, [esi + 0xc]
lea edx, [esi + 4]
mov dword [esi], vtable.RefCountObj_class_HashAlgorithmMD5_.0
mov dword [edx], 1
mov byte [esi + 8], 0
test ecx, ecx
je 0x401e6e
lea eax, [ecx + 4]
mov dword [ecx], vtable.HashAlgorithmMD5.0
test eax, eax
je 0x401e6e
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov byte [esi + 8], 1
mov dword [edi], ecx
mov dword [edi + 4], esi
mov eax, 1
lock xadd dword [edx], eax
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x401e96
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401ea0
Capabilities:
Hash data using sha1

Disassembly:
push esi
push edi
push 0x74
mov edi, ecx
call fcn.005421d4
mov esi, eax
add esp, 4
test esi, esi
jne 0x401ebe
mov dword [edi], eax
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
ret
lea eax, [esi + 0xc]
lea ecx, [esi + 4]
mov dword [esi], vtable.RefCountObj_class_HashAlgorithmSHA1_.0
mov dword [ecx], 1
mov byte [esi + 8], 0
test eax, eax
je 0x401f16
mov dword [eax], vtable.HashAlgorithmSHA1.0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [edi], eax
mov byte [esi + 8], 1
mov dword [edi + 4], esi
mov eax, 1
lock xadd dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x401f3e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
ret

Function at 0x403040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042bc54

Function at 0x404cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404cd5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404d14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404d10
lea ebx, [ebx]
cmp esi, edx
jae 0x404d14
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404d00
cmp esi, edx
jb 0x404d19
xor eax, eax
pop esi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40ba20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0x14]
push ecx
mov dword [edi], 0
mov dword [ebp - 4], edx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40baba
cmp word [ebx + 8], 2
push esi
jne 0x40ba82
cmp word [ebx + 0xa], 4
jne 0x40ba82
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40ba82
lea ecx, [ecx]
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0040b9a0
mov dword [edi], eax
test eax, eax
je 0x40baac
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x40ba60
push 0x400
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push 0x401
push ebx
call fcn.00544d0d
add esp, 0x10
mov byte [ebx + 0x400], 0
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop esi
pop edi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40baca.11001
jmp dword [eax*4 + 0x40baf8]
pop edi
mov eax, 0x2af9
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x2afa
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x2afb
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40bf00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d76fc
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x64e0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0xc], vtable.CBuffer.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CArray_class_CHTTPBuffer__class_CHTTPBuffer_const__.0
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [edi + 0x44], vtable.CArray_class_CHTTPBuffer__class_CHTTPBuffer_const__.0
mov dword [edi + 0x48], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x58], vtable.CBuffer.0
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x64], 0
mov byte [ebp - 4], 3
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x24], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
mov word [edi + 0x6c], 0
call fcn.0040c430
lea ecx, [edi + 0x44]
call fcn.0040c430
mov dword [edi + 0x68], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d5c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40d5cb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0040d5e0
Function at 0x40fed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x40ff5c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.005495a0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40ff2f
sub eax, esi
jmp 0x40ff31
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40ff20
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40ff4f
sub eax, esi
jmp 0x40ff51
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40ff40
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x41001c
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x40ff85
mov ecx, edx
mov dword [ebp - 4], edx
test ecx, ecx
jne 0x40ff8d
xor eax, eax
jmp 0x40ffe0
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40ffaa
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00410a00
jmp 0x40ffc2
cmp eax, 2
jne 0x40ffc8
mov edx, dword [ebx]
test edx, edx
jne 0x40ffb9
xor eax, eax
jmp 0x40ffc5
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040d5e0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.005495a0
mov eax, dword [ebp - 4]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x410008
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x41001c
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40fee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415de0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov al, byte [edi + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x415fbb
xor edx, edx
push ebx
mov ebx, dword [edi]
test al, 2
mov eax, dword [ebp + 8]
je 0x415e41
movzx edx, byte [edi + 9]
movzx eax, byte [eax]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
movzx eax, byte [eax + 1]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
movzx eax, byte [eax + 2]
sub edx, eax
mov dword [ebp - 0xc], edx
mov ecx, 3
xor edx, edx
jmp 0x415e53
movzx eax, byte [eax + 3]
movzx ecx, byte [edi + 9]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x415e76
mov eax, dword [ebp + 8]
movzx ecx, byte [edi + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x14], ecx
mov ecx, eax
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
jle case.0x415ebb.3
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x415e91
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x415e96
mov edx, 1
inc eax
cmp eax, ecx
jl 0x415e80
test dx, dx
je case.0x415ebb.3
movzx eax, byte [edi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x415ebb.3
movzx eax, byte [eax + 0x415fe0]
jmp dword [eax*4 + 0x415fcc]
mov ecx, dword [edi + 4]
test ecx, ecx
je case.0x415ebb.3
lea ecx, [ecx]
mov al, byte [esi]
shr al, 1
and al, 0x55
mov byte [esi], al
lea esi, [esi + 1]
dec ecx
jne 0x415ed0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 4]
mov ebx, 0xf0
sar ebx, cl
mov eax, 0xf
sar eax, cl
and bl, 0xf0
or bl, al
test edx, edx
je case.0x415ebb.3
mov al, byte [esi]
shr al, cl
mov ecx, dword [ebp - 0x14]
lea esi, [esi + 1]
and al, bl
mov byte [esi - 1], al
dec edx
jne 0x415f10
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x415ebb.3
mov eax, edi
xor edx, edx
div ecx
inc edi
lea esi, [esi + 1]
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x415f40
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
test ebx, ebx
je case.0x415ebb.3
movzx edi, byte [esi]
xor edx, edx
div ecx
mov eax, 0x100
imul di, ax
movzx eax, byte [esi + 1]
add di, ax
lea esi, [esi + 1]
lea esi, [esi + 1]
mov cx, word [ebp + edx*4 - 0x14]
shr di, cl
movzx ecx, di
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x415f78
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00541b41
mov esp, ebp
pop ebp
ret