joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4231a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x503978
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x4232c7
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
lea eax, [edi + 4]
mov dword [ebp - 0x10], eax
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x4232c7
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi + 4], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x42329b
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42329b
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42329b
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423280
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403870
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d3ce9
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.004027d0
int3
Function at 0x423960
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503ab5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.00407380
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00423c20
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 7
jbe 0x4239c4
mov edx, dword [edx]
test edx, edx
jne 0x4239cc
xor ecx, ecx
jmp 0x4239e0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4239d1
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404130
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404130
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42b9c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50495d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov al, byte [ebx + 0x18]
lea esi, [ebx + 0x18]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
test al, al
jne 0x42ba09
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [esi], al
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x42bb88
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea eax, [ebx + 0x24]
push dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.00408fe0
mov edi, dword [ebp - 0x14]
add esp, 0x10
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x42bb88
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
test edi, edi
je 0x42bac1
test edi, 0xffff0000
jne 0x42baa8
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.004043d0
jmp 0x42bacd
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bab0
sub ecx, edx
sar ecx, 1
jmp 0x42bac3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00403870
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42bb05
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x34], 0
je 0x42bb21
mov ecx, dword [ebp + 8]
lea esi, [eax + 0x24]
mov edx, esi
call fcn.00410440
test al, al
je 0x42bb2e
jmp 0x42bb24
mov esi, dword [ebp - 0x1c]
push dword [ebp + 8]
mov ecx, esi
call fcn.00409df0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42bb56
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x20]
test al, al
jne 0x42bb74
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x20]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004027d0
int3
Function at 0x42c6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504bad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x42c81a
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, str.CPU:
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x42c752
movzx eax, ax
push eax
call fcn.004043d0
jmp 0x42c75e
push 5
push str.CPU:
call fcn.00403870
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0042c830
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402660
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42c7ac
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push 2
push 0x533c4c
lea ecx, [ebp - 0x10]
call fcn.00402660
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42c808
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027d0
int3
Function at 0x42cf10
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x569080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x42d0c5
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x42cf88
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x42cf80
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42cf94
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42cfda
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ce9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x42d06a
lea ecx, [ebp - 0x21c]
call fcn.0042d0d0
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x42d019
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x42d010
movzx eax, word [ecx]
test ax, ax
je 0x42d032
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42d023
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42d097
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
jmp 0x42d097
cmp word [esi], 0
je 0x42d079
add esi, 2
cmp word [esi], 0
jne 0x42d070
movzx eax, word [ecx]
test ax, ax
je 0x42d092
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42d083
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42d0a0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00403870
mov al, 1
jmp 0x42cfbc
call fcn.004d41c3
int3
Function at 0x437b60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50641d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebx + 0x40], 0
mov dword [ebp - 0x1c], eax
je 0x437bc7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov byte [ebx + 0x10], 1
mov dword [ebp - 0x20], eax
call fcn.004047f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x437ca4
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00437910
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 0
test ecx, ecx
je 0x437c31
cmp dword [ebp - 0x10], ecx
je 0x437c31
mov ebx, 0x2ee2
jmp 0x437c53
test ebx, ebx
jne 0x437c53
mov ebx, dword [eax + 4]
cmp ebx, dword [edi + 4]
je 0x437c51
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [edi + 4], ebx
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x437c8e
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004027d0
int3
Function at 0x439610
Capabilities:
Connect to http server

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esi + 0x68]
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x439694
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x43968b
cmp byte [esi + 0x38], 0
jne 0x4396a0
lea ecx, [esi + 0xc]
call fcn.0043acb0
test al, al
jne 0x439681
push 0xa
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x38], 0
je 0x439662
jmp 0x4396a0
pop edi
mov eax, 0xe0000008
pop esi
ret 0x1c
test eax, eax
je 0x4396a0
pop edi
pop esi
ret 0x1c
push dword [esi + 0x68]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 4], 0
jne 0x4396ae
mov eax, dword [esi + 0x2c]
pop edi
pop esi
ret 0x1c
pop edi
xor eax, eax
pop esi
ret 0x1c
Function at 0x43aef0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x43af2a
mov ecx, dword [esp + 0x14]
mov ebx, 1
cmp ecx, 0x110
jne 0x43af32
sub esp, 8
mov dword [edi + 0x40], ebx
mov ecx, edi
call fcn.0043b4a0
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
cmp dword [edi + 0x40], 0
jne 0x43b0be
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
mov esi, dword [esp + 0x18]
cmp ecx, 0x111
jne 0x43b020
movzx eax, si
mov edx, eax
cmp bx, ax
jne 0x43afa8
lea eax, [edi + 0x44]
push eax
lea ecx, [edi + 0x5c]
call fcn.004207e0
lea eax, [edi + 0x48]
push eax
lea ecx, [edi + 0x60]
call fcn.004207e0
push 0x428
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x20]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword [ecx], 0
ret 0x18
mov eax, 2
cmp ax, dx
jne 0x43afce
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
ret 0x18
mov eax, esi
mov edx, 0x300
shr eax, 0x10
cmp dx, ax
jne 0x43b020
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0x5c]
cmp eax, dword [ecx]
jne 0x43b00e
lea esi, [edi + 0x44]
push esi
call fcn.004207e0
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
ret 0x18
lea edx, [edi + 0x20]
cmp ecx, 5
jne 0x43b08f
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x43b061
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x43b052
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43b066
test esi, esi
jne 0x43b061
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43b066
cmp esi, 1
je 0x43b0b4
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.0043bd20
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
ret 0x18
cmp ecx, 0x24
jne 0x43af2a
cmp dword [edx + 0x14], 0xffffffff
je 0x43b0b4
cmp dword [edx + 0x18], 0xffffffff
je 0x43b0b4
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x20]
mov dword [eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0x18
Function at 0x4409e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507b95
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x56b0cc]
xor edi, edi
push 0xa
movzx eax, cx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x440a46
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x440a46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x440a46
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
jmp 0x440a48
xor ebx, ebx
test edi, edi
je 0x440b18
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x440adb
imul eax, eax, 0x64
cmp eax, 0x25e0
jl 0x440adb
cmp eax, 0x38a0
jge 0x440a8e
mov esi, 0x20
jmp 0x440ae0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x60
je 0x440adb
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x53cc98]
divsd xmm0, qword [0x53cca8]
addsd xmm0, qword [0x53cc78]
cvttsd2si esi, xmm0
jmp 0x440ae0
mov esi, 0x18
push 0
push esi
push esi
push 1
push edi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
je 0x440b18
push 0
push esi
push esi
push 0x30000
push 1
push ebx
add eax, edi
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508cf5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x4462ce
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.00447340
or edi, 0xffffffff
test al, al
jne 0x4461a3
xor bl, bl
jmp 0x44628d
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x4462ce
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409df0
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x44621f
xor bl, bl
jmp 0x446244
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0x10]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push edx
push 0
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x446256
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x44628d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4462b8
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004027d0
int3
Function at 0x448050
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x20]
cmp dword [eax - 0xc], 0
jne 0x448066
mov eax, dword [ebx + 0x24]
cmp dword [eax - 0xc], 0
je 0x4480e0
cmp byte [ebx + 0x50], 0
jne 0x4480e0
mov eax, dword [ebx + 4]
push esi
push edi
mov esi, dword [eax + 0x1c]
lea eax, [esp + 0xc]
push eax
lea eax, [ebx + 0x58]
mov ecx, esi
push eax
push 5
call dword [0x525578]
lea ecx, [ebx + 4]
call esi
test al, al
je 0x448097
cmp dword [esp + 0xc], 0
je 0x4480de
call fcn.004226e0
test al, al
je 0x4480ad
pop edi
pop esi
mov ecx, ebx
pop ebx
add esp, 4
jmp fcn.00449e70
push 0
push 0
push ebx
push 0x44b190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, dword [ebx + 0x64]
je 0x4480de
mov ecx, dword [ebx + 0x60]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x525578]
lea ecx, [ebx + 0x60]
call esi
mov dword [ebx + 0x64], edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4496b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5097fe
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
xor ebx, ebx
push 0xa
movzx eax, dx
xor edi, edi
mov dword [ebp - 0x18], 0
mov esi, dword [0x56b0cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44972c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44972c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x44972c
push dword [ebp - 0x14]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.004047f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x449848
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
call fcn.004047f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x449848
test ebx, ebx
jne 0x449780
test edi, edi
jne 0x449857
mov eax, dword [eax]
push 1
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x525578]
mov ecx, dword [ebp - 0x14]
call esi
test eax, eax
je 0x449852
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
test edi, edi
js 0x449857
cmp edi, dword [esi - 8]
jg 0x449857
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
test edi, edi
je 0x4497ee
test esi, esi
je 0x4497de
push edi
test ebx, ebx
je 0x4497d3
push ebx
push esi
call fcn.004d5880
add esp, 0xc
jmp 0x4497ee
push 0
push esi
call fcn.004d5e00
add esp, 0xc
call fcn.004d929d
mov dword [eax], 0x16
call fcn.004d919f
mov dword [ebp - 4], 3
mov ecx, esi
mov ebx, dword [ebp - 0x10]
mov edx, ebx
push 0xfde9
call fcn.0040e190
add esp, 4
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x449834
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027d0
call fcn.004027f0
push 0x80070057
call fcn.004027d0
int3