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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [0x5ac300], 0
je 0x472163
mov eax, dword [0x5ac300]
push eax
push 0x57ea58
lea ecx, [ebp - 0x114]
push ecx
push 0xe6
call fcn.0045d770
add esp, 0x10
jmp 0x472244
call fcn.004737d0
test eax, eax
je 0x4721d9
lea eax, [ebp - 0x320]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x320]
push eax
call fcn.004b3900
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4721cd
mov eax, dword [ebp - 0x118]
push eax
push 0x57ea58
lea ecx, [ebp - 0x114]
push ecx
push 0xe6
call fcn.0045d770
add esp, 0x10
mov eax, dword [ebp - 0x118]
push eax
call fcn.004dbc6f
add esp, 4
jmp 0x4721d7
mov eax, 7
jmp 0x472330
jmp 0x472244
lea eax, [ebp - 0x428]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x428]
push eax
call fcn.004b28b0
add esp, 4
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x47223a
mov eax, dword [ebp - 0x324]
push eax
push 0x57ea58
lea ecx, [ebp - 0x114]
push ecx
push 0xe6
call fcn.0045d770
add esp, 0x10
mov eax, dword [ebp - 0x324]
push eax
call fcn.004dbc6f
add esp, 4
jmp 0x472244
mov eax, 7
jmp 0x472330
lea eax, [ebp - 0x114]
push eax
call fcn.004a09d0
add esp, 4
mov dword [ebp - 8], eax
jmp 0x472261
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x472279
mov eax, dword [ebp - 8]
movsx ecx, byte [ebp + eax - 0x115]
cmp ecx, 0x5c
jne 0x472279
jmp 0x472258
mov eax, dword [ebp - 8]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0x105
jae 0x472290
jmp 0x472295
call fcn.004dd09f
mov ecx, dword [ebp - 0x46c]
mov byte [ebp + ecx - 0x114], 0
lea eax, [ebp - 0x114]
push eax
push str._setilqs_
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
sub edx, 0x1e
push edx
call fcn.0045d770
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a09d0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
push eax
push 0x14
call fcn.0045da30
add esp, 8
mov dword [ebp - 8], 0
jmp 0x4722fd
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 0x14
jae 0x472325
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx eax, byte [eax]
xor edx, edx
mov ecx, 0x3e
div ecx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov cl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [eax], cl
jmp 0x4722eb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
Function at 0x49eee0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x49eef6
xor eax, eax
jmp 0x49f090
push 0x44
mov eax, dword [ebp + 8]
push eax
call fcn.004894e0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49ef14
xor eax, eax
jmp 0x49f090
mov eax, dword [ebp + 0x10]
or eax, 2
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048e870
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049f700
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048dcf0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048e870
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048dcf0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048e870
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049eee0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048dcf0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048dcf0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
and ecx, 0xfffffff7
mov edx, dword [ebp - 4]
mov word [edx + 6], cx
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x38], 0xffffffff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x38], 0xffffffff
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x38], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc620
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cd18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59de30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4bc65a
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [esi + 8]
push ebx
push 0x5631bc
push 1
push 0
push 0x56315c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4bc705
cmp dword [ebx], 0
je 0x4bc6df
push 0x562f80
lea ecx, [ebp - 0x10]
call fcn.004bc370
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x4bc6b3
mov edi, dword [eax]
jmp 0x4bc6b5
xor edi, edi
mov ecx, dword [ebx]
lea eax, [esi + 4]
mov edx, dword [ecx]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [edx + 0xc]
lea ecx, [ebp - 0x10]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004bc460
test edi, edi
js 0x4bc705
mov eax, dword [esi + 4]
test eax, eax
je 0x4bc701
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test edi, edi
jns 0x4bc73b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4bc712
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4bc71e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x4bc72a
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [ebx], 0
mov byte [esi + 0xc], 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

Function at 0x4bdef0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
pop ebp
ret
Function at 0x4f65f2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004e46da
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4f662a
xor eax, eax
jmp 0x4f6656
cmp esi, dword [ebp - 4]
je 0x4f6653
cmp dword [ebp + 0xc], 0
je 0x4f6653
push dword [edi + 0x9c]
call fcn.004f6200
push dword [edi + 0x9c]
mov esi, eax
call fcn.004e17b8
pop ecx
pop ecx
cmp esi, eax
je 0x4f6626
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4f6fff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004ebb13
mov dword [ebp - 0x14], eax
cmp dword [0x5ad740], edi
jne 0x4f70f0
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4f707d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4f71d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4f71d0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f71d0
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x5ad740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x5ad744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5ad748], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ad750], eax
test eax, eax
je 0x4f70ed
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5ad74c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4f7115
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f7108
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4f712a
push 4
pop eax
jmp 0x4f71d2
cmp dword [ebp - 0x14], edi
je 0x4f712a
push dword [0x5ad740]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4f710f
mov eax, dword [0x5ad74c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4f7188
cmp dword [0x5ad750], esi
je 0x4f7188
push eax
call ebx
push dword [0x5ad750]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f7188
test eax, eax
je 0x4f7188
call ecx
test eax, eax
je 0x4f717d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4f717d
test byte [ebp - 8], 1
jne 0x4f7188
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4f71b8
mov eax, dword [0x5ad744]
cmp eax, esi
je 0x4f71b5
push eax
call ebx
test eax, eax
je 0x4f71b5
call eax
mov edi, eax
test edi, edi
je 0x4f71b5
mov eax, dword [0x5ad748]
cmp eax, esi
je 0x4f71b5
push eax
call ebx
test eax, eax
je 0x4f71b5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5ad740]
call ebx
test eax, eax
je 0x4f71d0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4f71d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da4c1
leave
ret
Function at 0x507555
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push edi
xor ebx, ebx
call fcn.005074ff
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x5075d5
push 1
push esi
call fcn.005074ff
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
test al, al
je 0x5075d8
mov ecx, edx
shr ecx, 2
mov eax, ebx
test ecx, ecx
je 0x5075ad
mov edx, edi
sub edx, esi
mov dword [ebp - 4], ecx
mov edi, esi
mov eax, dword [edx + edi]
xor eax, dword [edi]
lea edi, [edi + 4]
or ebx, eax
dec ecx
jne 0x507597
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
shl eax, 2
sub edx, eax
jne 0x5075ba
xor eax, eax
test ebx, ebx
jmp 0x5075ed
add edi, eax
add esi, eax
mov ecx, ebx
mov eax, ebx
shr eax, 0x10
shr ecx, 0x18
or cl, al
mov eax, ebx
shr eax, 8
or cl, al
or bl, cl
jmp 0x5075d8
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x5075e9
sub edi, esi
mov al, byte [esi + edi]
xor al, byte [esi]
or bl, al
inc esi
dec edx
jne 0x5075de
xor eax, eax
test bl, bl
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x5075f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
push ebx
call fcn.005074ff
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x507676
push 1
push edi
call fcn.005074ff
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
test al, al
je 0x507679
push 1
push esi
call fcn.005074ff
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
test al, al
je 0x50767c
mov edx, ecx
shr edx, 2
xor eax, eax
test edx, edx
je 0x507667
mov ecx, edi
mov eax, ebx
sub ecx, esi
sub eax, esi
mov dword [ebp - 8], edx
mov ebx, esi
mov edi, eax
mov eax, dword [ecx + ebx]
xor eax, dword [ebx]
mov dword [edi + ebx], eax
lea ebx, [ebx + 4]
dec edx
jne 0x50764d
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
shl eax, 2
sub ecx, eax
je 0x507690
add ebx, eax
add edi, eax
add esi, eax
jmp 0x50767c
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x507690
sub edi, esi
sub ebx, esi
mov al, byte [esi + edi]
xor al, byte [esi]
mov byte [esi + ebx], al
inc esi
dec ecx
jne 0x507684
pop edi
pop esi
pop ebx
leave
ret

Function at 0x507695
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call fcn.005074ff
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
je 0x5076f7
push 1
push edi
call fcn.005074ff
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
test al, al
je 0x5076fa
mov edx, ecx
shr edx, 2
xor eax, eax
test edx, edx
je 0x5076ea
mov eax, edi
push ebx
sub eax, esi
mov ebx, esi
mov dword [ebp - 8], edx
mov esi, eax
mov eax, dword [esi + ebx]
xor dword [ebx], eax
lea ebx, [ebx + 4]
dec edx
jne 0x5076d8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
pop ebx
shl eax, 2
sub ecx, eax
je 0x507709
add esi, eax
add edi, eax
jmp 0x5076fa
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x507709
sub edi, esi
mov al, byte [esi + edi]
xor byte [esi], al
inc esi
dec ecx
jne 0x507700
pop edi
pop esi
leave
ret
Function at 0x508077
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x54c892
call fcn.004e0221
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x50817b
cmp byte [esi + 0x45], bl
je 0x50817b
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x5080af
xor al, al
jmp 0x50817d
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.0042f620
lea eax, [esi + 0x48]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, edx
lea esi, [ebp - 0x28]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [ebp - 0x30]
call dword [edx + 0x20]
sub eax, ebx
je 0x50810a
dec eax
jne 0x508162
mov esi, dword [ebp - 0x2c]
jmp 0x508110
mov esi, dword [ebp - 0x2c]
mov byte [esi + 0x45], bl
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x34]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub edi, eax
je 0x508148
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.004e35f7
add esp, 0x10
cmp edi, eax
jne 0x50816b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [esi + 0x45], 0
je 0x508169
test edi, edi
jne 0x5080d6
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00415890
jmp 0x5080d0
dec eax
dec eax
jne 0x50816f
inc eax
jmp 0x50816d
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x28]
call fcn.00401470
mov al, bl
jmp 0x50817d
mov al, 1
call fcn.004e01df
ret

Function at 0x509f34
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x509f5e
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push 0x20
push 0x56aa90
push dword [ebp + 8]
call fcn.004dc550
add esp, 0xc
pop ebp
ret
Function at 0x50edc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x50ee11
push 0xc
call fcn.004dafcb
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x50edff
mov eax, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
pop esi
pop ebp
jmp 0x50f000
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
pop esi
pop ebp
jmp 0x50f000
pop esi
pop ebp
ret
push esi
push 0xc
mov esi, ecx
call fcn.004dafcb
add esp, 4
mov dword [eax], esi
mov edx, dword [esi + 4]
push 0
push 4
push eax
push 0x50ee20
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
push 0
push 0
mov dword [eax + 8], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
jmp dword [sym.imp.KERNEL32.dll_SwitchToThread]

Function at 0x5109a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push 8
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x510a1e
call esi
cmp eax, 0x3f0
jne 0x5109ff
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x510a1e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x510a08
call esi
cmp eax, 0x7a
jne 0x510a08
mov esi, dword [ebp - 0x18]
mov eax, esi
call fcn.004e3730
mov ebx, esp
test ebx, ebx
je 0x510a08
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x510a08
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x510a08
xor esi, esi
mov byte [ebp - 0xd], 0
cmp dword [ebx], esi
jbe 0x510ab0
lea edi, [ebx + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x510aac
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x510a93
jmp 0x510ab0
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
Function at 0x5202e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
push 1
mov ebx, dword [eax + 4]
push edi
mov dword [ebp - 4], eax
call fcn.005074ff
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
test al, al
jne 0x52032d
test esi, esi
je 0x52032d
movzx eax, byte [edi]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x56d818]
inc edi
push 1
push edi
dec esi
call fcn.005074ff
jmp 0x520305
cmp esi, 4
jb 0x520376
mov ecx, esi
shr ecx, 2
xor ebx, dword [edi]
sub esi, 4
movzx eax, bl
shr ebx, 8
xor ebx, dword [eax*4 + 0x56d818]
add edi, 4
movzx eax, bl
shr ebx, 8
xor ebx, dword [eax*4 + 0x56d818]
movzx eax, bl
shr ebx, 8
xor ebx, dword [eax*4 + 0x56d818]
movzx eax, bl
shr ebx, 8
xor ebx, dword [eax*4 + 0x56d818]
dec ecx
jne 0x520337
test esi, esi
je 0x520390
movzx eax, byte [edi]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x56d818]
inc edi
dec esi
jne 0x52037a
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [eax + 4], ebx
pop ebx
leave
ret 8
Function at 0x534f77
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor edx, edx
push esi
mov dword [ebp - 0x14], edx
push edi
movzx edi, byte [edx + 0x56ed40]
mov eax, edi
shr eax, 5
mov edx, eax
mov ebx, eax
and eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
lea ecx, [edi + edi]
xor ecx, edi
and edx, 4
lea eax, [ecx + ecx]
xor eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
shl eax, 0x19
mov dword [ebp - 4], eax
mov edx, edi
shr edi, 7
mov eax, edi
imul edi, edi, 0x11b
imul eax, eax, 0x1b000000
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x1b000000
xor dword [ebp - 4], eax
and ebx, 2
mov eax, ebx
imul eax, eax, 0x1b000000
xor dword [ebp - 4], eax
shr edx, 6
mov esi, edx
and edx, 1
mov eax, edx
imul edx, edx, 0x11b00
imul eax, eax, 0x1b000000
xor dword [ebp - 4], eax
and esi, 2
mov eax, esi
imul esi, esi, 0x11b00
imul eax, eax, 0x1b000000
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x1b000000
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
shl ecx, 2
imul eax, eax, 0x11b00
xor ecx, dword [ebp - 8]
shl ecx, 8
xor ecx, eax
mov eax, ebx
imul eax, eax, 0x11b00
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, edx
imul eax, eax, 0x11b00
mov edx, dword [ebp - 4]
xor ecx, esi
mov esi, dword [ebp - 0x10]
xor ecx, eax
or edx, ecx
mov ecx, dword [ebp - 8]
shl ecx, 3
xor ecx, dword [ebp - 8]
mov eax, esi
imul eax, eax, 0x11b0000
shl ecx, 0x10
xor ecx, eax
mov eax, ebx
imul eax, eax, 0x11b0000
xor ecx, eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x11b0000
xor ecx, eax
or edx, ecx
mov ecx, dword [ebp - 8]
shl ecx, 2
xor ecx, dword [ebp - 8]
add ecx, ecx
xor ecx, edi
imul esi, esi, 0x11b
mov eax, dword [ebp - 0xc]
imul ebx, ebx, 0x11b
imul eax, eax, 0x11b
xor ecx, esi
xor ecx, ebx
mov ebx, dword [ebp - 8]
xor ecx, eax
xor ecx, ebx
or ecx, edx
or ebx, edx
mov edx, dword [ebp - 0x14]
xor eax, eax
or eax, ebx
mov dword [edx*8 + 0x5ae458], eax
mov dword [edx*8 + 0x5ae45c], ecx
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 0x100
jl 0x534f85
pop edi
pop esi
mov byte [0x5ae451], 1
pop ebx
leave
ret

Function at 0x539a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x5382c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop esi
test eax, eax
jne 0x539a62
call fcn.00536cd0
mov ecx, dword [eax]
push str.FileDownloadManager::runThisThread:_failed_to_create_a_new_thread._Fatal_Error
push 0x557600
push eax
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret