joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4518e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451920]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451901
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451910
or bl, 4
test esi, 0x20000000
je 0x45191b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457fc8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457fda
add esp, 0xfffffff0
call fcn.00403f10
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421b3c
mov eax, dword [0x49d878]
mov dword [eax + 4], ebx
mov dword [eax], 0x45836c
mov eax, dword [0x49d888]
mov dword [eax + 4], ebx
mov dword [eax], 0x458378
mov eax, ebx
call fcn.00458384
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4547a0
push eax
push 0
push 0
mov eax, dword [0x49dae4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4235a0]
call fcn.00424c3c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4235a0]
call fcn.00424c3c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4235a0]
call fcn.00424c3c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004587a4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458680
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458680
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458680
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458117
call fcn.00403f68
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458464
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45860f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4585f0
mov dl, 1
mov eax, dword [0x418be4]
call fcn.00403bbc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004049c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4585df
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00446294
test al, al
je 0x4585d2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x458620
lea eax, [ebp - 0x254]
call fcn.0040a5e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4585d2
xor eax, eax
push ebp
push 0x4585cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x458658
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4585b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c30
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4585b4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4585d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4584d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d5d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458616
lea eax, [ebp - 0x260]
call fcn.004049c0
ret

Function at 0x458f44
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49ebb8]
cmp byte [eax + 0xa5], 0
jne 0x458fb5
cmp dword [0x49ebd0], 0
jne 0x458f76
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458f00
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49ebd0], eax
cmp dword [0x49ebcc], 0
jne 0x458f91
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49ebcc], eax
cmp dword [0x49ebd4], 0
jne 0x458fb5
push esp
push 0
push 0
push 0x458ea4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49ebd4], eax
pop edx
ret
Function at 0x4590ac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4590c3
add esp, 0xfffffff0
call fcn.00403f10
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421b3c
mov eax, dword [0x49dabc]
cmp word [eax + 2], 0
jne 0x4590eb
mov eax, dword [0x49dabc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a814
mov eax, dword [0x49dc10]
cmp word [eax + 2], 0
jne 0x459105
mov eax, dword [0x49dc10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045aa0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418580]
call fcn.00403bbc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423fa8]
call fcn.0042b3f8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45928c
mov eax, dword [0x49d93c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b7c8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45afac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49d93c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e020
test eax, eax
je 0x4591fa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409fc4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e048
test eax, eax
je 0x45920e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c30
mov eax, dword [0x49d6e4]
cmp byte [eax], 0
jne 0x459242
mov eax, ebx
call fcn.004593b4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045b188
mov eax, ebx
call fcn.0045bb4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459282
call fcn.00403f68
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459634
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49ebb8]
cmp dword [eax + 0x30], 0
je 0x4596de
cmp dword [ebx + 0x94], 0
jne 0x4596d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4595c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4596d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45969e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4596d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041ac6c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4596ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a240
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45a275
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404ab0
jmp 0x45a282
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a14
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b364
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b3a5
mov eax, esi
call fcn.00441a08
test al, al
je 0x45b3a5
mov eax, dword [ebx + 0x84]
call fcn.00441704
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b3a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441704
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4622b8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4622e6
mov eax, ebx
call fcn.00462d6c
cmp dword [ebx + 0x40], 0
je 0x4622df
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x462357
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x462349
cmp dword [ebx + 8], 0
je 0x462308
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46231a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x462349
cmp dword [ebx + 8], 0
je 0x4622fb
cmp eax, 3
je 0x46232d
dec eax
jne 0x4622fb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4622fb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4622fb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x462375
cmp dword [ebx + 0x14], 0xcc
je 0x462375
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00462380
pop ebx
ret
Function at 0x472c58
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
xor eax, eax
push ebp
push 0x472d31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.00408d24
mov ebx, eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dl, 1
mov eax, dword [0x418be4]
call fcn.00403bbc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x198]
mov edx, ebx
call fcn.00404bb8
mov eax, dword [ebp - 0x198]
call fcn.00404c80
push eax
push ebx
call sub.wsock32.dll_gethostname
push ebx
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x472d13
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x472d07
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00404bb8
mov edx, dword [ebp - 0x19c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x472ce4
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472d38
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.004049e4
ret

Function at 0x472e18
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x472e49
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404c30
jmp 0x472e50
mov eax, ebx
call fcn.004049c0
add esp, 0x104
pop ebx
ret

Function at 0x472e58
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x472ed2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040500c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e80
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x472eb0
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404ee0
jmp 0x472ebc
mov eax, ebx
mov edx, 0x472ee8
call fcn.00404a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472ed9
lea eax, [ebp - 4]
call fcn.004049c0
ret
Function at 0x4730fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x114], ecx
mov ebx, edx
xor ecx, ecx
push ebp
push 0x473306
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ecx, eax
cmp ecx, 6
ja case.0x473139.0
jmp dword [ecx*4 + 0x473140]
mov edx, 0x1a
jmp case.0x473139.0
mov edx, 0x1c
jmp case.0x473139.0
mov edx, 0x23
jmp case.0x473139.0
mov edx, 0x2e
jmp case.0x473139.0
mov edx, 5
jmp case.0x473139.0
xor edx, edx
cmp eax, 7
jne 0x4732b4
xor eax, eax
push ebp
push 0x4732a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x114]
call fcn.00472ef0
mov eax, dword [ebp - 0x114]
mov edx, 0x47331c
call fcn.00404dcc
je 0x4731fe
push 0x473320
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
push 0x47332c
push edi
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea edx, [ebp - 0x124]
mov eax, 0x47334c
call fcn.00408ca8
lea eax, [ebp - 0x124]
push eax
call esi
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404be8
jmp 0x47329e
lea eax, [ebp - 4]
push eax
push 5
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x10d]
call fcn.0040a174
mov eax, dword [ebp - 0x128]
mov edx, ebx
call fcn.00409d30
mov edx, dword [ebx]
lea eax, [ebp - 0x12c]
mov ecx, 0x47337c
call fcn.00404ccc
mov eax, dword [ebp - 0x12c]
call fcn.00409a58
test al, al
je 0x473268
mov eax, ebx
mov edx, 0x47337c
call fcn.00404c88
jmp 0x47329e
mov edx, dword [ebx]
lea eax, [ebp - 0x130]
mov ecx, 0x473390
call fcn.00404ccc
mov eax, dword [ebp - 0x130]
call fcn.00409a58
test al, al
je 0x473297
mov eax, ebx
mov edx, 0x473390
call fcn.00404c88
jmp 0x47329e
mov eax, ebx
call fcn.004049c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4732dd
lea eax, [ebp - 4]
push eax
push edx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [ebp - 0x10d]
call fcn.0040a174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47330d
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.004049e4
lea eax, [ebp - 0x114]
call fcn.004049c0
ret
Function at 0x473490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x473564
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.004032b4
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0x440
mov eax, dword [ebp - 4]
call fcn.00404e80
mov dword [ebp - 0x34], eax
cmp byte [ebp + 0xc], 0
je 0x4734f6
mov eax, 0x473574
mov dword [ebp - 0x38], eax
cmp dword [ebp - 8], 0
je 0x473507
mov eax, dword [ebp - 8]
call fcn.00404e80
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x473547
cmp byte [ebp + 8], 0
je 0x473542
cmp dword [ebp - 0xc], 0
je 0x473542
jmp 0x473530
push 0x32
call sub.kernel32.dll_Sleep_1
push 0x32
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x473529
mov ebx, dword [ebp - 0xc]
jmp 0x473549
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47356b
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049e4
ret

Function at 0x47357c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x47365d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47363b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x431cf4]
call fcn.00431df4
mov dword [ebp - 0xc], eax
test bl, bl
je 0x4735d9
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00431e94
jmp 0x4735e6
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.00431e94
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
xor ecx, ecx
mov edx, 0x473674
mov eax, dword [ebp - 0xc]
call fcn.00431ef8
cmp byte [ebp + 8], 0
je 0x473612
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0043226c
jmp 0x47361d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004321d4
mov eax, dword [ebp - 0xc]
call fcn.00431e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473642
mov eax, dword [ebp - 0xc]
call fcn.00403bec
ret

Function at 0x4737b0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040a174
add esp, 0x108
pop ebx
ret

Function at 0x4737d8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.0040a174
add esp, 0x108
pop ebx
ret
Function at 0x473804
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x4738af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00409a48
test al, al
je 0x473865
mov eax, dword [ebp - 8]
call fcn.00404e80
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404bb8
mov eax, dword [ebp - 0xc]
mov edx, 0x80
call fcn.00409a90
push 0
mov eax, dword [ebp - 8]
call fcn.00404e80
mov ebx, eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00404e80
push eax
call sub.kernel32.dll_CopyFileA
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.00404bb8
mov eax, dword [ebp - 0x10]
mov edx, esi
call fcn.00409a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4738b6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004049e4
ret

Function at 0x473930
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov dword [esp], edx
mov byte [esp + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
test ebp, ebp
jle 0x473a4e
push 0
lea eax, [esp + 0xc]
push eax
push 0x16
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebp
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.0040275c
mov esi, eax
mov eax, 0x22
call fcn.0040275c
mov edi, eax
push 0
lea eax, [esp + 0xc]
push eax
push 0x26
mov ebx, esi
push ebx
push ebp
call sub.kernel32.dll_ReadFile_1
mov edx, edi
mov eax, ebx
mov ecx, 0x14
call fcn.004029dc
mov eax, dword [esi + 6]
mov dword [edi + 6], eax
mov eax, dword [esi + 0xa]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0xe]
mov dword [edi + 0xe], eax
mov word [edi + 0x12], 1
mov ebx, dword [esi + 0xe]
mov eax, ebx
call fcn.0040275c
mov dword [esp + 0xc], eax
push 0
push 0
mov eax, dword [esi + 0x12]
push eax
push ebp
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
push ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push ebp
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebp, eax
test ebp, ebp
jle 0x473a37
push ebx
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
push 3
push ebp
call sub.kernel32.dll_UpdateResourceA
push 0
push ebp
call sub.kernel32.dll_EndUpdateResourceA
mov byte [esp + 4], 1
mov eax, dword [esp + 0xc]
call fcn.0040277c
mov eax, edi
call fcn.0040277c
mov eax, esi
call fcn.0040277c
mov al, byte [esp + 4]
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x474948
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x474ab3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004049c0
mov dword [ebp - 0x1c], 0xff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404ed8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x474a90
mov eax, dword [ebp - 0x14]
call fcn.0040275c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x474a89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00404ed8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x474a70
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x474ac0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x474a48
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.004079dc
movzx eax, ax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 2
mov eax, 0x474ae4
call fcn.0040a664
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.00404a58
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
call fcn.00404ed8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x474a70
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0040a174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474a90
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0040277c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474aba
lea eax, [ebp - 0x24]
call fcn.004049c0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049e4
ret

Function at 0x474d34
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
xor eax, eax
mov dword [esp], eax
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret