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

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x20019
mov dword [ebp + 0x1a4], eax
mov esi, ecx
call sym.mobsync.dll_RegGetHandlerTopLevelKey
test eax, eax
mov dword [ebp - 0x80], eax
je 0x100d1ac
and dword [ebp - 0x7c], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x74]
push ecx
push 0
mov dword [esi + 0x62c], 1
push eax
jmp 0x100d199
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x100d18b
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x194]
push eax
push dword [esi + 0x634]
call fcn.01009f58
test eax, eax
jne 0x100d18b
lea eax, [ebp + 0x194]
push eax
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.0100ac06
xor ecx, ecx
cmp eax, ecx
jne 0x100d17d
push ecx
push ecx
push 0x100
push ecx
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.0100aca0
test eax, eax
je 0x100d18b
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.01009fdb
inc dword [ebp - 0x7c]
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call edi
test eax, eax
je 0x100d119
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x78]
push eax
push 5
push dword [esi + 0x634]
call fcn.0100abc8
mov edi, eax
test edi, edi
jne 0x100d1fd
lea ebx, [esi + 0x10]
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.0100b069
push ebx
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.0100a699
lea eax, [ebp - 0x78]
push eax
push 5
push dword [ebp - 0x78]
push dword [esi + 0x634]
call fcn.0100a217
mov edi, eax
test edi, edi
je 0x100d1c6
mov ebx, 0x1002c8c
push ebx
mov ecx, esi
call fcn.0100c39e
push ebx
mov ecx, esi
call fcn.0100c43d
mov ecx, dword [ebp + 0x1a4]
mov eax, edi
dec eax
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
call fcn.010120e7
add ebp, 0x1a8
leave
ret

Function at 0x100dfaa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0xfa7
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 4], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x100e014
push edi
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104b
push dword [ebp - 4]
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], ebx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100e00d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x100dfdc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x100e088
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0xd
mov dword [ebp + 0x1fc], eax
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x208]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x14], 0x105
mov dword [ebp - 0x4c], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x48], 0xffffffff
je 0x100e136
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0
push dword [esi]
mov dword [ebp - 0x18], eax
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x208]
push 0x1074
push 0xfa7
push dword [esi]
call edi
push eax
call ebx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.010120e7
add ebp, 0x200
leave
ret 4
Function at 0x100e33b
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x100e50a
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x100e4b2
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x100e4b2
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x100e3dd
and word [ebp + 0x7e0], 0
jmp 0x100e3fd
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.01003e18
test eax, eax
jl 0x100e4b2
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x101728c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x101728c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.0100b7e8
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x100e4b2
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.0100db33
test eax, eax
jl 0x100e4b2
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.01003e18
test eax, eax
jge 0x100e4b6
xor eax, eax
jmp 0x100e508
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.010120e7
add ebp, 0xa00
leave
ret 4
Function at 0x100e354
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x100e50a
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x100e4b2
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x100e4b2
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x100e3dd
and word [ebp + 0x7e0], 0
jmp 0x100e3fd
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.01003e18
test eax, eax
jl 0x100e4b2
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x101728c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x101728c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.0100b7e8
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x100e4b2
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.0100db33
test eax, eax
jl 0x100e4b2
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.01003e18
test eax, eax
jge 0x100e4b6
xor eax, eax
jmp 0x100e508
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.010120e7
add ebp, 0xa00
leave
ret 4
Function at 0x100fff0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
push ebp
push esi
push 1
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebp
jne 0x1010012
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
push 0x14
push 0x1002160
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov edi, eax
call ebx
cmp edi, ebp
jne 0x101003e
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x101005e
push edi
call ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x18], 4
jne 0x101006f
push edi
call ebx
xor eax, eax
jmp 0x1010122
push ebp
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x101008c
push edi
call ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor ebp, ebp
add esi, 0x15f90
inc ebp
mov dword [esp + 0x10], 0x435
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1010111
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x1010109
cmp eax, 3
je 0x1010109
cmp eax, 4
je 0x1010104
cmp eax, 5
jbe 0x10100d2
cmp eax, 7
jbe 0x1010109
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jae 0x1010109
mov eax, dword [esp + 0x2c]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x10100f9
mov ecx, 0x2710
cmp eax, ecx
jbe 0x10100fb
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101010b
and dword [esp + 0x10], 0
xor ebp, ebp
test ebp, ebp
jne 0x10100a5
jmp 0x101011b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push edi
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x101118d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10171b0]
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
mov dword [ebp - 4], eax
push edi
je 0x1011218
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x430
push dword [esi + 0x40]
call edi
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
je 0x10111e3
xor eax, eax
jmp 0x101121b
lea eax, [ebp - 0x210]
push eax
push 0xff3
push dword [esi + 0x40]
call edi
push eax
call fcn.01010c28
lea eax, [ebp - 0x210]
push eax
push 0
push 0x478
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010120e7
leave
ret
Function at 0x10120e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10171b0]
jne 0x10120f0
ret
jmp 0x10120f5
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10171b0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1017304]
test eax, eax
je 0x1012119
call eax
cmp dword [0x1017308], 0
je 0x1012160
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1017308]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.010120e7
add ebp, 0x2a8
leave
ret
Function at 0x1012f46
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb0
mov eax, dword [0x10171b0]
and word [ebp - 0x34], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
and dword [ebp - 0x40], 0
push 0x27
pop ecx
mov dword [ebp + 0x6c], eax
xor eax, eax
lea edi, [ebp - 0x32]
rep stosd dword es:[edi], eax
push 0x50
pop ebx
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x23
mov edi, 0x400
push edi
call esi
test eax, eax
je 0x101301a
xor eax, eax
cmp word [ebp - 0x34], 0x30
sete al
test eax, eax
mov dword [ebp - 0x38], eax
je 0x1012fc0
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x1005
push edi
call esi
test eax, eax
je 0x101301a
xor eax, eax
cmp word [ebp - 0x34], 0x31
sete al
mov dword [ebp - 0x40], eax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x25
push edi
call esi
test eax, eax
je 0x101301a
xor eax, eax
cmp word [ebp - 0x34], 0x31
push ebx
sete al
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 0x1e
push edi
call esi
xor esi, esi
cmp eax, esi
je 0x101301a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp + 0x7c]
xor ecx, ecx
cmp dword [ebp - 0x3c], esi
setne cl
add eax, ecx
mov ecx, dword [ebp - 0x38]
neg ecx
sbb ecx, ecx
and ecx, 3
lea eax, [eax + ecx + 4]
cmp eax, ebx
jbe 0x1013016
xor eax, eax
cmp eax, esi
jne 0x101302d
push dword [ebp + 0x7c]
push 0x10021f4
push dword [ebp + 0x78]
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x101309b
cmp dword [ebp - 0x38], esi
mov edi, dword [ebp + 0x78]
mov word [edi], si
je 0x1013052
cmp dword [ebp - 0x40], esi
je 0x101304a
push ebx
push 0x10021ec
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push ebx
mov ebx, 0x10021e8
jmp 0x1013058
push ebx
mov ebx, 0x10021e4
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push ebx
push edi
call esi
cmp dword [ebp - 0x3c], 0
je 0x101306f
push dword [ebp + 0x7c]
push ebx
push edi
call esi
push dword [ebp + 0x7c]
lea eax, [ebp - 0x34]
push eax
push edi
call esi
push dword [ebp + 0x7c]
push 0x10021dc
push edi
call esi
cmp dword [ebp - 0x38], 0
je 0x101309b
cmp dword [ebp - 0x40], 0
jne 0x101309b
push dword [ebp + 0x7c]
push 0x10021d4
push edi
call esi
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
pop ebx
call fcn.010120e7
add ebp, 0x70
leave
ret 8
Function at 0x40895c
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
and edi, edi
call fcn.0040898f
mov edi, edi
add edi, ebx
xor dword [ecx], esi
add ecx, 1
cmp ecx, edx
jne fcn.0040895c
add edi, edi
push 0x197a4425
mov ebx, dword [esp]
add esp, 4
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403334
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4be034]
xor eax, esp
mov dword [esp + 0x408], eax
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x4033be
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x110
jne 0x4033d7
push ecx
push ecx
mov ecx, edi
mov dword [edi + 0x98], esi
call fcn.004034ac
mov dword [ebx], eax
cmp dword [edi + 0x98], 0
jne 0x4033fd
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004027a2
add esp, 0xc
test eax, eax
jne 0x4033fd
push eax
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x20]
call fcn.004022cf
test eax, eax
jne 0x4033fd
xor eax, eax
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004272a5
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0xc], 0x111
mov ecx, dword [ebp + 0x10]
jne 0x40338c
push 2
movzx eax, cx
pop edx
cmp dx, ax
jne 0x403401
push edx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor esi, esi
inc esi
mov dword [ebx], esi
mov eax, esi
jmp 0x4033c0
cmp si, ax
jne 0x403449
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00429200
add esp, 0xc
lea eax, [esp + 0x10]
push 0x200
push eax
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x80]
call fcn.00402048
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4033fb
push 0x4d
pop edx
cmp dx, ax
jne 0x40338c
sub esp, 0x10
mov ecx, edi
call fcn.00403925
mov dword [ebx], eax
jmp 0x4033fd

Function at 0x4079d8
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x4900fa
call fcn.00427dbe
mov esi, ecx
push 4
call fcn.004272e4
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x40809d
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.0043918f
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x407a1f
mov eax, esi
call fcn.00427d8c
ret 4
push 6
mov dword [edi], ebx
call fcn.00425c04
int3

Function at 0x408927
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40894a
cmp word [ecx], bx
je 0x40894a
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40894a
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret
Function at 0x408a84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4be034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4aca94
push eax
call fcn.004070f6
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408b32
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408b32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x408b32
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x408b32
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x408b12
mov dword [ebx + 0x10], eax
mov edx, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x408b0b
mov edx, dword [ebx]
xor ecx, ecx
mov byte [edx + eax], cl
jmp 0x408b1e
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00409376
push ecx
mov ecx, ebx
call fcn.00406f61
push esi
push edi
call fcn.00407017
xor ecx, ecx
inc ecx
jmp 0x408b34
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004272a5
leave
ret

Function at 0x408b45
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x490264
call fcn.00427e27
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0042756a
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x408bc9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4ac9b0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x408bc9
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x408be2
push edi
call fcn.00427565
pop ecx
jmp 0x408be2
mov eax, esi
call fcn.00427d8c
ret