joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x486fd0
test esi, esi
je 0x486fd0
cmp ebx, esi
jg 0x486f01
mov ecx, edi
call fcn.004861c0
cmp ebx, eax
jg 0x486f01
mov ecx, dword [edi + 0x10]
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x54], 0
mov esi, dword [esp + 0x30]
push esi
mov dword [esp + 0x58], 0xffffffff
mov edx, ebp
lea ecx, [esp + 0x3c]
call fcn.00486c00
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.00485e10
push dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, esi
push ebp
mov edx, ebx
call fcn.004368f0
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push ebx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.00487490
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, edi
call fcn.004861c0
cmp esi, eax
jg 0x486fa9
mov ecx, dword [edi + 0x10]
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x54], 1
mov ebx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
call fcn.00486c00
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.00485e10
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, ebp
push ebx
call fcn.00487490
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push ebp
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004368f0
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x20]
mov ecx, ebp
mov edx, dword [esp + 0x1c]
push ebx
call fcn.004873a0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
imul eax, esi, 0x94
add eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x486ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bd3f9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], 1
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
cmp esi, ebp
je 0x487077
cmp edi, ebx
je 0x487077
push esi
mov ecx, edi
call fcn.00441500
lea ecx, [esp + 0x54]
test al, al
je 0x487067
push edi
call fcn.004873e0
add edi, 0x94
cmp edi, ebx
jmp 0x487075
push esi
call fcn.004873e0
add esi, 0x94
cmp esi, ebp
jne 0x487047
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 2
push ebp
mov byte [esp + 0x58], 1
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.00486c00
add esp, 0x18
mov byte [esp + 0x40], 3
mov eax, dword [eax + 0x10]
mov dword [esp + 0x64], eax
mov byte [esp + 0x40], 1
mov esi, dword [esp + 0x24]
test esi, esi
je 0x487100
cmp esi, dword [esp + 0x2c]
je 0x4870f7
lea ebx, [ebx]
mov ecx, esi
call fcn.00436a50
add esi, 0x94
cmp esi, dword [esp + 0x2c]
jne 0x4870e0
mov esi, dword [esp + 0x24]
push esi
call fcn.0048e056
add esp, 4
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 4
push ebx
mov byte [esp + 0x58], 1
mov edx, edi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.00486c00
add esp, 0x18
mov dword [esp + 0x14], 1
mov byte [esp + 0x40], 0
mov esi, dword [esp + 0x54]
test esi, esi
je 0x487181
cmp esi, dword [esp + 0x5c]
je 0x487178
mov ecx, esi
call fcn.00436a50
add esi, 0x94
cmp esi, dword [esp + 0x5c]
jne 0x487161
mov esi, dword [esp + 0x54]
push esi
call fcn.0048e056
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x487980
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4bd4ee
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [esp + 0xc], esi
call fcn.0048e0a6
mov dword [esi + 4], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call fcn.00492dc0
add esp, 0x10
mov dword [esp + 0xc], 0x11c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x487a03
cmp dword [esp + 0x10], 6
mov ecx, dword [esi + 4]
setae dl
mov byte [ecx], dl
mov dword [esp + 0x134], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0048d894
add esp, 0x130
ret
Function at 0x4a0146
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4df5dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049301b
mov dword [ebp - 0x14], eax
cmp dword [0x4e21c8], esi
jne 0x4a0239
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a01c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a0319
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a0319
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a0319
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4e21c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4e21cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4e21d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e21d8], eax
test eax, eax
je 0x4a0236
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e21d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a025e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a0251
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a0273
push 4
pop eax
jmp 0x4a031b
cmp dword [ebp - 0x14], esi
je 0x4a0273
push dword [0x4e21c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a0258
mov eax, dword [0x4e21d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a02d1
cmp dword [0x4e21d8], edi
je 0x4a02d1
push eax
call ebx
push dword [0x4e21d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a02d1
test eax, eax
je 0x4a02d1
call ecx
test eax, eax
je 0x4a02c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a02c6
test byte [ebp - 8], 1
jne 0x4a02d1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a0301
mov eax, dword [0x4e21cc]
cmp eax, edi
je 0x4a02fe
push eax
call ebx
test eax, eax
je 0x4a02fe
call eax
mov esi, eax
test esi, esi
je 0x4a02fe
mov eax, dword [0x4e21d0]
cmp eax, edi
je 0x4a02fe
push eax
call ebx
test eax, eax
je 0x4a02fe
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4e21c8]
call ebx
test eax, eax
je 0x4a0319
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a031b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d894
mov esp, ebp
pop ebp
ret
Function at 0x581770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x124000]
push edi
jmp 0x58178a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x581791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x581780
mov eax, 1
add ebx, ebx
jne 0x5817a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5817b4
jne 0x5817d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5817d3
dec eax
add ebx, ebx
jne 0x5817c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x581798
add ebx, ebx
jne 0x5817cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x581825
xor ecx, ecx
sub eax, 3
jb 0x5817eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58185a
sar eax, 1
mov ebp, eax
jmp 0x5817f6
add ebx, ebx
jne 0x5817f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5817c4
inc ecx
add ebx, ebx
jne 0x581804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5817c4
add ebx, ebx
jne 0x581811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x581806
jne 0x581822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x581806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x581844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x581836
jmp 0x581786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x581844
add edi, ecx
jmp 0x581786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x581862
cmp byte [edi], 0x11
jne 0x581862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x581867
lea edi, [esi + 0x17a000]
mov eax, dword [edi]
or eax, eax
je 0x5818df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21cf70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21d0ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x581894
mov ecx, edi
jns 0x5818c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21d0f0]
or eax, eax
je 0x5818d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5818b1
call dword [esi + 0x21d100]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x581910
cmp al, 0xef
ja 0x581903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5818e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5818f2
mov ebp, dword [esi + 0x21d0f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x581944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x403d5c
Capabilities:
Clear file content

Disassembly:
push 0xc
push 0x4013a8
call fcn.0041b130
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x403d87
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x1c], eax
jmp 0x403d87
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x403dad
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
jmp 0x403dad
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
cmp dword [ebp + 0xc], 0xffffffff
je 0x403dd9
cmp dword [ebp + 0x14], 0
je 0x403dd9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x1c], eax
jmp 0x403dd9
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 3
cmp dword [ebp + 0xc], 0xffffffff
je 0x403e11
test byte [0x424d83], 0x20
jne 0x403dfc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
jmp 0x403e11
or dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041b16b
ret 0x10

Function at 0x403e2a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4233cc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x47
mov dword [ebp - 0x12c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x128], 0xea75
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x403e97
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x403f9a
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x110]
cmp eax, 2
mov dword [ebp - 0x154], eax
jne 0x403ede
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x128], 0xea74
jmp 0x403ee5
movzx eax, word [ebp - 0x114]
mov dword [ebp - 0x15c], eax
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x150], eax
movzx eax, word [ebp - 0xa]
mov dword [ebp - 0x14c], eax
movzx eax, word [ebp - 8]
mov dword [ebp - 0x148], eax
movzx eax, byte [ebp - 6]
push ebx
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x164]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [ebp - 0x128]
mov dword [ebp - 0x140], 0x402f10
push dword [0x424d5c]
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x403f99
cmp dword [ebp - 0x124], ebx
je 0x403f99
push ebx
push dword [ebp - 0x124]
call fcn.0041a44d
mov esi, eax
cmp esi, ebx
je 0x403f8d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403f68
push ebx
lea ecx, [ebp - 0x130]
push ecx
sub eax, edx
push eax
push esi
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0041a398
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00419835
leave
ret 4
Function at 0x403fad
Capabilities:
Get file size

Disassembly:
push 0x24
push 0x4013d8
call fcn.0041b130
or dword [ebp - 0x28], 0xffffffff
xor esi, esi
mov dword [ebp - 0x24], esi
xor edi, edi
inc edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 0x57
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
or dword [eax], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
push esi
push esi
push 4
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0xffffffff
jne 0x404044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0x20
jne 0x4040bc
cmp dword [ebp - 0x20], 0x2710
jae 0x4040bc
cmp edi, 0x3e8
jae 0x404035
add edi, edi
mov dword [ebp - 0x34], edi
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x20], edi
cmp ebx, 0xffffffff
je 0x403fea
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, esi
jne 0x404068
push ebx
call fcn.00403e2a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x30], edi
push esi
mov eax, dword [ebp + 0x1c]
add eax, edi
push eax
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x4040b3
push esi
push esi
push esi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x4040b3
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ebp - 0x1c], esi
jmp 0x4040bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x4040d2
cmp dword [ebp - 0x1c], esi
je 0x4040e4
push esi
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x2c]
call fcn.00403d5c
mov eax, dword [ebp - 0x1c]
call fcn.0041b16b
ret 0x18
Function at 0x405f9e
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x4233cc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], ecx
je 0x405fd4
mov dword [ecx], ebx
cmp edx, ebx
je 0x405fe2
mov esi, dword [edx]
mov dword [ebp - 0x258], eax
jmp 0x406012
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x258]
push ecx
push eax
call fcn.00405e27
cmp eax, ebx
jne 0x40611b
mov esi, dword [ebp - 0x264]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esi, ebx
je 0x406072
dec esi
je 0x40606a
dec esi
je 0x406037
push 0x57
pop esi
jmp 0x406106
push 1
lea eax, [ebp - 0x294]
push eax
push 0x405d52
push ebx
push dword [ebp - 0x258]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x28c], ebx
call fcn.00406951
mov esi, eax
jmp 0x406106
xor esi, esi
inc esi
jmp 0x406106
cmp dword [ebp + 0x14], ebx
je 0x406086
push edi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x406088
xor eax, eax
cmp eax, ebx
je 0x4060a0
mov eax, dword [ebp - 0x25c]
xor esi, esi
cmp eax, ebx
je 0x406106
mov dword [eax], 1
jmp 0x406106
push ebx
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x258]
call fcn.0040cbbb
mov esi, eax
cmp esi, ebx
jne 0x406106
push ebx
push edi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4060dd
xor esi, esi
jmp 0x4060e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x406106
push 1
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.0040cbbb
cmp dword [ebp - 0x260], ebx
jne 0x406119
push dword [ebp - 0x258]
call fcn.0041a398
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419835
leave
ret 0x14
Function at 0x406951
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
call fcn.004070de
xor edi, edi
cmp eax, edi
jne 0x40696c
push 8
pop ebx
jmp 0x406a64
push esi
lea esi, [eax + 8]
cmp dword [esi], edi
je 0x40697c
xor ebx, ebx
inc ebx
jmp 0x406a63
mov ebx, dword [ebp + 8]
push ebx
mov dword [esi], 1
call fcn.0041a663
push eax
call fcn.0040cdb0
push ebx
mov dword [ebp + 8], eax
call fcn.0040cf1e
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
je 0x406a44
cmp eax, edi
je 0x406a44
mov ecx, dword [ebp + 0x10]
push edi
push edi
push 0x406503
push edi
push eax
push dword [ebp + 8]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x18]
push dword [esi + 4]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x2c], edi
mov word [esi + 0x30], di
mov dword [esi + 0x28], edi
call fcn.0041c3a4
add esp, 0x1c
test eax, eax
je 0x4069ef
xor ebx, ebx
jmp 0x406a47
mov eax, dword [esi + 8]
sub eax, edi
je 0x406a1b
dec eax
je 0x406a40
sub eax, 3
je 0x406a14
dec eax
je 0x406a10
sub eax, 3
je 0x406a0b
sub eax, 3
jne 0x406a1b
mov ebx, dword [esi + 0x14]
jmp 0x406a1e
push 8
jmp 0x406a1d
mov ebx, dword [esi + 0x14]
cmp ebx, edi
jne 0x406a1e
push 0xd
pop ebx
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x406a47
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.004061e1
push dword [esi + 0x28]
call fcn.0041a398
mov dword [esi + 0x28], edi
jmp 0x406a47
push 2
jmp 0x406a1d
push 8
pop ebx
cmp dword [ebp + 8], edi
je 0x406a54
push dword [ebp + 8]
call fcn.0041a398
cmp dword [ebp - 4], edi
je 0x406a61
push dword [ebp - 4]
call fcn.0041a398
mov dword [esi], edi
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x40744a
Capabilities:
Allocate thread local storage

Disassembly:
push 0xc
push 0x402488
call fcn.0041b130
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x4235f8]
cmp eax, ecx
je 0x407472
not eax
and dword [0x4235f4], eax
mov dword [0x4235f8], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [0x424d5c], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x40751d
xor esi, esi
inc esi
or dword [0x4235f4], esi
call fcn.0041a910
test eax, eax
je 0x40751d
or dword [0x4235f4], 2
push esi
call fcn.004148b5
test eax, eax
je 0x40751d
or dword [0x4235f4], 4
call fcn.0040cf99
test eax, eax
je 0x4074cb
or dword [0x4235f4], 0x10
call fcn.00419789
or dword [0x4235f4], 0x20
push esi
call fcn.0040710f
test eax, eax
je 0x40751d
or dword [0x4235f4], 0x40
push esi
call fcn.004064d5
test eax, eax
je 0x40751d
or byte [0x4235f4], 0x80
push esi
call fcn.00404a8f
test eax, eax
je 0x40751d
or byte [0x4235f5], 1
or byte [0x4235f7], 8
mov dword [ebp - 0x1c], esi
jmp 0x40751d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.0041b16b
ret 0xc

Function at 0x40941c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x424c50], 2
je 0x409430
xor eax, eax
inc eax
jmp 0x4094a2
push esi
push edi
lea eax, [ebp - 4]
push eax
push 2
xor edi, edi
push edi
push 0x4025f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x40948a
xor eax, eax
cmp dword [ebp + 8], edi
push 4
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x4025cc
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]
cmp esi, edi
je 0x409499
push esi
push 0x402588
jmp 0x409490
push esi
push 0x402548
push edi
call fcn.0041a9d8
add esp, 0xc
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret 4