joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af160
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x664], eax
push ebp
push esi
mov esi, dword [esp + 0x674]
lea edx, [esp + 0x464]
push edi
mov dword [esp + 0xc], esi
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4af190
lea eax, [esp + 0x468]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4af1b0
mov ecx, dword [0x6e3bcc]
mov dx, word [0x6e3bd0]
mov dword [eax], ecx
mov word [eax + 4], dx
lea edx, [esp + 0x260]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4af1e0
lea edi, [esp + 0x260]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af200
mov eax, dword [0x6e3bc8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
xor eax, eax
cmp ebp, 0xffffffff
je 0x4af392
jmp 0x4af240
movzx ecx, word [esp + eax + 0x260]
mov word [esp + eax + 0x468], cx
add eax, 2
test cx, cx
jne 0x4af240
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4af371
lea ecx, [esp + 0x40]
push ecx
call fcn.004af0e0
add esp, 4
test eax, eax
jne 0x4af260
lea eax, [esp + 0x40]
mov edx, eax
jmp 0x4af290
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af290
lea edi, [esp + 0x264]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4af2b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af2b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, 0x10
je 0x4af321
lea edx, [esp + 0x264]
push edx
call fcn.004af160
add esp, 4
test eax, eax
je 0x4af37c
lea eax, [esp + 0x264]
push eax
call ebx
xor eax, eax
jmp 0x4af300
movzx ecx, word [esp + eax + 0x46c]
mov word [esp + eax + 0x264], cx
add eax, 2
test cx, cx
jne 0x4af300
mov esi, dword [esp + 0x10]
jmp 0x4af260
test al, 1
je 0x4af33a
lea ecx, [esp + 0x264]
push 0x80
push ecx
call fcn.0069bd9d
add esp, 8
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4af37c
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x46c]
mov word [esp + eax + 0x264], cx
add eax, 2
test cx, cx
jne 0x4af350
mov esi, dword [esp + 0x10]
jmp 0x4af260
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4af387
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4af391
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
pop ebx
mov ecx, dword [esp + 0x670]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0069528d
add esp, 0x668
ret
Function at 0x4af420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7dcee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push edi
push 0
push 0
call ebx
mov esi, eax
lea eax, [esi + esi + 2]
call fcn.00697040
mov edi, esp
push edi
push esi
call ebx
push 1
push 0x188
lea eax, [esi + 1]
push str..FilesSupportWin32Support_FileM.cpp
push eax
call fcn.00693100
add esp, 0x10
push 0
push 0
push esi
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0069528d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7dcee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi + esi + 2]
call fcn.00697040
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4af510
test al, 0x50
jne 0x4af510
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0069528d
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0069528d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7dcee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi + esi + 2]
call fcn.00697040
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4af5a0
test al, 0x10
je 0x4af5a0
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0069528d
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0069528d
mov esp, ebp
pop ebp
ret
Function at 0x4c2360
Capabilities:
Encode data using base64

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x4c24c6
push ebx
push ebp
mov ebp, dword [esp + 0x18]
lea esp, [esp]
movzx eax, byte [ebp]
dec dword [esp + 0x1c]
mov byte [esp + edi + 0x20], al
mov bl, byte [esp + 0x22]
mov dl, byte [esp + 0x21]
mov al, byte [esp + 0x20]
inc edi
inc ebp
cmp edi, 3
jne 0x4c2411
mov cl, al
shr cl, 2
mov byte [esp + 0x10], cl
movzx edi, byte [esp + 0x10]
and al, 3
shl al, 4
mov cl, dl
shr cl, 4
add al, cl
mov cl, dl
and cl, 0xf
add cl, cl
shr bl, 6
add cl, cl
add cl, bl
mov bl, byte [esp + 0x22]
and bl, 0x3f
mov byte [esp + 0x13], bl
movzx ebx, byte [edi + 0x6e4768]
movzx eax, al
mov byte [esi], bl
movzx eax, byte [eax + 0x6e4768]
mov bl, byte [esp + 0x22]
movzx ecx, cl
mov byte [esi + 1], al
movzx eax, byte [ecx + 0x6e4768]
movzx ecx, byte [esp + 0x13]
mov byte [esi + 2], al
movzx eax, byte [ecx + 0x6e4768]
mov byte [esi + 3], al
mov al, byte [esp + 0x20]
add esi, 4
xor edi, edi
cmp dword [esp + 0x1c], 0
jne 0x4c2380
test edi, edi
je 0x4c24bd
cmp edi, 3
jge 0x4c244c
mov ecx, 3
sub ecx, edi
push ecx
lea eax, [esp + edi + 0x24]
push 0
push eax
call fcn.00695690
mov bl, byte [esp + 0x2e]
mov dl, byte [esp + 0x2d]
mov al, byte [esp + 0x2c]
add esp, 0xc
mov cl, al
shr cl, 2
and al, 3
mov byte [esp + 0x10], cl
mov cl, dl
shl al, 4
shr cl, 4
add al, cl
and dl, 0xf
mov byte [esp + 0x11], al
add dl, dl
mov al, bl
shr al, 6
add dl, dl
add dl, al
and bl, 0x3f
lea ecx, [edi + 1]
xor eax, eax
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], bl
test ecx, ecx
jle 0x4c24a3
jmp 0x4c2490
movzx edx, byte [esp + eax + 0x10]
mov dl, byte [edx + 0x6e4768]
mov byte [esi], dl
inc eax
inc esi
cmp eax, ecx
jl 0x4c2490
cmp edi, 3
jge 0x4c24bd
mov ebx, 3
sub ebx, edi
push ebx
push 0x3d
push esi
call fcn.00695690
add esp, 0xc
add esi, ebx
pop ebp
pop ebx
pop edi
mov byte [esi], 0
pop esi
pop ecx
ret
pop edi
mov byte [esi], 0
pop esi
pop ecx
ret
Function at 0x4c5d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, eax
push esi
call fcn.004ec0f0
push 0x6db314
push esi
call fcn.0044c1b0
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
je 0x4c5e54
push ebp
push edi
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], 0x43534948
call fcn.00697336
push esi
call fcn.0069c57f
push esi
push 1
lea ecx, [esp + 0x34]
push 4
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ebx
call fcn.00697336
add esp, 0x24
mov edi, 0xa1b048
mov eax, dword [edi]
cmp eax, ebx
je 0x4c5df0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c5d80
push esi
sub eax, edx
push 4
lea edx, [esp + 0x1c]
push 1
push edx
mov dword [esp + 0x24], eax
call fcn.00697336
mov eax, dword [esp + 0x24]
mov ecx, dword [edi]
push esi
push eax
push 1
push ecx
call fcn.00697336
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 3]
and eax, 0xfffffffc
sub eax, ecx
add esp, 0x20
cmp eax, ebx
jle 0x4c5ddd
mov ebp, eax
push esi
push 1
lea edx, [esp + 0x1b]
push 1
push edx
mov byte [esp + 0x23], 0xf0
call fcn.00697336
add esp, 0x10
sub ebp, 1
jne 0x4c5dc1
push esi
push 1
lea eax, [edi + 4]
push 4
push eax
call fcn.00697336
add esp, 0x10
jmp 0x4c5e15
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], ebx
call fcn.00697336
push esi
push 1
lea edx, [esp + 0x34]
push 4
push edx
call fcn.00697336
add esp, 0x20
add edi, 8
cmp edi, 0xa1b098
jb 0x4c5d75
push esi
call fcn.0069c57f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push esi
call fcn.00699333
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.00697336
push esi
call fcn.00696ca7
add esp, 0x24
pop edi
pop ebp
pop esi
mov byte [0xa1b03c], bl
pop ebx
add esp, 0x18
ret
Function at 0x52b940
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x7dcee0]
xor eax, ebp
mov dword [ebp + 0xb0], eax
movsd xmm0, qword [0x6d89a0]
push esi
push edi
lea eax, [ebp - 0x80]
push eax
push str.kernel32.dll
movsd qword [ebp - 0x7c], xmm0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
call fcn.00697040
mov ecx, dword [ebp - 0x80]
mov edi, esp
push edi
push esi
push ecx
push str.kernel32.dll
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x52b9e5
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x74]
push eax
push 0x6e3bc8
push edi
mov dword [ebp - 0x74], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x52b9e5
mov eax, dword [ebp - 0x74]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
cvtsi2sd xmm0, ecx
mulsd xmm0, qword [0x6e32c8]
cvtsi2sd xmm1, edx
addsd xmm0, xmm1
ucomisd xmm0, qword [0x6d89a0]
lahf
movsd qword [ebp - 0x7c], xmm0
test ah, 0x44
jp 0x52ba24
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x52ba24
mov ecx, dword [ebp - 0x68]
fild dword [ebp - 0x68]
test ecx, ecx
jge 0x52ba0a
fadd dword [0x6db47c]
mov edx, dword [ebp - 0x64]
fmul qword [0x6e32c8]
fild dword [ebp - 0x64]
test edx, edx
jge 0x52ba20
fadd dword [0x6db47c]
faddp st(1)
jmp 0x52ba27
fld qword [ebp - 0x7c]
lea esp, [ebp - 0x88]
pop edi
pop esi
mov ecx, dword [ebp + 0xb0]
xor ecx, ebp
call fcn.0069528d
add ebp, 0xb4
mov esp, ebp
pop ebp
ret

Function at 0x52bd70
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x18
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
push 0x14
lea eax, [esp + 0x10]
push eax
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xfde9
call ebx
push 1
mov esi, eax
push 0x46
lea edx, [esi + esi + 2]
push str.c:hudsonGMBaseGMRedGameMakerRunnerVC_RunnerPlatformMemoryManager.h
push edx
call fcn.00693100
add esp, 0x10
push 0
push 0
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
push 0
push 0xfde9
call ebx
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0069528d
add esp, 0x18
ret
Function at 0x52c2e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1810
call fcn.00697010
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0x180c], eax
push edi
mov edi, dword [esp + 0x1818]
push str.SOFTWAREMicrosoftCryptography
lea eax, [esp + 0x814]
push 0x400
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
call fcn.00697c23
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x20119
push 0
lea edx, [esp + 0x81c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x52c3eb
push ebx
push str.MachineGuid
lea eax, [esp + 0x1018]
push 0x400
push eax
mov dword [esp + 0x1c], 0x400
call fcn.00697c23
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x1024]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x52c3db
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52c3a5
push esi
sub eax, edx
sar eax, 1
push 1
mov esi, eax
push 0x46
lea eax, [esi + 1]
push str.c:hudsonGMBaseGMRedGameMakerRunnerVC_RunnerPlatformMemoryManager.h
push eax
call fcn.00693100
push esi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [edi], eax
call fcn.0069bca9
add esp, 0x1c
pop esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x52c3fa
push str.NOT_SUPPORTED
call fcn.005410f0
add esp, 4
mov dword [edi], eax
mov ecx, dword [esp + 0x1810]
pop edi
xor ecx, esp
call fcn.0069528d
add esp, 0x1810
ret
Function at 0x52c4c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
push ebp
push esi
push edi
push str.GetLogicalProcessorInformation
xor esi, esi
push str.kernel32
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
jne 0x52c511
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
pop edi
pop esi
mov dword [ecx], eax
mov dword [edx], eax
pop ebp
add esp, 0x2c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x52c578
call ebx
cmp eax, 0x7a
jne 0x52c560
test esi, esi
je 0x52c538
push esi
call fcn.00695d3f
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.006955b9
mov esi, eax
add esp, 4
test esi, esi
jne 0x52c518
push str._nError:_Allocation_failure_n
call fcn.0069c227
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
call ebx
push eax
push str._nError__d_n
call fcn.0069c227
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
cmp dword [esp + 0x10], 0x18
jb 0x52c5be
mov edi, 0x18
mov eax, dword [esi + edi - 0x14]
cmp eax, 3
ja case.default.0x52c58d
jmp dword [eax*4 + 0x52c5d8]
mov edx, dword [esi + edi - 0x18]
push edx
inc ebp
call fcn.0052c450
add esp, 4
add dword [esp + 0x14], eax
jmp case.0x52c58d.1
push str._nError:_Unsupported_LOGICAL_PROCESSOR_RELATIONSHIP_value._n
call fcn.0069c227
add esp, 4
add edi, 0x18
cmp edi, dword [esp + 0x10]
jbe 0x52c584
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
pop ebx
pop edi
mov dword [eax], ebp
pop esi
mov dword [ecx], edx
pop ebp
add esp, 0x2c
ret
Function at 0x56d4b0
Capabilities:
Read file on windows

Disassembly:
jmp 0x601900
mov eax, dword [esp + 4]
push esi
push 0x6dcb94
push eax
call fcn.0069ae47
mov esi, eax
add esp, 8
test esi, esi
jne 0x60191b
pop esi
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.00699333
push esi
call fcn.0069c57f
mov ebx, dword [esp + 0x24]
push 0
push 0
push esi
mov dword [ebx], eax
call fcn.00699333
mov ecx, dword [0xa39560]
mov eax, dword [ebx]
add esp, 0x1c
test ecx, ecx
je 0x60195b
push 0x4a
push str.._spine_c_src_spineextension.c
push eax
call ecx
add esp, 0xc
jmp 0x601965
push eax
call dword [0x7dc8f8]
add esp, 4
mov ecx, dword [ebx]
push esi
push ecx
mov edi, eax
push 1
push edi
call fcn.006986f1
push esi
call fcn.00696ca7
add esp, 0x14
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x595860
Capabilities:
Terminate process

Disassembly:
push eax
push 0x766148
call fcn.0069691c
add eax, 0x40
push eax
call fcn.0069534a
add esp, 0xc
push 0x6d9738
call fcn.0069691c
add eax, 0x40
push eax
call fcn.0069534a
add esp, 8
test esi, esi
je 0x5958a0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5958a0
push 1
push esi
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x59a7d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x59a97a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x59a828
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x59a83b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x59a84f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x59a896.3
jmp 0x59a860
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x59a86c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x59a871
mov esi, 1
inc eax
cmp eax, edi
jl 0x59a860
cmp si, cx
je case.0x59a896.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x59a896.3
movzx eax, byte [eax + 0x59a994]
jmp dword [eax*4 + 0x59a980]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x59a896.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x59a8b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x59a896.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x59a8f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x59a896.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x59a916
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x59a896.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x59a940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5b7710
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x5b77a6
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x5b775d
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x773390]
inc edx
cmp edx, esi
jl 0x5b7741
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x5b7781
mov edi, dword [ecx + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x773390]
inc edx
cmp edx, esi
jl 0x5b7767
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret

Function at 0x5c1180
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5c11af
push esi
call fcn.005c6b40
add esp, 4
cmp byte [esi + 0x40], 0
je 0x5c11a8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5c1229
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x5c1219
mov eax, dword [esi + 8]
test eax, eax
je 0x5c11d4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x5c1215
cmp eax, 2
je 0x5c1219
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5c11c5
cmp eax, 3
je 0x5c11fc
cmp eax, 1
jne 0x5c11c5
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x5c11c5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x5c11c5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.005c0e50
pop esi
ret
cmp eax, 0xcc
je 0x5c124b
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.005c0e50
pop esi
ret
Function at 0x5cc300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x5cc327
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5cc333
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x5cc446
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x5cc378
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x5cc399
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x5cc3ef
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x5cc3d0
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x5cc3d0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x5cc3b6
cmp dword [esp + 0x10], 0
je 0x5cc42d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x5cc410
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x5cc370
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x5d1ff0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
test byte [ecx], 8
jne 0x5d2008
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5d201e
push 1
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x5d2033
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [esp + 0x10]
push 1
push eax
call fcn.006986f1
add esp, 0x10
cmp eax, 1
je 0x5d2043
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov al, byte [esp + 8]
cmp al, 0x21
je 0x5d208a
cmp al, 0x2c
je 0x5d2079
cmp al, 0x3b
je 0x5d2068
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov dword [esi + 0x40], 0x6b
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
mov dword [edx], 4
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
mov dword [eax], 2
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 3
mov eax, 1
pop esi
ret