joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042380
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
push 0
push 0
push sym.BLauncher.dll_public:_static_long_int___stdcall_WinHook::keyProc_int__unsigned_int__long_int_
push 0xd
mov esi, ecx
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 8], eax
pop esi
ret

Function at 0x10042840
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
push 0
push 0
push sym.BLauncher.dll_public:_static_long_int___stdcall_WindowHook::keyProc_int__unsigned_int__long_int_
push 0xd
mov esi, ecx
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x10047f70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1009455c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
sub esp, 0x60
mov edx, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edx
movups xmm0, xmmword [eax]
lea edi, [edx + 0x28]
mov ecx, edi
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edx + 0x10], xmm0
movq xmm0, qword [eax + 0x20]
add eax, 0x28
push eax
movq qword [edx + 0x20], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
call fcn.10013870
mov eax, dword [ebp - 0x14]
lea ecx, [edi + 0x18]
add eax, 0x18
mov byte [ebp - 4], 1
push eax
call fcn.10046e60
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov byte [ebp - 4], 0
mov al, byte [eax + 0x30]
mov byte [edi + 0x30], al
call fcn.100487e0
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 0x10048330
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050c7d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1009455c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 2
mov edi, 0xc0000000
mov eax, dword [ebp + 0x20]
mov ecx, 0x80000000
setne bl
mov dword [ebp - 4], 0
cmovne edi, ecx
or eax, dword [ebp + 0x24]
je 0x10048386
mov edx, 2
test bl, bl
je 0x1004838b
mov edx, 3
test bl, bl
mov eax, 1
push 0
mov ecx, 0x100
cmovne ecx, eax
cmp byte [ebp + 0x60], 0
push ecx
push edx
push 0
push eax
push edi
je 0x100483bc
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x100483ce
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esi + 0x70], ecx
cmp ecx, 0xffffffff
je 0x100484a6
mov edx, dword [ebp + 0x20]
mov eax, edx
mov edi, dword [ebp + 0x24]
or eax, edi
je 0x10048421
test bl, bl
jne 0x10048421
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10048410
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100484b2
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x100484b2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetFileSizeEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x70]
test eax, eax
je 0x10048455
lea edx, [ebp - 0x14]
push edx
push ecx
call eax
test eax, eax
je 0x100484be
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
jmp 0x1004846c
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x100484be
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
cmp edx, 0xffffffff
je 0x10048480
test eax, eax
jg 0x1004847e
jl 0x10048480
cmp ecx, edx
jb 0x10048480
mov ecx, edx
mov dword [esi + 0x68], ecx
lea ecx, [ebp + 0x30]
mov dword [esi + 0x6c], 0
call fcn.1001a9b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x60
push str.failed_opening_file
mov ecx, esi
call fcn.10047bc0
push str.failed_setting_file_size
mov ecx, esi
call fcn.10047bc0
push str.failed_querying_file_size
mov ecx, esi
call fcn.10047bc0
int3

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
jmp 0xf8e52e
pushal
call 0xf8e534
pop ebp
sub ebp, 0x10
sub ebp, 0xb8e524
mov al, byte [esp + 0x28]
cmp al, 1
je 0xf8e558
popal
xor eax, eax
inc eax
ret 0xc
jmp 0xf8e561
mov eax, 0xb8e524
add eax, ebp
add eax, 0x63
mov ecx, 0x5b3
mov edx, 0xfa1e1d35
xor byte [eax], dl
inc eax
dec ecx
jne 0xf8e578
jmp 0xf8e58b
mov esi, 0x9bcbef8
xor eax, 0xf4b43535
int 0x35
xor eax, 0x8df83635
xor eax, 0x1d8f3535
xor eax, 0xd7c23535
std
mov esi, 0x353539b4
xor eax, 0x51b8f036
adc ecx, ecx
mov esp, 0x51b81131
adc ecx, ecx
mov esp, 0xf95d1131
or dl, byte [edi]
xor eax, 0xa390605d
xor eax, 0x5d111934
sar byte [ecx + edi + 0x3530dda3], 1
xor eax, 0x3501dc35
xor eax, 0x1151b835
leave
mov esp, 0xd9be1119
mov esi, 0x35353db0
xor eax, 0x3539a0be
xor eax, 0x25b8be35
xor eax, 0xdcf43535
aaa
add al, 0x37
mov dh, 0xf7
xor dword [edx + edi - 0x50], edi
ror edx, 0xca
retf 0x19be
Function at 0x401e50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x449620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44e720]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [0x44e720], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x401ef9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__4u____s__impossible_to_find__S_r_n
lea eax, [ebp - 0xa0c]
push 0x400
push eax
call fcn.00401de0
add esp, 0x18
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b617
mov esp, ebp
pop ebp
ret 0xc
push dword [esi + 0x10]
push eax
push dword [esi + 4]
call fcn.00401f20
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b617
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401f20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x449620]
xor eax, esp
mov dword [esp + 0x450], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0x1c
push eax
push fcn.00401f20
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb edi, edi
and edi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x424
mov esi, eax
mov dword [esp + 0x34], 0x428
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0041dd50
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401fcd
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x401fc1
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x14]
call fcn.00401ff0
lea eax, [esp + 0x30]
push eax
push esi
call ebx
test eax, eax
jne 0x401fa8
cmp esi, 0xffffffff
je 0x401fd9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b617
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d85
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402dc4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402dc0
lea ebx, [ebx]
cmp esi, edx
jae 0x402dc4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402db0
cmp esi, edx
jb 0x402dc9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404e70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 4]
push ecx
push 0xf003f
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f3e
cmp dword [ebp + 0x4c], 8
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
push ebx
cmovae ecx, dword [ebp + 0x20]
add eax, eax
push esi
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x404eec
push dword [ebp + 8]
call fcn.0040c6f7
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x404f11
push dword [ebp + 0x20]
call fcn.0040c6f7
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x404f36
push dword [ebp + 0x38]
call fcn.0040c6f7
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 8
jb 0x404f4f
push dword [ebp + 8]
call fcn.0040c6f7
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x404f74
push dword [ebp + 0x20]
call fcn.0040c6f7
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x404f99
push dword [ebp + 0x38]
call fcn.0040c6f7
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x404fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4337e0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x449620]
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 edi, edx
mov dword [ebp - 4], 1
lea edx, [ebp - 0x21c]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push edx
cmovae ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x218]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edx
cmovae eax, dword [ebp + 8]
push 0
push 0xffff
push ecx
push eax
push 0x80000001
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x405048
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405026
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004031c0
mov bl, 1
jmp 0x40504a
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x40505b
push dword [ebp + 8]
call fcn.0040c6f7
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x405080
push dword [ebp + 0x20]
call fcn.0040c6f7
add esp, 4
mov al, bl
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.0041b617
mov esp, ebp
pop ebp
ret
Function at 0x405370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4338b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040cce5
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4053c7
push 0x80004005
call fcn.00403170
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov ecx, 0x440488
test eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmovne ecx, eax
xor ebx, ebx
mov dword [ebp - 0x10], ecx
push ecx
call fcn.0041cc87
mov esi, eax
call fcn.0041cc87
add esi, eax
push esi
push dword [0x44e7d4]
push str._s_d._s
push edi
call fcn.00404ac0
mov ecx, dword [edi]
mov eax, 1
add esp, 0x14
sub eax, dword [ecx - 4]
or eax, dword [ecx - 8]
jge 0x40542d
push 0
mov ecx, edi
call fcn.004030c0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405446
mov ecx, dword [ebp - 0x10]
inc ebx
cmp ebx, 0x2710
jl 0x4053f1
cmp ebx, 0x2710
jne 0x40547b
call fcn.0041cc87
mov esi, eax
call fcn.0041cc87
push dword [ebp - 0x10]
add esi, eax
call fcn.0041cc87
add eax, esi
push eax
push dword [0x44e7d4]
push str._s_a_d._s
push edi
call fcn.00404ac0
add esp, 0x14
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433990
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
lea eax, [ebp - 0x2c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405d33
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405c34
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push str.StartMinimized
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push dword [0x44e7d8]
push str._s_EpicScale__s
push eax
call fcn.00404ac0
mov esi, dword [ebp - 0x30]
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x405c84
xor ecx, ecx
jmp 0x405c9f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c90
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004040e0
mov byte [ebp - 4], 1
test bl, bl
jne 0x405cc0
push 0
push 0x44084c
lea ecx, [ebp - 0x28]
call fcn.004040e0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x4403c8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
jb 0x405cfe
push dword [ebp - 0x28]
call fcn.0040c6f7
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405d33
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.0041b617
mov esp, ebp
pop ebp
ret
Function at 0x405d50
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4339c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405dd2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405dd2
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.00405370
add esp, 4
push 0
mov byte [ebp - 4], 1
push dword [eax]
push esi
call fcn.0040d4e5
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405dd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407240
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.0041ebe0
mov eax, dword [0x449620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x4407e4
push ecx
lea eax, [ebp - 0x2718]
xor edi, edi
push eax
mov esi, edx
mov dword [ebp - 0x2718], edi
mov dword [ebp - 0x271c], edi
call fcn.0041ccf9
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x2718]
jne 0x407303
test eax, eax
je 0x407303
push 0x4407ec
lea eax, [ebp - 0x271c]
push esi
push eax
call fcn.0041ccf9
add esp, 0xc
test eax, eax
jne 0x4072f6
cmp dword [ebp - 0x271c], edi
je 0x4072f6
push ebx
lea ebx, [edi + 3]
push dword [ebp - 0x2718]
lea eax, [ebp - 0x2714]
push 0x2710
push 1
push eax
call fcn.0041cfcd
push dword [ebp - 0x271c]
mov esi, eax
lea eax, [ebp - 0x2714]
push esi
push 1
push eax
call fcn.0041bfbc
add esp, 0x20
cmp esi, eax
cmovne edi, ebx
test esi, esi
jne 0x4072b1
mov eax, dword [ebp - 0x2718]
pop ebx
jmp 0x407308
mov eax, dword [ebp - 0x2718]
mov edi, 2
jmp 0x407308
mov edi, 1
test eax, eax
je 0x407315
push eax
call fcn.0041c29a
add esp, 4
mov eax, dword [ebp - 0x271c]
test eax, eax
je 0x407328
push eax
call fcn.0041c29a
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b617
mov esp, ebp
pop ebp
ret
Function at 0x407e50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0xa
jl 0x40804f
push 0x441db4
push 0x441dbc
call fcn.00407340
push 0x441dc0
push 0x440584
mov ecx, edi
call fcn.00407340
push 0x441dc8
push 0x441dd0
mov ecx, edi
call fcn.00407340
push 0x441dd4
push 0x441ddc
mov ecx, edi
call fcn.00407340
push 0x441de0
push 0x441de8
mov ecx, edi
call fcn.00407340
push 0x441dec
push 0x441df4
mov ecx, edi
call fcn.00407340
push 0x441df8
push 0x441e00
mov ecx, edi
call fcn.00407340
push 0x441e04
push 0x441e0c
mov ecx, edi
call fcn.00407340
push 0x441e10
push 0x441e18
mov ecx, edi
call fcn.00407340
push 0x441e1c
push 0x441e24
mov ecx, edi
call fcn.00407340
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407f4c
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407f7c
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dl, byte [ebp + 8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406ff0
mov byte [ebp - 4], 2
push dword [edi]
push dword [esi]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00404ac0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x407fd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
test al, al
je 0x407fea
push 7
push 0x441e28
lea ecx, [ebp - 0x10]
call fcn.00404340
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 0
push ecx
push 0
push 0
push eax
sub esp, 8
mov ecx, esi
call fcn.00403550
add esp, 0x1c
test eax, eax
jne 0x408011
push dword [edi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408031
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40804f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433d58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov ebx, ecx
xor ecx, ecx
xor edi, edi
mov word [eax], cx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov word [eax], cx
mov eax, dword [ebp + 0xc]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
mov word [eax], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4086fe
lea ecx, [esi + 0xa]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408760
mov edi, dword [ebp - 0x28]
push edi
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4086fe
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x441f44
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4086fe
mov ecx, dword [ebp - 0x14]
mov esi, 1
mov edx, dword [ebp - 0x18]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp + 8]
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp + 0xc]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x408700
xor esi, esi
test edi, edi
je 0x40870d
push edi
call fcn.0040c6f7
add esp, 4
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