joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f4d
Capabilities:
Parse pe header

Disassembly:
push 0x10
push 0x448da0
call fcn.0043ede0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x401f69
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edi], ax
je 0x401f81
push 0xc1
jmp 0x402024
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x401f98
push 0xbf
jmp 0x402024
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x40201f
lea edx, [ebx + 0x18]
add edx, eax
mov dword [ebp - 0x20], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
movzx eax, word [ebx + 6]
cmp ecx, eax
jae 0x40201f
mov eax, ecx
imul eax, eax, 0x28
add eax, edx
mov dword [ebp + 8], eax
push 8
push str..detour
push eax
call fcn.00404ff5
add esp, 0xc
test eax, eax
jne 0x40200f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40201f
cmp dword [eax + 0x10], 0
je 0x40201f
add edi, ecx
mov eax, dword [edi]
cmp eax, 0x40
jb 0x40201f
cmp dword [edi + 4], 0x727444
jne 0x40201f
cmp dword [edi + 8], 0
jne 0x401fff
mov dword [edi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x402030
mov ecx, dword [ebp - 0x1c]
inc ecx
mov edx, dword [ebp - 0x20]
jmp 0x401fab
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0043ee1c
ret 4

Function at 0x4022c9
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x448d40
call fcn.0043ede0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4022e3
mov esi, 0x10000
jmp 0x4022e9
add esi, 0x10000
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402355
cmp dword [ebp - 0x24], 0x1000
jne 0x402328
test dword [ebp - 0x20], 0x100
jne 0x402328
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [esi], ax
je 0x402330
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x4022f3
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x402324
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0043ee1c
ret 4
xor eax, eax
jmp 0x402342
Function at 0x40270a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x150
cmp dword [ebx], eax
jne 0x4027db
cmp dword [ebp + 0xc], eax
jb 0x4027db
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x40
push dword [ebx + 4]
xor edi, edi
call esi
test eax, eax
je 0x4027d5
lea eax, [ebp - 4]
push eax
push 0x40
push pe_nt_image_headers32
push dword [ebx + 8]
call esi
test eax, eax
je 0x4027c7
cmp dword [ebx + 0xc], edi
je 0x402774
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push dword [ebx + 0xc]
call esi
test eax, eax
je 0x4027b6
mov edi, dword [ebx + 4]
push 0x10
pop ecx
lea esi, [ebx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 8]
push 0x3e
lea esi, [ebx + 0x54]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x402799
mov eax, dword [ebx + 0x14c]
mov dword [ecx], eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
inc edi
cmp dword [ebx + 0xc], 0
je 0x4027b6
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 4
push dword [ebx + 0xc]
call esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
push pe_nt_image_headers32
push dword [ebx + 8]
call esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [ebx + 4]
call esi
mov eax, edi
pop edi
pop esi
jmp 0x4027e8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov ebx, ecx
test eax, eax
je 0x4029e2
push esi
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4029d7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
sub eax, edi
je 0x4029d0
sub eax, 1
je 0x402924
sub eax, 1
jne 0x4029d0
mov dword [ebp + 8], 2
jmp 0x402955
push 7
push 0x44a038
push esi
mov ecx, ebx
call fcn.004029f0
test eax, eax
jne 0x40294e
push 7
push 0x44a230
push esi
mov ecx, ebx
call fcn.004029f0
test eax, eax
je 0x4029d0
mov dword [ebp + 8], 1
push str.IsWow64Process
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402976
lea ecx, [ebp - 4]
push ecx
push esi
call eax
imul ecx, dword [ebp + 8], 0x104
cmp dword [ebp - 4], edi
je 0x40298f
add ecx, 0x928
mov eax, 0x108
jmp 0x40299a
add ecx, 0x310
mov eax, 0x20c
add eax, ebx
add ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call ebx
cmp eax, 0xffffffff
je 0x4029d0
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x4029d0
push 2
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004017eb
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push ebx
push esi
push edi
push 0x104
push 0
push eax
mov ebx, ecx
call fcn.00404410
push 0x104
lea eax, [ebx + 4]
push 0
push eax
call fcn.00404410
push 0x104
lea eax, [ebx + 0x108]
push 0
push eax
call fcn.00404410
push 0x104
lea eax, [ebx + 0x20c]
push 0
push eax
call fcn.00404410
add esp, 0x30
lea esi, [ebx + 0x61c]
mov edi, 3
nop word [eax + eax]
push 0x104
lea eax, [esi - 0x30c]
push 0
push eax
call fcn.00404410
push 0x104
push 0
push esi
call fcn.00404410
push 0x104
lea eax, [esi + 0x30c]
push 0
push eax
call fcn.00404410
add esp, 0x24
add esi, 0x104
sub edi, 1
jne 0x402d50
push 0x104
lea eax, [ebp - 0x104]
push eax
push str._SYSTEMROOT_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push str.kernel32.dll
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.0040f0ad
lea eax, [ebp - 0x104]
push eax
push 0x104
lea esi, [ebx + 0x108]
push esi
call fcn.0040f0ad
push str.SysWOW64detoured.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
push 0x104
lea esi, [ebx + 0x20c]
push esi
call fcn.0040f0ad
push str.System32detoured.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x414]
push 0x104
push esi
call fcn.0040f0ad
add esp, 0x48
push str.System32_amdgfxinfo32.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x720]
push 0x104
push esi
call fcn.0040f0ad
push str.System32_amdgfxinfo64.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0xa2c]
push 0x104
push esi
call fcn.0040f0ad
push str.SysWOW64_amdgfxinfo32.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x518]
push 0x104
push esi
call fcn.0040f0ad
add esp, 0x48
push str.System32GameManager32.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0x824]
push 0x104
push esi
call fcn.0040f0ad
push str.System32GameManager64.dll
push 0x104
push esi
call fcn.0040f170
lea eax, [ebp - 0x104]
push eax
lea esi, [ebx + 0xb30]
push 0x104
push esi
call fcn.0040f0ad
push str.SysWOW64GameManager32.dll
push 0x104
push esi
call fcn.0040f170
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe34
lea ecx, [ebp - 0xe34]
push esi
push edi
xor edi, edi
call fcn.00402870
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
call esi
push str.HookType
push eax
call fcn.00404570
add esp, 8
test eax, eax
je 0x403175
push 0x100
lea ecx, [ebp - 0x100]
add eax, 9
push ecx
push eax
call fcn.00402ff0
add esp, 0xc
call esi
push str.ProcessID
push eax
call fcn.00404570
add esp, 8
test eax, eax
je 0x403175
push 0x100
lea ecx, [ebp - 0x200]
add eax, 0xa
push ecx
push eax
call fcn.00402ff0
push 0x10
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.00422d2f
push 0x10
mov esi, eax
lea eax, [ebp - 0x200]
push edi
push eax
call fcn.00422d2f
add esp, 0x24
lea ecx, [ebp - 0xe34]
push esi
push eax
call fcn.004028d0
mov edi, eax
lea ecx, [ebp - 0xe34]
call fcn.00402890
xor eax, eax
cmp edi, 1
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42b483
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b359

