joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1255ca3
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
push esi
xor ecx, ecx
lea esi, [ebx + 0x430]
xor eax, eax
cmp dword [esi], ecx
je 0x1255cbc
cmp dword [esi + 4], ecx
jne 0x1255ceb
push edi
lea edi, [ebx + 0x228]
cmp word [edi], cx
je 0x1255cea
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1255cde
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x22
push edi
mov ecx, esi
call fcn.012567a7
xor ecx, ecx
pop edi
cmp dword [esi], ecx
je 0x1255d01
cmp dword [esi + 4], ecx
je 0x1255d01
cmp eax, ecx
jl 0x1255d01
push esi
lea ecx, [ebx + 4]
call fcn.01255c23
pop esi
pop ebx
ret

Function at 0x1257634
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x125765b
push 0x800
mov dword [esi + 0xc], 0x400
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [esi + 0x14], eax
mov edx, dword [esi + 0x14]
cmp edx, edi
je 0x125773b
cmp dword [esi + 8], 0x80000000
jne 0x125773b
mov eax, dword [esi + 0x1c]
cmp eax, 1
mov dword [ebp - 4], edi
jne 0x12576c8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
shl eax, 1
cmp ecx, 0xffffffff
jne 0x125769b
mov ecx, dword [esi]
mov edi, dword [ecx]
lea ebx, [ebp - 4]
push ebx
push eax
push edx
push ecx
call dword [edi + 0xc]
jmp 0x12576b7
push edi
lea edi, [ebp - 4]
push edi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
mov dword [esi + 0x24], eax
jl 0x125773b
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [esi + 0x10], eax
jmp 0x125773b
cmp eax, edi
jne 0x1257734
mov edi, dword [esi + 0xc]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01160620
mov ebx, esp
test ebx, ebx
je 0x125773b
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x12576fa
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push edi
push ebx
push eax
call dword [ecx + 0xc]
jmp 0x1257717
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
mov dword [esi + 0x24], eax
jl 0x125773b
push dword [esi + 0xc]
push dword [esi + 0x14]
push dword [ebp - 4]
push ebx
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x12576c3
mov dword [esi + 0x24], 0x80004005
mov eax, dword [esi + 0x14]
mov dword [esi + 0x18], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x125774e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
push edi
je 0x125783c
cmp dword [esi + 8], 0x40000000
jne 0x125783c
mov eax, dword [esi + 0x1c]
cmp eax, 1
jne 0x12577c1
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 4]
shl edi, 1
cmp eax, 0xffffffff
mov ebx, 0x80004005
lea edx, [ebp - 4]
jne 0x125779d
mov eax, dword [esi]
mov ecx, dword [eax]
push edx
push edi
push dword [esi + 0x14]
push eax
call dword [ecx + 0x10]
jmp 0x12577b4
push 0
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, ebx
cmp edi, dword [ebp - 4]
mov dword [esi + 0x24], eax
je 0x1257832
mov dword [esi + 0x24], ebx
jmp 0x1257832
test eax, eax
jne 0x125782b
mov eax, dword [esi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.01160620
mov edi, esp
test edi, edi
je 0x1257832
xor ebx, ebx
push ebx
push ebx
mov byte [edi], 0
push dword [esi + 0xc]
push edi
push dword [esi + 0x10]
push dword [esi + 0x14]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
jne 0x125780d
mov ecx, dword [esi]
mov edx, dword [ecx]
lea ebx, [ebp - 4]
push ebx
push eax
push edi
push ecx
call dword [edx + 0x10]
mov dword [esi + 0x24], eax
jmp 0x1257832
push ebx
lea edx, [ebp - 4]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x1257808
mov dword [esi + 0x24], 0x80004005
mov eax, dword [esi + 0x14]
and dword [esi + 0x10], 0
mov dword [esi + 0x18], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1257c6c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1257c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1257c9d
test eax, eax
jle 0x1257c9f
and eax, 0xffff
or eax, 0x80070000
jmp 0x1257c9f
xor eax, eax
pop ebp
ret 4
Function at 0x1264da0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
call fcn.01264d57
xor ecx, ecx
mov edx, eax
shrd edx, ecx, 0xb
shr ecx, 0xb
mov esi, edx
inc esi
shl esi, 0xb
sub esi, eax
cmp dword [ebx], 0
jne 0x1264dd0
mov eax, 0x80004003
jmp 0x1264e4b
push edi
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 8], edi
je 0x1264e19
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push dword [ebp - 8]
jne 0x1264e42
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, 0x80004005
jmp 0x1264e4a
xor edi, edi
test esi, esi
mov byte [ebp - 1], 0
jbe 0x1264e48
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1264e12
inc edi
cmp edi, esi
jb 0x1264e23
jmp 0x1264e48
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1266a97
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x12d4848]
test eax, eax
push ebx
push esi
push edi
jne 0x1266b06
lea eax, [ebp - 8]
push eax
mov esi, 0x102cf04
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x1266af6
add eax, 3
and eax, 0xfffffffc
call fcn.01160620
mov ebx, esp
test ebx, ebx
je 0x1266af6
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1266af6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1007ab8
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1266afa
xor eax, eax
jmp 0x1266b06
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0xa]
mov dword [0x12d4848], eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12691c8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x12691dd
cmp dword [ebp + 0xc], ebx
jne 0x12691e7
mov eax, 0x80004003
jmp 0x126936e
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x12691f3
call fcn.012593f3
push esi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x1269236
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269223
call esi
jmp 0x126922f
call esi
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1269363
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1269269
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269256
call esi
jmp 0x1269262
call esi
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1269362
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x1269284
mov ebx, 0x80004003
jmp 0x1269362
push ebx
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x12692bc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12692a6
call esi
jmp 0x12692b2
call esi
and eax, 0xffff
or eax, 0x80070000
mov esi, dword [ebp + 8]
mov ebx, eax
jmp 0x126935b
mov esi, dword [ebp + 8]
mov byte [esi + edi], bl
xor edx, edx
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
add eax, esi
mov cl, byte [eax]
cmp cl, 0xa
je 0x12692ee
cmp cl, 0xd
je 0x12692ee
cmp cl, bl
je 0x12692ee
cmp edx, ebx
jne 0x126934f
cmp cl, 9
je 0x126934f
cmp cl, 0x20
je 0x126934f
mov edx, eax
jmp 0x126934f
cmp edx, ebx
mov byte [eax], bl
je 0x126934d
cmp byte [edx], 0x23
je 0x126934d
mov eax, dword [0x12d1c68]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push edx
push dword [ebp + 0xc]
call fcn.012686e7
test al, al
je 0x1269345
cmp dword [ebp + 0x10], ebx
je 0x1269345
mov eax, dword [0x12d1c68]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.01258090
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.01268890
lea ecx, [ebp - 0x14]
call fcn.01257f79
lea ecx, [ebp + 0x14]
call fcn.01257f79
xor edx, edx
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jbe 0x12692c7
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
lea ecx, [ebp - 4]
call fcn.01082eef
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x12697c1
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x1269912
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1269912
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x1269912
cmp dword [ebp + 0x14], esi
je 0x1269912
push ebx
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [edi], esi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x1269847
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269832
call esi
mov edi, eax
jmp 0x126990d
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x126990d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x1269881
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x126986c
call esi
mov edi, eax
jmp 0x1269904
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1269904
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x12698b9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x12698a7
call edi
mov edi, eax
jmp 0x12698f6
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x12698f6
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
push esi
push dword [ebp + 0x14]
mov ebx, eax
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.0126a375
mov edi, eax
cmp edi, esi
jl 0x12698eb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
shl eax, 3
mov dword [ecx], eax
cmp ebx, esi
je 0x12698f6
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp + 8], esi
je 0x1269904
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
jmp 0x1269917
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x10
Function at 0x1269ad2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
cmp eax, 0xff
pop ecx
jne case.0x1269bdd.217
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
cmp eax, 0xd8
pop ecx
jne case.0x1269bdd.217
cmp dword [0x12d488c], 0x14
jge case.0x1269bdd.217
xor esi, esi
push dword [ebp + 8]
call sub.msvcrt.dll_fgetc
pop ecx
mov ecx, eax
cmp ecx, 0xff
mov dword [ebp - 0xc], ecx
jne 0x1269b36
cmp esi, 6
jge case.0x1269bdd.217
inc esi
cmp esi, 7
jl 0x1269b0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x12d488c]
push dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [eax*4 + 0x12d4894], ecx
call sub.msvcrt.dll_fgetc
push dword [ebp + 8]
mov ebx, eax
call sub.msvcrt.dll_fgetc
mov esi, ebx
shl esi, 8
or esi, eax
cmp esi, 2
pop ecx
pop ecx
mov dword [ebp - 8], eax
jl case.0x1269bdd.217
mov eax, dword [0x12d488c]
lea eax, [eax + eax*2]
push esi
mov dword [eax*4 + 0x12d4898], esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je case.0x1269bdd.217
mov eax, dword [0x12d488c]
push dword [ebp + 8]
lea eax, [eax + eax*2]
mov dword [eax*4 + 0x12d4890], edi
mov al, byte [ebp - 8]
mov byte [edi + 1], al
lea eax, [esi - 2]
push eax
mov byte [edi], bl
lea ebx, [edi + 2]
push 1
push ebx
call sub.msvcrt.dll_fread
lea ecx, [esi - 2]
add esp, 0x10
cmp eax, ecx
jne case.0x1269bdd.217
mov edx, dword [0x12d488c]
mov ecx, dword [ebp - 0xc]
inc edx
lea eax, [ecx - 0xc0]
cmp eax, 0x3e
mov dword [0x12d488c], edx
ja case.0x1269bdd.196
movzx eax, byte [eax + 0x1269d08]
jmp dword [eax*4 + 0x1269cec]
cmp dword [ebp - 4], 0
jne case.0x1269bdd.224
test byte [ebp + 0xc], 1
je case.0x1269bdd.224
push esi
call fcn.01269922
mov dword [ebp - 4], 1
mov edx, dword [0x12d488c]
jmp case.0x1269bdd.196
test byte [ebp + 0xc], 1
je case.0x1269bdd.224
mov ecx, dword [ebx]
mov eax, 0x102d104
cmp ecx, dword [eax]
je case.0x1269bdd.196
dec edx
lea eax, [edx + edx*2]
push dword [eax*4 + 0x12d4890]
mov dword [0x12d488c], edx
call sub.msvcrt.dll_free
pop ecx
jmp 0x1269bfd
push ecx
mov eax, edi
call fcn.012699e5
cmp edx, 0x14
jl 0x1269b0a
jmp case.0x1269bdd.217
test byte [ebp + 0xc], 2
je 0x1269ce4
mov ebx, dword [ebp + 8]
push ebx
call sub.msvcrt.dll_ftell
push 2
push 0
push ebx
mov edi, eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne case.0x1269bdd.217
push ebx
call sub.msvcrt.dll_ftell
push 0
push edi
push ebx
mov esi, eax
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
jne case.0x1269bdd.217
sub esi, edi
push esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je case.0x1269bdd.217
push ebx
xor ebx, ebx
push esi
inc ebx
push ebx
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, esi
jne case.0x1269bdd.217
mov ecx, dword [0x12d488c]
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [eax + 0x12d4890], edi
inc ecx
mov dword [eax + 0x12d4898], esi
mov dword [eax + 0x12d4894], 0x123
mov dword [0x12d488c], ecx
mov dword [0x12d4888], ebx
xor eax, eax
inc eax
jmp 0x1269b2f
Function at 0x126a94c
Capabilities:
Decompress data using quicklz

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
shr eax, 0x10
movzx eax, ax
push esi
push edi
mov edx, eax
shr edx, 5
mov esi, eax
mov edi, eax
mov ebx, eax
shr ebx, 1
and ebx, 3
mov dword [ebp - 8], edx
not eax
mov dword [ecx + 4], edx
and eax, 1
push 4
mov dword [ecx + 0x14], eax
movzx eax, word [ebp + 8]
pop edx
sub edx, ebx
mov ebx, eax
shr ebx, 9
and ebx, 1
mov dword [ecx + 0x20], ebx
mov ebx, eax
shr ebx, 8
and ebx, 1
mov dword [ecx + 0x24], ebx
mov ebx, eax
shr ebx, 6
and ebx, 3
mov dword [ecx + 0x28], ebx
mov ebx, eax
shr ebx, 4
and ebx, 3
mov dword [ecx + 0x2c], ebx
mov ebx, eax
shr ebx, 3
and ebx, 1
mov dword [ebp - 4], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x30], ebx
mov edx, eax
shr edx, 0xc
mov ebx, eax
shr ebx, 2
mov dword [ebp + 8], edx
mov dword [ecx + 0x18], edx
and ebx, 1
mov edx, eax
push 3
shr esi, 4
shr edi, 3
shr edx, 0xa
mov dword [ecx + 0x34], ebx
pop ebx
and esi, 1
and edi, 1
and edx, 3
and eax, ebx
cmp dword [ebp - 8], 0x7ff
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x38], eax
jne 0x126aa38
cmp dword [ebp + 8], 0xf
je 0x126aa38
cmp dword [ebp + 8], 0
je 0x126aa38
cmp edx, ebx
je 0x126aa38
test esi, esi
jne 0x126aa2a
cmp dword [ebp - 4], ebx
jne 0x126aa38
cmp edi, 1
jne 0x126aa2a
cmp dword [ebp - 4], ebx
je 0x126aa38
mov dword [ecx + 0x3c], 1
call fcn.0126a854
jmp 0x126aa41
and dword [ecx + 0x3c], 0
call fcn.0126a80b
mov eax, dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x126c1e5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x102dad0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x126c23d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100685a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x126c230
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x126c23f
xor eax, eax
pop esi
leave
ret 4
Function at 0x41e480
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x58c868]
xor edx, edx
cmp eax, edx
jne 0x41e4a6
xor eax, eax
mov byte [eax + 0x58c768], al
inc eax
cmp eax, 0x100
jl 0x41e48e
mov dword [0x58c868], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x58c768
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e537
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41e50a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41e4d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41e603
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41e5ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4228a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x422ac1
cmp eax, 8
jg 0x422ac1
cmp dword [esp + 0x8c], 2
jl 0x422ac1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x422ac1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x422ac1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x422927
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x422aaa
mov ebp, dword [0x46e434]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x422959
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x422a91
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x422979
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x46e444]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4229b8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x46e440]
lea ecx, [esp + 0x28]
push ecx
call dword [0x46e400]
test eax, eax
jne 0x422a78
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00421eb0
cmp eax, 1
jne 0x422aa2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00422760
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x42296d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x422aaa
jmp 0x422944
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00421ab0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c