joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f9360
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70f2d1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movq qword [edi + 4], xmm0
mov dword [edi], 0x56248c
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov dword [edi + 0x14], 0x560c38
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], 0
mov dword [edi + 0x30], 0x560c38
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov dword [edi + 0x4c], 0x560c38
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x68], 0x560c38
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
call fcn.005fb5e0
add esp, 4
push eax
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
call fcn.005f1cb0
mov dword [ebp - 0x2c], 0x560c38
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x5f9464
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0059aa90
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 0x5fa1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70f363
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.005f1cb0
lea eax, [ebx + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.005f1cb0
lea eax, [ebx + 0x4c]
push eax
lea ecx, [edi + 0x4c]
call fcn.005f1cb0
lea eax, [ebx + 0x68]
push eax
lea ecx, [edi + 0x68]
call fcn.005f1cb0
mov al, byte [ebx + 0xc]
mov byte [edi + 0xc], al
test al, al
je 0x5fa2a9
push 0x1c
call fcn.006dd216
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x5fa25e
mov ecx, dword [ebx + 0x84]
add ecx, 4
push ecx
lea ecx, [esi + 4]
call fcn.00590730
mov dword [esi], 0x560c38
jmp 0x5fa260
xor esi, esi
push 0x1c
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x84], esi
call fcn.006dd216
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x5fa2a1
mov ecx, dword [ebx + 0x88]
add ecx, 4
push ecx
lea ecx, [esi + 4]
call fcn.00590730
mov dword [esi], 0x560c38
jmp 0x5fa2a3
xor esi, esi
mov dword [edi + 0x88], 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 4
Function at 0x5fbb30
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x77fd28]
test eax, eax
jne 0x5fbb91
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x5fbb85
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x5fbb63
sub ecx, 1
je 0x5fbb74
sub ecx, 1
jne 0x5fbb68
mov eax, 1
shl eax, 0xa
or eax, 4
mov dword [0x77fd28], eax
ret
mov eax, 2
shl eax, 0xa
or eax, 4
mov dword [0x77fd28], eax
ret
mov eax, ecx
or eax, 0x800
mov dword [0x77fd28], eax
ret
Function at 0x5fc320
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70f754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
inc dword [0x77fd34]
mov eax, dword [0x77fd30]
test eax, eax
jne 0x5fc4eb
push 0x34
call fcn.006dd216
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x5fc4e1
push 0x34
push 0
push esi
call fcn.006f4190
add esp, 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0x562554
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x562560
push eax
mov dword [esi + 4], eax
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x5fc47a
push 0x56257c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi], eax
test eax, eax
je 0x5fc47a
push 0x56258c
push eax
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x5fc47a
push 0x5625a8
push dword [esi]
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x5fc47a
push 0x5625b8
push dword [esi]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x5fc47a
push 0x5625c8
push dword [esi]
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x5fc47a
push 0x5625d8
push dword [esi]
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x5fc47a
push 0x5625e8
push dword [esi]
call edi
push 0x5625f8
push dword [esi]
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x30], eax
jmp 0x5fc4e3
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x5fc4b9
push eax
call edi
mov dword [esi], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x5fc4e3
push eax
call edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
jmp 0x5fc4e3
xor esi, esi
mov dword [0x77fd30], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5fc980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70f83d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x76e964]
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
mov esi, ecx
cmp dword [esi + 0x14], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0xffffffff
je 0x5fcabc
call fcn.005f3ee0
test al, al
je 0x5fcabc
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.005f3870
cmp dword [edi + 0x14], 0
mov dword [ebp - 4], 0
jne 0x5fc9ed
xor eax, eax
jmp 0x5fc9f8
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x5fc9f8
mov eax, dword [eax]
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0x440
jb 0x5fca38
mov ecx, dword [ecx]
cmp dword [ebx + 0x14], 0
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
jne 0x5fca51
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
jmp 0x5fca5c
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
jb 0x5fca5c
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x4c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x5fca78
xor bl, bl
jmp 0x5fca95
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x5fca8a
push dword [ebp - 0x30]
call eax
mov dword [esi + 0x1c], eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov dword [ebp - 0x2c], 0x560c38
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
cmp ecx, 0x10
jb 0x5fcab8
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0059aa90
mov al, bl
jmp 0x5fcabe
xor al, al
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.006dd760
mov esp, ebp
pop ebp
ret 8
Function at 0x5fdb40
Capabilities:
Delete file

Disassembly:
add ecx, 8
cmp dword [ecx + 0x14], 0x10
jb 0x5fdb4b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret

Function at 0x600710
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70ffde
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x76e964]
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
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
push 0x562828
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x41], bl
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x600881
cmp dword [esi + 0x10], ebx
jne 0x6007ad
mov edx, dword [0x7681c4]
mov ecx, edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x600788
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.0059a870
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], ebx
lea esi, [ebp - 0x68]
push esi
lea ecx, [ebp - 0x40]
call fcn.00590730
mov dword [ebp - 4], 2
test bl, 1
je 0x6007fe
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x6007fe
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x6007f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6008a0
push edx
push ecx
call fcn.006dd246
add esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ffc90
add esp, 8
push dword [ebp - 0x4c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
mov byte [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
push edi
setne byte [ebp - 0x41]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x600851
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0059ab00
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 6
cmp ecx, 0x10
jb 0x600881
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0059aa90
mov al, byte [ebp - 0x41]
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.006dd760
mov esp, ebp
pop ebp
ret
call fcn.0060e3b4
int3
Function at 0x602d60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7102e1
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x781690]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x77fd74]
cmp eax, dword [ecx + 0x26818]
jg 0x602dc5
mov eax, 0x768288
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret
push 0x77fd74
call fcn.006dd68a
add esp, 4
cmp dword [0x77fd74], 0xffffffff
jne 0x602da7
push 0x190
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.006f4190
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x71f3e0
mov dword [0x768288], eax
call fcn.006dd533
push 0x77fd74
call fcn.006dd640
add esp, 8
jmp 0x602da7

Function at 0x603100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
push ebp
mov ebp, dword [esp + 0x40]
push esi
test ebx, ebx
je 0x60323a
test ecx, ecx
je 0x60323a
mov esi, dword [esp + 0x40]
cmp esi, 0x10
jbe 0x60323a
test ebp, ebp
je 0x60323a
push edi
mov edi, esi
mov eax, 0x10
and edi, 0xf
cmove edi, eax
cmp esi, 0x20
jbe 0x603184
cmp edi, eax
mov edx, 0x20
push ebp
cmove eax, edx
and esi, 0xfffffff0
sub esi, eax
mov eax, dword [ebx + 0x1c]
push esi
push ecx
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, esi
add ebp, esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
lea eax, [ecx + 0x10]
push edi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.006f3c10
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
push ebx
call eax
add esp, 0x18
xor ecx, ecx
test edi, edi
je 0x6031bd
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x14]
xor byte [esp + ecx + 0x24], al
inc ecx
cmp ecx, edi
jb 0x6031b0
push edi
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.006f3c10
add esp, 0xc
test edi, edi
je 0x603225
mov eax, 0x10
sub eax, edi
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
lea eax, [esp + 0x1c]
add eax, edi
push eax
call fcn.006f3c10
lea eax, [esp + 0x20]
push eax
push eax
mov eax, dword [ebx + 0x14]
push ebx
call eax
mov eax, dword [ebx + 0x28]
add esp, 0x18
xor eax, dword [esp + 0x14]
mov dword [ebp], eax
mov ecx, dword [ebx + 0x2c]
xor ecx, dword [esp + 0x18]
mov dword [ebp + 4], ecx
mov ecx, dword [ebx + 0x30]
xor ecx, dword [esp + 0x1c]
mov dword [ebp + 8], ecx
mov ecx, dword [ebx + 0x34]
xor ecx, dword [esp + 0x20]
mov dword [ebp + 0xc], ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
mov ecx, dword [esp + 0x30]
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
Function at 0x603250
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 8], eax
push edi
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x603393
test edi, edi
je 0x603393
test ebx, ebx
je 0x603393
test eax, eax
je 0x603393
push esi
cmp eax, 0x10
jae 0x6032d2
mov esi, 0x10
sub esi, eax
add eax, 0x28
add eax, ebp
push esi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.006f3c10
push dword [esp + 0x1c]
lea eax, [esp + 0x34]
add eax, esi
push edi
push eax
call fcn.006f3c10
movups xmm0, xmmword [esp + 0x3c]
mov eax, dword [esp + 0x28]
add esp, 0x18
jmp 0x6032d7
movups xmm0, xmmword [eax + edi - 0x10]
mov esi, eax
lea ecx, [ebp + 0x28]
shr esi, 4
movups xmmword [esp + 0x14], xmm0
test esi, esi
je 0x603335
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push ebp
call eax
movups xmm0, xmmword [edi]
lea ecx, [ebp + 0x28]
add esp, 0xc
movups xmmword [ecx], xmm0
mov eax, dword [edi]
xor eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esp + 0x2c]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esp + 0x30]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub esi, 1
jne 0x6032e8
mov eax, dword [esp + 0x10]
mov esi, eax
and esi, 0xf
je 0x603377
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push ebp
call eax
add esp, 0xc
xor edx, edx
test esi, esi
je 0x603373
lea eax, [esp + 0x24]
sub edi, eax
sub ebx, eax
nop dword [eax]
lea ecx, [esp + 0x24]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, esi
jb 0x603360
mov eax, dword [esp + 0x10]
movups xmm0, xmmword [esp + 0x14]
pop esi
pop edi
movups xmmword [ebp + 0x28], xmm0
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
mov ecx, dword [esp + 0x30]
xor eax, eax
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
Function at 0x603530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, esi
mov dword [esp + 0x10], ecx
and edi, 0xf
test ebp, ebp
je 0x60365f
cmp esi, 0x10
jbe 0x60365f
mov eax, esi
and eax, 0xfffffff0
cmp eax, 0x10
jbe 0x603598
mov eax, dword [ebp + 0x18]
and esi, 0xfffffff0
push ebx
sub esi, 0x10
push esi
push ecx
push ebp
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, esi
add ebx, esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x28]
xor eax, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
xor eax, dword [ebp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
xor eax, dword [ebp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc]
xor eax, dword [ebp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push eax
mov eax, dword [ebp + 0x10]
push ebp
call eax
add esp, 0xc
test edi, edi
je 0x60363a
mov eax, dword [esp + 0x10]
add eax, 0x10
push edi
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.006f3c10
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.006f3c10
add esp, 0x18
xor ecx, ecx
test edi, edi
je 0x60360d
nop dword [eax]
mov al, byte [esp + ecx + 0x24]
xor byte [esp + ecx + 0x14], al
inc ecx
cmp ecx, edi
jb 0x603600
lea edi, [ebp + 0x28]
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ebp
call eax
movups xmm0, xmmword [edi]
add esp, 0xc
mov eax, esi
movups xmmword [ebx], xmm0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
movups xmm0, xmmword [ebx - 0x10]
pop edi
mov eax, esi
movups xmmword [ebx], xmm0
pop esi
movups xmm0, xmmword [esp + 0xc]
pop ebp
movups xmmword [ebx - 0x10], xmm0
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
Function at 0x603680
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
push ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 8], ebp
push esi
push edi
mov edi, dword [esp + 0x40]
test ebx, ebx
je 0x6037e5
mov esi, dword [esp + 0x38]
test esi, esi
je 0x6037e5
test edi, edi
je 0x6037e5
mov eax, ebp
lea ecx, [ebx + 0x28]
shr eax, 4
test eax, eax
je 0x60371d
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push ebx
call eax
mov eax, dword [esi]
lea ecx, [ebx + 0x28]
xor eax, dword [esp + 0x28]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
add esi, 0x10
xor eax, dword [esp + 0x28]
mov dword [edi + 0xc], eax
movups xmm0, xmmword [edi]
add edi, 0x10
movups xmmword [ecx], xmm0
sub ebp, 1
jne 0x6036d0
mov ebp, dword [esp + 0x10]
and ebp, 0xf
je 0x6037cc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push ebx
call eax
add esp, 0xc
xor edx, edx
test ebp, ebp
je 0x603767
lea eax, [esp + 0x1c]
sub esi, eax
lea ecx, [esp + 0x1c]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x14], eax
mov ebx, eax
nop
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, ebp
jb 0x603750
mov ebx, dword [esp + 0x18]
add edi, ebp
lea ecx, [ebx + 0x28]
mov ebp, dword [esp + 0x10]
cmp ebp, 0x10
jae 0x6037b0
mov esi, 0x10
lea eax, [ebp + 0x28]
sub esi, ebp
add eax, ebx
push esi
push eax
push ecx
call fcn.006f3c10
push ebp
sub edi, ebp
lea eax, [esi + 0x28]
add eax, ebx
push edi
push eax
call fcn.006f3c10
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006dd760
add esp, 0x20
ret
movups xmm0, xmmword [edi - 0x10]
pop edi
pop esi
mov eax, ebp
pop ebp
movups xmmword [ecx], xmm0
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006dd760
add esp, 0x20
ret
mov ebp, dword [esp + 0x10]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006dd760
add esp, 0x20
ret
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006dd760
add esp, 0x20
ret
Function at 0x603af0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0xc4
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0xc0], eax
push esi
mov esi, dword [esp + 0xcc]
lea eax, [esp + 0x41]
push 0x3f
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x48], 0
movq qword [esp + 0x40], xmm0
mov byte [esp + 0x4c], 0
call fcn.006f4190
add esp, 0xc
mov dword [esp + 0x80], 0
test esi, esi
je 0x603caf
lea eax, [esp + 0x14]
push eax
call fcn.00606460
add esp, 4
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x603bb1
push 2
call fcn.00613ce8
push eax
push 0x562958
call fcn.00615260
add esp, 0xc
jmp 0x603bea
lea eax, [esp + 0x84]
push eax
push 0x20
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x603bde
push 2
call fcn.00613ce8
push eax
push 0x562978
call fcn.00615260
add esp, 0xc
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x20
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.006064a0
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
mov dword [esp + 8], 0
xorps xmm0, xmm0
movlpd qword [esp + 0xc], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x603c6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
call fcn.00613083
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
push 0x20
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.006064a0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.00606370
push 0x20
lea eax, [esp + 0xbc]
push eax
push esi
call fcn.00603cd0
add esp, 0x20
mov dword [esi + 0x24], 1
mov ecx, dword [esp + 0xc4]
pop esi
xor ecx, esp
call fcn.006dd760
add esp, 0xc4
ret