joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44379b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4437bd
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.00444f6c
xor al, al
jmp 0x44387f
push esi
call fcn.00442c39
mov esi, dword [sym.imp.MSVCR100.dll_fseek]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov eax, dword [ebp - 4]
add esp, 0x1c
cmp eax, ebx
jg 0x4437fc
push ebx
push ebx
push 0xc
jmp 0x44382b
inc eax
push eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x443837
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
pop ecx
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.00444f6c
xor al, al
jmp 0x44387e
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x443860
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x443858
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x44385c
jmp 0x44385b
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x443845
push dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
xor eax, eax
cmp byte [edi + 0x2c], bl
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x4495fb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov dl, byte [eax + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x1c], esi
cmp dl, 3
je 0x44977e
and dword [ebp - 0x18], 0
mov ecx, dword [eax]
push ebx
test dl, 2
je 0x449659
movzx edx, byte [eax + 9]
movzx esi, byte [edi]
mov ebx, edx
sub ebx, esi
movzx esi, byte [edi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, edx
sub ebx, esi
movzx esi, byte [edi + 2]
sub edx, esi
mov esi, dword [ebp - 0x1c]
push 3
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
pop ebx
jmp 0x449669
movzx edx, byte [edi + 3]
movzx ebx, byte [eax + 9]
sub ebx, edx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
inc ebx
test byte [eax + 8], 4
je 0x44967e
movzx edx, byte [edi + 4]
movzx edi, byte [eax + 9]
sub edi, edx
mov dword [ebp + ebx*4 - 0x14], edi
inc ebx
xor edi, edi
test ebx, ebx
jle 0x44977d
lea edx, [ebp + edi*4 - 0x14]
cmp dword [edx], 0
jg 0x449696
and dword [edx], 0
jmp 0x44969d
mov dword [ebp - 0x18], 1
inc edi
cmp edi, ebx
jl 0x449688
cmp word [ebp - 0x18], 0
je 0x44977d
movzx edx, byte [eax + 9]
dec edx
dec edx
je 0x449767
dec edx
dec edx
je 0x44973c
sub edx, 4
je 0x44971b
sub edx, 8
jne 0x44977d
and dword [ebp - 0x18], edx
imul ecx, ebx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x44977d
mov eax, dword [ebp - 0x18]
xor edx, edx
div ebx
movzx eax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
mov cx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
add esi, 2
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x4496dc
jmp 0x44977d
imul ecx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x44977d
xor edx, edx
mov eax, edi
div ebx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi], cl
inc esi
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x449727
jmp 0x44977d
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, 0xf0
sar eax, cl
push 0xf
pop edx
sar edx, cl
and al, 0xf0
or al, dl
test edi, edi
je 0x44977d
mov dl, byte [esi]
mov cl, byte [ebp - 0x14]
shr dl, cl
and dl, al
mov byte [esi], dl
inc esi
dec edi
jne 0x449756
jmp 0x44977d
mov eax, dword [eax + 4]
mov ecx, esi
test eax, eax
je 0x44977d
mov dl, byte [ecx]
shr dl, 1
and dl, 0x55
mov byte [ecx], dl
inc ecx
dec eax
jne 0x449770
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049614a
leave
ret

Function at 0x45525e
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [ebp + 8]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x4552de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc dword [0x4c9854]
cmp dword [0x4c9854], 1
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov edi, edx
jne 0x455329
push 0
call dword [sym.imp.MSVCR100.dll__time64]
xor eax, 0xbb40e64e
push eax
call dword [sym.imp.MSVCR100.dll_srand]
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.004552a3
add esp, 4
xor esi, esi
call dword [sym.imp.MSVCR100.dll_rand]
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.00455241
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.0045525e
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x455338
mov eax, dword [ebp - 0x20]
push edi
call fcn.004552a3
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.00455241
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.0045525e
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
mov byte [ebp + eax - 0x10], bl
cmp esi, 0xa
jl 0x455386
mov eax, ecx
call fcn.00455241
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.0045525e
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
call fcn.00455241
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.0045525e
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add esp, 8
mov byte [eax + esi + 1], bl
pop edi
lea eax, [esi + 2]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049614a
leave
ret
Function at 0x456bc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x100ac], edi
je 0x456c26
cmp dword [esi + 0x7c], edi
jbe 0x456c26
mov dword [ebp - 4], 0xffffff5c
sub dword [ebp - 4], esi
lea ebx, [esi + 0xa4]
lea eax, [esi + 0x100d0]
call fcn.00455241
mov edi, dword [esi + 0x100dc]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
lea ecx, [esi + 0x100d0]
call fcn.0045525e
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x456bee
xor edi, edi
mov ebx, dword [esi + 0x7c]
push ebx
lea eax, [esi + 0xa4]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, ebx
je 0x456c45
or dword [ebp - 8], 0xffffffff
add dword [esi + 0x100c0], ebx
mov ecx, dword [esi + 0x48]
mov eax, dword [ebp - 8]
adc dword [esi + 0x100c4], edi
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], edi
mov dword [esi + 0x7c], edi
adc dword [esi + 0x100cc], edi
pop edi
pop ebx
leave
ret
Function at 0x45a9fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x45aa86
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_memcpy]
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x45aa47
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x45aa6a
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x45ab55
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.0045a7cf
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
pop ecx
pop ecx
cmp edx, 3
jb 0x45aace
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x45aae2
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x45aa07
mov ecx, dword [edi + 0x16c0]
mov eax, dword [edi + 0x3c]
cmp ecx, eax
jae 0x45ab55
mov esi, dword [edi + 0x6c]
add esi, edx
cmp ecx, esi
jae 0x45ab23
sub eax, esi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x45ab07
mov ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
add ebx, esi
mov dword [edi + 0x16c0], ebx
jmp 0x45ab55
lea edx, [esi + 0x102]
cmp ecx, edx
jae 0x45ab55
sub esi, ecx
add esi, 0x102
sub eax, ecx
cmp esi, eax
jbe 0x45ab3d
mov esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ecx
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebx
leave
ret

Function at 0x45ea09
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, ecx
xor edx, edx
div dword [esi + 8]
mov eax, ecx
push edi
sub eax, edx
sub ecx, eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
add ecx, edi
push ecx
push eax
push 0
push 6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
lea eax, [ebp + 8]
add edi, ebx
push eax
lea ecx, [esi + 0x18]
mov dword [ebp + 8], edi
call fcn.0045e967
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45ed84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x45ed9d
push 0x80004005
call fcn.0045dad5
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x45ee0c
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x45ee07
cmp dword [ebp + 0x10], ebx
jbe 0x45edfd
cmp dword [ebp + 0x10], 2
jbe 0x45edef
cmp dword [ebp + 0x10], 7
jne 0x45edfd
test cl, 1
jne 0x45edfd
shr ecx, 1
cmp ecx, 1
jb 0x45edfd
cmp word [esi + ecx*2 - 2], bx
jne 0x45edfd
cmp ecx, 1
jbe 0x45ee0c
cmp word [esi + ecx*2 - 4], bx
jmp 0x45edfb
test cl, 1
jne 0x45edfd
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x45ee0c
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x45ee0c
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x460902
Capabilities:
Read .ini file

Disassembly:
push 0x810
mov eax, 0x497553
call fcn.004961c2
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, eax
push 0x7fe
mov dword [ebp - 0x814], eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x818], ecx
lea eax, [ebp - 0x80e]
xor ecx, ecx
push eax
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x810], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0x49d93c
push dword [ebp - 0x818]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
mov ecx, esi
call fcn.0045ffe5
and dword [ebp - 4], 0
push 0x49da50
push 0x49da48
mov ecx, esi
mov dword [ebp - 0x814], 1
call fcn.0045f724
mov eax, esi
call fcn.00496245
ret

Function at 0x460c37
Capabilities:
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x4976d7
call fcn.00496159
mov eax, dword [0x4c8014]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], eax
push esi
push 0x3a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0045f1f0
cmp eax, esi
jl 0x460c66
add eax, 2
mov edi, eax
push edi
push 0x5c
lea ecx, [ebp + 8]
call fcn.0045f1f0
mov edi, eax
cmp edi, esi
jge 0x460c87
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0045f9b8
jmp 0x460cad
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004600e8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0045f9b8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0045ddba
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x460cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x460cdd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x460cf5
cmp edi, 0xffffffff
je 0x460d09
inc edi
jmp 0x460c68
lea ecx, [ebp - 0x10]
call fcn.0045ddba
lea ecx, [ebp + 8]
call fcn.0045ddba
xor eax, eax
call fcn.00496231
ret
lea ecx, [ebp - 0x10]
call fcn.0045ddba
lea ecx, [ebp + 8]
call fcn.0045ddba
mov eax, esi
jmp 0x460cef
xor esi, esi
inc esi
jmp 0x460cf5
Function at 0x462404
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x49798c
call fcn.00496159
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ecx
mov byte [edi], cl
xor esi, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x10], ecx
je 0x4625c9
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0x10]
mov al, byte [eax]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc dword [ebp + 0xc]
cmp esi, 3
jne 0x4624eb
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov dl, bl
shr dl, 4
add al, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
cmp dword [0x4c8084], 0x10
mov eax, dword [0x4c8070]
jae 0x4624a2
mov eax, 0x4c8070
movzx ecx, byte [ebp + esi - 0x14]
mov al, byte [ecx + eax]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
mov ecx, edi
push 1
call fcn.00462156
inc dword [ebp - 0x18]
cmp dword [ebp + 0x14], 0
jle 0x4624e1
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp + 0x14]
test edx, edx
jne 0x4624e1
push dword [ebp + 0x18]
call sub.MSVCR100.dll_strlen
pop ecx
push eax
push dword [ebp + 0x18]
mov ecx, edi
call fcn.004621b7
inc esi
cmp esi, 4
jl 0x46248f
xor esi, esi
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x46243c
cmp esi, ecx
je 0x4625c9
cmp esi, 3
jge 0x46251a
push 3
pop edx
sub edx, esi
push edx
lea eax, [ebp + esi - 0x10]
push ecx
push eax
call sub.MSVCR100.dll_memset
mov bl, byte [ebp - 0xf]
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp - 0x10]
mov dl, al
shr dl, 2
mov byte [ebp - 0x14], dl
and al, 3
mov dl, bl
shl al, 4
shr dl, 4
add al, dl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov dl, al
shl bl, 2
shr dl, 6
add bl, dl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea edi, [esi + 1]
xor ebx, ebx
mov byte [ebp - 0x11], al
test edi, edi
jle 0x4625ae
cmp dword [0x4c8084], 0x10
mov eax, dword [0x4c8070]
jae 0x462568
mov eax, 0x4c8070
movzx ecx, byte [ebp + ebx - 0x14]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.00462156
inc dword [ebp - 0x18]
cmp dword [ebp + 0x14], 0
jle 0x4625a9
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp + 0x14]
test edx, edx
jne 0x4625a9
push dword [ebp + 0x18]
call sub.MSVCR100.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x18]
call fcn.004621b7
inc ebx
cmp ebx, edi
jl 0x462555
push 3
pop edi
cmp esi, edi
jge 0x4625c6
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.00462156
dec edi
jne 0x4625b7
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00496231
ret
Function at 0x4643de
Capabilities:
Get file size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
and dword [edi], 0
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push str.Unknown
mov dword [ebp - 0x2bc], ecx
call fcn.0045e612
push 0x701
push 0x2b4
xor eax, eax
lea ecx, [ebp - 0x2b8]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 4], eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2bc]
mov dword [edi], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0045e612
mov ebx, dword [ebx + 4]
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x464497
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x464490
mov eax, dword [ebp - 0x2c0]
mov dword [esi], eax
mov eax, dword [ebp - 0x2bc]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0049614a
leave
ret 0xc

Function at 0x464b7f
Capabilities:
Get file size

Disassembly:
push 0x1c
mov eax, 0x497b0b
call fcn.00496159
mov esi, ecx
mov eax, dword [0x4c8014]
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
cmp dword [esi + 0xa8], edi
jle 0x464c1b
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004644c3
push edi
lea ecx, [eax + 4]
call fcn.0045f46b
push eax
lea ecx, [ebp - 0x10]
call fcn.0045ffe5
push edi
push edi
push 3
push edi
push 1
push connect
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x464c05
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
test eax, eax
je 0x464bff
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
adc dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.0045ddba
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0xa8]
jl 0x464bab
lea ecx, [ebp - 0x18]
call fcn.0045ddba
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00496231
ret
Function at 0x465376
Capabilities:
Get file size

Disassembly:
push 0x18
mov eax, 0x497bf2
call fcn.00496159
mov eax, dword [0x4c8014]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xa4]
mov ecx, dword [eax]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], ecx
cmp ecx, eax
je 0x465418
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4653b1
xor esi, esi
push esi
add ecx, 0x14
call fcn.0045f46b
push eax
lea ecx, [ebp + 8]
call fcn.0045ffe5
push esi
push esi
push 3
push esi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4653fd
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
je 0x4653fb
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
adc dword [ebp - 0x18], eax
call edi
lea ecx, [ebp + 8]
call fcn.0045ddba
lea ecx, [ebp - 0x10]
call fcn.00462ad5
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebx + 0xa4]
jne 0x4653af
lea ecx, [ebp - 0x14]
call fcn.0045ddba
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00496231
ret 4
Function at 0x46be1c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c8e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0045ed35
mov ebx, eax
cmp ebx, esi
je 0x46be8d
lea ecx, [ebp - 0x214]
call fcn.0045ed1a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049614a
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x46beab
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0046be1c
cmp eax, esi
jne 0x46bef2
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x46be95
lea ecx, [ebp - 0x214]
call fcn.0045ed1a
push dword [ebp - 0x218]
mov ecx, edi
call fcn.0046b5b1
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0045ed1a
mov eax, esi
jmp 0x46be7c

Function at 0x46d7a5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test ecx, ecx
je 0x46d7b2
lea esi, [ecx - 0x20]
jmp 0x46d7b4
xor esi, esi
cmp byte [ecx + 0x1c], 0
je 0x46d7e8
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x46d7d9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46d7ee
cmp dword [ebp + 0xc], 0
jne 0x46d7e8
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x46d803
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x20]
call fcn.0046cdba
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x46d80a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
test ecx, ecx
je 0x46d817
lea esi, [ecx - 0x20]
jmp 0x46d819
xor esi, esi
cmp byte [ecx + 0x1c], 0
je 0x46d84d
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x46d83e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46d853
cmp dword [ebp + 0xc], 0
jne 0x46d84d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x46d868
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cwde
push eax
movsx eax, word [ebp + 0x10]
push eax
lea ecx, [esi + 0x20]
call fcn.0046d400
xor eax, eax
pop esi
pop ebp
ret 0x10