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

Disassembly:
sub esp, 0x21c
push esi
mov esi, dword [esp + 0x228]
push str..bmp
push esi
call fcn.0049ca20
add esp, 8
test al, al
je 0x410b5e
push ebx
push edi
mov edi, dword [esp + 0x22c]
mov ecx, dword [edi + 0x1c]
xor eax, eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
push eax
push 0x80
push 2
push eax
mov dword [esp + 0x2a], eax
push eax
mov word [esp + 0x24], 0x4d42
mov dword [esp + 0x2e], 0x36
mov edx, dword [ecx + 0x14]
push 0x40000000
add edx, 0x36
push esi
mov dword [esp + 0x2e], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0xe
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
mov eax, dword [edi + 0x1c]
push 0
lea edx, [esp + 0x10]
push edx
push 0x28
push eax
push esi
call ebx
mov edx, dword [edi + 0x1c]
mov eax, dword [edx + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x18]
push eax
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x21c
ret 8
push str..png
push esi
call fcn.0049ca20
add esp, 8
test al, al
je 0x410be3
lea edx, [esp + 8]
push edx
push str.image_png
call fcn.004109e0
add esp, 8
test al, al
je 0x410be3
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esp + 0x224]
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 4]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 4]
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call sub.gdiplus.dll_GdipSaveImageToFile
push esi
mov dword [esp + 8], eax
call sub.gdiplus.dll_GdipDisposeImage
pop esi
add esp, 0x21c
ret 8

Function at 0x411c70
Capabilities:
Set environment variable

Disassembly:
mov eax, dword [0x5138c0]
test eax, eax
je 0x411cc5
push esi
mov esi, dword [eax]
test esi, esi
je 0x411c9c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x411c97
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [0x5138c0]
test eax, eax
mov esi, eax
je 0x411cba
mov eax, dword [eax]
test eax, eax
je 0x411cb1
push eax
call fcn.0049fdf6
add esp, 4
push esi
call fcn.0049fdf6
add esp, 4
mov dword [0x5138c0], 0
pop esi
ret
Function at 0x4129d0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
push 0
push 0
push str.PATH
mov edi, ecx
call ebx
mov esi, eax
inc esi
push esi
call fcn.004a98ab
add esp, 4
push esi
push eax
push str.PATH
mov dword [edi], eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x412a30
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x412ad6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebp
test eax, eax
je 0x412ad6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push 0
push 0
push str.PATH
call ebx
push edi
mov esi, eax
call ebp
lea edi, [eax + esi + 2]
push edi
call fcn.004a98ab
add esp, 4
push edi
mov esi, eax
push esi
push str.PATH
call ebx
test esi, esi
je 0x412aa1
push esi
call ebp
test eax, eax
jle 0x412aa1
cmp byte [eax + esi - 1], 0x3b
je 0x412aa1
lea ecx, [eax + 1]
cmp ecx, edi
jae 0x412aa1
mov byte [eax + esi], 0x3b
mov byte [eax + esi + 1], 0
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
je 0x412ac4
push esi
call ebp
test eax, eax
je 0x412ac4
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call fcn.0049fdf6
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 4
pop edi
xor eax, eax
pop ebp
ret 4

Function at 0x4165d0
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4165fa
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4165fa
push edi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
mov eax, esi
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x416610
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x41667e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.cmd_tsplit
push eax
call edi
mov ecx, dword [esi]
push str.cmd_split
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.cmd_splitd
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.cmd_getargc
push eax
call edi
mov ecx, dword [esi]
push str.cmd_getargv
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.cmd_checkoption
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x420b30
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x2068]
xor eax, eax
mov ecx, 0x800
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x4068]
mov ecx, 0x20
or edx, 0xffffffff
mov dword [eax + 0x80], edx
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x420b55
lea eax, [ebx + 0x68]
mov edx, 0x10
xor edi, edi
mov ecx, 0x40
mov dword [eax + 0x1000], edi
mov dword [eax], edi
add eax, 4
dec ecx
jne 0x420b72
dec edx
jne 0x420b6d
push edi
push edi
push edi
mov ecx, ebx
call fcn.00420d80
cmp dword [esi], edi
jne 0x420bd5
push ebp
mov ecx, 0x37f1
mov edi, esi
mov dword [esp + 0x10], 0x800
xor edx, edx
mov esi, 0x20
mov eax, ecx
and eax, 1
mov ebp, ecx
lea edx, [eax + edx*2]
shl eax, 2
and ebp, 4
xor eax, ebp
shl eax, 0xe
sar ecx, 1
or ecx, eax
dec esi
jne 0x420ba8
mov eax, dword [esp + 0x10]
mov dword [edi], edx
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x420ba1
pop ebp
xor esi, esi
push 0
push esi
mov ecx, ebx
call fcn.00420fb0
inc esi
cmp esi, 0xe
jl 0x420bd7
push 0xff
push 7
mov ecx, ebx
call fcn.00420fb0
push 0xff
push 0xe
mov ecx, ebx
call fcn.00420fb0
push 0xff
push 0xf
mov ecx, ebx
call fcn.00420fb0
lea eax, [ebx + 0x68]
pop edi
lea ecx, [ebx + 0x1068]
mov dword [ebx + 0x10], eax
pop esi
mov dword [ebx + 0x64], 0x3f
mov dword [ebx + 0x14], ecx
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4283d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x481250]
neg al
push edi
sbb eax, eax
and eax, 3
mov edi, eax
mov eax, 0xffff
jle 0x42840e
xor ecx, ecx
mov cl, ah
xor edx, edx
mov dh, al
xor eax, eax
and ecx, 0xff
xor ecx, 0xa1
mov ax, word [ecx*2 + 0x4c0240]
xor ax, dx
dec edi
jne 0x4283ea
mov edi, dword [esp + 0xc]
xor ecx, ecx
mov cl, ah
xor edx, edx
mov dh, al
and ecx, 0xff
xor ecx, 0xfe
mov ax, word [ecx*2 + 0x4c0240]
mov cl, byte [edi]
xor ax, dx
mov byte [esi + 0x483268], cl
mov dl, byte [edi + 1]
mov byte [esi + 0x483269], dl
mov cl, byte [edi + 2]
mov byte [esi + 0x48326a], cl
mov dl, byte [edi + 3]
xor ecx, ecx
mov cl, ah
mov byte [esi + 0x48326b], dl
xor edx, edx
mov dl, byte [edi]
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [ecx*2 + 0x4c0240]
xor ecx, ecx
xor ax, dx
xor edx, edx
mov dl, byte [edi + 1]
mov cl, ah
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [ecx*2 + 0x4c0240]
xor ecx, ecx
xor ax, dx
xor edx, edx
mov dl, byte [edi + 2]
mov cl, ah
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [ecx*2 + 0x4c0240]
xor ecx, ecx
xor ax, dx
xor edx, edx
mov dl, byte [edi + 3]
mov cl, ah
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [ecx*2 + 0x4c0240]
xor ecx, ecx
xor ax, dx
mov cl, ah
mov byte [esi + 0x48326c], cl
mov byte [esi + 0x48326d], al
mov cl, byte [edi + 6]
xor al, al
cmp cl, al
sete dl
mov byte [esi + 0x48326e], dl
cmp byte [edi + 7], al
setne cl
mov byte [esi + 0x48326f], cl
mov dl, byte [edi + 8]
and dl, 0xf0
cmp dl, 0xa0
sete cl
mov byte [esi + 0x483270], cl
mov dl, byte [edi + 8]
and dl, 0xf0
cmp dl, 0xb0
sete cl
mov byte [esi + 0x483271], cl
lea edx, [edi + 0x10]
mov dword [esi + 0x48325c], edx
mov cl, byte [edi + 0xe]
mov byte [esi + 0x483264], cl
mov dl, byte [edi + 0xf]
pop edi
mov byte [esi + 0x483265], dl
mov byte [esi + 0x483267], al
mov byte [esi + 0x483266], al
pop esi
ret 4
Function at 0x4285d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
mov edx, dword [esp + 8]
jne 0x4285ee
cmp edx, 0xffffffff
jne 0x4285ee
mov eax, dword [ecx + 0x481254]
mov edx, dword [ecx + 0x481258]
push ebx
xor ebx, ebx
cmp byte [ecx + 0x40021e], bl
jne 0x4285ff
and edx, 1
lea eax, [edx + eax*2]
cmp eax, ebx
jl 0x4286eb
cmp eax, 0xa4
jge 0x4286eb
mov dl, byte [ecx + eax*4 + 0x24]
mov byte [esp + 0xc], dl
mov dl, byte [ecx + eax*4 + 0x25]
mov byte [esp + 0xd], dl
mov dl, byte [ecx + eax*4 + 0x26]
mov al, byte [ecx + eax*4 + 0x27]
mov byte [esp + 0xe], dl
mov byte [esp + 0xf], al
mov eax, dword [esp + 0xc]
cmp eax, 0x20
jb 0x4286eb
cmp eax, 0x400000
jae 0x4286eb
mov dl, byte [eax + ecx + 9]
lea eax, [eax + ecx + 4]
mov cl, byte [eax + 4]
mov byte [esp + 0xc], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], bl
mov byte [esp + 0xe], bl
cmp ecx, dword [esp + 0xc]
jge 0x4286eb
cmp ecx, ebx
jle 0x428694
mov byte [esp + 0xf], bl
mov byte [esp + 0xe], bl
dec ecx
mov dl, byte [eax + 0xe]
mov byte [esp + 0xc], dl
mov dl, byte [eax + 0xf]
mov byte [esp + 0xd], dl
mov edx, dword [esp + 0xc]
lea eax, [eax + edx + 0x10]
jne 0x42867b
mov cl, byte [eax + 0xe]
mov dl, byte [eax + 0xf]
mov byte [esp + 0xc], cl
mov cl, byte [eax]
mov byte [esp + 0xd], dl
mov edx, dword [esp + 0x14]
mov byte [edx], cl
mov cl, byte [eax + 1]
mov edx, dword [esp + 0x18]
mov byte [edx], cl
mov cl, byte [eax + 2]
mov edx, dword [esp + 0x1c]
mov byte [edx], cl
mov cl, byte [eax + 3]
mov edx, dword [esp + 0x20]
mov byte [edx], cl
mov cl, byte [eax + 6]
mov edx, dword [esp + 0x28]
cmp cl, bl
mov ecx, dword [esp + 0x24]
sete al
mov byte [ecx], al
mov byte [esp + 0xf], bl
mov byte [esp + 0xe], bl
mov eax, dword [esp + 0xc]
mov dword [edx], eax
mov al, 1
pop ebx
ret 0x24
xor al, al
pop ebx
ret 0x24
Function at 0x49c740
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x905f04]
mov ecx, dword [esp + 4]
sub esp, 0x104
push esi
mov esi, eax
and esi, 7
inc eax
push edi
mov dword [0x905f04], eax
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004ab53e
mov dl, byte [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x49c7a4
cmp dl, 0x41
jl 0x49c793
cmp dl, 0x5a
jle 0x49c79d
cmp dl, 0x61
jl 0x49c7a4
cmp dl, 0x7a
jg 0x49c7a4
cmp byte [esp + 9], 0x3a
je 0x49c7c1
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x49c7fb
cmp dl, 0x2f
je 0x49c7c1
cmp dl, 0x5c
jne 0x49c7fb
mov eax, esi
shl eax, 6
add eax, esi
or ecx, 0xffffffff
lea edx, [eax*4 + 0x9052dc]
xor eax, eax
lea edi, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edx
pop esi
add esp, 0x104
ret
mov al, byte [0x905efd]
test al, al
jne 0x49c846
push 0x8fb158
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x8fb158
repne scasb al, byte es:[edi]
not ecx
mov al, byte [ecx + 0x8fb156]
dec ecx
cmp al, 0x5c
je 0x49c83f
cmp al, 0x2f
je 0x49c83f
mov byte [ecx + 0x8fb158], 0x5c
mov byte [ecx + 0x8fb159], 0
mov byte [0x905efd], 1
lea edx, [esp + 8]
push edx
mov ecx, esi
push 0x8fb158
shl ecx, 6
add ecx, esi
push str._s_s
lea esi, [ecx*4 + 0x9052dc]
push 0x104
push esi
call fcn.0049c560
add esp, 0x14
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret

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

Disassembly:
mov al, byte [0x905f18]
test al, al
push esi
jne 0x49cc3f
xor edx, edx
mov ecx, 0x905afc
mov eax, edx
mov esi, 8
test al, 1
je 0x49cc25
shr eax, 1
xor eax, 0xedb88320
jmp 0x49cc27
shr eax, 1
dec esi
jne 0x49cc18
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x905efc
jl 0x49cc11
mov byte [0x905f18], 1
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jle 0x49cc74
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov dl, byte [ecx + edi]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x905afc]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x49cc52
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x49e330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49e343
xor al, al
ret
not eax
shr eax, 4
and eax, 1
ret

Function at 0x49e350
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
ret

Function at 0x4a06e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
mov dword [esi], 0
mov ecx, dword [esi]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000000
jbe 0x4a070c
mov eax, 0x40000000
push eax
mov eax, dword [ebp + 0x14]
add ecx, ebx
push ecx
push eax
call fcn.004b0941
add esp, 0xc
test eax, eax
jle 0x4a072e
mov edx, dword [esi]
add edx, eax
mov ecx, edx
cmp ecx, edi
mov dword [esi], edx
jb 0x4a06fa
test eax, eax
jge 0x4a0751
call fcn.004ac27d
mov ecx, dword [eax]
push ecx
call fcn.004ac1ba
push eax
push 0xffffffffffffffff
push ebp
call fcn.004a04d0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
jne 0x4a075a
mov dword [ebp + 0x40], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4a9df3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a9e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ac20a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a9e36
test byte [esp + 8], 2
je 0x4a9e36
call fcn.004ac27d
mov dword [eax], 0xd
call fcn.004ac286
mov dword [eax], 5
jmp 0x4a9e0f
xor eax, eax
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0xb73130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0xb73140
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0xb73150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0xb73710
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0xd916ec]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov ecx, dword [edi]
or edx, 0x2001f
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00b736a0
mov ebp, eax
cmp ebp, esi
je 0xb73774
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0xb7376d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0xb7380d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0xb737da
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00b73710
mov ebp, eax
cmp ebp, esi
jne 0xb7375e
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push ecx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
je 0xb737a0
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0xb737ef
push eax
call ebp
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.00b73890
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0xb7380b
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00cb8a41
add esp, 0x228
ret 4
Function at 0xb743e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0xd22ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xd916ec]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
xor esi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0xb7445f
call fcn.00b72970
mov esi, eax
jmp 0xb74554
mov eax, dword [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0xb7447b
call fcn.00b72970
jmp 0xb7454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0xb74494
call fcn.00b72970
jmp 0xb7454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jae 0xb744b2
mov esi, 0x8007000e
jmp 0xb7454d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0xb744c7
cmp eax, 0xffffffff
jbe 0xb744d1
push 0x80070216
call fcn.00b74db0
cmp eax, 0x400
jbe 0xb744fa
lea ecx, [ebp]
push ecx
call fcn.00b73110
jmp 0xb74500
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp]
cmp eax, esi
jne 0xb74515
mov esi, 0x8007000e
jmp 0xb7454d
push ebx
push eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0xb74530
call fcn.00b72970
jmp 0xb7454b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea esi, [ebp - 0x24]
call fcn.00b74250
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0xb74564
lea eax, [ebp]
call fcn.00b730f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00cb8a41
lea esp, [ebp + 0x408]
pop ebp
ret 0xc
Function at 0xb76000
Capabilities:
Get common file path

Disassembly:
cmp dword [0xdad554], 0
jne 0xb760b8
cmp byte [0xdad450], 0
jne 0xb7608d
push 0xdad450
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jb 0xb76056
push 0x104
push 0xdad450
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0xdad450
call fcn.00cba2d0
add esp, 8
test eax, eax
je 0xb76056
mov byte [eax + 1], 0
mov eax, 0xdad450
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0xb76060
mov ecx, dword [str._debug.log]
mov edx, dword [0xd48ac8]
mov dword [eax], ecx
mov cx, word [0xd48acc]
mov dword [eax + 4], edx
mov dl, byte [0xd48ace]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0xd48ad0
push 0xdad450
call fcn.00cba19e
add esp, 8
mov dword [0xdad554], eax
test eax, eax
jne 0xb760ab
xor al, al
ret
push 2
push 0
push eax
call fcn.00cba67f
add esp, 0xc
mov al, 1
ret