joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x411ec6
xor eax, eax
cmp word [ebx], ax
cmove ebx, eax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test ecx, ecx
je 0x411ee5
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], eax
jmp 0x411f21
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push edi
call ebp
test eax, eax
je 0x411f12
mov ecx, dword [esp + 0x24]
push 0
push dword [esi + 4]
push eax
call fcn.004147b0
test al, al
je 0x412078
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x20], eax
cmp eax, 1
je 0x411f40
cmp eax, 2
je 0x411f40
cmp eax, 7
je 0x411f40
xor dl, dl
mov byte [esp + 0x1c], dl
test ecx, ecx
je 0x412030
jmp 0x411f53
mov dl, 1
mov byte [esp + 0x1c], dl
test ecx, ecx
jne 0x411f53
mov ecx, 2
mov dword [esp + 0x20], ecx
test dl, dl
je 0x411f65
mov eax, ecx
add ecx, 2
and eax, 1
add ecx, eax
mov dword [esp + 0x20], ecx
push ecx
mov ecx, esi
call fcn.00409000
test al, al
je 0x412078
lea eax, [esp + 0x20]
push eax
push dword [esi + 0x28]
push 0
push 0
push ebx
push edi
call ebp
test eax, eax
je 0x411fca
cmp eax, 0xea
jne 0x412078
cmp edi, 0x80000004
je 0x411faa
cmp edi, 0x80000050
je 0x411faa
mov ecx, dword [esp + 0x20]
jmp 0x411fc0
mov ecx, dword [esp + 0x20]
cmp ecx, 0x100000
jae 0x412078
add ecx, ecx
mov dword [esp + 0x20], ecx
mov dl, byte [esp + 0x1c]
test ecx, ecx
jne 0x411f53
jmp 0x41202c
mov dl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test dl, dl
je 0x41202c
mov eax, dword [esi + 0x28]
cmp word [eax + ecx - 2], 0
je 0x41202c
lea ebp, [ecx + 2]
cmp ebp, 0x10
jbe 0x41201d
push ebp
mov ecx, esi
call fcn.00409000
test al, al
je 0x412078
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x28]
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x1c]
mov eax, dword [esi + 0x28]
xor edi, edi
mov word [ecx + eax], di
mov ecx, ebp
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c], ecx
test ecx, ecx
je 0x41206f
test dl, dl
je 0x41206f
cmp eax, 7
jne 0x412058
shr ecx, 1
dec ecx
push ecx
push dword [esi + 0x28]
call fcn.00408660
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
cmp eax, 2
jne 0x41206f
test byte [esp + 0x28], 1
jne 0x41206f
mov ecx, esi
call fcn.0040b120
test al, al
je 0x412078
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x18
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x18
Function at 0x412530
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x41261a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x412585
sub eax, 2
je 0x412603
sub eax, 0xc9
jne 0x41263d
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0xc]
push ebx
xor eax, eax
mov dword [esp + 0x14], 0
push esi
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 0x108
mov word [esp + 0x28], ax
call fcn.00413810
test al, al
je 0x412634
push 0x80
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412634
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x412634
lea ecx, [esp + 0xc]
call fcn.00405c10
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00422b84
add esp, 0x228
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41263d
push esi
call edi
test eax, eax
je 0x41263d
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00422b84
add esp, 0x228
ret
lea ecx, [esp + 0xc]
call fcn.0040ba00
test esi, esi
mov edi, str.Function
cmovne edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x412678
mov eax, dword [ebx]
push edi
push str.Error_in___s_
push ebx
call dword [eax + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00422b84
add esp, 0x228
ret
push 0
push edi
push eax
mov ecx, ebx
call fcn.004147b0
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x228
ret

Function at 0x4140b0
Capabilities:
Get graphical window text

Disassembly:
call fcn.0041b380
test al, al
jne fcn.004140f0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4140e3
mov ecx, dword [esp + 8]
and ecx, 0xf
cmp ecx, 4
je 0x4140de
cmp ecx, 3
je 0x4140de
cmp ecx, 5
sete al
inc eax
ret
mov eax, 6
ret

Function at 0x4140f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x194
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1b0]
push esi
mov esi, dword [esp + 0x1a4]
push edi
mov edi, dword [esp + 0x1b4]
test esi, esi
jne 0x41412d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
je 0x41414c
test edi, edi
je 0x414137
cmp word [edi], 0
jne 0x41414c
push 0xc8
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0x10]
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x1ac]
mov ebx, eax
or ecx, 0x10000
push ecx
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test ebx, ebx
je 0x414178
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x194
ret
Function at 0x414950
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1bc]
lea ecx, [esi + 0x1bc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x414976
push 0
push dword [esi + 0x1c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x415010
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
cmp ebp, 0xffffffff
jne 0x415032
xor ebx, ebx
jmp 0x41504b
call edx
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [eax + ebp]
cmp ebx, eax
jae 0x41504b
mov edi, eax
mov ebx, ebp
neg edi
mov dword [esp + 0x10], edi
mov ecx, dword [0x4d6eb0]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x14], eax
mov edi, edi
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
cmp dword [eax], 0
je 0x41512d
cmp ebp, 0xffffffff
jne 0x41507e
mov edi, 0x7d0
jmp 0x4150b0
call edx
add eax, edi
cmp eax, ebx
jae 0x415096
mov ecx, ebx
mov edi, 0x1f4
sub ecx, eax
cmp ecx, edi
cmovb edi, ecx
jmp 0x4150b0
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x44f518
push str.Command_time_out
xor edi, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x41512d
cmp dword [esi + 0x294], 0xffffffff
je 0x41512d
mov ecx, esi
call fcn.004117b0
test al, al
je 0x41512d
push edi
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4150f2
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x264], ecx
test edi, edi
je 0x415121
cmp edi, 0xffffffff
je 0x415153
cmp edi, 0x80
je 0x415153
cmp dword [esi + 0x264], 0x103
mov edi, dword [esp + 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x14]
je 0x415060
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41514c
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x264], eax
mov ecx, esi
call fcn.0040a3f0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 4
Function at 0x415360
Capabilities:
Get disk size
Get file size
Write file on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
mov ebx, dword [esp + 0x264]
lea eax, [esp + 0x48]
push ebp
push esi
push edi
mov edi, dword [esp + 0x26c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], eax
xor eax, eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], vtable.RawDiskFileClass.0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 0x108
mov word [esp + 0x58], ax
call fcn.004133d0
push 0
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4154ed
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
imul ebp, dword [esp + 0x28]
push 0
mov eax, dword [eax + 0x30]
push 3
push 3
push 0xc0000000
push edi
call eax
test al, al
je 0x4154ed
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x415456
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x415452
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push 1
push ebp
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call fcn.00408c30
test al, al
je 0x4154e0
mov eax, esi
or eax, ebx
je 0x4154c9
test ebx, ebx
jl 0x4154a6
jg 0x4154a2
cmp esi, ebp
jbe 0x4154a6
mov edi, ebp
jmp 0x4154a8
mov edi, esi
push 0
lea eax, [esp + 0x24]
push eax
push edi
push dword [esp + 0x48]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, edi
mov eax, esi
sbb ebx, 0
or eax, ebx
jne 0x415498
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esp + 0x2c]
call fcn.0040ba00
mov bl, 1
jmp 0x41551f
lea ecx, [esp + 0x2c]
call fcn.0040ba00
mov ebx, dword [esp + 0x20]
test edi, edi
mov esi, str.Function
cmovne esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415512
mov eax, dword [ebx]
push esi
push str.Error_in___s_
push ebx
call dword [eax + 0x20]
add esp, 0xc
jmp 0x41551d
push 0
push esi
push eax
mov ecx, ebx
call fcn.004147b0
mov bl, al
lea ecx, [esp + 0x40]
call fcn.0040ba00
and dword [esp + 0x40], 0xfffffffc
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], vtable.HandleClass.0
call dword [0x43aff0]
test al, al
je 0x415568
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x264]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x258
ret
Function at 0x4162b0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0xc]
push ebx
push dword [esp + 0x1c]
or eax, 0x20006
mov dword [esp + 8], 0
push eax
push dword [ecx + 4]
mov dword [esp + 0x14], 0
push dword [ecx]
lea ecx, [esp + 0x14]
call fcn.00410720
test al, al
je 0x41631b
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x28]
push 0
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x416317
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x14]
push eax
call fcn.004147b0
test al, al
je 0x41631b
mov bl, 1
jmp 0x41631d
xor bl, bl
mov eax, dword [esp + 4]
test eax, eax
je 0x41632c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret 0x14

Function at 0x416610
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, ecx
mov edx, dword [edi + 0x20]
cmp edx, 1
je 0x416726
cmp edx, 2
je 0x416726
cmp edx, 7
jne 0x416709
mov ecx, dword [edi + 0x28]
push ebx
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x4166c5
lea edx, [ecx + 2]
jmp 0x416670
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416670
sub ecx, edx
sar ecx, 1
lea esi, [ecx*2 + 2]
test esi, esi
je 0x4166c7
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.00410790
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x4166a6
mov dword [esp + 0x1c], esi
jmp 0x4166c7
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
xor bl, bl
call fcn.0040ba00
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0xc
xor esi, esi
push esi
push dword [edi + 0x28]
mov dword [esp + 0x1c], esi
push ebx
call fcn.00423750
push ebx
call fcn.00408630
add esp, 0x10
mov ecx, ebp
push dword [esp + 0x30]
push esi
push ebx
push dword [edi + 0x20]
push dword [esp + 0x38]
call fcn.00416270
lea ecx, [esp + 0x10]
mov bl, al
call fcn.0040ba00
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0xc
push dword [esp + 0x2c]
push dword [edi + 0x1c]
push dword [edi + 0x28]
push edx
push dword [esp + 0x34]
call fcn.00416270
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0xc
mov esi, dword [edi + 0x28]
test esi, esi
je 0x41674a
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416732
sub ecx, edi
sar ecx, 1
lea ecx, [ecx*2 + 2]
jmp 0x41674c
xor ecx, ecx
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edx
push 0
push esi
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41677f
mov ecx, dword [esp + 0x2c]
push 0
push esi
push eax
call fcn.004147b0
test al, al
jne 0x41677f
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret 0xc
Function at 0x416f00
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, ecx
push 0
lea esi, [edi + 0x80050]
push esi
call fcn.0040f520
add esp, 8
test eax, eax
je 0x416f4a
cmp dword [edi + 0x8000c], 0
je 0x416f3f
push 0
push esi
call fcn.0040f520
push eax
push str._d_messages_missed__likely_during_startup._r_n
push 0
push 0xffffffffffffffff
push edi
call fcn.00417130
add esp, 0x1c
jmp 0x416f4a
push str.Messages_missed__likely_during_startup._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi + 0x8003c]
call fcn.00405e20
lea ecx, [edi + 0x80020]
call fcn.00405b70
lea ecx, [edi + 0x80008]
call fcn.00416fc0
lea ecx, [edi + 0x80008]
call fcn.00405c10
mov ecx, edi
pop edi
pop esi
jmp fcn.004053b0
Function at 0x417f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x4d4f70
call fcn.0040a880
cmp dword [0x4d4f84], 0
mov bl, al
jne 0x417f40
push dword [0x450b18]
mov ecx, 0x4d4f78
call fcn.00417a90
test al, al
jne 0x417f40
push dword [0x450b1c]
mov ecx, 0x4d4f78
call fcn.00417a90
test bl, bl
je 0x417f4e
mov ecx, 0x4d4f70
call fcn.0040fc40
mov eax, dword [edi + 0x14]
mov esi, dword [0x4d4f84]
shr eax, 9
and eax, 0xffffff01
mov dword [esp + 0x10], eax
test esi, esi
je 0x4180b5
jmp 0x417f70
test al, al
je 0x417f85
lea eax, [esi + 0x1c]
push eax
lea ecx, [edi + 0x1c]
call fcn.00417510
jmp 0x418034
mov eax, dword [edi + 0x70]
cmp word [eax], 0
je 0x417ff4
push dword [esi + 0x70]
push eax
call fcn.0040f710
add esp, 8
test al, al
je 0x418038
mov eax, dword [esi + 0x34]
lea ebx, [esi + 0x1c]
cmp eax, dword [edi + 0x34]
jne 0x417fe9
mov eax, dword [ebx + 0x1c]
cmp eax, dword [edi + 0x38]
jne 0x417fe9
mov eax, dword [ebx + 0x20]
cmp eax, dword [edi + 0x3c]
jne 0x417fe9
push 0x10
lea eax, [edi + 0x44]
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.0040f550
add esp, 0xc
test al, al
je 0x417fe9
push 0x10
lea eax, [edi + 0x54]
push eax
lea eax, [ebx + 0x38]
push eax
call fcn.0040f550
add esp, 0xc
test al, al
jne 0x418048
push ebx
lea ecx, [edi + 0x1c]
call fcn.00417d70
jmp 0x418034
mov eax, dword [esi + 0x34]
cmp eax, dword [edi + 0x34]
jne 0x418038
mov eax, dword [esi + 0x38]
cmp eax, dword [edi + 0x38]
jne 0x418038
mov eax, dword [esi + 0x3c]
cmp eax, dword [edi + 0x3c]
jne 0x418038
push 0x10
lea eax, [edi + 0x44]
push eax
lea eax, [esi + 0x44]
push eax
call fcn.0040f550
add esp, 0xc
test al, al
je 0x418038
push 0x10
lea eax, [edi + 0x54]
push eax
lea eax, [esi + 0x54]
push eax
call fcn.0040f550
add esp, 0xc
test al, al
jne 0x418048
mov esi, dword [esi + 4]
test esi, esi
je 0x4180b5
mov eax, dword [esp + 0x10]
jmp 0x417f70
mov eax, dword [esi + 0x64]
mov ecx, esi
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
call fcn.0040c580
mov dword [edi + 0x88], eax
mov ecx, edi
mov eax, dword [edi]
push dword [esi + 0x18]
call dword [eax + 0x10]
push dword [esi + 0x70]
lea ecx, [edi + 0x70]
call fcn.00413040
push 0
lea ecx, [edi + 0x78]
call fcn.004074e0
push 0
lea ecx, [edi + 0x80]
call fcn.004074e0
cmp byte [esp + 0x10], 0
jne 0x4180ad
push 1
lea ecx, [edi + 0x1c]
call fcn.00408490
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x1c]
push 1
add esi, 0x1c
push esi
call dword [eax + 4]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x419b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419b84
add eax, eax
lea ecx, [esi + 0x2c]
push eax
call fcn.00410680
test al, al
je 0x419cc6
push 0
push 0x8800
lea ecx, [esi + 0x40]
call fcn.00408c30
test al, al
je 0x419cc6
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x14]
add ecx, 0x400
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [ecx + 0x8000]
mov dword [esi + 0x10], 0
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0xa4], 1
mov dword [esi + 0xc], 1
cmp dword [esi + 0x18], 0
je 0x419c50
mov ecx, esi
call fcn.0041a150
mov edx, dword [esi + 0x14]
mov dword [esi + 0x10], eax
sub edx, dword [esi + 0x1c]
je 0x419c46
mov ecx, dword [esi + 8]
push 0x44f518
push edx
push dword [esi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
call eax
test al, al
je 0x419c3f
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
shr eax, 0xd
test al, 1
jne 0x419c3f
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
jmp 0x419c46
mov dword [esi + 0x10], 0xffffffff
cmp dword [esi + 0x10], 0
je 0x419bf2
lea esp, [esp]
mov ecx, esi
call fcn.0041a150
mov edx, dword [esi + 0x14]
mov dword [esi + 0x10], eax
sub edx, dword [esi + 0x1c]
je 0x419ca4
mov ecx, dword [esi + 8]
push 0x44f518
push edx
push dword [esi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
call eax
test al, al
je 0x419c9d
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
shr eax, 0xd
test al, 1
jne 0x419c9d
cmp dword [esi + 0x10], 0
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
je 0x419c50
jmp 0x419ca4
mov dword [esi + 0x10], 0xffffffff
mov eax, dword [esi + 0x10]
test eax, eax
je 0x419ce2
cmp eax, 1
je 0x419ce2
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push str.Decompression_error_in___s_._File_may_be_corrupted
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
add esp, 0xc
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xac]
mov dword [esi + 0x10], 0xfffffffc
call dword [eax + 0xc]
xor al, al
pop esi
ret 8
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xac]
call dword [eax + 0xc]
mov al, 1
pop esi
ret 8
Function at 0x41a830
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
push edi
lea edi, [esi + 0xc]
test ecx, ecx
je 0x41a845
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push 0x4415ec
push 1
push 0
push 0x44a9f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [esp + 0x10]
lea ecx, [esi + 8]
push edi
push str.WbemLocator
push str.Failed_to_instantiate_COM_object
push eax
call fcn.0041f330
test al, al
je 0x41a8fb
mov ecx, dword [esi + 0x14]
lea ebx, [esi + 0x14]
push ebp
mov ebp, dword [esi + 0xc]
test ecx, ecx
je 0x41a88e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [ebx], 0
mov eax, dword [ebp]
push str.ROOTCIMV2
push ebp
call dword [eax + 0xc]
pop ebp
test eax, eax
jns 0x41a8c5
push 0
push str.WMI_error
push eax
mov ecx, edi
call fcn.004147b0
test al, al
je 0x41a8fb
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esi + 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x41a8f3
push 0
push str.WMI_error
push eax
mov ecx, edi
call fcn.004147b0
test al, al
je 0x41a8fb
pop edi
pop esi
mov al, 1
pop ebx
ret 4
pop edi
pop esi
xor al, al
pop ebx
ret 4

Function at 0x41b1b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x54
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x5c]
push esi
push 0xa
push 0xcc
push dword [0x4d6844]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41b283
push edi
push esi
push dword [0x4d6844]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b282
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
call fcn.00404770
push esi
push dword [0x4d6844]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [esp + 0x24]
call fcn.00409000
test al, al
je 0x41b272
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [esp + 0x3c]
push eax
push dword [esp + 0x50]
call fcn.00423750
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push ebx
push eax
push dword [0x45153c]
push 0
push 0x100
push dword [0x451538]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404710
mov ecx, eax
call fcn.00416790
lea ecx, [esp + 0x10]
call fcn.00405e20
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x20]
call fcn.00405cc0
pop edi
mov ecx, dword [esp + 0x58]
pop esi
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x54
ret
Function at 0x41b2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x154
movzx eax, ax
push ebp
push esi
mov esi, dword [esp + 0x160]
push edi
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b365
push ebx
lea ecx, [esp + 0x10]
xor bl, bl
call fcn.00403500
push dword [esp + 0x16c]
lea ecx, [esp + 0x14]
push 0x400
push dword [esp + 0x17c]
call fcn.00408cd0
test al, al
je 0x41b348
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [esp + 0x174]
lea ecx, [esp + 0x14]
push dword [esp + 0x170]
push ecx
push esi
push eax
lea ecx, [esp + 0xbc]
call fcn.004185d0
mov ecx, eax
call fcn.00419b50
lea ecx, [esp + 0xa8]
mov bl, al
call fcn.00418640
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x10]
call fcn.004054e0
mov al, bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x154
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x154
ret