joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452d7c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452d93
add esp, 0xfffffff0
call fcn.00403c08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a158
mov eax, dword [0x4598c8]
cmp word [eax + 2], 0
jne 0x452dbb
mov eax, dword [0x4598c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004548bc
mov eax, dword [0x45996c]
cmp word [eax + 2], 0
jne 0x452dd5
mov eax, dword [0x45996c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454ac8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f54]
call fcn.004038b4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f54]
call fcn.004038b4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f54]
call fcn.004038b4
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e8a8]
call fcn.00425ebc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x452f8c
mov eax, dword [0x4597f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426290
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455188
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4597f8]
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.0040cad8
test eax, eax
je 0x452edc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb0c
test eax, eax
je 0x452ef0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404980
mov byte [ebx + 0xd4], 0
push ebx
push 0x45441c
call fcn.0041b2d4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4596f8]
cmp byte [eax], 0
jne 0x452f41
mov eax, ebx
call fcn.004530d0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00455364
mov eax, ebx
call fcn.00455ec4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452f81
call fcn.00403c60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453350
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45d57c]
cmp dword [eax + 0x30], 0
je 0x4533fa
cmp dword [ebx + 0x94], 0
jne 0x4533f4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4532e0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4533f4
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 0x4533ba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4533f4
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.00414300
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4533c9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454114
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x454149
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.00404800
jmp 0x454156
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404764
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455548
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4555b6
mov eax, esi
call fcn.0043fcb8
test al, al
je 0x4555b6
mov eax, dword [ebx + 0x84]
call fcn.0043f944
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4555b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4555aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f944
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00437d7c
jmp 0x4555b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00455384
pop esi
pop ebx
ret
Function at 0x45659c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404bc4
mov eax, dword [ebp - 8]
call fcn.00404bc4
xor eax, eax
push ebp
push 0x45664b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x459950]
mov eax, dword [eax]
call fcn.00453f08
mov eax, dword [0x45d5b0]
call fcn.00404bd4
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404908
mov eax, dword [ebp - 0xc]
call fcn.00408c98
cmp dword [ebp - 4], 0
je 0x456619
mov eax, dword [ebp - 4]
call fcn.00404bd4
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404908
mov eax, dword [ebp - 0x10]
call fcn.00408c98
push 5
mov eax, dword [ebp - 8]
call fcn.00404bd4
push eax
call sub.kernel32.dll_WinExec
mov eax, ebx
call fcn.00450a48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456652
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404734
ret
Function at 0x401080
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0
push 0
push dword [esi + 0x402490]
push section..text
push 0
push 0
call ebx
push 0xa
call edi
add esi, 4
cmp esi, 0x54
jb 0x401091
push 0xffffffffffffffff
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4018c1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401900
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401900
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401900
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401900
cmp dword [ecx + 0x74], 0xe
jbe 0x401900
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4011a0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x4011b3
mov dword [ebx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4011c1
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401227
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40121f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x40c470
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40121f
test ebx, ebx
mov ecx, dword [esp + 0xc]
je 0x401212
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40121f
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x401380
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4013c0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x411bd4]
test eax, eax
jle 0x4013d1
inc eax
mov dword [0x411bd4], eax
jmp 0x40142a
push str.QuickTime.qts
call fcn.00401ba0
add esp, 4
test eax, eax
mov dword [0x411bd8], eax
jne 0x401448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
mov eax, dword [0x411bd8]
test eax, eax
je 0x40140c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x411bd8], 0
mov eax, 0x401190
mov dword [section..data], 0x401320
mov dword [0x411010], eax
mov dword [0x411014], eax
mov dword [0x41100c], eax
test edi, edi
je 0x40143c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, si
pop esi
add esp, 0x100
ret
call fcn.00401320
mov esi, eax
test si, si
jne 0x4013f2
mov edx, dword [esp + 0x10c]
push edx
call fcn.00401160
add esp, 4
mov esi, eax
test si, si
jne 0x4013f2
inc dword [0x411bd4]
jmp 0x40142a
Function at 0x401480
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4014bf
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x411bd4]
test eax, eax
jg 0x4014d4
mov dword [0x411bd4], 0
jmp 0x40150e
dec eax
test eax, eax
mov dword [0x411bd4], eax
jg 0x40150e
call fcn.00401170
mov edx, dword [0x411bd8]
mov eax, 0x401190
push edx
mov dword [section..data], 0x401320
mov dword [0x411010], eax
mov dword [0x411014], eax
mov dword [0x41100c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x401520
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x100
ret

Function at 0x401820
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018bd
mov eax, dword [esp + 4]
test eax, eax
je 0x4018cc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018bd
cmp byte [esi], 0
je 0x4018bd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401882
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x4018bd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401897
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x4018bd
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4018a8
mov ax, word [0x40c470]
push edi
mov edi, esi
mov word [edi], ax
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x4018cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x4018d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
xor eax, eax
test esi, esi
je 0x401a35
mov byte [esi], al
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4018fb
mov dword [eax], 0
push ebx
push edi
push str.QuickTime.qts
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, dword [esp + 0x118]
je 0x40195b
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40195b
lea eax, [esp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401930
sub eax, edx
lea edi, [eax - 0xd]
lea edx, [edi + 1]
cmp ebx, edx
jbe 0x40195b
push edi
lea eax, [esp + 0x10]
push eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4019e4
cmp byte [esi], 0
jne 0x4019e9
push ebx
push esi
push str.QTSysDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00401820
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x40198d
push 0
push esi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x401990
mov byte [esi], 0
cmp byte [esi], 0
jne 0x4019e9
push ebx
push esi
push str.QuickTime.qts_folder
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00401820
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x4019be
push 0
push esi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x4019c1
mov byte [esi], 0
cmp byte [esi], 0
jne 0x4019e9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x4019e1
push 0
push esi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x4019e4
mov byte [esi], 0
cmp byte [esi], 0
je 0x401a2a
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f0
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x401a2a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a05
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x401a2a
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a18
mov cx, word [0x40c470]
mov word [edi], cx
mov cl, byte [esi]
xor eax, eax
test cl, cl
pop edi
setne al
pop ebx
pop esi
add esp, 0x104
ret
Function at 0x401a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push esi
push ebp
push str.QTExtDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00401820
mov al, byte [ebp]
add esp, 0x10
test al, al
jne 0x401b7c
add esi, 0xfffffff6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 0x110]
push esi
push ecx
call fcn.004018d0
mov al, byte [esp + 0x118]
add esp, 0xc
test al, al
je 0x401b7c
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ab0
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
push edi
je 0x401af2
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac8
sub eax, edx
cmp byte [esp + eax + 0xb], 0x2f
je 0x401af2
lea edi, [esp + 0xc]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ae0
mov dx, word [0x40c470]
mov word [edi], dx
lea eax, [esp + 0x110]
mov edx, ebp
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b00
lea esi, [esp + 0x110]
lea eax, [esp + 0xc]
push ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401b3e
test cl, cl
je 0x401b3a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401b3e
add eax, 2
add esi, 2
test cl, cl
jne 0x401b16
xor eax, eax
jmp 0x401b43
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x401b7b
mov edi, ebp
dec edi
jmp 0x401b50
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b50
mov eax, dword [str.QuickTime_]
mov dword [edi], eax
mov ecx, dword [0x40c538]
mov dword [edi + 4], ecx
mov dx, word [0x40c53c]
mov word [edi + 8], dx
mov al, byte [0x40c53e]
mov byte [edi + 0xa], al
pop edi
mov eax, ebp
pop esi
lea edx, [eax + 1]
pop ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b83
sub eax, edx
add esp, 0x208
ret

Function at 0x403a80
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x403a92
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403aa0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x403b10
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x403b24
pop ebp
lea eax, [ebx + 0xd]
pop ebx
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop word [eax + eax]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b35
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x403b30
push esi
push ebx
push 7
push 0
push dword [esp + 0x24]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x404450
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x4044b5
cmp dword [edi], 0
mov esi, dword [esi]
je 0x404495
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4044ab
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4044ab
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x4044ab
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x412034], 0
jne 0x4044f5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4044e7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412030], eax
mov byte [0x412034], 1
jmp 0x4044fa
mov eax, dword [0x412030]
mov byte [0x412034], 1
jmp 0x4044fa
mov eax, dword [0x412030]
test eax, eax
je 0x404510
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
Function at 0x404f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b2c3
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x411028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x428]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x434], edi
test edi, edi
jne 0x404fd1
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x434], eax
test edi, edi
jne 0x404fd1
call fcn.004032a0
mov esi, eax
jmp 0x4050ca
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x404ff4
call fcn.004032a0
jmp 0x4050bd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x430], ebx
test ebx, ebx
jne 0x405012
call fcn.004032a0
jmp 0x4050bd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x42c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x405033
mov esi, 0x8007000e
jmp 0x4050bf
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.00403260
jmp 0x405069
mov dword [ebp - 4], 1
cmp dword [ebp - 0x428], 0
jne 0x405080
mov esi, 0x8007000e
jmp 0x4050bf
push esi
push dword [ebp - 0x428]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4050a0
call fcn.004032a0
jmp 0x4050bd
mov eax, dword [ebp - 0x428]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x428]
call fcn.00404db0
mov esi, eax
test edi, edi
je 0x4050ca
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x424]
cmp dword [ebp - 0x428], eax
je 0x4050e3
lea ecx, [ebp - 0x428]
call fcn.00403210
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409f4b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4066d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x411028]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.mfc140u.dll_AfxGetAppModuleState]
push eax
lea ecx, [esp + 0xc]
call dword [0x40c3c8]
cmp byte [0x412050], 0
jne 0x406722
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete byte [0x412050]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_socket]
xor ebx, ebx
mov dword [esi + 8], eax
cmp eax, 0xffffffff
lea ecx, [esp + 8]
setne bl
call dword [sym.imp.mfc140u.dll_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2]
mov ecx, dword [esp + 0x1a4]
xor eax, eax
test bl, bl
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.00409f4b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406850
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x411028]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.mfc140u.dll_AfxGetAppModuleState]
push eax
lea ecx, [esp + 0x28]
call dword [0x40c3c8]
test esi, esi
je 0x406949
test ebx, ebx
je 0x406949
cmp dword [esp + 0xc], 0
je 0x406949
mov esi, dword [sym.imp.mfc140u.dll_operator]
push edi
call esi
add esp, 4
mov ebx, eax
push dword [esp + 0x20]
call esi
mov esi, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push edi
push 0
push esi
push ebx
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test ebx, ebx
je 0x406937
push dword [esp + 0x18]
mov ecx, esi
push ebx
call fcn.00406bb0
test eax, eax
je 0x406937
test edi, edi
je 0x406937
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edi
call fcn.00406bb0
test eax, eax
je 0x406937
mov esi, dword [sym.imp.mfc140u.dll_operator_1]
push ebx
call esi
add esp, 4
push edi
call esi
add esp, 4
xor esi, esi
jmp 0x40694e
mov esi, dword [sym.imp.mfc140u.dll_operator_1]
push ebx
call esi
add esp, 4
push edi
call esi
add esp, 4
mov esi, 1
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc140u.dll_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00409f4b
mov esp, ebp
pop ebp
ret 0x18