joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44170b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4543e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042d851
push 4
mov dword [ebp - 4], 0
call fcn.0042e4e3
mov edi, eax
add esp, 4
test edi, edi
je 0x40fcbc
call fcn.0042dca3
mov dword [edi], eax
call fcn.0042da62
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042d997
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40fcb2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042d9bf
jmp 0x40fcbe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4139d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442649
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2c], esi
mov word [esi], cx
push 9
mov dword [ebp - 4], eax
movzx eax, word [edi + 2]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x24]
push edx
push 0x59
push eax
mov dword [ebp - 0x28], 1
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x413a40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413a40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
call fcn.00403f50
push 1
mov eax, 0x44afdc
mov ecx, esi
call fcn.00402b10
movzx edx, word [edi + 2]
push 9
lea ecx, [ebp - 0x24]
push ecx
push 0x5a
push edx
call ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x413a80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413a80
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
call fcn.00402b10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x413ca0
Capabilities:
Delete file
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov byte [esp + 0x10], 1
test di, di
jne 0x413d13
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x413cef
mov edx, 0x205
cmp ax, dx
je 0x413cef
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x413cf5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
movzx eax, di
push eax
push str.Current_UI_language:__04X
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
mov eax, edi
and eax, 0x3ff
cmp ax, 3
je 0x413d2c
cmp ax, 0x2d
je 0x413d2c
cmp ax, 0x56
jne 0x413d31
mov edi, 0xc0a
lea ecx, [esp + 0x220]
push ecx
push 0x104
mov word [esp + 0x10], di
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 4]
push edi
push 0
push 0x44b040
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push str.Language_folder:__s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0xa
lea edx, [esp + 0x10]
mov ecx, 0x4137b0
call fcn.00422370
add esp, 8
test eax, eax
jne 0x413dcc
movzx eax, word [esp + 0x12]
push eax
push str.Loading_language__04X
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov eax, dword [esp + 0x1e]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call fcn.00413de0
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
xor ecx, esp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret

Function at 0x413de0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x61c]
push 0x104
push ecx
mov word [esi + 2], ax
call fcn.0042e563
add esp, 0xc
push edi
lea ebx, [esi + 0x20c]
push 0x104
push ebx
call fcn.0042e563
add esp, 0xc
push str.IntelCommon.dll
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 8]
push edx
lea edi, [esi + 0x414]
push 0x104
push edi
call fcn.0042e563
add esp, 0xc
push str.resource.dll.mui
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413e59
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [esi], 0
je 0x413e76
push ebx
push str.Loading_common_language_resource___s_
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push 2
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov dword [esi + 0x824], eax
test eax, eax
jne 0x413e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop ecx
pop ebp
ret 4
cmp byte [esi], 0
je 0x413eb7
push edi
push str.Loading_language_resource___s_
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push 2
push 0
push edi
call ebx
mov dword [esi + 0x828], eax
test eax, eax
je 0x413e8d
pop edi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x415460
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d749
add esp, 4
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x10
or eax, 0x400
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0xffffffffffffffff
push edi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.0042f799
add esp, 4
push 0x80
lea edx, [ebp - 0x108]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, str.Button
lea eax, [ebp - 0x108]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415556
test dx, dx
je 0x415552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415556
add eax, 4
add ecx, 4
test dx, dx
jne 0x415530
xor eax, eax
jmp 0x41555b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x415584
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xb
jle 0x415584
push 0x47
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x110]
add ecx, eax
mov dword [ebp - 0x110], ecx
jmp 0x41558a
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x114]
sub ecx, dword [ebp - 0x118]
push 6
inc eax
push eax
inc ecx
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret 8
Function at 0x418480
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00432fb0
add esp, 0xc
lea ecx, [ebp - 0x14c]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x14c]
cmp ax, 9
jne 0x4184e3
test ebx, ebx
js 0x4184f0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4184d2
test ebx, 0x40000000
je 0x4184d2
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 2
mov edx, ebx
shr edx, 8
push 0
and edx, 0xff
push 0
mov dword [ebp - 0x124], edx
call esi
push 3
push 1
movzx ecx, bl
push edx
push eax
mov dword [ebp - 0x120], ecx
call esi
mov ecx, 3
test ebx, 0x10000000
je 0x418535
mov byte [ebp - 0xe], 1
jmp 0x418548
test ebx, 0x20000000
je 0x418542
mov byte [ebp - 0xe], cl
jmp 0x418548
cmp byte [ebp - 0xe], 0
jbe 0x418558
push 1
push 0x80
push edx
push eax
call esi
mov ecx, 0x83
push edx
push eax
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, 1
jne 0x4184d2
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, al
pop esi
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x41e270
Capabilities:
Get common file path
Get graphical window text
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4438cb
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
mov eax, dword [0x4543e4]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, 0x4d8
mov esi, ecx
cmp word [ebp + 0xc], ax
jne 0x41e3d7
cmp word [ebp + 8], 0
jne 0x41e3d7
xor ecx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
mov dword [esp + 0x268], ecx
mov edx, dword [esi + 4]
push 0x4d3
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x104
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 4]
xor eax, eax
lea edx, [esp + 0xc]
push edx
push eax
push eax
push 0x11
mov dword [esp + 0x20], eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x208a
mov edx, 0x456d68
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x41
call fcn.00413ac0
mov esi, 8
cmp dword [esp + 0x44], esi
jb 0x41e385
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
jmp 0x41e38d
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
mov dword [esp + 0x28], 0x41e1c0
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x41e3c4
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [esp + 0x4c]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x44], esi
jb 0x41e3d7
mov eax, dword [esp + 0x30]
push eax
call fcn.0042e4d8
add esp, 4
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret 8
Function at 0x41f930
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x44b040
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f9b5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00403f50
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret

Function at 0x41f9f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
lea edx, [ebp - 0x58]
push edx
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41fb1d
push ebx
push edi
call fcn.0042d749
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41fb07
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x448e84
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa86
mov esi, dword [ebp - 0x50]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00403f50
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fad0
mov esi, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00403f50
push ebx
call fcn.0042e4d8
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e4c9
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.0042e4c9
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.0042e4c9
mov esp, ebp
pop ebp
ret
Function at 0x41fbe0
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]
cmp dword [ebp - 4], 1
jne 0x41fc48
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.0040f040
cmp eax, 0xffffffff
je 0x41fc48
jmp 0x41fc20
push 0xe
push str._ProgramW6432_
push eax
mov eax, 0xe
mov ecx, esi
call fcn.0040ee50
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.0040f040
cmp eax, 0xffffffff
jne 0x41fc20
cmp dword [esi + 0x14], 8
jb 0x41fc52
mov eax, dword [esi]
jmp 0x41fc54
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.0042d749
mov edi, eax
add esp, 4
test edi, edi
je 0x41fcc0
cmp dword [esi + 0x14], 8
jb 0x41fc8a
mov eax, dword [esi]
jmp 0x41fc8c
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 0x41fca0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00403f50
push edi
call fcn.0042f799
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fcd0
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 0x41fdde
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ebx, [esi + 2]
push ebx
call fcn.0042d749
mov edi, eax
add esp, 4
test edi, edi
jne 0x41fd36
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.00432fb0
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 0x41fdc4
cmp byte [edi], 0xff
jne 0x41fd89
cmp byte [edi + 1], 0xfe
jne 0x41fd89
mov ecx, dword [ebp + 8]
lea eax, [edi + 2]
push ecx
call fcn.00402ad0
push edi
call fcn.0042f799
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 0x41fd90
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00403f50
push edi
call fcn.0042f799
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 0x41fdf0
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 0x41fea2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x41fe96
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.0042d749
mov esi, eax
add esp, 4
test esi, esi
je 0x41fe8a
push edi
push 0
push esi
call fcn.00432fb0
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.0042ffb0
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fe65
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00412720
push esi
call fcn.0042e4d8
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 0x41feb0
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 0x41ff6a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x41ff5e
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.0042d749
mov edi, eax
add esp, 4
test edi, edi
je 0x41ff52
push esi
push 0
push edi
call fcn.00432fb0
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call fcn.0042ffb0
mov eax, edi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ff26
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00403f50
push edi
call fcn.0042e4d8
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 0x41ff80
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 [0x4543e4]
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 0x420176
cmp word [edi], si
je 0x420176
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0042e563
add esp, 0xc
push 0x44b7d8
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 0x420010
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret
mov ecx, 0x44b6a4
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420046
test dx, dx
je 0x420042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420046
add eax, 4
add ecx, 4
test dx, dx
jne 0x420020
xor eax, eax
jmp 0x42004b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420125
mov ecx, 0x44b7dc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420086
test dx, dx
je 0x420082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420086
add eax, 4
add ecx, 4
test dx, dx
jne 0x420060
xor eax, eax
jmp 0x42008b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x420125
push edi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0042e563
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 0x4200f7
lea ecx, [esp + 0x260]
push ecx
call fcn.0041ff80
mov esi, eax
add esp, 4
test esi, esi
je 0x420125
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.0042e4c9
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 0x420141
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x42014a
cmp esi, 0x12
jne 0x420010
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp esi, 0x12
jne 0x42015f
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042e4c9
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.0042e4c9
mov esp, ebp
pop ebp
ret