joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe02
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x639354]
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]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.00521b30
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00560a80
add esp, 0xc
cmp byte [0x64360c], bl
jne 0x521df1
xor eax, eax
mov dword [ebp - 0x230], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.005220c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.00516e50
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x521df8
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x521e44
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x521e44
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x521e3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x521ecd
push edx
push ecx
call fcn.0055c524
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x521e6c
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.00447d20
add esp, 0x18
jmp 0x521e7a
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.005220c0
cmp byte [ebp - 0x232], 0
je 0x521eb0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3
Function at 0x5221d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe90
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x639354]
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 0x5223e0
cmp dword [ebp - 0x248], 0xffffffff
je 0x5223e0
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 0x5223a9
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x522320
jmp 0x5222b0
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.0056b422
add esp, 8
test eax, eax
jne 0x5222fe
cmp edi, ebx
je 0x5222df
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x5222fe
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.0042a4f0
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 0x5222b0
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 0x5223a9
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 0x522394
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x522394
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x522394
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 0x52239d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x522330
jmp 0x5223a3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x5223dc
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x5223d2
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x522402
push ebx
push esi
call fcn.0055c524
add esp, 8
mov eax, edi
jmp 0x5223e6
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3
Function at 0x523f00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b005d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x639354]
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 0x523f37
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x524098
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x523f51
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x524098
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x524098
push esi
lea ecx, [ebp - 0x28]
call fcn.0043f520
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 0x524041
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 0x523fc1
mov edi, edi
cmp ecx, edx
je 0x524041
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x523fb0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x524041
cmp ebx, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, ebx
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0042e330
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004411c0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x524058
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x524035
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5240c4
push edx
push ecx
call fcn.0055c524
add esp, 8
jmp 0x524058
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
cmp dword [ebp - 0x18], 0
je 0x5240b8
lea eax, [ebp - 0x28]
push eax
call fcn.00523f00
add esp, 4
test eax, eax
je 0x5240b8
cmp dword [esi + 0x14], 8
jb 0x524076
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x524090
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5240b8
lea ecx, [ebp - 0x28]
call fcn.0042ab30
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.0055c3a9
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.0042ab30
xor eax, eax
jmp 0x52409d
call fcn.0056af64
int3
Function at 0x5253f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00527040
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x525433
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 0x525433
test al, 0x10
je 0x525433
mov bl, 1
jmp 0x525435
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x52546b
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x525461
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52547c
push edx
push ecx
call fcn.0055c524
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3

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

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b056d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
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 0x5269bd
mov esi, dword [ebp + 0xc]
jg 0x52687d
test esi, esi
je 0x5269bd
cmp dword [ebx], 0xffffffff
je 0x5269bd
push esi
lea ecx, [ebp - 0x1c]
call fcn.00526a40
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
cmp esi, ecx
jae 0x5268bc
lea ebx, [edi + esi]
jmp 0x5268ec
jbe 0x5268ef
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x5268dc
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00522ab0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x5268ef
sub esi, ecx
push esi
push 0
push ebx
call fcn.00560a80
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 0x52697a
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x526945
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x5269e8
push eax
call fcn.0055c4f4
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x5269ed
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x526959
test ecx, ecx
je 0x526957
push ecx
call fcn.0055c4f4
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x526959
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.00560500
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x5269a7
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x52699d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5269ed
push ecx
push edi
call fcn.0055c524
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.0042a210
call fcn.0056af64
int3
Function at 0x529420
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
je 0x52943d
cmp edi, 0x18
je 0x52943d
cmp edi, 0x20
jne 0x529614
shr edi, 2
mov ecx, 4
cmp edi, ecx
mov eax, edi
push esi
mov esi, dword [ebp + 0x10]
cmovb eax, ecx
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test esi, esi
je 0x529613
mov dword [esi], 0x10
push ebx
mov dword [esi + 4], eax
xor ebx, ebx
add esi, 8
mov dword [ebp + 0x10], esi
test edi, edi
je 0x5294ad
mov edx, dword [ebp + 8]
add edx, 2
mov edi, edi
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esi + ebx*4], ecx
inc ebx
cmp ebx, edi
jl 0x529480
mov eax, dword [ebp - 8]
mov ebx, dword [esi + ebx*4 - 4]
mov ecx, edi
cmp edi, eax
jge 0x52958f
mov dword [ebp + 0xc], 0
mov dword [ebp - 4], esi
mov eax, ecx
cdq
idiv edi
test edx, edx
jne 0x529525
mov eax, dword [ebp + 0xc]
cdq
idiv edi
mov dl, byte [eax + 0x5d8b28]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + str.cw]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx ebx, byte [ebx + str.cw]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp + 0x10]
jmp 0x529572
cmp edi, 6
jbe 0x529572
cmp edx, 4
jne 0x529572
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 0xc]
xor ebx, dword [eax]
add eax, 4
mov dword [esi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x5294c5
xor edi, edi
sub ecx, 1
js 0x529612
lea eax, [esi + eax*4]
mov dword [ebp + 0xc], eax
mov ebx, dword [esi + ecx*4]
cmp edi, 4
jl 0x529602
cmp ecx, 4
jb 0x529602
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x5d7f28]
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x5d8328]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x5d7b28]
movzx eax, bl
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x5d8728]
mov eax, dword [ebp + 0xc]
jmp 0x529604
mov edx, ebx
mov dword [eax], edx
inc edi
add eax, 4
sub ecx, 1
mov dword [ebp + 0xc], eax
jns 0x5295a0
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x529910
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 0x529931
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x529925
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x5299e8
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 0x529960
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x5d8b90]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x5d8b90]
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 0x5299d4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x5d8b90]
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 0x5299d1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x5d8b90]
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 0x529960
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x529c80
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 0x529d81
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 0x529d55
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 0x529d40
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 0x529d6b
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 0x529d6b
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 0x529cc0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52a3d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x52a40d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52a404
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x54], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.0052ad40
cmp byte [ebp - 0x54], 0
jne 0x52a593
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xc]
mov ebx, dword [ebp - 0xbc]
lea esi, [ebp - 0xac]
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x54], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc0], eax
jmp 0x52a4c0
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 4]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x52a4c0
mov edx, edi
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0xbc]
push eax
push 0x5d8c28
call fcn.0052ad40
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0052ad40
lea edx, [ebp - 0x64]
lea esi, [ebp - 0xbc]
mov edi, edi
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 0x54]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x52a530
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
push 0x42
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea ebx, [ebp - 0x50]
xor edi, edi
xor esi, esi
lea ebx, [ebx]
movzx eax, byte [ebp + edi - 0x64]
push eax
push 0x5d8c1c
mov eax, 0x21
push 2
sub eax, esi
push eax
push ebx
call fcn.0051b830
add esi, 2
lea edi, [edi + 1]
add esp, 0x14
add ebx, 4
cmp esi, 0x20
jl 0x52a5b0
mov ebx, dword [ebp - 0xd0]
lea ecx, [ebp - 0x50]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52a601
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0042e330
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x52e6e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x643630], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
je 0x52e747
mov ecx, 0x643630
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52e720
sub ecx, edx
push ecx
push 0x643630
mov ecx, ebx
call fcn.00438630
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push 0
push 0x643630
push 0x52f3d0
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 0x52e7b2
mov ecx, 0x643630
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52e791
sub ecx, edx
push ecx
push 0x643630
lea ecx, [ebp - 0x1c]
call fcn.00438630
xor edx, edx
lea ecx, [ebp - 0x1c]
lea esi, [edx + 2]
jmp 0x52e7d1
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov edx, 4
mov dword [ebp - 0x20], 0xf
xor esi, esi
mov eax, dword [ecx]
mov dword [ebx], 0
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 0x52e84c
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x52e84c
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52e842
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52e893
push edx
push ecx
call fcn.0055c524
add esp, 8
pop edi
test esi, esi
pop esi
je 0x52e882
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x52e882
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52e878
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52e893
push edx
push ecx
call fcn.0055c524
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3