joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dd47
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x53fc22
call fcn.005139e7
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41dd67
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x24], 0
cmp dword [esi + 0x3c], 0
je 0x41dd8c
lea edi, [esi + 0x28]
cmp dword [edi + 0x18], 0x10
jb 0x41dd7b
mov eax, dword [edi + 4]
jmp 0x41dd7e
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, edi
call fcn.0040d284
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041da2d
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x41dda6
mov eax, dword [eax + 4]
jmp 0x41dda9
add eax, 4
push eax
call fcn.0051462c
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402a5d
call fcn.00513abf
ret

Function at 0x41f9a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jae 0x41f9ca
push esi
mov al, byte [edx]
xor al, byte [ecx]
shr dword [ecx], 8
mov esi, dword [ecx]
movzx eax, al
mov eax, dword [eax*4 + 0x59d898]
xor eax, esi
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0xc]
jb 0x41f9ab
pop esi
ret 8

Function at 0x41fa5e
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x59dc98], 0
jne 0x41fac0
push esi
push edi
mov byte [ebp - 4], 0
mov esi, 0x80000000
xor eax, eax
mov cl, 0x80
mov dl, byte [ebp - 4]
test dl, cl
je 0x41fa83
xor eax, esi
test esi, eax
je 0x41fa90
add eax, eax
xor eax, 0x4c11db7
jmp 0x41fa92
add eax, eax
shr cl, 1
jne 0x41fa7a
push eax
call fcn.0041f91d
push dword [ebp - 4]
mov edi, eax
call fcn.0041f941
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x59d898], edi
jne 0x41fa76
pop edi
mov byte [0x59dc98], 1
pop esi
leave
ret

Function at 0x42289b
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x540bd2
call fcn.00513a1a
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x4228d7
cmp dword [eax + 0x18], 0x10
jb 0x4228bf
mov eax, dword [eax + 4]
jmp 0x4228c2
add eax, 4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
jmp 0x4228f4
cmp dword [eax + 0x18], 0x10
jb 0x4228e2
mov eax, dword [eax + 4]
jmp 0x4228e5
add eax, 4
push 0x80
jmp 0x4228c4
call fcn.00513abf
ret
Function at 0x423991
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x7c]
xor edx, edx
push edi
mov edi, dword [ebp + 0x74]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebx], edx
je 0x423ac0
cmp dword [edi + 0x14], edx
je 0x423ac0
cmp eax, edx
je 0x423ac0
cmp esi, edx
je 0x423ac0
cmp dword [0x59dfa8], edx
jne 0x423a26
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00513c50
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x2c], 6
mov ecx, dword [ebp - 0x38]
mov dword [0x59dfa8], 2
jb 0x423a26
mov dword [0x59dfa8], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x423a31
mov eax, dword [ecx + 4]
jmp 0x423a34
lea eax, [ecx + 4]
push dword [0x59dfa8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x423ac0
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x423a59
mov edi, dword [edi + 4]
jmp 0x423a5c
add edi, 4
movzx ecx, word [ebx]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x423ab2
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x423ab2
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.00500e30
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x423ab2
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.00514d40
add esp, 0xc
mov byte [ebp - 0x31], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x31]
jmp 0x423ac2
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005139d8
add ebp, 0x68
leave
ret 0x10
Function at 0x42a782
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [eax + edi + 8], ebx
je 0x42a7a1
xor al, al
jmp 0x42a8d5
push str.ROOT
push 0x24000
push ebx
push ebx
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x42a79a
push esi
lea eax, [ebp - 0x2c]
push eax
push 2
push ebx
mov ecx, edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call fcn.004200a1
mov ecx, eax
call fcn.0041f961
mov esi, dword [eax + 8]
add esi, dword [eax]
push ebx
push ebx
mov ecx, edi
call fcn.004200a1
lea eax, [esi + 1]
push eax
call fcn.00500e30
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x42a8c7
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.00513c50
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push 0xffffffffffffffff
push edi
call fcn.00420117
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
mov byte [edi + esi], bl
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x42a847
push 2
pop eax
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call edi
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x42a8be
inc eax
push eax
call fcn.00500e30
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x42a8be
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push ebx
push eax
call fcn.00513c50
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
push dword [ebp - 0xc]
call edi
cmp eax, 1
jne 0x42a8b5
push ebx
push 7
push dword [ebp - 8]
push dword [ebp + 8]
push 0x10001
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
jne 0x42a8b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
sete byte [ebp - 1]
push dword [ebp + 8]
call fcn.00513fa4
pop ecx
push dword [ebp - 0xc]
call fcn.00513fa4
pop ecx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x42e1e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 0x50
mov eax, 0x542091
call fcn.00513a1a
mov ecx, dword [ebp + 0x148]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
call fcn.004020b7
xor edi, edi
inc edi
push 2
pop esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
call fcn.0046ce00
cmp eax, 0x800
jl 0x42e243
push 0x22
pop esi
lea eax, [ebp - 0x5c]
push eax
call fcn.00464510
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x42e25c
mov eax, dword [eax + 4]
jmp 0x42e25f
add eax, 4
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
mov ebx, eax
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
call fcn.00402a5d
test ebx, ebx
je 0x42e378
push 0x55527c
push 0x72
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42e378
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42e378
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00513da7
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42e378
push esi
push 0
push eax
call fcn.00513c50
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x14]
call fcn.00514d40
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.00426f5a
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x42e301
mov eax, dword [eax + 4]
jmp 0x42e304
add eax, 4
push eax
push 0x1dcd204
lea ecx, [ebp]
call fcn.0040ba0d
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402a5d
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040b947
lea esi, [eax + 1]
test esi, esi
jbe 0x42e36c
push esi
call fcn.00513da7
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x42e36c
push esi
push 0
push ebx
call fcn.00513c50
add esp, 0xc
push esi
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040b91b
test al, al
je 0x42e36c
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00402a3c
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040b7cd
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x42e38c
push dword [ebp - 0x14]
call fcn.00513cca
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x42e39a
push dword [ebp - 0x1c]
call fcn.00513cca
pop ecx
cmp dword [ebp - 0x18], esi
je 0x42e3a8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.005139d8
add ebp, 0x140
leave
ret 4
Function at 0x43cedc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x15c
lea ebp, [esp - 4]
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp + 0x15c], eax
push 0x90
mov eax, 0x544713
call fcn.00513a1a
mov esi, dword [ebp + 0x168]
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.004027da
push dword [ebp + 0x16c]
xor ebx, ebx
lea eax, [ebp - 0x30]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0043cdb1
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x43cf70
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0040280c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call fcn.00402899
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402899
mov eax, esi
jmp 0x43d0e4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
cmp edi, eax
jae 0x43d0b4
push edi
lea ecx, [ebp - 0x30]
call fcn.00406d2d
push str..
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004067db
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x43cfb2
mov eax, dword [eax + 4]
jmp 0x43cfb5
add eax, 4
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push ebx
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402a5d
cmp esi, 0xffffffff
je 0x43d0bb
lea eax, [ebp + 0x2c]
push eax
call fcn.00513210
pop ecx
test eax, eax
jbe 0x43d082
cmp byte [ebp + 0x2c], 0x2e
je 0x43d082
test byte [ebp], 0x10
je 0x43d082
push edi
lea ecx, [ebp - 0x30]
call fcn.00406d2d
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00464a90
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x140]
push eax
mov byte [ebp - 4], 5
call fcn.004067db
add esp, 0xc
push 0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.00402a5d
lea eax, [ebp + 0x140]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00464a90
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.004028ab
push 0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00402a5d
push 0
push ebx
lea ecx, [ebp + 0x140]
mov byte [ebp - 4], 3
call fcn.00402a5d
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43cfda
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc edi
jmp 0x43cf74
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call fcn.0040280c
or dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402899
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402899
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x15c]
xor ecx, ebp
call fcn.005139d8
add ebp, 0x160
leave
ret
Function at 0x4409ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
call fcn.00440722
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4409c9
xor al, al
jmp 0x440a39
cmp dword [0x59f7ec], 0x10
mov eax, dword [0x59f7d8]
mov dword [ebp + 8], ebx
jae 0x4409df
mov eax, 0x59f7d8
lea ecx, [ebp + 8]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4409c5
cmp dword [0x59f808], 0x10
mov eax, dword [0x59f7f4]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
jae 0x440a10
mov eax, 0x59f7f4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x440a2e
cmp esi, dword [ebp - 4]
sete bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x443c64
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x443cf1
cmp dword [0x59fbd0], 0x10
mov eax, dword [0x59fbbc]
jae 0x443c98
mov eax, 0x59fbbc
push ebx
push esi
push 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x443cea
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x443ce7
cmp dword [ebp - 0x20], 4
je 0x443ce3
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x443ce7
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x443cf7
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x443d75
cmp dword [0x59fbd0], 0x10
mov eax, dword [0x59fbbc]
jae 0x443d2b
mov eax, 0x59fbbc
push ebx
push esi
push 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x443d6e
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x443d6b
cmp dword [ebp - 0x20], 4
jne 0x443d6b
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x453133
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push 0
push eax
mov esi, ecx
call fcn.00513c50
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0xc
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb0]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x20]
call fcn.00402a3c
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb4]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x3c]
call fcn.00402a3c
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xb8], 1
pop esi
xor ecx, ebp
pop ebx
call fcn.005139d8
leave
ret

Function at 0x4598f3
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x40
mov eax, 0x547917
call fcn.005139e7
mov eax, dword [ebp + 0x12c]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x18], ebx
jne 0x4599f3
push 0x103
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.00513c50
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0041fb12
push ebx
push str.Temp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.0041fb12
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0041fac2
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040d1d5
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040970e
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040970e
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp]
call fcn.0040da9c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 3
call fcn.00402938
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402a5d
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.0040970e
mov ecx, dword [ebp - 0x10]
add esi, 4
push esi
call fcn.00402122
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.005139d8
add ebp, 0x124
leave
ret 4
Function at 0x45c230
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret

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

Disassembly:
push esi
mov esi, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov cl, byte [esi]
test cl, cl
je 0x45c2d4
lea ecx, [ecx]
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edi + eax*4]
inc esi
mov dword [edx + 8], ecx
mov cl, byte [esi]
test cl, cl
jne 0x45c290
pop esi
ret
Function at 0x45df90
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x5975f8
push ebx
call fcn.00514d40
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x45dfba
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
nop
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x45dfda
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45dfe9
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45dff8
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e007
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x45e014
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e023
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e032
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e041
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x45e04e
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e05d
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e06c
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x45e07b
mov eax, edi
xor dword [esi], edx
add esi, 0xc
sub dword [esp + 0x1c], 1
jne 0x45dfd0
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00461e60
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x45e098
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.00461e60
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x45e0c0
pop esi
pop ebx
add esp, 8
ret
Function at 0x4601a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x460230
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.00514d40
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x4601ff
sub eax, ebp
jmp 0x460201
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4601f0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x460220
sub eax, ebp
jmp 0x460222
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x460211
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x46035c
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x460258
mov ebx, edx
test ebx, ebx
je 0x4602a6
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x46027b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.00462890
jmp 0x46028d
cmp ecx, 2
jne 0x460294
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.0045e3e0
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.00514d40
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x4602d0
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4602e4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4601b0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x46035c
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x46032b
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x46030b
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00513c50
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x46035c
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x460345
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.00513c50
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret