joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417bc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x50]
push ecx
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x417c90
push ebx
push edi
call fcn.0042b2bc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417c7a
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x447444
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax + 0x10]
movzx edx, word [eax + 0x12]
push ecx
push edx
lea eax, [ebp - 0x44]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x44]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417c43
mov esi, dword [ebp - 0x48]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00402c20
push ebx
call fcn.0042c048
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x417d50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor eax, eax
cmp dword [ebp - 4], 1
jne 0x417dba
push 0xe
push str._ProgramFiles_
push esi
call fcn.00405520
cmp eax, 0xffffffff
je 0x417df8
jmp 0x417d90
push 0xe
push str._ProgramW6432_
push eax
mov eax, 0xe
mov ecx, esi
call fcn.0040dbe0
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.00405520
cmp eax, 0xffffffff
jne 0x417d90
jmp 0x417df8
push 0x13
push str._ProgramFiles_x86__
push esi
call fcn.00405520
cmp eax, 0xffffffff
je 0x417df8
lea esp, [esp]
push 0xe
push str._ProgramFiles_
push eax
mov eax, 0x13
mov ecx, esi
call fcn.0040dbe0
push 0x13
push str._ProgramFiles_x86__
push esi
xor eax, eax
call fcn.00405520
cmp eax, 0xffffffff
jne 0x417dd0
cmp dword [esi + 0x14], 8
jb 0x417e02
mov eax, dword [esi]
jmp 0x417e04
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b2bc
mov edi, eax
add esp, 4
test edi, edi
je 0x417e70
cmp dword [esi + 0x14], 8
jb 0x417e3a
mov eax, dword [esi]
jmp 0x417e3c
mov eax, esi
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417e50
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00402c20
push edi
call fcn.0042ccc5
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417e80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x417f8e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ebx, [esi + 2]
push ebx
call fcn.0042b2bc
mov edi, eax
add esp, 4
test edi, edi
jne 0x417ee6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call fcn.00430c00
mov ebx, dword [ebp - 8]
add esp, 0xc
push 0
lea edx, [ebp - 0xc]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417f74
cmp byte [edi], 0xff
jne 0x417f39
cmp byte [edi + 1], 0xfe
jne 0x417f39
mov ecx, dword [ebp + 8]
lea eax, [edi + 2]
push ecx
call fcn.00401990
push edi
call fcn.0042ccc5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417f40
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00402c20
push edi
call fcn.0042ccc5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp - 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x418052
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x418046
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [ebx + 2]
push edi
mov dword [ebp - 4], eax
call fcn.0042b2bc
mov esi, eax
add esp, 4
test esi, esi
je 0x41803a
push edi
push 0
push esi
call fcn.00430c00
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.0042dc00
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418015
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00411500
push esi
call fcn.0042c048
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xb
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41811a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x41810e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [ebx + 2]
push esi
mov dword [ebp - 4], eax
call fcn.0042b2bc
mov edi, eax
add esp, 4
test edi, edi
je 0x418102
push esi
push 0
push edi
call fcn.00430c00
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call fcn.0042dc00
mov eax, edi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4180d6
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00402c20
push edi
call fcn.0042c048
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418130
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x418326
cmp word [edi], si
je 0x418326
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0042cbdd
add esp, 0xc
push 0x44a10c
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4181c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov ecx, 0x44a110
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4181f6
test dx, dx
je 0x4181f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4181f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4181d0
xor eax, eax
jmp 0x4181fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4182d5
mov ecx, 0x44a114
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418236
test dx, dx
je 0x418232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418236
add eax, 4
add ecx, 4
test dx, dx
jne 0x418210
xor eax, eax
jmp 0x41823b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4182d5
push edi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0042cbdd
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x10], 0x10
je 0x4182a7
lea ecx, [esp + 0x260]
push ecx
call fcn.00418130
mov esi, eax
add esp, 4
test esi, esi
je 0x4182d5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4182f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4182fa
cmp esi, 0x12
jne 0x4181c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp esi, 0x12
jne 0x41830f
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 3
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x418340
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x418391
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4183a7
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0042c039
mov esp, ebp
pop ebp
ret

