joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x4040d6
mov dword [0x4451d0], eax
mov edx, 0x404080
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43d0f0], eax
leave
ret

Function at 0x4041c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.unk_24
mov dword [ebp - 0x24], 0x43c6d4
mov dword [ebp - 0x1c], 0x404280
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040d0f0
cmp dword [0x43d0f0], 0
mov dword [ebp - 0x44], 0x4451e0
je 0x404260
jl 0x4042a0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x4451d0]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x404343
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040d1d0
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4457f0]
mov eax, 0xffffffff
test edx, edx
je 0x4042ba
mov eax, dword [0x43d0f4]
test eax, eax
je 0x4042fa
xor eax, eax
test eax, eax
jne 0x4042f0
mov edi, dword [0x43d0f0]
test edi, edi
js 0x4042f0
mov dword [ebp - 0x44], 0x4451e0
mov ebx, dword [0x43d0f0]
test ebx, ebx
je 0x404260
jmp 0x40420e
xor esi, esi
mov dword [0x43d0f0], esi
jmp 0x4042c8
mov dword [esp], 0x43d0f8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x404381
mov eax, dword [0x43d0f4]
test eax, eax
jne 0x4042b8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43d0f4]
test eax, eax
je 0x40431d
jmp 0x4042b8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404375
mov dword [esp + 4], eax
mov eax, dword [0x4451d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x4043aa
test edx, edx
je 0x404395
mov dword [ebp - 0x3c], 1
call fcn.00403c20
call fcn.004040a0
mov eax, 1
mov dword [0x43d0f4], eax
jmp 0x4042b8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x404256
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x404371
Function at 0x4099f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004099d0
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x409a3c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409a10
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ca20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040db40
call fcn.0040cc80
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ca58
jmp 0x40caf6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ca57
cmp cl, 0x22
je 0x40cab0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40cad0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40ca90
jmp 0x40cad0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40cab0
cmp cl, 0x22
je 0x40cb32
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40caf0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40cae0
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40cb14
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.unk_12
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40cad0

Function at 0x40cfe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x445850]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d020
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cb80
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x401a20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4055f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x401a5c
or eax, 0xffffffff
jmp 0x401be3
mov ecx, ebx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a83
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402320
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x28]
je 0x401b8a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, str.__typedefault
cmovae ecx, edi
call fcn.00402d60
test al, al
je 0x401b8a
push str.7A504455_92EF_4B25_8E3F_D8F56B6FCF22
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
je 0x401b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b0d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov ebx, 1
jmp 0x401b8d
push ebx
lea ecx, [ebp - 0x40]
call fcn.004022d0
mov byte [ebp - 4], 1
push ecx
mov ecx, esi
call fcn.00401c10
mov ebx, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x401b64
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b5a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040432f
add esp, 8
push dword [esi + 8]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
jmp 0x401b8d
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401bcd
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401bc3
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401bc3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040432f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, ebx
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004042ee
mov esp, ebp
pop ebp
ret 4
Function at 0x403f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405b28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x403f36
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403fe6
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004041f0
test al, al
je 0x403f8f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x403fd2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403fc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403fc8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040432f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004042ee
mov esp, ebp
pop ebp
ret
Function at 0x10001197
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [ebp + 8]
push eax
call fcn.1000100c
add esp, 4
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x100011c2
xor eax, eax
jmp 0x100012b7
mov dword [ebp - 0x214], 0
jmp 0x100011dd
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + edx*2]
test ecx, ecx
je 0x10001240
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x10001223
mov edx, dword [ebp - 0x214]
mov word [ebp + edx*2 - 0x208], 0
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 0xc]
mov dx, word [eax + edx*2]
mov word [ebp + ecx*2 - 0x208], dx
jmp 0x100011ce
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x100012b5
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x218], edx
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100012b7
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [edi]
imul eax, eax, 0x2710
movzx ecx, word [edi + 2]
imul ecx, ecx, 0x64
add ecx, eax
movzx edi, word [edi + 6]
add edi, ecx
cmp edi, dword [esi + 0x1c]
jne 0x406d8e
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x406d8e
mov ebx, 3
cmp dword [esi + 0x20], eax
jge 0x406e02
mov edx, dword [ebp + 0x14]
xor ebx, ebx
lea eax, [ebp - 0x24]
mov dword [eax], ebx
mov ecx, dword [ebp + 8]
push eax
push edx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.00406ed0
add esp, 0x18
test al, al
je 0x406dbb
cmp dword [esi + 0x1c], edi
jne 0x406dcd
mov eax, dword [esi + 0x20]
jmp 0x406dd2
mov eax, 0xfffffe70
add eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, 0x64
setb bl
jmp 0x406e02
mov dword [esi + 0x1c], edi
xor eax, eax
inc eax
mov dword [esi + 0x20], eax
cmp dword [esi + 0x10], 0
je 0x406dfd
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406de6
mov eax, dword [esi]
push 0x42c88e
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x406e18
mov ebx, 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push dword [ebp - 0x20]
push 1
push 5
push str.GBP1_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0041e890
add esp, 0xc
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0041e890
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x406dfd
Function at 0x409eb0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 8], eax
push str.MOZ_CRASHREPORTER_NO_DELETE_DUMP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x409edc
cmp byte [eax], 0
jne 0x40a007
cmp dword [0x430504], 0
je 0x409f41
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x4304f4
call fcn.00415810
cmp dword [esi + 0x14], 8
jb 0x409efd
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x409f41
mov ecx, dword [ebp - 0x20]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x409f37
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40a017
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c27c
add esp, 8
cmp dword [0x43051c], 0
je 0x409fa6
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x43050c
call fcn.00415810
cmp dword [esi + 0x14], 8
jb 0x409f62
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x409fa6
mov ecx, dword [ebp - 0x20]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x409f9c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40a017
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c27c
add esp, 8
cmp dword [0x430534], 0
je 0x40a007
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x430524
call fcn.00415810
cmp dword [esi + 0x14], 8
jb 0x409fc7
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40a007
mov ecx, dword [ebp - 0x20]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x409ffd
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40a017
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c27c
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041cd60
add esp, 0x1c
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x414ff0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edx, ecx
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x28]
mov ecx, esi
call fcn.00415810
cmp dword [esi + 0x14], 8
jb 0x415018
mov esi, dword [ebp - 0x28]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41505c
mov ecx, dword [ebp - 0x28]
lea edi, [eax + eax]
add edi, 2
cmp edi, 0x1000
jb 0x415052
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x415087
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.0041c27c
add esp, 8
test esi, esi
jne 0x41506d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415083
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x41506f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x416030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
movzx eax, cx
cmp byte [0x430610], 1
jne 0x4160be
xor ebx, ebx
push 5
push eax
push ebx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push eax
push ebx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push ebx
push dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
or byte [esi + 0xa], 0x40
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x4160cd
xor ecx, ecx
push ecx
push dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x417b60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, edx
mov esi, ecx
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x10]
cmp dword [ecx + 0x10], eax
jne 0x417ba6
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x417b89
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x417b93
mov edx, dword [edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x417c52
lea ebx, [ebp - 0x28]
mov ecx, ebx
mov edx, edi
call fcn.00415810
cmp dword [ebx + 0x14], 8
jb 0x417bbb
mov ebx, dword [ebp - 0x28]
lea edi, [ebp - 0x40]
mov ecx, edi
mov edx, esi
call fcn.00415810
cmp dword [edi + 0x14], 8
jb 0x417bd0
mov edi, dword [ebp - 0x40]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
sete bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x417c17
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x417c0d
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x417c68
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c27c
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x417c54
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x417c46
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x417c68
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c27c
add esp, 8
jmp 0x417c54
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x4187d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x818
mov esi, ecx
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41880c
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edi, [esi + 8]
lea eax, [ebp - 0x810]
push 0x400
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x1c], 8
mov dword [ebp - 0x824], edi
jb 0x418835
mov edi, dword [esi + 8]
lea edx, [ebp - 0x818]
push edx
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41889e
lea edi, [ebp - 0x810]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
lea ecx, [ebp - 0x820]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41889e
mov eax, dword [ebp - 0x818]
mov edx, dword [ebp - 0x820]
sub eax, edx
mov ebx, 0
js 0x4188c5
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x418892
mov ebx, dword [ecx + 8]
add edx, dword [ecx]
sub ebx, edx
add ebx, eax
cmp byte [esi + 0x20], 0
je 0x4188a2
sub dword [ecx], ebx
jmp 0x4188a5
xor ebx, ebx
jmp 0x4188c5
add dword [ecx + 8], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov edi, dword [eax + 4]
sub ecx, edi
mov eax, dword [eax + 8]
sub eax, edx
push 1
push ecx
push eax
push edi
push edx
push dword [esi]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x1c]
cmp eax, 8
jb 0x418903
mov ecx, dword [ebp - 0x824]
mov ecx, dword [ecx]
lea edi, [eax + eax]
add edi, 2
cmp edi, 0x1000
jb 0x4188f9
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41892e
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.0041c27c
add esp, 8
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, ebx
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x418940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx], 0
lea ebx, [ebp - 0x1c]
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x418986
push ebx
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x418986
xor ebx, ebx
jmp 0x4189c6
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ecx], 4
lea edx, [ebp - 0x20]
lea edi, [ebp - 0x14]
push ecx
push edx
push edi
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
jne 0x4189bd
cmp dword [ebp - 0x14], 4
jne 0x4189bd
cmp dword [ebp - 0x20], 1
mov eax, dword [ebp + 8]
sete byte [eax]
mov bl, 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret