joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec6f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ebp, ecx
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [esp + 0x18], 0x10000
mov dword [esp + 0x1c], 0x38000
lea eax, [ecx + 1]
mov dword [esp + 0x20], 0x10000
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x10000
mov dword [esp + 0x34], 0x10000
mov dword [esp + 0x38], 0x7c000
mov dword [esp + 0x3c], 0x10000
mov dword [esp + 0x40], 0x10000
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x10000
mov dword [esp + 0x4c], 0x10000
mov dword [esp + 0x50], 0x10000
mov dword [esp + 0x54], 0xfe000
mov dword [esp + 0x58], 0x10000
mov dword [esp + 0x5c], 0x10000
mov dword [esp + 0x60], 0x10000
mov dword [esi + 0x18], eax
cmp ecx, 6
jb 0x4ec7df
pop edi
mov dword [esi], 0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00507712
add esp, 0x58
ret 4
mov eax, ecx
xor edx, edx
mov ecx, 6
div ecx
cmp edx, 3
jb 0x4ec7f8
mov eax, 5
sub eax, edx
mov edx, eax
movzx eax, byte [esi + 6]
lea ecx, [esp + 0x10]
push 0
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push ebx
push edi
lea eax, [edx*8]
push 7
sub eax, edx
push 0xa
push 0
lea eax, [ecx + eax*4]
mov ecx, ebp
push eax
call fcn.004ebe60
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x10], edi
pop edi
mov dword [esi + 0x14], ebx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x58
ret 4
Function at 0x4ed990
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x35d4
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x35d0], eax
cmp dword [0x5753b4], 0xffffffff
push ebx
mov ebx, dword [esp + 0x35e8]
push esi
mov esi, dword [esp + 0x35e0]
push edi
mov edi, dword [esp + 0x35e8]
jne 0x4eda2b
push 0x4001
push 0x2b4
lea eax, [esp + 0x7c]
push eax
push 0
push 0x542024
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x78]
mov dword [0x5e879c], eax
lea eax, [esp + 0x25dc]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x7c]
push eax
push 0
lea eax, [esp + 0x25ec]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x78]
mov dword [0x5753b4], eax
push ebp
push 0x800
push edi
lea eax, [esp + 0x5e8]
push eax
call fcn.0049dc20
push 0x800
lea eax, [esp + 0x5e4]
push eax
push eax
call fcn.004863b0
movzx eax, word [esi]
lea ecx, [esp + 0x5e0]
mov ebp, eax
mov dword [esp + 0x10], 3
mov edi, eax
mov dword [esp + 0x14], 0x40000000
test ax, ax
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x32c]
je 0x4edaa5
push 0x4011
push 0x2b4
push eax
movzx eax, byte [esp + 0x35fc]
neg eax
sbb eax, eax
and eax, 0x10
push eax
jmp 0x4edab2
push 0x4001
push 0x2b4
push eax
push 0
lea eax, [esp + 0x5f0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x330]
mov dword [esp + 0x2c], eax
push 0x800
test di, di
je 0x4edae5
push esi
lea eax, [esp + 0x15e8]
push eax
call fcn.0049dc20
jmp 0x4edb18
lea eax, [esp + 0x5e4]
push eax
lea eax, [esp + 0x15e8]
push eax
call fcn.0049dc20
lea eax, [esp + 0x15e0]
push eax
call fcn.00486280
lea eax, [esp + 0x5e0]
push eax
call fcn.00486220
mov dword [esp + 0x24], eax
push 0x66
push dword [0x57dfa8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [esp + 0x10], 3
lea eax, [esp + 0x15e0]
mov dword [esp + 0x14], edi
test bp, bp
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
pop ebp
je 0x4edb6e
mov ecx, dword [0x5753b4]
mov dword [esp + 0x28], ecx
jmp 0x4edb77
mov eax, dword [0x5e879c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x104c
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x40]
mov dword [esp + 0x48], 2
push eax
push edi
push 0x1074
push esi
mov dword [esp + 0x64], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
jne 0x4edbce
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 1
push eax
push edi
push 0x102b
push esi
mov dword [esp + 0x5c], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5e4c74]
pop edi
inc eax
mov dword [0x5e4c74], eax
pop esi
pop ebx
cmp eax, 1
jne 0x4edbfa
push 0x4f5
call fcn.00497960
push eax
push 2
push dword [0x57dfa8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [esp + 0x35d0]
xor ecx, esp
call fcn.00507712
add esp, 0x35d4
ret 0x10
Function at 0x4efdb0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2000], eax
push edi
push 0x1000
push 0
lea eax, [esp + 0x100c]
push eax
push str.rarreg.key
push 0x541b9c
call fcn.004af150
mov edi, eax
test edi, edi
je 0x4efe46
push esi
push 0x800
lea eax, [esp + 0xc]
push eax
push str.Rar_RK
call fcn.004d6eb0
mov esi, eax
test esi, esi
je 0x4efe36
push esi
push edi
lea eax, [esp + 0x1010]
push 1
push eax
call fcn.00525e32
push esi
call fcn.00525a4d
add esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.004e9610
lea eax, [esp + 8]
push eax
call fcn.00474cc0
push str.rarreg.key
push 0x541b9c
call fcn.004aec90
pop esi
mov ecx, dword [esp + 0x2004]
pop edi
xor ecx, esp
call fcn.00507712
add esp, 0x2004
ret
Function at 0x4f0090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1028
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1024], eax
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x60200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea eax, [esp + 0xc]
push eax
push str.VerInfo
push 0x541f74
call fcn.004af150
push 1
push 0x800
lea eax, [esp + 0x30]
push eax
call fcn.004856f0
push 0x800
lea eax, [esp + 0x2c]
push eax
call fcn.00484610
push 0x800
push str.version.dat
lea eax, [esp + 0x30]
push eax
call fcn.0049dbe0
push 0x54403c
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 0
push eax
call fcn.00476380
mov esi, eax
test esi, esi
je 0x4f013d
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0052891c
push esi
call fcn.00525a4d
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x4f0206
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x4f01d2
lea eax, [esp + 0x20]
push eax
push str.VerInfo
push 0x541f74
call fcn.004afd60
call fcn.004afa70
test al, al
jne 0x4f01a1
push 0x5421b8
lea eax, [esp + 0x2c]
push eax
call fcn.00476380
mov esi, eax
test esi, esi
je 0x4f01a1
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00525e32
push esi
call fcn.00525a4d
add esp, 0x14
call fcn.004afa80
movzx eax, al
neg eax
pop esi
sbb eax, eax
and eax, 0xfffffe98
add eax, 0x168
mov dword [0x57dfcc], eax
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.00507712
add esp, 0x1028
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push str.VerInfo
push 0x541f74
mov dword [esp + 0x14], ecx
call fcn.004afd60
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4f0256
cmp dword [esp + 0x10], eax
je 0x4f0256
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
call fcn.004afa70
test al, al
jne 0x4f0256
push 0x5421b8
lea eax, [esp + 0x2c]
push eax
call fcn.00476380
mov esi, eax
test esi, esi
je 0x4f0256
push esi
push 0xc
lea eax, [esp + 0xc]
push 1
push eax
call fcn.00525e32
push esi
call fcn.00525a4d
add esp, 0x14
mov eax, dword [esp + 0x24]
xor ecx, ecx
sub ecx, ecx
push 0xc9
sbb eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
push 0x2a69c000
sbb eax, 0
add ecx, dword [esp + 0x28]
adc eax, 0
push eax
push ecx
call fcn.005078b0
mov dword [0x57dfcc], eax
test eax, eax
jns 0x4f0294
mov dword [0x57dfcc], 0x168
mov ecx, dword [esp + 0x1028]
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x1028
ret
Function at 0x4f1590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53df76
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5755c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x619bb0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5f0f0c]
cmp eax, dword [ecx + 4]
jle 0x4f1619
push 0x5f0f0c
call fcn.00508154
add esp, 4
cmp dword [0x5f0f0c], 0xffffffff
jne 0x4f1619
mov dword [ebp - 4], 0
mov ecx, 0x5f0e0a
call fcn.0049adc0
mov byte [ebp - 4], 0
push 0x53fa50
call fcn.00507e9b
mov dword [ebp - 4], 0xffffffff
push 0x5f0f0c
call fcn.00508115
add esp, 8
mov esi, dword [ebp + 8]
mov ecx, 0x5ecde8
push 1
push esi
call fcn.004f2f10
mov bl, byte [ebp + 0xc]
push 0
push 0x5ecde8
test bl, bl
sete al
movzx eax, al
push eax
push 0
push 0
push esi
push 0
call fcn.004f3fb0
test al, al
jne 0x4f1696
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x5ecdf0]
mov esi, eax
cmp edx, 0xffffffff
je 0x4f1670
push edx
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5ecdf0], 0xffffffff
mov ecx, 0x5f0e0a
call fcn.0049af20
cmp esi, 0x4c7
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, bl
je 0x4f16b3
push 0x5ecde8
push 0x10000
push 0x4f1c40
call fcn.005261d4
add esp, 0xc
jmp 0x4f16d8
mov eax, dword [0x5ecdf0]
cmp eax, 0xffffffff
je 0x4f16ce
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [0x5ecdf0], 0xffffffff
mov ecx, 0x5f0e0a
call fcn.0049af20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f28d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e08c
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4f2945
push 0x555d10
push esi
call fcn.00484650
test al, al
jne 0x4f2920
push esi
call fcn.004f2c60
test al, al
je 0x4f2945
push 0x30
push 0x65
call fcn.00497960
push eax
push 0x596
call fcn.00497960
push eax
push dword [0x57cf9c]
call fcn.004d8380
jmp 0x4f2a9a
cmp byte [0x57dfb4], 0
jne 0x4f2981
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004f3fb0
test al, al
jne 0x4f2a9a
push esi
push 0x201
call fcn.00497960
push eax
call fcn.004dcc30
add esp, 8
jmp 0x4f2a9a
push 1
call fcn.004d1ed0
push 1
push 0x800
push 0x58d9ae
push str.Rar_EX
call fcn.004d6f80
test al, al
je 0x4f2a9a
push 0x800
push 0x598eea
mov ecx, 0x5a6670
call fcn.004065d0
mov eax, dword [0x5a6674]
mov ecx, 0x599eec
push 0x541db4
mov dword [0x593e90], eax
call fcn.0049dd10
push 0x800
lea eax, [ebp - 0x1010]
mov dword [0x592e7c], 2
push eax
push esi
push 0x58d9ae
call fcn.00485ce0
push 0
push 0
mov ecx, 0x5a6670
call fcn.00406100
cmp byte [0x57dfb7], 0
jne 0x4f2a9a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x619bb0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5f5034]
cmp eax, dword [ecx + 4]
jle 0x4f2a70
push 0x5f5034
call fcn.00508154
add esp, 4
cmp dword [0x5f5034], 0xffffffff
jne 0x4f2a70
mov dword [ebp - 4], 0
mov ecx, 0x5f0f10
call fcn.004f1020
push 0x53faf0
call fcn.00507e9b
mov dword [ebp - 4], 0xffffffff
push 0x5f5034
call fcn.00508115
add esp, 8
push 0
lea eax, [ebp - 0x1010]
mov ecx, 0x5f0f10
push eax
call fcn.004f2f10
push 0x5f0f10
push 0x10000
push 0x4f1c40
call fcn.005261d4
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507712
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2d00
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6064]
mov eax, 0x6064
call fcn.00507730
push 0xffffffffffffffff
push 0x53e0d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5755c4]
xor eax, ebp
mov dword [ebp + 0x6060], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x6074]
mov edi, dword [ebp + 0x606c]
mov esi, dword [ebp + 0x6070]
push eax
call fcn.00486220
mov edx, esi
mov ebx, eax
lea eax, [edx + 2]
lea ebx, [ebx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4f2d60
mov ecx, ebx
sub edx, eax
sar edx, 1
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f2d77
sub ecx, dword [ebp - 0x10]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x1000
jb 0x4f2d9a
xor al, al
jmp 0x4f2eda
push 0x1000
lea eax, [ebp + 0x60]
push eax
push ebx
push esi
call fcn.00485ce0
lea ecx, [ebp]
call fcn.0049dc70
mov dword [ebp - 4], 0
lea eax, [ebp + 0x2060]
push 0x1000
push 0x541b9c
push eax
push str.ViewerIgnoreModifications
push 0x5426e0
call fcn.004af2c0
cmp word [ebp + 0x2060], 0
je 0x4f2df7
push 0
push 0
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2060]
push eax
call fcn.004b79b0
push 0x800
lea eax, [ebp + 0x4060]
push eax
lea ecx, [ebp]
call fcn.0049de10
test al, al
je 0x4f2eaa
push 0x800
lea eax, [ebp + 0x5060]
push eax
lea eax, [ebp + 0x4060]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4f2e8e
cmp eax, 0x800
jae 0x4f2e8e
lea eax, [ebp + 0x5062]
push 0x555b48
push eax
call fcn.0052087b
mov esi, eax
add esp, 8
test esi, esi
je 0x4f2e78
xor eax, eax
mov word [esi], ax
add esi, 4
cmp word [esi], ax
jne 0x4f2e63
mov esi, 0x541db4
push 5
push edi
lea eax, [ebp + 0x5060]
push eax
call fcn.00479900
test al, al
je 0x4f2e8e
jmp 0x4f2e7e
lea esi, [ebp + 0x5060]
push 5
lea eax, [ebp + 0x60]
push eax
push esi
call fcn.00479900
test al, al
jne 0x4f2eff
push 0x800
lea eax, [ebp + 0x4060]
push eax
lea ecx, [ebp]
call fcn.0049de10
test al, al
jne 0x4f2e13
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp]
test ecx, ecx
je 0x4f2ed8
cmp byte [ebp + 0x10], 0
je 0x4f2ecf
mov eax, dword [ebp + 8]
add eax, eax
push eax
push ecx
call fcn.0049b220
mov ecx, dword [ebp]
push ecx
call fcn.00524aa2
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6060]
xor ecx, ebp
call fcn.00507712
lea esp, [ebp + 0x6064]
pop ebp
ret 0xc
mov bl, 1
jmp 0x4f2eac
Function at 0x4f3fb0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2048
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2044], eax
mov eax, dword [esp + 0x2054]
push ebx
push ebp
mov ebp, dword [esp + 0x206c]
push esi
mov esi, dword [esp + 0x205c]
push edi
mov edi, dword [esp + 0x2070]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2068]
push 0x3c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00520500
mov bl, byte [esp + 0x2078]
add esp, 0xc
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x500
test bl, bl
jne 0x4f402b
mov dword [esp + 0x1c], 0x540
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
call fcn.00485580
test eax, eax
je 0x4f404a
cmp word [eax], 0x2e
jne 0x4f4057
cmp word [eax + 2], 0
jne 0x4f4057
or dword [esp + 0x1c], 1
mov dword [esp + 0x40], 0x542024
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push esi
mov dword [esp + 0x30], eax
call fcn.00486220
cmp eax, esi
jne 0x4f40a0
push 0x541e08
push esi
call fcn.00484650
test al, al
jne 0x4f40a0
push esi
push str.._s
lea eax, [esp + 0x5c]
push 0x1000
push eax
call fcn.00402930
lea eax, [esp + 0x64]
add esp, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x34], 1
push eax
mov byte [0x57dfb5], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
jne 0x4f40f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x4f40da
test edi, edi
je 0x4f40d3
mov dword [edi], esi
mov al, 1
jmp 0x4f41a5
cmp dword [esp + 0x24], 0
je 0x4f40f6
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov byte [0x57dfb5], 0
test esi, esi
je 0x4f41a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x4f41a3
test bl, bl
jne 0x4f419f
mov edx, dword [esp + 0x50]
test edx, edx
je 0x4f4154
mov ecx, dword [0x5e8cb8]
mov eax, dword [esp + 0x38]
mov dword [ecx*4 + 0x5e8c78], eax
lea eax, [ecx + 1]
mov dword [ecx*4 + 0x5e8c38], edx
and eax, 0x8000000f
jns 0x4f414d
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x5e8cb8], eax
jmp 0x4f4199
xor esi, esi
jmp 0x4f4160
mov eax, dword [esi + 0x5e8c78]
cmp eax, dword [esp + 0x38]
jne 0x4f4191
push 0
push dword [esi + 0x5e8c38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4f418d
mov edx, dword [esi + 0x5e8c38]
mov dword [esp + 0x50], edx
jmp 0x4f4191
mov edx, dword [esp + 0x50]
add esi, 4
cmp esi, 0x40
jl 0x4f4160
test edi, edi
je 0x4f419f
mov dword [edi], edx
mov al, 1
jmp 0x4f41a5
xor al, al
mov ecx, dword [esp + 0x2054]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x2048
ret 0x1c

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

Disassembly:
push esi
push 0x57dfd0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f4658
push 0x40
push 0x2bc
call fcn.00497960
push eax
push 0x2bd
call fcn.00497960
push eax
push dword [0x57cf9c]
call fcn.004d8380
pop esi
ret
push 0
push 0x57dfd0
mov ecx, esi
call fcn.004f3050
pop esi
ret
Function at 0x4fbbf0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push 0x618f88
mov esi, ecx
call fcn.00469c60
mov ebx, dword [esp + 0xc]
mov dword [esi + 0x1e8], 0x12345678
mov dword [esi + 0x1ec], 0x23456789
mov dword [esi + 0x1f0], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4fbc86
mov eax, dword [esi + 0x1e8]
mov edx, 0x34567890
push edi
mov edi, dword [esi + 0x1ec]
movsx ecx, cl
lea ebx, [ebx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x618f88]
movzx ecx, al
add ecx, edi
mov dword [esi + 0x1e8], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 0x1ec], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x618f88]
mov dword [esi + 0x1f0], edx
mov cl, byte [ebx]
test cl, cl
jne 0x4fbc38
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fbc90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x590ac0], 0
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x10]
je 0x4fbd78
cmp byte [esi + 4], 0
je 0x4fbcdc
lea eax, [esi + 8]
push eax
mov eax, ecx
imul eax, edi
push eax
push edx
call fcn.004c5ff0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push edi
push ecx
push edx
mov ecx, esi
call fcn.004fa440
pop edi
pop esi
ret 0xc
push ebx
mov ebx, ecx
imul ebx, edi
push ebp
mov ebp, edx
test ebx, ebx
je 0x4fbd76
lea ecx, [ecx]
movsx eax, byte [ebp]
lea ebp, [ebp + 1]
xor eax, dword [esi + 0x1e8]
mov ecx, dword [esi + 0x1e8]
mov edx, dword [esi + 0x1f0]
mov edi, edx
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [eax*4 + 0x618f88]
xor eax, ecx
mov dword [esi + 0x1e8], eax
movzx eax, al
add eax, dword [esi + 0x1ec]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x1ec], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x618f88]
mov eax, edi
xor eax, 1
mov dword [esi + 0x1f0], edx
imul eax, edi
shr eax, 8
xor byte [ebp - 1], al
sub ebx, 1
jne 0x4fbcf0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop ebp
pop ebx
push 0
push edi
push ecx
push edx
mov ecx, esi
call fcn.004fa440
pop edi
pop esi
ret 0xc
Function at 0x504a10
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x504a3e
test al, 0x10
jne 0x504a37
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x504a3e
pop edi
mov al, 1
pop esi
ret 4
push esi
push dword [edi + 0x64b764]
push 0x11
call fcn.004158e0
pop edi
xor al, al
pop esi
ret 4

Function at 0x50954a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x52e411
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052e290

Function at 0x530083
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052fd43

Function at 0x5007e3
Capabilities:
Encode data using xor

Disassembly:
shl ax, 0xf
push edx
and ax, sp
xchg dword [esp], ebp
bsr bp, bx
aaa
sar bp, cl
mov ebp, esp
adc al, 0x4b
movzx eax, cl
mov dh, 0xc1
sub esp, 0x18
movzx ax, cl
push esi
pushfd
mov dword [esp], edi
daa
push ebx
sal ah, cl
or ah, al
cmc
call fcn.0052991e
push eax
mov edi, 0x937084d7
daa
in eax, 0x26
fimul dword [eax]
xchg ecx, eax
inc ebp
xor al, 0x94
jbe 0x5007fa
adc bh, bh
dec esp
xchg ebx, eax
mov byte [0xb92b7714], al
mov dl, 0x5d
jp 0x5008b3
dec esi
out 0x7f, al
sub dword [esi], 0xfffffffc
mov al, 0x15
test al, 0xff
js 0x500835
push cs
mov ebx, 0x3d36dbaa
out dx, al
jnp 0x5007fb
dec ecx
mov bh, 0x27
pop edx
invalid
mov dword fs:[edx], ecx
mov ch, 0xe5
cmp byte [edi - 0x126575e9], cl
inc eax
push ds
retf

Function at 0x51ed74
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x9e
add eax, edi
clc
cmp eax, edx
pushal
push 0xe1b82569
lea esp, [esp + 0x28]
jb 0x506c72
pushfd
bt dx, ax
cmp eax, dword [ebp - 0x10]
push dword [esp]
lea esp, [esp + 8]
jae 0x506c72
shl bl, cl
movsx bx, al
cmc
xchg bl, cl
mov ebx, eax
sbb edi, ebp
mov edi, eax
and ch, bl
test ah, 0x5c
ror ch, 6
mov ecx, 0x104
pushal
bt ebx, 6
sub al, al
test ax, 0xc34e
mov byte [esp + 8], al
repne scasb al, byte es:[edi]
call fcn.00508ddb
psllq mm4, qword [esi]
inc edx
popfd
sbb al, byte [esi]
jmp 0x51ee2c
jne 0x51eea5
invalid
leave
aas
sub al, byte [ebp + esi*4 + 0x4a]
salc
sahf
sbb eax, 0xa14f5450
push ebp
or eax, 0x43be7fcf
add dl, byte [ecx + 0x53]
aam 0x48
add bl, byte [ecx - 0x2db06c8a]
adc ah, bl
cmp bh, al
inc ecx
sub al, 0x61
sbb dword [eax - 0x466bea67], ebp
add ch, byte [eax + 0x5e]
in al, dx
add dh, byte [eax]
push 0x15
mov edx, edi
imul ecx, dword [ebp + 0x50ff2e48], 0x31fe6da7
invalid