Function at 0x4183d0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41844d
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x41844d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x418960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00430c00
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push esi
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4189df
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4189f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x418a3d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push edi
call fcn.0042cbdd
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.0042c039
mov esp, ebp
pop ebp
ret

Function at 0x418a60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push esi
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x418abd
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042cbdd
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x418b0b
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x418b0b
movzx eax, word [esi]
test ax, ax
je 0x418b0b
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
lea esp, [esp]
test bl, bl
je 0x418af8
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x418ae0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x418b20
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x20d], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x224], edi
call fcn.0042cbdd
push str..bak
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0042d02f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push edi
push edi
push 4
push edi
push edi
push SysReAllocString
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x418ccc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x418c7f
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x20c]
push edx
call ebx
mov ebx, eax
mov dword [ebp - 0x21c], ebx
cmp ebx, 0xffffffff
je 0x418c89
push 0
push 0
add edi, 0xffd00000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0042b2bc
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418c39
mov edx, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
jne 0x418c60
mov ebx, dword [ebp - 0x21c]
cmp dword [ebp - 0x218], 0
ja 0x418c03
mov ebx, dword [ebp - 0x214]
push edi
call fcn.0042ccc5
mov eax, dword [ebp - 0x21c]
add esp, 4
push eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x418c8f
mov ebx, dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20d], 0
je 0x418cb9
test ebx, ebx
jne 0x418cb9
mov ecx, dword [ebp - 0x220]
push 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x419030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
or ebx, 0xffffffff
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [0x455ca4], eax
mov dword [0x455ca0], eax
mov dword [0x455c90], ebx
mov dword [0x455c94], ebx
mov dword [0x455c98], ebx
mov dword [0x455c9c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4191d6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4191f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [0x455ca4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x455ca0], eax
lea eax, [esp + 0x230]
push eax
push ebx
push 0x418dc0
push 0x418e10
push 0x418d90
push 0x418d40
push 0x418d10
push 0x418d00
push 0x418cf0
call dword [sym.imp.Cabinet.dll_FDICreate]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4191b5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
mov dword [esp + 0x22c], ecx
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov dword [esp + 0x238], edx
call fcn.0042cbdd
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 0
push 0x418e30
push 0
push 0x4469b0
push 0x4469b0
push esi
call dword [sym.imp.Cabinet.dll_FDICopy]
add esp, 0x1c
test eax, eax
jne 0x419190
mov edi, dword [esp + 0x230]
push esi
add edi, 0xb000
call dword [sym.imp.Cabinet.dll_FDIDestroy]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x230]
add eax, 0xb000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042c039
mov esp, ebp
pop ebp
ret
Function at 0x41bbc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
push 0
call fcn.0041baf0
mov eax, dword [edi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x41bc39
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
lea ebx, [ebx]
cmp byte [edi + 0xc], 0
jne 0x41bc38
mov eax, dword [edi + 4]
lea edx, [ebp - 0x1c]
push edx
push eax
call ebx
test eax, eax
jne 0x41bc28
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x41bc00
pop ebx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, 0x455cb8
call fcn.00412e40
mov edx, dword [0x4564f8]
mov eax, dword [edx + 4]
push eax
mov ecx, 0x4564f4
call fcn.00413300
mov eax, dword [0x4564f8]
mov dword [eax + 4], eax
mov eax, dword [0x4564f8]
mov dword [eax], eax
mov eax, dword [0x4564f8]
mov dword [eax + 8], eax
mov dword [0x4564fc], 0
mov eax, dword [edi + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41bc90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44199b
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x4533e4]
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 eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], cx
mov dword [ebp - 4], ebx
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push edx
call edi
mov esi, eax
cmp esi, ebx
je 0x41bd4f
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
lea esp, [esp]
push 0x400
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x814]
push edx
mov ecx, 0x455cb8
call fcn.00412d30
cmp dword [ebp - 0x81c], 8
mov eax, dword [ebp - 0x830]
jae 0x41bd40
lea eax, [ebp - 0x830]
push eax
push esi
call ebx
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x41bd00
cmp dword [ebp - 0x81c], 8
jb 0x41bd67
mov eax, dword [ebp - 0x830]
push eax
call fcn.0042c048
add esp, 4
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.0042c039
mov esp, ebp
pop ebp
ret 4