Function at 0x42d8b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d035

Function at 0x42d8bc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d274
Function at 0x403891
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push str.AtlMiscX.cpp
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.0040108c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 8]
mov dword [ebp - 0x14], eax
call fcn.00401a9f
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
xor edi, edi
cmp dword [0x42dc28], edi
mov dword [ebp - 4], edi
mov ebx, 0x400
jle 0x403977
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x41ed80]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 5
jle 0x403965
lea ecx, [ebp - 8]
inc edi
call fcn.00401041
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x14], 0xffffffff
push dword [eax*4 + 0x41e8c4]
push dword [eax*4 + 0x41ed80]
jne 0x40392a
lea eax, [ebp - 8]
push str._s___d___
push eax
call fcn.0040164f
add esp, 0x10
jmp 0x40393c
push eax
lea eax, [ebp - 8]
push str._d.___s___d___
push eax
call fcn.0040164f
add esp, 0x14
mov ecx, dword [ebp - 4]
cmp dword [0x42dc0c], ecx
jne 0x40394c
push 3
pop eax
jmp 0x40394e
xor eax, eax
push dword [ebp - 8]
add ecx, 0xa
or eax, ebx
push ecx
push eax
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 8]
call fcn.00401a9f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x42dc28]
jl 0x4038e2
sar edi, 1
inc edi
push 0
push 0
inc edi
push 0x4c60
push edi
mov edi, dword [ebp - 0xc]
push edi
call dword [sym.imp.USER32.dll_InsertMenuA]
push 0
push 0
push 0xc00
push edi
call esi
push str.Translate
push 0x3e8
push ebx
push edi
call esi
push str.Load_from_File__Unicode_
push 0x3e9
push ebx
push edi
call esi
mov eax, dword [ebp - 0x10]
mov ebx, 0x7e6
push ebx
push dword [eax + 0x410]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040bad6
mov esi, eax
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x410]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push ebx
push 0x403
push dword [esi + 0x410]
call edi
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x100
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push 0
push ebx
push 0x403
mov dword [ebp - 0x14], eax
push dword [esi + 0x410]
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403a96
cmp eax, 0xa
jl 0x403a60
cmp eax, 0x3c
jg 0x403a60
and dword [0x42db4c], 0
add eax, 0xfffffff6
mov dword [0x42dc0c], eax
jmp 0x403a7a
cmp eax, 0x3e8
jne 0x403a6e
call fcn.0040b7f7
jmp 0x403a84
cmp eax, 0x3e9
jne 0x403a84
call fcn.0040b745
push dword [ebp + 8]
mov ecx, esi
call fcn.004028d6
push dword [0x42dc0c]
push 0x41a29c
call fcn.0040a5e3
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403a9d
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x418]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403b07
push ebx
push edi
push 5
push dword [esi + 0x418]
call dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
push 3
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0x418]
call ebx
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0x418]
call ebx
push 3
push edi
push edi
push edi
push edi
push edi
push dword [esi + 0x418]
call ebx
push dword [esi + 0x418]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop ebx
pop esi
ret
push 0
push dword [esi + 0x418]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403e22
test al, 0x10
je 0x403d90
call fcn.00403b96
or eax, 0xffffffff
leave
ret
mov ax, word [0x41e7e0]
push esi
push edi
mov word [ebp - 0x800], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x7fe]
push 0x3a
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0040a18d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
push eax
lea eax, [ebp - 0x800]
push eax
call esi
lea eax, [ebp - 0x800]
push 0x41a284
push eax
call esi
mov edi, 0x41a2f4
lea eax, [ebp - 0x800]
push edi
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call esi
lea eax, [ebp - 0x800]
push edi
push eax
call esi
push 0x23
push 0x1b
call fcn.0040a18d
pop ecx
push eax
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 6
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x4046a2
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
call fcn.0040457e
pop ecx
call fcn.004046d6
test eax, eax
jne 0x4046d4
push 0x41e694
push esi
push esi
push 0x40462e
push esi
push esi
mov dword [0x41e6b8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41e690], eax
pop esi
ret
Function at 0x404fc1
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edi, edi
mov esi, eax
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push esi
push edi
mov ebx, eax
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
push edi
push edi
push 2
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x405662
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
lea ecx, [ebp - 4]
call fcn.00401041
and byte [ebp - 6], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
mov byte [ebp - 0x1c], 0x68
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x70
mov byte [ebp - 0x18], 0x3a
mov byte [ebp - 0x17], 0x2f
mov byte [ebp - 0x16], 0x2f
mov byte [ebp - 0x15], 0x77
mov byte [ebp - 0x14], 0x77
mov byte [ebp - 0x13], 0x77
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x73
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x66
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x77
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x6b
mov byte [ebp - 7], 0x2e
call fcn.00401168
cmp dword [0x42dc0c], 0
jne 0x4056eb
push 0x41a4a8
jmp 0x405720
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
test eax, eax
je 0x40571b
cmp dword [ebp - 0xc8], 0xffffff10
jl 0x40571b
cmp dword [ebp - 0xc8], 0xf0
jg 0x40571b
push 0x41a4a4
jmp 0x405720
push 0x41a4a0
lea ecx, [ebp - 4]
call fcn.004011a4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040104d
lea ecx, [ebp - 4]
call fcn.00401a9f
mov eax, dword [ebp + 8]
leave
ret

Function at 0x405741
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40579f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004010e7
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.004019f3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00401a9f
push 1
pop eax
jmp 0x4057a9
lea ecx, [ebp + 8]
call fcn.00401a9f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40768f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4076ca
push ebx
push str.Error1_
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40770b
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 8], ebx
lea eax, [edi + 1]
lea ecx, [esi + 4]
push eax
call fcn.004019f3
lea ecx, [ebp - 8]
push ebx
push ecx
push edi
push eax
mov dword [esi], eax
push dword [ebp - 4]
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
pop esi
lea ecx, [ebp + 8]
call fcn.00401a9f
mov eax, ebx
pop ebx
leave
ret

Function at 0x407718
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407756
cmp dword [ebp + 0x10], esi
je 0x407778
push esi
push str.Create_Error_
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x407778
lea eax, [ebp - 4]
push esi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [eax + 0x14]
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
lea ecx, [ebp + 8]
call fcn.00401a9f
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40791a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
lea ecx, [ebp - 4]
call fcn.00401041
and byte [ebp - 5], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
mov byte [ebp - 0x1c], 0x68
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x70
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x16], 0x2f
mov byte [ebp - 0x15], 0x2f
mov byte [ebp - 0x14], 0x77
mov byte [ebp - 0x13], 0x77
mov byte [ebp - 0x12], 0x77
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0x10], 0x73
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x66
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x77
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x6b
mov byte [ebp - 6], 0x2e
call fcn.00401168
cmp dword [0x42dc0c], 0
jne 0x4079a7
push 0x41a4a8
jmp 0x4079dc
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
test eax, eax
je 0x4079d7
cmp dword [ebp - 0xc8], 0xffffff10
jl 0x4079d7
cmp dword [ebp - 0xc8], 0xf0
jg 0x4079d7
push 0x41a4a4
jmp 0x4079dc
push 0x41a4a0
lea ecx, [ebp - 4]
call fcn.004011a4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040104d
lea ecx, [ebp - 4]
call fcn.00401a9f
mov eax, dword [ebp + 8]
leave
ret
Function at 0x4079fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a5b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004010e7
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.004019f3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00401a9f
push 1
pop eax
jmp 0x407a65
lea ecx, [ebp + 8]
call fcn.00401a9f
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x407a96
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407ba8
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 1
call esi
cmp eax, edi
mov dword [ebp - 4], eax
je 0x407b26
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
je 0x407ba0
cmp ebx, dword [ebp + 0xc]
jbe 0x407ae3
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebx + 2]
push eax
call fcn.004019f3
test eax, eax
je 0x407b1b
mov ecx, ebx
mov edi, eax
mov edx, ecx
add eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xffffffffffffffff
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax], 0
mov ecx, dword [ebp + 8]
and byte [eax + 1], 0
call fcn.00401a6e
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x407ba0
push 1
call esi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jbe 0x407b3e
mov ebx, dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, edi
je 0x407ba0
lea ecx, [ebp + 0xc]
call fcn.00401041
lea eax, [ebx + 2]
lea ecx, [ebp + 0xc]
push eax
call fcn.004019f3
cmp eax, edi
je 0x407b8c
mov ecx, ebx
mov edi, eax
mov edx, ecx
add eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax], 0
and byte [eax + 1], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00401100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
lea ecx, [ebp + 0xc]
pop edi
call fcn.00401a9f
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret