joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c908
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40a703
cmp byte [ebx + 0x45], 0
je 0x40a703
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40a5d0
xor al, al
jmp 0x40a705
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
jmp 0x40a630
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40a66b
dec eax
je 0x40a66f
sub eax, 2
je 0x40a6cd
xor bl, bl
jmp 0x40a6cf
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40a6ae
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0044cf90
add esp, 0x10
cmp esi, eax
jne 0x40a667
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x40a6cd
test esi, esi
jne 0x40a630
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040a1b0
jmp 0x40a61f
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x40a6ea
push dword [esp + 0x18]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x40a705
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044b642
mov esp, ebp
pop ebp
ret

Function at 0x40d020
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x40d032
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40d040
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d040
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x40d070
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x40d084
pop ebp
lea eax, [ebx + 0xd]
pop ebx
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
lea ebx, [ebx]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d095
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40d090
push esi
push ebx
push 7
push 0
push dword [esp + 0x24]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40d850
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x46cf4b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x24c]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x244], 0
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
or eax, 0x2001f
mov ecx, dword [ecx]
mov dword [esp + 0x24], 0
test edx, edx
je 0x40d8f6
lea esi, [esp + 0x24]
push esi
push eax
push ecx
push ebp
push ecx
mov ecx, edx
call fcn.0040d750
jmp 0x40d906
lea edx, [esp + 0x24]
push edx
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x40d9d0
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
je 0x40d92d
push eax
call ebx
mov esi, eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
test esi, esi
jne 0x40d9d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x2c]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x100
push ecx
lea ecx, [esp + 0x48]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x40d9a9
lea ecx, [ecx]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d850
mov esi, eax
test esi, esi
jne 0x40d9d0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
je 0x40d970
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d9bc
push eax
call ebx
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x14]
push ebp
mov dword [esp + 0x20], 0
call fcn.0040dac0
mov esi, eax
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d9ee
push eax
call ebx
mov dword [esp + 0x18], 0
mov eax, esi
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0044b642
add esp, 0x234
ret 4
Function at 0x40dac0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [ecx + 8]
test esi, esi
je 0x40db23
cmp dword [esi], 0
push edi
mov edi, dword [ecx]
je 0x40db03
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40db19
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40db19
push 0
push dword [esi]
push 0
push 0
push dword [esp + 0x1c]
push edi
call eax
pop edi
pop esi
ret 4
cmp dword [esi + 4], 0
je 0x40db19
push dword [esp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
push dword [esp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
ret 4
Function at 0x40e6c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x46d003
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x48c74c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x41c]
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x404], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp + 0x408], xmm0
mov dword [ebp + 0x40c], ecx
mov dword [ebp + 0x408], 0
push 0x404
push 0
lea eax, [ebp]
push eax
call fcn.00451b50
add esp, 0xc
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40e78f
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x40e78f
call fcn.0040c890
mov edi, eax
jmp 0x40e89c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40e7ac
call fcn.0040c890
jmp 0x40e88f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x40e7c7
call fcn.0040c890
jmp 0x40e88f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x40e7e5
mov edi, 0x8007000e
jmp 0x40e891
mov byte [ebp - 4], 2
xor eax, eax
shld eax, ecx, 1
add ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40e829
cmp ecx, 0xffffffff
ja 0x40e829
cmp ecx, 0x400
jbe 0x40e81a
push ecx
lea ecx, [ebp]
call fcn.0040c860
mov dword [ebp - 4], 1
jmp 0x40e849
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x40e849
push 0x80070216
call fcn.0040d5d0
mov eax, 0x40e839
ret
mov eax, dword [ebp]
test eax, eax
jne 0x40e857
mov edi, 0x8007000e
jmp 0x40e891
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40e872
call fcn.0040c890
jmp 0x40e88f
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x428]
push dword [ebp]
lea ecx, [ebp + 0x408]
call fcn.0040e560
mov edi, eax
test esi, esi
je 0x40e89c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40e8b0
lea ecx, [ebp]
call fcn.0040c840
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0044b642
lea esp, [ebp + 0x414]
pop ebp
ret 0x10
Function at 0x4130a0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46d8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x4130e5
mov eax, dword [esi]
jmp 0x4130e7
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x4130fc
mov al, 1
jmp 0x413186
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00413a40
test al, al
je 0x413150
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x413150
mov bl, 1
jmp 0x413152
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x41316d
push dword [esp + 0x14]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044b642
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x46d8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4131ec
mov eax, dword [esi]
jmp 0x4131ee
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413283
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00413a40
test al, al
je 0x413251
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x41326c
push dword [esp + 0xc]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044b642
add esp, 0x28
ret
Function at 0x4132b0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x46d8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4132ec
mov eax, dword [esi]
jmp 0x4132ee
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x413302
mov al, 1
jmp 0x413391
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00413a40
test al, al
je 0x41335b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41335b
mov bl, 1
jmp 0x41335d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x413378
push dword [esp + 0xc]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044b642
add esp, 0x28
ret
Function at 0x4133b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46d920
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4133ed
mov eax, dword [esi]
jmp 0x4133ef
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x413403
mov al, 1
jmp 0x4135c0
cmp dword [esi + 0x14], 8
jb 0x41340d
mov edx, dword [esi]
jmp 0x41340f
mov edx, esi
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [edx], ax
jne 0x41343f
xor ecx, ecx
jmp 0x413453
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413444
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.00403be0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x2c]
call fcn.004131b0
mov ebx, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x41348c
push dword [esp + 0x2c]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp ebx, 0xffffffff
jne 0x4134af
xor al, al
jmp 0x4135c0
cmp dword [esi + 0x14], 8
jb 0x4134b9
mov eax, dword [esi]
jmp 0x4134bb
mov eax, esi
push eax
lea ecx, [esp + 0x30]
call fcn.00402c40
mov dword [esp + 0x50], 1
xor edx, edx
lea ecx, [esp + 0x2c]
call fcn.004130a0
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x413500
push dword [esp + 0x2c]
call fcn.0044b63d
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
test al, al
jne 0x4134a8
cmp dword [esi + 0x14], 8
jb 0x413525
mov eax, dword [esi]
jmp 0x413527
mov eax, esi
push eax
call edi
test eax, eax
jne 0x4133fc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
mov dword [esp + 0x50], 2
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00413a40
test al, al
je 0x41357b
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call edi
test eax, eax
je 0x41357b
mov bl, 1
jmp 0x4135ad
cmp dword [esi + 0x14], 8
jb 0x413583
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.00402c40
mov byte [esp + 0x50], 3
mov edx, ebx
lea ecx, [esp + 0x14]
call fcn.004130a0
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x14]
call fcn.00402d10
xor bl, bl
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00402d10
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0044b642
add esp, 0x44
ret
Function at 0x4135e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46d95b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x48f4dc]
mov dword [esp + 8], 0x48f4dc
test eax, eax
je 0x413632
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x638], 0
cmp dword [0x48d714], 0
je 0x413680
cmp esi, 0x48d704
je 0x41365e
push 0xffffffffffffffff
push 0
push 0x48d704
mov ecx, esi
call fcn.00403ac0
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x48f4dc]
test eax, eax
je 0x413679
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x41375b
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41373e
xor eax, eax
push 0x410
push eax
mov word [esp + 0x21e], ax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41372d
test eax, eax
je 0x41372d
add eax, eax
cmp eax, 0x412
jae 0x413728
xor ecx, ecx
mov word [esp + eax + 0x218], cx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.00405210
jmp 0x41365e
call fcn.0044c048
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00405210
jmp 0x41365e
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x48f4dc]
test eax, eax
je 0x413759
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.0044b642
add esp, 0x634
ret
Function at 0x413790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call fcn.00451b50
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4137d4
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4137dc
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x413866
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x413829
xor ecx, ecx
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00403be0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044b642
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413830
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00403be0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044b642
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b642
add esp, 0x210
ret

Function at 0x413e30
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x413e3d
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x413e38
cmp dword [eax], 0xffffffff
je 0x413e38
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc
Function at 0x415130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46de57
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403ac0
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 3
lea ecx, [edi + 0x60]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x60]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 4
lea ecx, [edi + 0x78]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x78]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 5
lea ecx, [edi + 0x90]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x90]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 6
lea ecx, [edi + 0xa8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xa8]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 7
lea ecx, [edi + 0xc0]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xc0]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 8
lea ecx, [edi + 0xd8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xd8]
push eax
call fcn.00403ac0
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x416b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d438
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00415d40
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
jne 0x416b5c
xor bl, bl
jmp 0x416b67
lea ecx, [esp + 0xc]
call fcn.00410ea0
mov bl, al
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x416b82
push dword [esp + 0xc]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044b642
add esp, 0x2c
ret