joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d3eb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
sub dword [0x49323c], 1
jne 0x44d3fa
call fcn.004451e8
mov ecx, dword [0x4a4d04]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a4d04], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
test edx, edx
jge 0x44d443
fadd qword [0x48d260]
fmul qword [0x48d268]
pop ecx
ret

Function at 0x44d892
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x44d8a4
push eax
call fcn.0044d73d
mov eax, dword [esi + 0x24]
pop esi
test eax, eax
je 0x44d8b5
mov dword [esp + 4], eax
jmp fcn.0044d73d
ret 4

Function at 0x44d8b8
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x20], 0
jne 0x44d8e2
push esi
call fcn.00437241
test al, al
je 0x44d8e2
mov eax, dword [esi + 8]
push eax
call fcn.00445651
add esp, 4
push eax
mov dword [esi + 0x20], eax
call fcn.0044d7aa
cmp dword [esi + 0x24], 0
jne 0x44d915
push esi
call fcn.00437225
test al, al
je 0x44d915
push esi
call fcn.00437215
test al, al
jne 0x44d915
mov ecx, dword [esi + 0x10]
push ecx
call fcn.00445651
add esp, 4
mov dword [esi + 0x24], eax
pop esi
mov dword [esp + 4], eax
jmp fcn.0044d7aa
pop esi
ret 4

Function at 0x44dc0e
Capabilities:
Delete directory
Delete file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x22c
lea eax, [esp + 0x20]
call fcn.00411390
lea eax, [esp + 0x20]
push eax
call fcn.00438634
add esp, 4
test al, al
jne 0x44dc39
add esp, 0x22c
ret
push ebx
xor ebx, ebx
cmp byte [esp + 0x238], bl
jne 0x44dc5d
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
add esp, 0x22c
ret
lea edx, [esp + 0x24]
push edx
call fcn.004127e5
xor ecx, ecx
mov word [esp + eax*2 + 0x2a], cx
add esp, 4
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x22c
ret
Function at 0x44dcb7
Capabilities:
Copy file
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x438
push ebx
mov bl, byte [esp + 0x448]
lea eax, [esp + 0x230]
call fcn.00411390
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x24]
call fcn.00411390
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x44dd36
test bl, bl
je 0x44dd5f
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.004148f4
add esp, 8
test eax, eax
je 0x44dd2c
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
pop ebx
add esp, 0x438
ret
lea eax, [esp + 0x230]
push eax
call fcn.00438634
add esp, 4
test al, al
je 0x44dd5f
lea ecx, [esp + 0x24]
push ecx
call fcn.00438634
add esp, 4
test al, al
je 0x44dd69
test bl, bl
jne 0x44dd8b
xor al, al
pop ebx
add esp, 0x438
ret
lea edx, [esp + 0x24]
push edx
call fcn.0043822e
add esp, 4
test al, al
je 0x44dd5f
lea eax, [esp + 0x24]
push eax
call fcn.00438634
add esp, 4
test al, al
je 0x44dd5f
lea ecx, [esp + 0x230]
push 0x487f78
push ecx
call fcn.00412b73
lea edx, [esp + 0x238]
push edx
call fcn.004127e5
lea edx, [esp + 0x30]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x242], cx
call fcn.004127e5
xor ecx, ecx
mov word [esp + eax*2 + 0x36], cx
lea edx, [esp + 0x240]
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], edx
add esp, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 4]
mov ecx, 0x614
push edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x438
ret
Function at 0x44de17
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10b4
call fcn.00426a60
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x438]
xor bl, bl
call fcn.00411390
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x648]
call fcn.00411390
lea eax, [esp + 0x648]
push eax
lea ecx, [esp + 0x43c]
push ecx
call fcn.0043858d
lea edx, [esp + 0x440]
push edx
mov byte [esp + 0x1b], al
call fcn.00438634
add esp, 0xc
test al, al
je 0x44de8c
lea eax, [esp + 0x438]
push 0x487f78
push eax
call fcn.00412b73
add esp, 8
lea ecx, [esp + 0x648]
push ecx
call fcn.00438634
add esp, 4
test al, al
je 0x44deb5
lea edx, [esp + 0x648]
push 0x487f78
push edx
call fcn.00412b73
add esp, 8
lea eax, [esp + 0xcb0]
push eax
lea ecx, [esp + 0xebc]
push ecx
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x448]
push ecx
call fcn.004152b0
add esp, 0x14
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x44e06b
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x44e06b
test byte [esp + 0x858], 0x10
jne 0x44e04b
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0xcb8]
push eax
lea ecx, [esp + 0xec4]
push ecx
lea edx, [esp + 0x894]
push edx
call fcn.004383e9
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00412ba1
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00412b73
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00412b73
lea eax, [esp + 0x240]
push eax
call fcn.00438692
add esp, 0x1c
test al, al
je 0x44dfc9
cmp byte [ebp + 0x10], 0
je 0x44e022
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44e032
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x44e00d
cmp byte [esp + 0xf], 0
jne 0x44dfeb
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x44e01e
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x44e022
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44e01e
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x44e049
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x44e022
mov bl, 1
lea ecx, [esp + 0x858]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44df0e
mov byte [esp + 0xe], al
jmp 0x44df0e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e07b
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x18]
mov byte [esp + 0xf], 0
call fcn.00411390
lea eax, [esp + 0x18]
push eax
call fcn.00438634
add esp, 4
test al, al
je 0x44e0bd
lea ecx, [esp + 0x18]
push 0x487f78
push ecx
call fcn.00412b73
add esp, 8
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x88c]
push eax
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004152b0
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44e182
cmp bl, 1
jne 0x44e182
test byte [esp + 0x228], 0x10
jne 0x44e15c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], bl
call fcn.00412ba1
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00412b73
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00412b73
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x44e173
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e103
xor bl, bl
jmp 0x44e103
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4508ab
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x430
push ebx
push ebp
push esi
mov esi, dword [esp + 0x440]
push edi
xor ebp, ebp
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.004167e9
add esp, 0x10
push 0x18ee
push 4
lea edx, [esp + 0x1c]
push edx
call fcn.0044d0de
lea eax, [esp + 0x14]
push str.FILE
push eax
mov byte [esp + 0x20], 0
call fcn.004154b0
add esp, 8
test eax, eax
jne 0x450a3f
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
inc ebp
call fcn.004167e9
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.004167e9
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [esp + 0x28]
push edx
call fcn.0044d0de
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
xor eax, eax
push edx
mov word [esp + ebx + 0x28], ax
call fcn.00412ba1
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.004167e9
mov edi, dword [esp + 0x28]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [esp + 0x40]
push 1
push eax
call fcn.004167e9
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.0044d0de
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x20]
push eax
xor edx, edx
push ecx
mov word [esp + ebx + 0x28], dx
call fcn.00412ba1
mov edi, dword [esp + 0x450]
lea edx, [esp + 0x238]
push edi
push edx
call fcn.004148f4
add esp, 0x10
test eax, eax
je 0x450a30
push 0x488464
push edi
call fcn.004148f4
add esp, 8
test eax, eax
jne 0x4509ed
test ebp, ebp
je 0x450a30
mov eax, dword [esi]
push 1
push 1
push eax
call fcn.00416aad
mov ecx, dword [esi]
add esp, 0xc
push ecx
push 1
lea edx, [esp + 0x24]
push 4
push edx
call fcn.004167e9
mov eax, dword [esp + 0x2c]
xor eax, 0x87bc
mov dword [esp + 0x2c], eax
add eax, 0x18
push 1
push eax
mov eax, dword [esi]
push eax
call fcn.00416aad
add esp, 0x1c
jmp 0x4508be
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x430
ret 0xc
Function at 0x450a51
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x694
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x6ac]
push esi
mov esi, dword [esp + 0x6a4]
mov edx, dword [esi + 4]
push edi
xor eax, eax
push ebx
mov word [esp + 0x50], ax
mov eax, dword [esi]
push edx
xor ecx, ecx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x262], cx
mov dword [esp + 0x488], ebx
mov dword [esp + 0x2c], 1
call fcn.00416aad
mov edx, dword [esp + 0x6b8]
add esp, 0xc
lea ecx, [esp + 0x490]
push ecx
push edx
push esi
call fcn.004508ab
test eax, eax
je 0x450ae9
lea eax, [ebx + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret 0x10
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.004167e9
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.004167e9
mov ecx, dword [esi]
mov edi, dword [esp + 0x38]
push ecx
push 1
lea edx, [esp + 0x40]
push 4
push edx
xor edi, 0x87bc
call fcn.004167e9
mov ecx, dword [esi]
mov eax, dword [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x50]
xor eax, 0x87bc
push 4
push edx
mov dword [ebp], eax
call fcn.004167e9
mov eax, dword [esp + 0x58]
add esp, 0x40
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push 0x10
push eax
call fcn.00416aad
mov ecx, dword [ebp]
add esp, 0xc
push ecx
call fcn.00414dba
add esp, 4
push edi
mov dword [esp + 0x20], eax
call fcn.00414dba
mov edx, dword [esi]
add esp, 4
push edx
push 1
mov ebp, eax
push edi
push ebp
call fcn.004167e9
mov eax, dword [esi + 8]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push ebp
call fcn.0044d0de
push edi
push ebp
lea ecx, [esp + 0x28]
push ecx
call fcn.00436e51
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x20]
je 0x450bda
mov eax, dword [esp + 0x1c]
push eax
call fcn.00414f88
add esp, 4
push ebp
call fcn.00414f88
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret 0x10
cmp byte [esp + 0x17], 1
jne 0x450c38
xor ecx, ecx
mov eax, 1
mov word [esp + 0x4c], cx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
xor edx, edx
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x25a], dx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
call fcn.0044d297
push ebp
call fcn.00414f88
jmp 0x450c46
mov edx, dword [esp + 0x1c]
push edx
call fcn.00414f88
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6b4]
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x694
ret 0x10
Function at 0x4541a2
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esi + 0x160], ecx
mov dword [esi + 0x164], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, dword [esi + 0x168]
jne 0x4541f6
cmp ecx, dword [esi + 0x16c]
je 0x454214
cmp dword [esp + 0x24], 1
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
jl 0x454214
push ecx
push eax
push esi
push 0xfffffffffffffff5
push ebx
call fcn.0044ffc8
mov ecx, dword [ebx + 0x18]
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
movzx edi, ax
push edx
shr edi, 0xf
call ebp
movzx ebp, ax
shr ebp, 0xf
cmp edi, dword [esi + 0x170]
je 0x4542b4
cmp dword [esp + 0x24], 1
jl 0x4542b4
cmp byte [esi + 0x19c], 0
je 0x4542b4
test edi, edi
je 0x45425d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff9
jmp 0x4542a7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff8
push ebx
call fcn.0044ffc8
cmp byte [esi + 0x178], 0
je 0x4542ad
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
je 0x45429a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffffa
jmp 0x4542a7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
push 0xfffffffffffffff4
push ebx
call fcn.0044ffc8
mov byte [esi + 0x178], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4542c2
mov dword [esi + 0x170], edi
cmp ebp, dword [esi + 0x174]
je 0x4542f5
cmp eax, 1
jl 0x4542f5
test ebp, ebp
je 0x4542e2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff7
jmp 0x4542ef
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff6
push ebx
call fcn.0044ffc8
cmp dword [esp + 0x24], 0
je 0x454302
mov dword [esi + 0x174], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x456375
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2020
call fcn.00426a60
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004071d0
lea ecx, [esp + 0x20]
call fcn.004071d0
mov eax, dword [esp + 0x2034]
push eax
xor ebp, ebp
call fcn.0045155e
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x4564a0
nop
inc ebp
cmp ax, 0x25
jne 0x456475
cmp word [esi + ebp*2], ax
jne 0x4563d9
push 0x25
lea eax, [esp + 0x14]
mov bl, 1
call fcn.00402f80
inc ebp
jmp 0x45647f
push 0x4858e8
lea eax, [esp + 0x24]
call fcn.00401cf0
movzx eax, word [esi + ebp*2]
cmp ax, 0x25
je 0x456413
lea esp, [esp]
test ax, ax
je 0x456413
movzx eax, ax
push eax
lea eax, [esp + 0x24]
call fcn.00402f80
movzx eax, word [esi + ebp*2 + 2]
inc ebp
cmp ax, 0x25
jne 0x4563f5
cmp word [esi + ebp*2], 0
je 0x4564bf
mov eax, dword [esp + 0x20]
push 0xfff
lea edx, [esp + 0x34]
push edx
xor ecx, ecx
push eax
inc ebp
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [esp + 0x10]
je 0x456450
lea edi, [esp + 0x30]
call fcn.004013b0
mov bl, 1
jmp 0x45647f
mov edi, 0x48c550
mov bl, 1
call fcn.004013b0
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
call fcn.004072b0
lea eax, [esp + 0x10]
call fcn.004013b0
jmp 0x45647f
push eax
lea eax, [esp + 0x14]
call fcn.00402f80
movzx eax, word [esi + ebp*2]
test ax, ax
jne 0x4563b5
test bl, bl
je 0x4564a0
mov esi, dword [esp + 0x2034]
lea edi, [esp + 0x10]
call fcn.0040fa60
lea ecx, [esp + 0x20]
call fcn.00402130
lea ecx, [esp + 0x10]
call fcn.00402130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2020
ret 4
mov edi, 0x48c550
lea eax, [esp + 0x10]
call fcn.004013b0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
call fcn.004072b0
jmp 0x456490
Function at 0x45650d
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
sub esp, 0x264
push ebp
mov ebp, dword [esp + 0x278]
push esi
mov esi, dword [esp + 0x274]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
call fcn.004071d0
lea ecx, [esp + 0x18]
call fcn.004071d0
lea ecx, [esp + 0x38]
call fcn.004071d0
push str.SOFTWAREClasses_
lea eax, [esp + 0x2c]
call fcn.00401cf0
mov edi, dword [esp + 0x274]
lea eax, [esp + 0x28]
call fcn.004013b0
mov edi, str.CLSID
lea eax, [esp + 0x28]
call fcn.004013b0
push 0x4858e8
lea eax, [esp + 0x1c]
call fcn.00401cf0
test esi, esi
je 0x4565b3
cmp word [esi], 0x5c
je 0x4565b3
cmp word [esi + 2], 0x5c
je 0x4565b3
push 0x48b74c
lea eax, [esp + 0x1c]
call fcn.00401cf0
mov edi, esi
lea eax, [esp + 0x18]
call fcn.004013b0
test ebp, ebp
je 0x456611
push 0x20
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00414700
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x3c]
mov dword [esp + 0x50], 0
call fcn.0040f400
mov edi, str.IPC_
mov eax, esi
call fcn.004013b0
mov eax, dword [esp + 0x284]
mov edx, dword [esp + 0x38]
push 0
push ebp
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x6c], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
test esi, esi
jne 0x4566c4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push reloc.WSOCK32.dll_bind
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x4566c4
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4566bd
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x28], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4566b6
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x68]
mov dword [esp + 0x10], eax
mov word [esp + eax*2 + 0x68], cx
call fcn.004113d0
mov edx, dword [esp + 0x27c]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00414cd3
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
lea ecx, [esp + 0x38]
call fcn.00402130
lea ecx, [esp + 0x18]
call fcn.00402130
lea ecx, [esp + 0x28]
call fcn.00402130
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x264
ret
Function at 0x4566eb
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.004071d0
fld1
lea eax, [esp + 0x24]
fstp qword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
test esi, esi
jl 0x4568ec
mov edi, dword [esp + 0x24]
call fcn.004113d0
mov esi, eax
push str.interface_
lea eax, [esp + 0x34]
call fcn.00401cf0
mov edi, esi
lea eax, [esp + 0x30]
call fcn.004013b0
mov edi, str.TypeLib
lea eax, [esp + 0x30]
call fcn.004013b0
push esi
call fcn.00414cd3
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4568ec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x4568e1
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x50], cx
call fcn.004113d0
lea edx, [esp + 0x40]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00414cd3
add esp, 4
test esi, esi
jl 0x4568e1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push str.Version
push edx
mov dword [esp + 0x2c], 0x1fe
call ebx
test eax, eax
jne 0x45683c
mov eax, dword [esp + 0x14]
shr eax, 1
lea edx, [esp + 0x50]
xor ecx, ecx
push edx
mov dword [esp + 0x18], eax
mov word [esp + eax*2 + 0x54], cx
call fcn.00415497
fstp qword [esp + 0x2c]
add esp, 4
fld1
lea eax, [esp + 0x20]
push eax
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.00416f90
fnstcw word [esp + 0x2a]
add esp, 0x10
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
movzx edx, cx
push edx
fldcw word [esp + 0x1e]
lea edx, [esp + 0x4c]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ax, word [esp + 0x24]
movzx ecx, ax
push ecx
fldcw word [esp + 0x22]
push edx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
test esi, esi
jl 0x4568e1
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
call fcn.00402130
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret