joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0xefa000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xefa00a
jmp 0xefc00f
jmp fcn.00a98160
Function at 0x405b27
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408658
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408648
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405b78
xor eax, eax
jmp 0x405ba5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ba4
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x405ba2
xor eax, eax
jmp 0x405ba4
call esi
pop esi
leave
ret 4

Function at 0x405bc6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43b568
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43b568], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405c05
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405c09
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405dbe
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dde
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405de4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405e13
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e57
test edi, edi
jne 0x405e1e
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e51
Function at 0x405f99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x400
push dword [ebp + 8]
call fcn.00405f38
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406008
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov byte [esi + 0x3ff], 0
pop edi
jne 0x406008
cmp dword [ebp + 0xc], 1
je 0x40600b
cmp dword [ebp + 0xc], 2
je 0x40600b
mov byte [esi], 0
pop esi
leave
ret 0x14

Function at 0x406195
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4061b9
xor eax, eax
test eax, eax
je 0x4061cb
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4061cb
xor ecx, ecx
jmp 0x4061ce
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x408298]
push ecx
lea eax, [ebp + eax - 0x120]
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4062d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dbe
mov edi, eax
cmp edi, 0xffffffff
je 0x406311
test byte [esp + 0x10], 1
push esi
je 0x4062fa
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x406302
xor eax, eax
inc eax
jmp 0x406313
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4062f1
test byte [esp + 0x10], 4
jne 0x406311
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b5b0
push esi
call fcn.004060b2
push esi
call fcn.00405cef
mov edi, eax
test edi, edi
jne 0x4063cc
xor eax, eax
jmp 0x406424
push edi
call fcn.004060d4
test byte [0x43f160], 0x80
je 0x4063e5
mov al, byte [edi]
test al, al
je 0x4063c8
cmp al, 0x5c
je 0x4063c8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x406405
push esi
call fcn.0040616e
test eax, eax
je 0x4063ff
test byte [eax], 0x10
je 0x406429
push esi
call fcn.00406345
push esi
call ebx
cmp eax, edi
jg 0x4063f0
push esi
call fcn.00406318
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406423
Function at 0x40667e
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x43b9b0], 0x4c554e
mov edi, 0x400
mov ebp, 0x43b9b0
test esi, esi
je 0x4066ca
push 1
push 0
push esi
call fcn.00405de4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4067e9
cmp eax, edi
jg 0x4067e9
push edi
mov esi, 0x43c6f0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4067e9
cmp eax, edi
jg 0x4067e9
push esi
push ebp
push str._s_s_r_n
push 0x43bef0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x43f0f0]
push dword [eax + 0x128]
push esi
call fcn.0040642d
push 4
push 0xc0000000
push esi
call fcn.00405de4
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x4067e9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4067e2
push edi
push esi
push ebp
call fcn.00405e5b
test eax, eax
je 0x4067e2
push str._Rename__r_n
push esi
call fcn.00405d44
test eax, eax
jne 0x406780
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4067b5
push 0x4086f4
add eax, 0xa
push eax
call fcn.00405d44
mov ebp, eax
test ebp, ebp
je 0x4067b1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4067a2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40679c
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4067b7
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x43bef0
add eax, esi
push eax
call fcn.00405d9a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e8a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4067ee
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406811
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040667e
pop ecx
pop ecx
inc dword [0x43f1d0]
ret 8
Function at 0x40681a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
and esi, 4
push ebx
mov dword [ebp - 4], esi
call fcn.004063ab
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406859
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x43f1c8], eax
jmp 0x4069e4
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push edi
je 0x406874
test eax, eax
je 0x406992
test cl, 2
je 0x406992
push ebx
mov esi, 0x43c2f0
push esi
call fcn.004060b2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406896
push str..
push esi
call edi
jmp 0x40689c
push ebx
call fcn.00406345
cmp byte [ebx], 0
jne 0x4068aa
cmp byte [0x43c2f0], 0x5c
jne 0x4068b2
push 0x408298
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406985
lea esi, [ebp - 0x120]
push 0x3f
mov eax, esi
push eax
call fcn.00405ca9
cmp byte [eax], 0
je 0x4068f5
cmp byte [ebp - 0x1c], 0
je 0x4068f5
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40690b
mov al, byte [esi + 1]
test al, al
je 0x406964
cmp al, 0x2e
jne 0x40690b
cmp byte [esi + 2], 0
je 0x406964
push esi
push edi
call fcn.004060b2
test byte [ebp - 0x14c], 0x10
je 0x406930
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406964
push dword [ebp + 0xc]
push ebx
call fcn.0040681a
jmp 0x406964
push dword [ebp - 4]
push ebx
call fcn.004062d0
test eax, eax
jne 0x40695c
cmp dword [ebp - 4], eax
je 0x406954
push ebx
push 0xfffffffffffffff1
call fcn.00404eea
push 0
push ebx
call fcn.004067ee
jmp 0x406964
inc dword [0x43f1c8]
jmp 0x406964
push ebx
push 0xfffffffffffffff2
call fcn.00404eea
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4068d7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
mov esi, dword [ebp - 4]
je 0x406992
mov byte [edi - 1], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4069e3
cmp dword [ebp - 0xc], edi
je 0x4069d3
push ebx
call fcn.0040616e
test eax, eax
je 0x4069e3
push ebx
call fcn.00406318
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.004062d0
test eax, eax
jne 0x4069db
cmp esi, edi
je 0x4069d3
push ebx
push 0xfffffffffffffff1
call fcn.00404eea
push edi
push ebx
call fcn.004067ee
jmp 0x4069e3
inc dword [0x43f1c8]
jmp 0x4069e3
push ebx
push 0xffffffffffffffe5
call fcn.00404eea
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4069ea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43caf4], 0
jne 0x406a28
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069fe
mov dword [ecx*4 + 0x43caf0], eax
inc ecx
cmp ecx, 0x100
jl 0x4069f9
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406a55
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43caf0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406a36
not eax
pop ebp
ret 0xc

Function at 0x406a93
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x825448
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00825598
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 0x82546e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82545a
add dl, dl
jne 0x825479
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8254cc
xor eax, eax
add dl, dl
jne 0x825486
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x82556d
add dl, dl
jne 0x825495
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8254a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8254ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8254b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8254c2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x825465
mov eax, 1
add dl, dl
jne 0x8254da
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8254e5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8254d1
sub eax, ebx
mov ebx, 1
jne 0x825518
mov ecx, 1
add dl, dl
jne 0x8254fe
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x825509
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8254f5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x825465
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x82552f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x82553a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x825526
cmp eax, 0x7d00
jae 0x82555d
cmp eax, 0x500
jb 0x825558
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x825465
cmp eax, 0x7f
ja 0x825560
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x825465
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x82558e
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 0x825465
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10007c8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1001b5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.100086d2
test eax, eax
jne 0x10007cb3
xor al, al
jmp 0x10007dab
push ebx
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlW]
test eax, eax
jns 0x10007ce1
xor al, al
jmp 0x10007daa
push edi
push ebx
push 0x80
push 3
push ebx
xor ebx, ebx
lea eax, [ebp - 0x20c]
inc ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007da7
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x10007da7
cmp dword [ebp - 0x218], 4
jne 0x10007da7
push 3
lea eax, [ebp - 0x210]
push 0x10013ff4
push eax
call sub.MSVCR120.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10007d6f
push 3
lea eax, [ebp - 0x210]
push 0x10013ff8
push eax
call sub.MSVCR120.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10007da3
xor eax, eax
push eax
push eax
push eax
movsx ax, byte [ebp - 0x20d]
movzx eax, ax
push eax
call fcn.10007f50
mov ecx, dword [0x1001c610]
add esp, 0x10
mov edi, eax
mov esi, edx
call fcn.10007f50
cmp edx, esi
jb 0x10007da1
ja 0x10007da3
cmp eax, edi
jae 0x10007da3
xor ebx, ebx
mov al, bl
jmp 0x10007da9
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10010fb8
mov esp, ebp
pop ebp
ret 4

Function at 0x10007f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10007f5f
pop dword [ebp - 0x38]
mov eax, 0x5060ea09
add eax, 0xbf9f9556
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3ba07
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xef8e6ce2
add ecx, 0x1071e414
mov edi, eax
mov ebx, 0x6175e1d8
sub ebx, 0x5173e3d8
add ebx, dword [ebp - 0x38]
mov esi, 0x9545a8e5
sub esi, 0xeb42b61f
sub dword [ebp - 0xc], 0x5b6eb4a2
mov edx, dword [ebx]
xor dword [ebp - 0x34], 0xf7c38669
sub edx, esi
add dword [ebp - 0x20], edi
mov dword [edi], edx
mov dword [ebp - 0x18], 0xa4825999
add edi, 0x51703064
sub edi, 0x51703060
add ebx, 0xc1f761aa
add ebx, 0x3e089e5a
loop 0x10007fb9
add eax, 0xfae22fdb
sub eax, 0xfae0f930
xor ebx, ebx
add ebx, eax
add eax, 0xc62d2696
sub eax, 0xc62d2691
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1000b7a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10012385
call fcn.1001109f
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1000b97f
push edi
call dword [sym.imp.MSVCR120.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10007f50
add esp, 0x10
test eax, eax
js 0x1000b979
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000b83d
push esi
call fcn.10006ae7
pop ecx
test al, al
je 0x1000b83d
mov eax, esi
call fcn.100110e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000b849
push esi
lea ecx, [ebp - 0x428]
call fcn.10007f50
push 3
push esi
push edi
push eax
call fcn.10007f50
mov esi, eax
test esi, esi
je 0x1000b979
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x1000b895
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x1000b895
call fcn.10002f77
mov esi, eax
jmp 0x1000b95e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000b8b8
call fcn.10002f77
jmp 0x1000b951
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1000b8ae
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000b8e8
mov esi, 0x8007000e
jmp 0x1000b953
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10007f50
jmp 0x1000b90e
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000b8e1
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.10007f50
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.10007f50
mov esi, eax
test edi, edi
je 0x1000b95e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000b999
lea ecx, [ebp - 0x418]
call fcn.1000af68
jmp 0x1000b999
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000b994
lea ecx, [ebp - 0x418]
call fcn.1000af68
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10001f09
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.10010ff1
ret 0x10
Function at 0x1000d27a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__wcsicmp]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x100144f0
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push str.file:__
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push dword [ebp + 0xc]
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push 0x38
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x38]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000d300
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000d2f9
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000d300
mov esi, edi
jmp 0x1000d300
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.10007f50
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x6d571799
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d5717e7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d5717f8
push 0xd
pop eax
jmp 0x6d571822
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d5717fb
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d571db8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d57c188]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
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 - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d577610
mov ebx, eax
cmp ebx, esi
je 0x6d571e2b
lea ecx, [ebp - 0x74]
call fcn.6d5716c7
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d57731e
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d571e43
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d571db8
cmp eax, esi
jne 0x6d571e75
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x6d571e33
lea ecx, [ebp - 0x74]
call fcn.6d5716c7
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d571658
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d5716c7
mov eax, esi
jmp 0x6d571e11