joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404010
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x450eac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x338]
mov ebx, ecx
push eax
push ebx
call fcn.004081c6
add esp, 8
test eax, eax
jne 0x40424a
mov esi, 1
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3b0], esi
cmp dword [ebp - 0x334], eax
jb 0x40422e
ja 0x40406b
cmp dword [ebp - 0x338], eax
jbe 0x40422e
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
lea eax, [ebp - 0x320]
push 0x104
push 0
push eax
call fcn.004288f0
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x3a8]
push eax
push ebx
call fcn.00408579
add esp, 0x2c
test eax, eax
jne 0x40424a
push ebx
call fcn.00408289
add esp, 4
test eax, eax
jne 0x40424a
push dword [ebp - 0x368]
call fcn.00427083
push dword [ebp - 0x368]
mov edi, eax
push edi
push ebx
call fcn.0040839e
add esp, 0x10
test eax, eax
js 0x404241
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0042ea3d
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x40417e
lea eax, [ebp - 0x110]
push eax
call esi
test eax, eax
jne 0x40417e
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042ea3d
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x40417e
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x40416f
lea ecx, [ebp - 0x218]
call fcn.00403f70
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4041e8
push 0
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0
push eax
push dword [ebp - 0x3ac]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4041d7
mov eax, dword [ebp - 0x3ac]
cmp dword [ebp - 0x324], eax
je 0x4041e1
mov dword [ebp - 0x3b0], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00427040
mov esi, dword [ebp - 0x3b0]
add esp, 4
test esi, esi
je 0x40422e
mov edi, dword [ebp - 0x3b4]
inc edi
push ebx
mov dword [ebp - 0x3b4], edi
call fcn.0040872e
mov eax, edi
add esp, 4
cdq
cmp edx, dword [ebp - 0x334]
jb 0x40406b
ja 0x40422e
cmp eax, dword [ebp - 0x338]
jb 0x40406b
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042702f
mov esp, ebp
pop ebp
ret
push edi
call fcn.00427040
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042702f
mov esp, ebp
pop ebp
ret
Function at 0x409c37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00409c1c
pop ecx
test eax, eax
je 0x409c53
push 0xffffffffffffff91
pop eax
jmp 0x409c81
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
cmp eax, 0x26
jne 0x409c7e
and dword [esi + 0xc], 0
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x40dcbb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x40dd2b
cmp byte [ecx], 0
je 0x40dcf0
mov edx, ecx
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40dcd3
sub edx, edi
cmp edx, 3
ja 0x40dcf0
cmp byte [ecx + 1], 0x3a
jne 0x40dcf0
push ecx
call fcn.0040de8a
pop ecx
jmp 0x40dd2e
push 0xfde9
push ecx
call fcn.0040d752
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40dd2b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffff98
cmp eax, 0xb7
pop ecx
cmovne esi, ecx
push edi
call fcn.004320b4
pop ecx
mov eax, esi
jmp 0x40dd2e
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x40decc
push 0xfde9
push dword [ebp + 8]
call fcn.0040d752
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40decc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.004320b4
pop ecx
cmp ebx, 0xffffffff
je 0x40dec8
test bl, 0x10
je 0x40dec8
xor eax, eax
jmp 0x40decf
push 0xffffffffffffff95
jmp 0x40dece
push 0xffffffffffffff9a
pop eax
pop esi
pop ebx
pop ebp
ret

Function at 0x40e2dd
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420400
Function at 0x40f3c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 0xc]
lea eax, [ebp + 0xf]
push esi
mov esi, dword [ebp + 8]
push 1
push eax
mov byte [ebp + 0xf], bl
mov eax, dword [esi + 0x10028]
not eax
push eax
call fcn.0040e2dd
mov ecx, dword [esi + 0x10030]
not eax
mov dword [esi + 0x10028], eax
not ecx
movzx eax, al
add eax, dword [esi + 0x1002c]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 0x1002c], eax
shr eax, 0x18
mov byte [ebp + 0xf], al
lea eax, [ebp + 0xf]
push eax
push ecx
call fcn.0040e2dd
add esp, 0x18
not eax
mov dword [esi + 0x10030], eax
mov al, bl
pop esi
pop ebx
pop ebp
ret

Function at 0x410654
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x410698
cmp dword [ebp + 0xc], 0
je 0x410698
cmp dword [ebp + 0x10], 0x10
jne 0x410698
push 0x10
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x410693
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
push 0xffffffffffffff96
jmp 0x41069a
mov eax, dword [ebp + 0x10]
jmp 0x41069b
push 0xffffffffffffff9a
pop eax
pop esi
pop ebp
ret

Function at 0x4106e6
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410c3c
Function at 0x41075a
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x41086c
cmp dword [ebp + 0xc], edi
je 0x41086c
push ebx
push esi
call fcn.00410d52
cmp word [esi + 0x28], 0x14
mov eax, 0x8004
pop ecx
push 0xf0000040
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea edx, [eax + 8]
push edi
cmovne eax, edx
push esi
mov dword [esi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, eax
test ebx, ebx
jne 0x4107b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
jmp 0x410850
mov eax, dword [ebp + 0x10]
add eax, 0xc
push eax
mov dword [ebp - 4], eax
call fcn.004320b9
mov dword [ebp + 8], eax
pop ecx
test eax, eax
je 0x410849
mov ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [eax], 0x208
mov dword [eax + 4], 0x6602
mov dword [eax + 8], ecx
add eax, 0xc
push eax
call fcn.00428370
add esp, 0xc
lea eax, [esi + 8]
push eax
push 0x100
push edi
push dword [ebp - 4]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ebx, eax
test ebx, ebx
je 0x41083e
lea eax, [esi + 4]
push eax
push edi
push dword [esi + 8]
push 0x8009
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, eax
test ebx, ebx
je 0x41083e
push edi
lea eax, [esi + 0xc]
push eax
push 5
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
mov ebx, eax
push dword [ebp + 8]
call fcn.004320b4
pop ecx
jmp 0x41084c
push 0xfffffffffffffffc
pop edi
test ebx, ebx
jne 0x41085c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffff96
mov dword [esi + 0x24], eax
pop edi
pop ebx
test edi, edi
je 0x410868
push esi
call fcn.00410d52
pop ecx
mov eax, edi
jmp 0x41086f
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
leave
ret
Function at 0x41145f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x38]
mov dl, byte [esi + 0x34]
test edi, edi
jle 0x411498
mov ecx, dword [esi + 0x260]
push ebx
movzx ebx, dl
mov eax, ecx
shl ecx, 8
shr eax, 0x18
xor eax, ebx
xor ecx, dword [eax*4 + 0x450a70]
mov dword [esi + 0x260], ecx
sub edi, 1
jne 0x41147b
pop ebx
mov eax, dword [esi + 0x34]
mov byte [esi + eax + 0x58], 1
mov ecx, dword [esi + 0x38]
mov eax, ecx
sub eax, 1
je 0x411512
sub eax, 1
je 0x411506
sub eax, 1
je 0x4114fa
mov byte [ecx + esi + 0x54], 1
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov edx, dword [esi + 0x44]
mov cl, byte [esi + 0x38]
mov eax, dword [esi + 0x24]
sub cl, 4
mov byte [edx + eax], cl
jmp 0x41151b
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x44]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
pop edi
pop esi
pop ebp
ret
Function at 0x4175a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, 0x100
push edi
mov edi, dword [ebp + 8]
add edx, esi
mov eax, dword [edi + 0x18]
mov ecx, edx
shr ecx, 7
add ebx, ebx
and ecx, 1
mov dword [edi + eax*4 + 0x20], ecx
mov ecx, esi
and ecx, ebx
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
add edx, edx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + eax*2]
mov eax, dword [edi + 0x18]
mov dword [edi + eax*4 + 0x108], ecx
mov eax, ebx
inc dword [edi + 0x18]
xor eax, edx
not eax
and esi, eax
cmp edx, 0x10000
jb 0x4175b6
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41778e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
inc eax
shl eax, cl
push edi
xor edi, edi
add esi, eax
mov eax, dword [ebp + 8]
mov edx, esi
shr esi, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [eax + esi*2]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x4402d0]
add edi, ecx
cmp esi, 1
jne 0x4177a5
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x41e63d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 8
pop ecx
mov esi, dword [edi + 0xaa4]
sub ecx, esi
mov eax, dword [edi + 0xaa8]
add edi, 0xaac
and eax, dword [ebp + 0xc]
shr edx, cl
mov ecx, esi
shl eax, cl
add edx, eax
imul eax, edx, 0x600
add eax, edi
xor edi, edi
cmp byte [ebp + 0x14], 0
mov dword [ebp + 8], eax
jne 0x41e68f
push dword [ebp + 0x1c]
push 8
push eax
call fcn.0041778e
add esp, 0xc
mov edi, eax
jmp 0x41e6e4
mov edx, dword [ebp + 0x1c]
mov esi, 0x100
push ebx
mov ebx, dword [ebp + 0x18]
add edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x4402d0]
add edi, eax
mov eax, ebx
xor eax, edx
not eax
and esi, eax
cmp edx, 0x10000
jb 0x41e69d
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x41f6f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
xor esi, esi
push edi
inc esi
mov ecx, dword [ebp + 8]
add esi, esi
mov edi, ebx
shr ebx, 1
and edi, 1
movzx edx, word [esi + ecx]
mov ecx, edi
neg ecx
shr edx, 4
shr ecx, 4
add esi, edi
and ecx, 0x7f
xor edx, ecx
movzx ecx, byte [edx + 0x4402d0]
add eax, ecx
sub dword [ebp + 0xc], 1
jne 0x41f6ff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x42040c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00420420
Function at 0x426120
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426130

Function at 0x437de0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437aa0
Function at 0xec90b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ec9200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xec90d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xec90c2
add dl, dl
jne 0xec90e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xec9134
xor eax, eax
add dl, dl
jne 0xec90ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xec91d5
add dl, dl
jne 0xec90fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xec9108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xec9113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xec911e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xec912a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xec90cd
mov eax, 1
add dl, dl
jne 0xec9142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xec914d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xec9139
sub eax, ebx
mov ebx, 1
jne 0xec9180
mov ecx, 1
add dl, dl
jne 0xec9166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xec9171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xec915d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xec90cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xec9197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xec91a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xec918e
cmp eax, 0x7d00
jae 0xec91c5
cmp eax, 0x500
jb 0xec91c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xec90cd
cmp eax, 0x7f
ja 0xec91c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xec90cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xec91f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xec90cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401906
Capabilities:
Compare security identifiers

Disassembly:
push 0x30
mov eax, 0x485ea7
call fcn.0040187a
mov esi, ecx
mov edi, dword [ebp + 8]
push dword [edi]
lea eax, [ebp - 0x3c]
push eax
call fcn.004018ad
and dword [ebp - 4], 0
mov ecx, dword [edi]
call fcn.004015ef
mov ebx, dword [fcn.00401168]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x10]
push dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
call ebx
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0x28]
mov edi, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
cmp edi, ecx
je 0x40197d
mov eax, dword [edi]
push dword [eax + 0x10]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4022c1
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x20]
jne 0x4022c1
cmp edi, dword [esi + 0x2c]
je 0x4021fb
mov edi, dword [edi]
mov eax, dword [ebp - 0x20]
push dword [eax]
call dword [fcn.0040116c]
lea esi, [ebp - 0x3c]
call fcn.004019a5
mov eax, edi
call fcn.004015db
ret 4
push 0x90
call dword [fcn.00401238]
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov edi, dword [fcn.00401174]
test eax, eax
je 0x4022d2
mov eax, dword [esi + 0x70]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ecx], eax
call edi
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.004020f4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402250
add eax, 4
push eax
call edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00402f67
lea edi, [esi + 0x20]
push dword [edi]
mov dword [ebp - 0x2c], edi
call ebx
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x1c]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp edx, esi
jne 0x4034eb
cmp eax, ebx
jne 0x4034eb
push dword [edi]
call dword [fcn.0040116c]
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004022db
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.004030df
lea esi, [ebp - 0x14]
call fcn.004022db
mov edi, dword [ebp - 0x14]
jmp 0x401988
add edi, 4
cmp edi, dword [ebp - 0x1c]
je 0x40197d
jmp 0x401959
and dword [ebp + 8], 0
jmp 0x402240
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.00406308
push ebx
push esi
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp + 8]
call fcn.004061eb
mov byte [ebp - 4], 5
test esi, esi
je 0x402292
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x402292
Function at 0x42aa22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov cx, word [ebp + 0x10]
mov word [eax + 0x32], cx
push ebx
push esi
mov ecx, 0x7fff
mov esi, ecx
mov word [eax + 0x24], cx
mov word [eax + 0x22], si
push edi
mov ecx, 0xffff8000
mov esi, ecx
mov word [eax + 0x28], cx
xor ecx, ecx
mov word [eax + 0x7e], cx
mov word [eax + 0x2a], cx
mov word [eax + 0x2e], cx
mov cx, word [ebp + 0xc]
mov word [eax + 0x20], cx
xor ecx, ecx
mov word [eax + 0x3a], cx
mov word [eax + 0x3c], cx
mov word [eax + 0x3e], cx
mov word [eax + 0x40], cx
mov word [eax + 0x26], si
push 9
pop ecx
mov ebx, 0x42ab08
xor edx, edx
mov esi, ebx
lea edi, [eax + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xffff
mov word [eax + 0x7c], cx
movzx ecx, word [ebp + 0x10]
imul ecx, ecx, 0x38
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], edx
mov word [eax + 0x69], dx
mov byte [eax + 0x68], dl
mov dword [eax + 0x80], edx
mov byte [eax + 0x38], dl
mov dword [eax + 0x6c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov edx, dword [ebp + 8]
mov dword [eax + 0x1c], 3
mov dword [eax + 0x34], 2
mov edx, dword [edx + 8]
add ecx, edx
push 9
mov dword [eax + 0x84], ecx
xor edx, edx
mov word [ecx + 0x28], dx
pop ecx
mov esi, ebx
lea edi, [eax + 0x88]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov byte [eax + 0xac], 1
pop ebx
pop ebp
ret 0xc
Function at 0x43ddbc
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x48449c
call fcn.00401634
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], ebx
call dword [fcn.00401290]
mov edi, eax
cmp edi, ebx
jl 0x43de2e
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43ddfa
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x218]
push ecx
mov edi, eax
call fcn.00402b01
mov dword [esi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], 1
mov eax, esi
call fcn.004015d1
ret
push edi
call fcn.0043e99a
push 0x487bb8
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], edi
call fcn.0047ed7e
int3

Function at 0x43e122
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [edi], 0
jne 0x43e133
xor al, al
leave
ret
mov ecx, dword [edi + 0x20]
push ebx
push esi
lea eax, [edi + 0xc]
call fcn.00413d4d
mov esi, dword [edi + 0x30]
sub esi, dword [edi + 0x28]
lea eax, [edi + 0x28]
call fcn.00407e9b
mov eax, dword [edi + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x28]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x28]
lea esi, [edi + 0xc]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], eax
jb 0x43e173
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
jmp 0x43e176
mov dword [ebp - 0xc], esi
cmp byte [edi], 0
mov eax, dword [edi + 4]
jne 0x43e183
call fcn.0043e064
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
lea ecx, [edi + 0x38]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0xc]
push dword [edi + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x43e1fa
cmp eax, 0x103
je 0x43e218
cmp eax, 0xea
jne 0x43e21c
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x10], eax
cmp ecx, eax
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x10]
jb 0x43e1c9
lea eax, [ebp - 0xc]
mov ecx, dword [eax]
mov eax, esi
call fcn.00413d4d
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x28]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x10]
jb 0x43e1eb
lea eax, [ebp - 0xc]
mov esi, dword [eax]
lea eax, [edi + 0x28]
call fcn.00407e9b
jmp 0x43e15d
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.00413d4d
mov esi, dword [ebp - 8]
lea eax, [edi + 0x28]
call fcn.00407e9b
inc dword [edi + 8]
mov al, 1
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x43e214
test eax, eax
jle 0x43e22a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
call fcn.0043e99a
push 0x487bb8
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
call fcn.0047ed7e
int3
Function at 0x474235
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x1b4]
cmp eax, 2
jbe 0x4742de
cmp dword [edi + 0x1c8], 0
jne 0x4742de
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
jbe 0x4742de
push ebx
push esi
lea ebx, [edi + 0x1d4]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
shl eax, cl
test dword [edi + 0x2dc], eax
je 0x4742cb
movzx esi, word [edi + 0x330]
movzx ecx, word [edi + 0x328]
shl esi, 0x10
add esi, dword [ebx + 8]
shl ecx, 0x10
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x4742cb
movzx ecx, word [edi + 0x328]
imul ecx, ecx, 0x18000
cmp eax, ecx
jge 0x4742cb
movzx eax, word [edi + 0x328]
mov ecx, eax
imul eax, eax, 0xffff0000
shl ecx, 0xf
sub eax, ecx
dec eax
mov dword [ebx], eax
test esi, esi
jle 0x4742cb
neg eax
mov dword [ebx], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 0x14
cmp eax, dword [edi + 0x1b4]
jb 0x474269
pop esi
pop ebx
leave
ret