joyce8/EMBER2024-capa huggingface dataset:
Function at 0x515b90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4eab
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x62819c]
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
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x515da0
cmp dword [ebp - 0x248], 0xffffffff
je 0x515da0
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x515d69
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x515ce0
jmp 0x515c70
lea eax, [ebp - 0x218]
push 0x5b7f64
push eax
call fcn.00555852
add esp, 8
test eax, eax
jne 0x515cbe
cmp edi, ebx
je 0x515c9f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x515cbe
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00429cd0
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x515c70
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x515d69
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x515d54
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x515d54
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x515d54
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x515d5d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x515cf0
jmp 0x515d63
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x515d9c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x515d92
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x515dc2
push ebx
push esi
call fcn.00546044
add esp, 8
mov eax, edi
jmp 0x515da6
mov eax, dword [ebp - 0x244]
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.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
int3
Function at 0x516010
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x516031
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x516025
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x5160e8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x516060
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x5c8e78]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x5c8e78]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x5160d4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x5c8e78]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x5160d1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x5c8e78]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x516060
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x516380
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x516481
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
sub edx, eax
dec ecx
mov dword [ebp - 0x10], edx
push edi
lea edi, [eax + 1]
mov dword [ebp - 4], 1
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi - 1]
mov ecx, dword [ebp + 0xc]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
lea eax, [esi + 2]
mov dl, byte [edi - 1]
and dl, 3
shl dl, 4
cmp dword [ebp - 4], ecx
jae 0x516455
movzx ecx, byte [edi]
shr cl, 4
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
lea ecx, [eax + ebx]
mov dh, byte [edi]
inc eax
mov dword [ebp - 8], ecx
and dh, 0xf
mov ecx, dword [ebp - 0x10]
add ecx, edi
shl dh, 2
cmp ecx, dword [ebp + 0xc]
jae 0x516440
mov dl, byte [edi + 1]
mov ebx, dword [ebp - 8]
mov cl, dl
shr cl, 6
add cl, dh
movzx ecx, cl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
mov ebx, dword [ebp + 0x10]
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx], cl
jmp 0x51646b
movzx ecx, dh
mov edx, dword [ebp - 8]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov cl, 0x3d
mov byte [eax + ebx], cl
jmp 0x51646b
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], cl
mov byte [eax + ebx], 0x3d
inc eax
mov byte [eax + ebx], 0x3d
add dword [ebp - 4], 3
lea esi, [eax + 1]
add edi, 3
sub dword [ebp - 0xc], 1
jne 0x5163c0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x518270
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5148
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x5182a7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x518404
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5182c1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x518404
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x518404
push esi
lea ecx, [ebp - 0x28]
call fcn.0043e510
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x518333
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x51832d
lea ebx, [ebx]
cmp ecx, edx
je 0x518333
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x518320
sub ecx, edx
sar ecx, 1
jmp 0x518336
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x518354
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x5183c4
xor eax, eax
mov dword [ebp - 0x30], 0
cmp ebx, ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0042daa0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00440200
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x5183c4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5183ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x518430
push edx
push ecx
call fcn.00546044
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x518424
lea eax, [ebp - 0x28]
push eax
call fcn.00518270
add esp, 4
test eax, eax
je 0x518424
cmp dword [esi + 0x14], 8
jb 0x5183e2
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5183fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x518424
lea ecx, [ebp - 0x28]
call fcn.0042a1f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.0042a1f0
xor eax, eax
jmp 0x518409
call fcn.00555394
int3
Function at 0x519700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0051b3c0
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x519743
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x519743
test al, 0x10
je 0x519743
mov bl, 1
jmp 0x519745
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x51977b
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x519771
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51978c
push edx
push ecx
call fcn.00546044
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
int3

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

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x51a201
cmp dword [ecx + 0x14], 8
jb 0x51a1ee
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51a201
test al, 0x10
je 0x51a201
mov al, 1
ret
xor al, al
ret
Function at 0x51ab90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5608
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x51ad31
mov esi, dword [ebp + 0xc]
jg 0x51abed
test esi, esi
je 0x51ad31
cmp dword [ebx], 0xffffffff
je 0x51ad31
push esi
lea ecx, [ebp - 0x1c]
call fcn.0051adb0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x51ac30
lea ebx, [edi + esi]
jmp 0x51ac60
jbe 0x51ac63
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x51ac50
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00516e80
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x51ac63
sub esi, ecx
push esi
push 0
push ebx
call fcn.0054b380
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x51acee
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x51acb9
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x51ad5c
push eax
call fcn.00546014
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x51ad61
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x51accd
test ecx, ecx
je 0x51accb
push ecx
call fcn.00546014
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x51accd
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.0054a880
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x51ad1b
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x51ad11
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51ad61
push ecx
push edi
call fcn.00546044
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00429a00
call fcn.00555394
int3
Function at 0x51cb40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a57d2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x51cb9c
mov dword [ebx], 0x5c8544
mov dword [ebx + 0x10], 0x5c854c
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 0x18]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.0051c960
lea edx, [ebx + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], esi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00546014
mov esi, eax
add esp, 4
test esi, esi
je 0x51cc2f
push 1
mov byte [ebp - 4], 5
call fcn.00547c67
add esp, 4
mov dword [esi + 4], eax
jmp 0x51cc31
xor esi, esi
lea eax, [ebx + 0x18]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp + 0xc]
not ecx
and ecx, 1
mov dword [edi], 0
shl ecx, 2
mov eax, ebx
mov dword [edx], 0
mov edx, ecx
or edx, 2
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
and al, 2
mov dword [esi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51e360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6330e0], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
je 0x51e3c7
mov ecx, 0x6330e0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e3a0
sub ecx, edx
push ecx
push 0x6330e0
mov ecx, ebx
call fcn.00437dd0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push 0
push 0x6330e0
push 0x51ed30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x51e433
mov ecx, 0x6330e0
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e412
sub ecx, edx
push ecx
push 0x6330e0
lea ecx, [ebp - 0x1c]
call fcn.00437dd0
xor edx, edx
lea ecx, [ebp - 0x1c]
lea esi, [edx + 2]
jmp 0x51e44f
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov edx, 4
mov byte [ebp - 0x34], 0
xor esi, esi
mov eax, dword [ecx]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
test edx, edx
je 0x51e4c4
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x51e4c4
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e4ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e50b
push edx
push ecx
call fcn.00546044
add esp, 8
pop edi
test esi, esi
pop esi
je 0x51e4fa
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x51e4fa
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51e4f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51e50b
push edx
push ecx
call fcn.00546044
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
int3
Function at 0x520410
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ecx*4 + 2]
mul ecx
mov ebx, dword [edi + 4]
mov ecx, ebx
mov esi, edx
mov byte [ebp - 1], 0
mov edx, dword [edi]
sub ecx, edx
shr esi, 1
cmp esi, ecx
jae 0x520445
lea eax, [edx + esi]
jmp 0x52046f
jbe 0x520472
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x52045e
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.00516e80
jmp 0x520472
sub esi, ecx
push esi
push 0
push ebx
call fcn.0054b380
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov edx, dword [edi]
mov esi, 8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, edi
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], ecx
mov bl, byte [edi]
cmp edi, ecx
jae 0x520509
lea ecx, [ecx]
mov al, bl
cmp esi, 6
jbe 0x5204a1
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x5204d5
inc edi
cmp edi, ecx
jae 0x5204aa
mov bl, byte [edi]
jmp 0x5204ac
xor bl, bl
mov ecx, 6
sub ecx, esi
mov dword [ebp + 8], ecx
je 0x5204cf
mov dl, byte [ecx*4 + 0x5c9374]
mov ecx, esi
and dl, bl
shl dl, cl
mov cl, byte [ebp + 8]
or al, dl
mov edx, dword [ebp + 0x10]
shr bl, cl
mov ecx, dword [ebp + 0xc]
add esi, 2
cmp al, 0xa
jae 0x5204dd
add al, 0x30
jmp 0x5204ff
cmp al, 0x24
jae 0x5204e5
add al, 0x37
jmp 0x5204ff
cmp al, 0x3e
jae 0x5204ed
add al, 0x3d
jmp 0x5204ff
mov eax, 0x2d
mov ecx, 0x5f
cmove ecx, eax
mov al, cl
mov ecx, dword [ebp + 0xc]
mov byte [edx], al
inc edx
mov dword [ebp + 0x10], edx
cmp edi, ecx
jb 0x520490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x520ea0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov edx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x38]
push eax
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push ecx
mov ecx, dword [ebp - 0x218]
push edx
push dword [ebp + 0x28]
mov dword [ebp - 0x210], 0
push esi
push dword [ebp + 0x20]
mov dword [ebp - 0x208], 0
push edi
push dword [ebp - 0x20c]
push ebx
push dword [ebp - 0x21c]
call fcn.005207d0
test eax, eax
je 0x52103a
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0054b380
add esp, 0xc
mov dword [ebp - 0x21c], 0x100
lea eax, [ebp - 0x21c]
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push 5
push dword [ebp - 0x208]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x52103a
cmp dword [ebp - 0x220], 0
je 0x521005
mov ebx, dword [ebp + 0x30]
test ebx, ebx
je 0x521005
lea eax, [ebp - 0x204]
push eax
call fcn.0055b3de
mov edi, eax
add esp, 4
cmp edi, ebx
cmova edi, ebx
xor esi, esi
mov dword [ebp - 0x20c], esi
lea eax, [ebp - 0x20c]
push eax
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x220]
add eax, esi
push eax
push dword [ebp - 0x208]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x20c]
add esi, ecx
test eax, eax
je 0x520ff9
test ecx, ecx
je 0x520ff9
cmp esi, edi
jb 0x520fc4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x521005
mov dword [eax], esi
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00520710
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret 0x34
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00520710
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret 0x34
Function at 0x521210
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x52124d
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x521244
sub esi, ecx
push 0x58
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0054b380
add esp, 0xc
mov byte [ebp - 0x4c], 0
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xb4], 0x67452301
push esi
push edi
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.00521a60
lea ecx, [ebp - 0xb4]
call fcn.00521080
push 0x42
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0054b380
mov ebx, dword [ebp - 0xb8]
lea edi, [ebp - 0x48]
add esp, 0xc
xor esi, esi
lea esp, [esp]
movzx eax, byte [esi + ebx]
push eax
push str._02x
push 2
push 3
push edi
call fcn.005154c0
inc esi
add esp, 0x14
add edi, 4
cmp esi, 0x10
jl 0x5212e0
mov ebx, dword [ebp - 0xbc]
lea ecx, [ebp - 0x48]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x521320
sub ecx, edx
lea eax, [ebp - 0x48]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0042daa0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret