joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c5aff
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5c5b9c
push ebx
push esi
call fcn.005c5abb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005bdd85
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5c5b49
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5c5b9b
push edi
push eax
call fcn.005b7317
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5c5b69
call fcn.005b72dd
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5c5b9a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005bdd85
add esp, 0x20
test eax, eax
jne 0x5c5b88
push edi
call fcn.005b72dd
jmp 0x5c5b90
push ebx
call fcn.005b72dd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5c5b9f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5c5bb0
pop esi
ret
push ebx
push edi
push esi
call fcn.005c5abb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005b7317
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5c5bd8
push ebx
push esi
push edi
call fcn.00568f10
add esp, 0xc
push 0
call fcn.005b72dd
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5c64c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c5e4d

Function at 0x5c6a9d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c6971

Function at 0x5c8c84
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005b6fbb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x5c8cf3
cmp esi, dword [ebp - 4]
je 0x5c8cee
cmp dword [ebp + 0xc], 0
je 0x5c8cee
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5c8ccb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005c87d6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5c8cf5
xor eax, eax
inc eax
jmp 0x5c8cf5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5c8d5a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005b6fbb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005b6fbb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5c8dd1
cmp word [ecx], dx
je 0x5c8dd1
mov eax, dword [0x63e1c4]
push edi
dec eax
push eax
push 0x63e0b0
call fcn.005c8cf9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5c8e44
cmp word [eax], dx
je 0x5c8e44
mov eax, dword [edi]
test eax, eax
je 0x5c8df5
cmp word [eax], dx
je 0x5c8df5
lea eax, [ebp - 0x10]
push eax
call fcn.005c86dc
jmp 0x5c8dfe
lea eax, [ebp - 0x10]
push eax
call fcn.005c8777
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5c8e6e
mov eax, dword [0x63e0ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x63dda0
call fcn.005c8cf9
add esp, 0xc
test al, al
je 0x5c8e6e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5c8e39
cmp word [eax], di
je 0x5c8e39
lea eax, [ebp - 0x10]
push eax
call fcn.005c86dc
pop ecx
jmp 0x5c8e70
lea eax, [ebp - 0x10]
push eax
call fcn.005c8777
jmp 0x5c8e36
mov eax, dword [edi]
test eax, eax
je 0x5c8e5b
cmp word [eax], dx
je 0x5c8e5b
lea eax, [ebp - 0x10]
push eax
call fcn.005c8673
pop ecx
jmp 0x5c8e6e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5c8f39
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005c8b7e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5c8f39
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x5c8f39
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x5c8f39
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5c8ec6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005b81da
test ebx, ebx
je 0x5c8f34
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005b81da
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x5c8f39
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x5c8f39
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005d11d4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5c8f3b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00817892
leave
ret
Function at 0x5cceb0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x689640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5ccef3
call fcn.0057640a
mov dword [eax], 0xf
call fcn.0057641d
mov dword [eax], 0xd
call fcn.005762a6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00817892
leave
ret
test eax, eax
jne 0x5ccefa
inc eax
jmp 0x5ccee7
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5ccee5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5ccee7
Function at 0x5d1a59
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005d187d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5d1bc8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5d1bc8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5d1b7d
jg 0x5d1ab5
test eax, eax
je 0x5d1b73
push 1
push 0x1000
call fcn.005b7480
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5d1ad8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5d1b6a
push 0x8000
push ebx
call fcn.005b3f08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5d1b01
jg 0x5d1afc
cmp ecx, 0x1000
jb 0x5d1b01
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005bc31b
add esp, 0x10
cmp eax, 0xffffffff
je 0x5d1b46
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5d1afc
jl 0x5d1b2d
test ecx, ecx
jne 0x5d1aee
push dword [ebp - 0xc]
push ebx
call fcn.005b3f08
push esi
call fcn.005b72dd
add esp, 0xc
xor ebx, ebx
jmp 0x5d1bd6
cmp byte [edi + 0x24], 0
je 0x5d1b5d
cmp dword [edi + 0x20], 5
jne 0x5d1b5d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5d1b68
mov ebx, dword [edi + 0x18]
jmp 0x5d1b6a
xor ebx, ebx
push esi
call fcn.005b72dd
pop ecx
jmp 0x5d1bd6
test ecx, ecx
jg 0x5d1b3f
jl 0x5d1b7d
test eax, eax
jae 0x5d1b3f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bdc3b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5d1b9d
cmp byte [edi + 0x1c], 0
je 0x5d1b3f
jmp 0x5d1bce
push ebx
call fcn.005bad4a
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x5d1b3f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5d1bd6
cmp byte [edi + 0x1c], 0
je 0x5d1bd3
mov ebx, dword [edi + 0x18]
jmp 0x5d1bd6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005bdc3b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d5737
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x5d575a
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x5d57f7
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.005d4c8b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5d577d
push ebx
call fcn.00812a52
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x5d57d3
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x68a400]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x5d57a8
call fcn.00812a52
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x5d57d3
push esi
push 1
push eax
call fcn.005939f1
push ebx
mov esi, eax
call fcn.00812a52
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x5d57dc
push dword [ebp - 4]
call dword [0x68a404]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x5d57f6
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.005d56af
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x5d9280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5d92ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d92ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5d9644
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.005e9064
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x5d9671
xor eax, eax
jmp 0x5d976d
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x56d18d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.005db0a1
push esi
push eax
call fcn.0056d1a0
add esp, 0x14
test eax, eax
je 0x5d96ac
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.005e921f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.005db083
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.005dcfa2
add esp, 0x28
test eax, eax
jne 0x5d96e3
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x5d9724
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.005e91f0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x5d971f
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x5d9754
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.005e9131
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.005e90eb
add esp, 0x14
jmp 0x5d966a
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.005e8fb3
push dword [ebp - 4]
call fcn.005d9a46
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x5dcc4e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x5dcc84
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x5dcc77
push eax
call fcn.005e90d7
push 2
call fcn.005e9050
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.00812c16
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x5de9be
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.005e9064
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x5de9eb
xor eax, eax
jmp 0x5deb8f
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x56d18d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.005db0a1
push esi
push eax
call fcn.0056d1a0
add esp, 0x14
test eax, eax
je 0x5dea38
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.005e921f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.005db083
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.005dcfa2
add esp, 0x28
test eax, eax
jne 0x5dea6f
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x5deaab
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.005e91f0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x5deaab
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x5dd1a6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.005dd1f5
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x5deb2b
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.005f0ed3
add esp, 0xc
cmp eax, 0xfffffffa
je 0x5deb14
cmp eax, 0xfffffffc
je 0x5deb0d
cmp eax, 0xfffffffe
je 0x5deb06
test eax, eax
je 0x5deb26
push str.Unknown_zlib_error
jmp 0x5deb19
push str.zlib_stream_error
jmp 0x5deb19
push str.zlib_memory_error
jmp 0x5deb19
push str.zlib_version_error
push dword [ebp - 4]
call fcn.005db0bd
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x5deb5b
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.005e9131
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.005e90eb
add esp, 0x14
jmp 0x5de9e4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.005e4bf6
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x5ef3eb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x6c]
add eax, ebx
sub esi, edx
mov dword [ebp - 8], esi
cmp dword [edi + 0x6c], eax
jb 0x5ef494
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00568f10
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 4], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x5ef442
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 4]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x5ef46f
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x5ef5b8
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, esi
mov dword [ebp - 4], edx
cmovbe esi, eax
test esi, esi
je 0x5ef502
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x5ef4d5
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.005f306f
jmp 0x5ef4e5
cmp eax, 2
jne 0x5ef4ee
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.005f135b
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push edx
call fcn.00568f10
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
lea edx, [ecx + esi]
mov dword [ebp - 8], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x5ef532
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp edx, 0x106
jae 0x5ef54a
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x5ef54a
mov ebx, dword [ebp - 0xc]
jmp 0x5ef400
mov ecx, dword [edi + 0x16c0]
mov esi, dword [edi + 0x3c]
cmp ecx, esi
jae 0x5ef5b8
mov ebx, dword [edi + 0x6c]
add ebx, edx
cmp ecx, ebx
jae 0x5ef588
mov eax, 0x102
sub esi, ebx
cmp esi, eax
cmova esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ebx
push 0
push eax
call fcn.00812c16
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x5ef5b8
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x5ef5b8
sub ebx, ecx
sub esi, ecx
lea eax, [ebx + 0x102]
cmp eax, esi
cmovbe esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ecx
push 0
push eax
call fcn.00812c16
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5f135b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x5f1368
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.005f145f

Function at 0x783a5c
Capabilities:
Packed with generic packer

Disassembly:
push 0xe2a1774d
push ecx
push edx
call fcn.00724348
je 0x783ad2
or edi, dword [ecx - 0x5f]
push ecx
push edx
jmp loc.0042bf64
push eax
push esi
jmp loc.0041ad50
test dword [ecx + ecx*8], esi
les ebx, [ebp + 0x3e]
add byte [esi + eax*8 - 0x4c4463c9], bh
dec esi
pushfd
add dword [ebp - 0x5eb53f41], eax
aas
jb 0x783a8d
aam 0x17
xchg ecx, eax
mov cl, byte [eax]
test dword [edi], ecx
retf 0x5dc4

Function at 0x787172
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
jmp fcn.0075ed41
mov al, 0xb7
shr esi, 1
push edi
push eax
mov ch, 0x3f
cmp byte [ebp + 0x563fbacc], bl
mov eax, 0x349c8506
movsd dword es:[edi], dword [esi]
pop ebp
stc
pop es
test dword [ebx + ebx*2 - 0x33], eax
invalid
lea esp, [esp + 4]
push ebx
push eax
push esi
pushfd
call fcn.00720230
jle 0x78710e
invalid
and al, 4
pushfd
jmp 0x71981e
Function at 0x40acb0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
test eax, eax
jle 0x40ad5f
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp 0x40ad57
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
test eax, eax
je 0x40ad4c
mov eax, dword [esp]
lea edx, [eax + 6]
mov ebx, edx
mov eax, dword [esp]
movzx edx, word [eax]
dec edx
mov edi, edx
mov dword [esp + 8], 0
cmp edi, dword [esp + 8]
jl 0x40ad4c
dec dword [esp + 8]
lea esi, [esi]
inc dword [esp + 8]
lea eax, [ebx + 6]
mov edx, dword [esp + 0xc]
call fcn.00406b50
test eax, eax
jne 0x40ad3a
mov eax, dword [ebx]
add eax, dword [esp + 0x10]
mov esi, eax
jmp 0x40ad64
lea edx, [ebx + 6]
inc edx
movzx eax, byte [ebx + 6]
add edx, eax
mov ebx, edx
cmp edi, dword [esp + 8]
jg 0x40ad1c
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x40ace8
mov esi, 0
mov eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x20
ret

Function at 0x40cbf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5b4f10], eax
mov edx, 1
dec edx
nop
inc edx
mov eax, edx
dec eax
mov ecx, dword [eax*4 + 0x5b4f10]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x5b4f10], eax
cmp edx, 0x26f
jl 0x40cbfc
mov dword [0x55adb0], 0x270
ret
Function at 0x40cc30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [0x5b4010]
cmp eax, dword [0x55ab30]
je 0x40cc51
mov dword [0x55adb0], 0x271
mov eax, dword [0x55adb0]
cmp eax, 0x270
jl 0x40cd79
mov eax, dword [0x55adb0]
cmp eax, 0x271
jne 0x40cc88
mov eax, dword [0x5b4010]
call fcn.0040cbf0
mov eax, dword [0x5b4010]
not eax
mov dword [0x5b4010], eax
mov dword [0x55ab30], eax
mov edx, 0
dec edx
mov esi, esi
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x5b4f10]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x5b4f10]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0x18d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x5b4f10]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x55adc0]
xor esi, eax
mov dword [edx*4 + 0x5b4f10], esi
cmp edx, 0xe2
jl 0x40cc90
mov edx, 0xe3
dec edx
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x5b4f10]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x5b4f10]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0xffffff1d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x5b4f10]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x55adc0]
xor esi, eax
mov dword [edx*4 + 0x5b4f10], esi
cmp edx, 0x26e
jl 0x40cce8
mov eax, dword [0x5b58cc]
and eax, 0x80000000
mov edx, dword [0x5b4f10]
and edx, 0x7fffffff
or eax, edx
mov ecx, eax
shr eax, 1
mov edx, dword [0x5b5540]
xor eax, edx
and ecx, 1
mov edx, dword [ecx*4 + 0x55adc0]
xor eax, edx
mov dword [0x5b58cc], eax
mov dword [0x55adb0], 0
mov eax, dword [0x55adb0]
mov edx, dword [eax*4 + 0x5b4f10]
inc dword [0x55adb0]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
add esp, 8
ret