joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48af30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48af79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x48b3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048afa0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048b020
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048b020
lea ecx, [esi + 0xc]
call fcn.004b4185
lea ecx, [esi + 0x10]
call fcn.004b4185
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048c5c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048c5c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048c5c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004b41fa
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b41fa
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48de10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x48de5a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x48de89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x48decb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4952a0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x564114]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4952b3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4952f4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5641bc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x495326
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49532a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49531b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x495348
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49534c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49533d
xor ecx, ecx
mov eax, 0x564124
xor ebx, ebx
mov bl, byte [ecx + 0x5641cc]
cmp byte [esp + ebx + 0x14], 0
je 0x495377
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5641e4]
cmp byte [esp + ebx + 0x14], 0
je 0x49538e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x49535e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4952e7
lea edx, [esp + 0x84]
push edx
call fcn.004953d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b6614
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b664c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b46a1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b4679
jmp 0x4b6658
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b7d02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b7d44
call fcn.004bdcb1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4b7d44
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4b7d3b
xor eax, eax
jmp 0x4b7d4c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b7d52
pop edi
pop esi
pop ebx
ret 4

Function at 0x4be1e1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4be20f
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4be22d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004be147
jmp 0x4be22d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4be22d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004be147
test edi, edi
mov eax, edi
jne 0x4be217
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401480
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov ecx, 0x200
mul ecx
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov ebx, edx
movzx edx, word [esp + 0x6c]
push esi
push edi
add edx, 0xffffff80
push edx
push str..PHYSICALDRIVE_d
mov edi, eax
lea eax, [esp + 0x30]
push 0x40
push eax
call fcn.00449b67
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401543
movzx eax, word [esp + 0x70]
sub eax, 3
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
je 0x40151e
sub eax, 1
jne 0x40153c
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401538
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40155a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00449ba6
add esp, 0x5c
ret 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00449ba6
add esp, 0x5c
ret 0x14
Function at 0x401580
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x40169b
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
xor edx, edx
mov dword [ebx], eax
div edi
mov esi, eax
add esi, 2
shl esi, 4
push esi
call fcn.0044a002
add esp, 4
xor ecx, ecx
push ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push 8
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
push 0x90073
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401680
mov ecx, dword [ebx]
xor edx, edx
lea eax, [ecx + edi - 1]
div edi
mov edx, dword [esp + 0x34]
mov dword [edx], eax
add eax, eax
add eax, eax
add eax, eax
push eax
call fcn.0044a002
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov ebp, eax
mov eax, dword [edi]
mov dword [esp + 0x28], ecx
add esp, 4
xor ecx, ecx
test eax, eax
jbe 0x401684
add edi, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [edi]
sub eax, ebx
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
je 0x40166d
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx]
cmp ecx, ebx
jae 0x401661
mov dword [ebp + ecx*8], edx
mov dword [ebp + ecx*8 + 4], esi
dec eax
inc ecx
add edx, 1
adc esi, 0
test eax, eax
jne 0x401655
mov edx, dword [edi + 4]
mov ebx, dword [edi]
add edi, 0x10
sub dword [esp + 0x38], 1
mov dword [esp + 0x24], edx
jne 0x401643
mov edi, dword [esp + 0x2c]
push edi
call fcn.00449f25
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x18
ret 0x10
Function at 0x4016b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x4016e4
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
call fcn.0044a002
add esp, 4
cmp dword [esp + 0x3c], 0
mov edi, eax
mov dword [esp + 0x30], 0
jbe 0x401801
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, esi
neg eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x30]
xor ecx, ecx
add edx, dword [esp + 0x34]
adc ecx, dword [esp + 0x38]
xor eax, eax
push eax
push esi
push ecx
push edx
call fcn.0044a0d0
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [esp + 0x20]
sub eax, 3
je 0x4017b6
sub eax, 1
jne 0x4017e6
cmp ebp, esi
jle 0x40176f
mov eax, dword [esp + 0x24]
push esi
push eax
jmp 0x40177d
test ebp, ebp
jle 0x401820
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push edi
call fcn.00449bc0
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4017e6
push edi
call fcn.00449f25
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, esi
jle 0x4017d3
mov ecx, dword [esp + 0x24]
push esi
push edi
push ecx
jmp 0x4017de
test ebp, ebp
jle 0x401820
mov edx, dword [esp + 0x24]
push ebp
push edi
push edx
call fcn.00449bc0
add esp, 0xc
mov eax, dword [esp + 0x30]
add ebp, dword [esp + 0x28]
add dword [esp + 0x24], esi
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x3c]
jb 0x401720
push edi
call fcn.00449f25
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x20
push esi
push 0
push edi
call fcn.00449a70
push edi
call fcn.00449f25
add esp, 0x10
jmp 0x40180a
Function at 0x401990
Capabilities:
Delete file
Get common file path
Get disk size
Write file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x131]
mov ebp, ecx
push ebx
push eax
mov dword [esp + 0x18], ebp
mov byte [esp + 0x138], bl
call fcn.00449a70
push 0x103
lea ecx, [esp + 0x39]
push ebx
push ecx
mov byte [esp + 0x40], bl
call fcn.00449a70
add esp, 0x18
push 0x104
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x12c]
push str.ESTOUT.SYS
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x30], al
mov byte [esp + 0x31], 0x3a
mov byte [esp + 0x32], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x86
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a4b
xor eax, eax
jmp 0x401b5f
push edi
push 0x100000
mov dword [esp + 0x20], ebx
call fcn.00426d03
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x401a71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401b5e
push 0x100000
push ebx
push edi
call fcn.00449a70
mov eax, dword [esp + 0x248]
add esp, 0xc
cmp eax, ebx
jbe 0x401aac
mov ebp, eax
lea ecx, [ecx]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebp, 1
jne 0x401a90
mov ebp, dword [esp + 0x10]
push edi
call fcn.00426cf8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [esp + 0x2c]
xor eax, eax
push ebx
push ebx
mov word [esp + 0x30], ax
mov byte [esp + 0x32], al
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], dl
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x39], 0x3a
mov byte [esp + 0x3a], 0x5c
mov byte [esp + 0x3b], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x401b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.00401580
mov edi, eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, ebx
je 0x401a6a
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
push edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x20], eax
call fcn.00449f25
add esp, 4
mov eax, 1
pop edi
mov ecx, dword [esp + 0x230]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x228
ret 4
Function at 0x401b80
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x118
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x24], bl
call fcn.00449a70
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dl, byte [esp + 0x18]
xor eax, eax
push ebx
mov dword [esp + 0x15], eax
push ebx
mov word [esp + 0x1d], ax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c], dl
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x25], 0x3a
mov byte [esp + 0x26], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [esp + 0xc]
imul ecx, dword [esp + 8]
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x401c1d
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00449ba6
add esp, 0x118
ret
mov dl, byte [esp + 0x18]
push ebp
mov ebp, dword [esi + 0x20]
imul ebp, eax
mov al, 0x5c
push edi
push ebp
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], 0x3a
mov byte [esp + 0x22], bl
call fcn.00426d03
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x401ce8
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
push ebp
push edi
lea ecx, [esp + 0x30]
push ecx
push 3
mov ecx, esi
call fcn.004016b0
test eax, eax
je 0x401c8d
push ebp
push edi
mov ecx, esi
call fcn.004010e0
test eax, eax
jne 0x401c9d
push edi
call fcn.00426cf8
add esp, 4
xor eax, eax
jmp 0x401d27
mov eax, dword [esi + 4]
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
cmp eax, ebx
je 0x401cb6
push eax
call fcn.00426cf8
add esp, 4
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426d03
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x401cec
push edi
call fcn.00426cf8
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
xor eax, eax
jmp 0x401d27
mov ecx, dword [esi + 8]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
push ecx
push ebx
push eax
call fcn.00449a70
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
push edx
lea eax, [edi + 0xc]
push eax
push ecx
call fcn.00449bc0
push edi
call fcn.00426cf8
mov eax, 1
add esp, 0x1c
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x124]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.00449ba6
add esp, 0x118
ret
Function at 0x401d40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
inc eax
lea ebp, [eax + eax*2]
add ebp, ebp
push edi
add ebp, ebp
push ebp
call fcn.00426d03
mov edi, eax
add esp, 4
test edi, edi
jne 0x401d8b
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x110
ret
mov dword [edi], 0
push ebx
mov dword [edi], 0x34532008
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ebx, [edi + 8]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
lea eax, [edi + 0xc]
push eax
call fcn.00449bc0
lea ecx, [ebp - 8]
push ecx
push ebx
call fcn.0041b400
push 0x103
lea edx, [esp + 0x31]
push 0
mov dword [edi + 4], eax
push edx
mov byte [esp + 0x38], 0
call fcn.00449a70
add esp, 0x20
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esi + 0x20]
mov cl, byte [esp + 0x18]
xor eax, eax
mov dword [esp + 0x11], eax
mov word [esp + 0x15], ax
push edx
mov edx, dword [esi + 0x10]
mov al, 0x5c
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
mov eax, dword [esi + 0x1c]
push eax
mov byte [esp + 0x1c], cl
mov ecx, dword [esi + 0x18]
push ecx
push edx
push ebp
push edi
lea eax, [esp + 0x28]
push eax
push 4
mov ecx, esi
mov byte [esp + 0x32], 0x2e
mov byte [esp + 0x35], 0x3a
mov byte [esp + 0x36], 0
call fcn.004016b0
push edi
mov esi, eax
call fcn.00426cf8
mov ecx, dword [esp + 0x120]
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00449ba6
add esp, 0x110
ret
Function at 0x401d55
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
inc eax
lea ebp, [eax + eax*2]
add ebp, ebp
push edi
add ebp, ebp
push ebp
call fcn.00426d03
mov edi, eax
add esp, 4
test edi, edi
jne 0x401d8b
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x110
ret
mov dword [edi], 0
push ebx
mov dword [edi], 0x34532008
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ebx, [edi + 8]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
lea eax, [edi + 0xc]
push eax
call fcn.00449bc0
lea ecx, [ebp - 8]
push ecx
push ebx
call fcn.0041b400
push 0x103
lea edx, [esp + 0x31]
push 0
mov dword [edi + 4], eax
push edx
mov byte [esp + 0x38], 0
call fcn.00449a70
add esp, 0x20
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esi + 0x20]
mov cl, byte [esp + 0x18]
xor eax, eax
mov dword [esp + 0x11], eax
mov word [esp + 0x15], ax
push edx
mov edx, dword [esi + 0x10]
mov al, 0x5c
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
mov eax, dword [esi + 0x1c]
push eax
mov byte [esp + 0x1c], cl
mov ecx, dword [esi + 0x18]
push ecx
push edx
push ebp
push edi
lea eax, [esp + 0x28]
push eax
push 4
mov ecx, esi
mov byte [esp + 0x32], 0x2e
mov byte [esp + 0x35], 0x3a
mov byte [esp + 0x36], 0
call fcn.004016b0
push edi
mov esi, eax
call fcn.00426cf8
mov ecx, dword [esp + 0x120]
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00449ba6
add esp, 0x110
ret

Function at 0x401f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fca
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
Function at 0x402334
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x402358
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00449ba6
add esp, 0x20c
ret
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00449a70
add esp, 0xc
push 0x104
call fcn.0041b690
push eax
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.NTUSER.DAT
lea edx, [esp + 0x110]
push edx
call edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00449a70
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x46d8b4
lea edx, [esp + 0xc]
push edx
call edi
push str.NTUSER.DAT
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call fcn.004021a0
mov dword [esi + 0xc], eax
pop edi
test eax, eax
jne 0x40240e
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004021a0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00449ba6
add esp, 0x20c
ret