joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053e42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov esi, 0x80091007
add eax, 4
push eax
call fcn.1002d0a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10053f2e
push edi
push 0x100000
call fcn.10090eed
mov edi, eax
pop ecx
test edi, edi
je 0x10053f26
push 0
lea eax, [ebp - 4]
push eax
push 0x100000
jmp 0x10053ed0
cmp dword [ebp - 4], 0x100000
ja 0x10053f1f
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push edi
add eax, 4
push eax
call fcn.1002dc10
mov ecx, 0x100000
cmp dword [ebp - 4], ecx
jne 0x10053ee2
push 0
lea eax, [ebp - 4]
push eax
push ecx
and dword [ebp - 4], 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10053ea6
jmp 0x10053f1f
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
push eax
call fcn.10053f80
test al, al
je 0x10053f1f
cmp dword [ebp - 0x10], 0x20
jne 0x10053f1f
mov edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + ecx*4]
mov edx, dword [ebp - 8]
jne 0x10053f1f
inc ecx
cmp ecx, 8
jne 0x10053f09
xor esi, esi
push edi
call fcn.10090ef6
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1005a256
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.10068f10
mov ecx, esi
call fcn.10059f21
test eax, eax
jne 0x1005a311
call fcn.10059b56
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], eax
push 0x10012ca8
call fcn.1006f372
mov ecx, esi
call fcn.1005a75e
push dword [ebp + 0xc]
mov ecx, esi
mov ebx, eax
push edi
call fcn.1005a6ca
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005a2d5
cmp dword [ebp + 0x10], eax
je 0x1005a2d5
mov eax, dword [ebp + 0xc]
test byte [eax], 2
je 0x1005a2d9
push edi
mov ecx, esi
call fcn.1005a3b3
test al, al
je 0x1005a2d9
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.1005a6ca
mov edi, eax
jmp 0x1005a2dd
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1005a2f5
push 0
push ebx
mov ecx, esi
call fcn.1005a7dc
push 0x10
push ebx
call fcn.100906f9
pop ecx
pop ecx
call fcn.10059ad2
mov esi, dword [eax + 4]
test esi, esi
je 0x1005a30f
push dword [esp + 0x14]
mov ecx, esi
call dword [0x100cf608]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005d7e3
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov bh, 1
and dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
add eax, 0x3a98
mov dword [ebp - 8], eax
jmp 0x1005d862
mov eax, dword [ebp + 0xc]
cmp dword [esi + 4], eax
je 0x1005d888
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 8], eax
jb 0x1005d87b
test bh, bh
je 0x1005d823
mov edi, dword [esi + 4]
xor bh, bh
jmp 0x1005d835
cmp edi, dword [esi + 4]
je 0x1005d82d
mov edi, dword [esi + 4]
jmp 0x1005d835
mov eax, dword [ebp - 4]
cmp dword [esi + 0x14], eax
jb 0x1005d877
mov eax, dword [esi + 0x14]
xor edx, edx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x1005d850
mov eax, ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x1005d85b
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
setne bl
test bl, bl
jne 0x1005d805
jmp 0x1005d888
xor bl, bl
jmp 0x1005d888
push 0x5b4
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10064860
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x10064948
push 0x10016560
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
jne 0x10064886
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10016570
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
test eax, eax
jne 0x100648a0
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10016580
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x100648bc
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1001659c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100648d8
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100165b8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x100648f4
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100165f0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x10064910
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10016608
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x1006492c
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1001663c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x10064948
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
Function at 0x10079a23
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, edx
test ebx, ebx
jne 0x10079a3a
mov eax, 0x80004003
jmp 0x10079b8e
push edi
xor eax, eax
mov dword [ebp - 0x14], 0xc
mov edi, ebx
mov dword [ebp - 0xc], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
xor edi, edi
push edi
push 0x9c9c
push edi
push 4
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x10079a84
mov edx, ebx
call fcn.10079b95
mov eax, 0x80004005
jmp 0x10079b8d
push esi
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10079b80
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebx + 0x10], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
mov dword [ebx + 4], eax
lea eax, [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x9c9c
push edi
push esi
mov dword [ebx + 8], eax
call fcn.100935b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 4]
push 2
push 1
push 0
add ecx, 0x28
push ecx
push edi
push esi
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10079b80
mov eax, dword [ebp - 8]
xor edi, edi
cmp dword [eax], edi
je 0x10079b80
cmp dword [ebx], edi
je 0x10079b80
cmp dword [ebx + 4], edi
je 0x10079b80
cmp dword [ebx + 8], edi
je 0x10079b80
mov esi, dword [ebp - 4]
mov dword [esi], 0x9c9c
mov dword [esi + 4], 0x20000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10079b6d
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edi
xor eax, eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
jmp 0x10079b8c
mov edx, ebx
call fcn.10079b95
mov eax, 0x80004005
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10080bd0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
je 0x10080bee
xor eax, eax
push eax
push eax
push esi
push 0x10088070
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
pop esi
ret
Function at 0x1008271f
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
mov dword [esi], 0x10015e88
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1008273e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0xc]
sub ecx, 0x10
call fcn.1008e3f5
mov ecx, dword [esi + 8]
sub ecx, 0x10
pop esi
jmp fcn.1008e3f5

Function at 0x100891c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100c5014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
test eax, eax
jns 0x100891f7
xor al, al
jmp 0x100892bb
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
test eax, eax
js 0x100891f0
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
test eax, eax
js 0x100891f0
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
call fcn.100935b0
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100935b0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push 0
push 0x1001e944
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [edi]
lea ecx, [ebp - 0x414]
push ecx
push 0x1001e94c
push dword [edi + 0x24b8]
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
test eax, eax
js 0x100891f0
mov eax, dword [edi]
push dword [edi + 0x24b8]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
test eax, eax
setns al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100906e8
mov esp, ebp
pop ebp
ret

Function at 0x1008c375
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1008c3cf
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1008c3c1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1008c3bd
cmp esi, ecx
jae 0x1008c3c1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1008c3ab
cmp esi, ecx
jb 0x1008c3c5
xor eax, eax
jmp 0x1008c3ce
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1009334e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10002838
push 0x10002830
push 0x10002838
push 0
call fcn.100932ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10093380
push dword [ebp + 8]
mov ecx, esi
call fcn.100911ed
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x100933c2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1000285c
push 0x10002854
push 0x1000285c
push 2
call fcn.100932ce
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x100933f3
mov ecx, esi
call fcn.100911ed
call esi
jmp 0x100933f9
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x100933fc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10002870
push 0x10002868
push 0x10002870
push 3
call fcn.100932ce
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x10093430
mov ecx, esi
call fcn.100911ed
call esi
jmp 0x10093436
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x1009dff3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009dcb3

Function at 0x100a3a75
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100a3ab0
invalid
Function at 0x495e30
Capabilities:
Accept command line arguments

Disassembly:
push esi
call fcn.0044b610
jmp fcn.00bac811

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..3ean
nop
mov ebx, 0x40915c
nop
mov ecx, 0x512020bc
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
mov eax, section..7LWLf
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x296b3f67
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40dc5d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x40dc9a
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x40dc93
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x40dc9f
add edx, 0x28
cmp edx, esi
jne 0x40dc84
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40dc9c

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x40123d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401282
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
je 0x40127b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x40127b
mov ecx, dword [ebp + 8]
push eax
call fcn.00403177
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x40189a
Capabilities:
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x30], ebx
je 0x401993
cmp dword [esi + 0x34], ebx
je 0x401993
cmp dword [esi + 0x38], ebx
je 0x401993
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
and dword [ebp - 4], 0x10
je 0x4018ec
mov eax, dword [esi + 0x40]
push ebx
push 0x42000000
push 3
push ebx
push ebx
push 0x100
jmp 0x40190a
mov edi, 0x80
push edi
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x40]
push ebx
push edi
push 3
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40198e
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x10]
push eax
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x10]
push eax
call edi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0x20]
push eax
call edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x40198e
push dword [ebp - 8]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
pop eax
jmp 0x401995
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cbc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [0x4253bc]
push edi
cmp ecx, ebx
je 0x404ce8
mov ecx, dword [ecx]
lea eax, [esi + 0x214]
mov dword [eax], ecx
add dword [0x4253c0], 4
cmp dword [eax], ebx
jmp 0x404d14
push dword [esi + 0x20c]
lea edi, [esi + 0x214]
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x404d12
push str.Read_Error
mov ecx, esi
call fcn.004047bc
cmp dword [edi], ebx
je 0x404e8c
mov ecx, esi
call fcn.00404a27
mov ecx, esi
call fcn.00404847
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [ebp - 4], 0xfc4
rep stosd dword es:[edi], eax
cmp dword [esi + 0x214], ebx
mov dword [ebp - 8], ebx
jbe 0x404e8c
mov edi, 0xfff
mov ecx, esi
call fcn.00404a4d
mov ebx, eax
cmp bx, 0x100
jge 0x404dd2
mov eax, dword [0x4253cc]
test eax, eax
je 0x404d8a
mov ecx, dword [0x4253d0]
lea edx, [ecx + 1]
cmp edx, dword [0x4253c8]
jge 0x404db7
mov byte [ecx + eax], bl
inc dword [0x4253d0]
jmp 0x404db7
mov ecx, dword [esi + 0x210]
lea eax, [esi + 0x210]
dec dword [ecx + 4]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jl 0x404dab
mov ecx, dword [ecx]
mov byte [ecx], bl
mov eax, dword [eax]
inc dword [eax]
jmp 0x404db7
movsx eax, bx
push ecx
push eax
call sub.MSVCRT.dll__flsbuf
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 8]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jmp 0x404e7d
mov ecx, esi
call fcn.00404b8d
mov cx, ax
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, edi
test cx, cx
jle 0x404e7d
movsx eax, ax
mov dword [ebp - 0xc], eax
movsx eax, cx
add dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and eax, edi
movzx bx, byte [eax + esi + 0x220]
mov eax, dword [0x4253cc]
test eax, eax
je 0x404e35
mov ecx, dword [0x4253d0]
lea edx, [ecx + 1]
cmp edx, dword [0x4253c8]
jge 0x404e62
mov byte [ecx + eax], bl
inc dword [0x4253d0]
jmp 0x404e62
mov ecx, dword [esi + 0x210]
lea eax, [esi + 0x210]
dec dword [ecx + 4]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jl 0x404e56
mov ecx, dword [ecx]
mov byte [ecx], bl
mov eax, dword [eax]
inc dword [eax]
jmp 0x404e62
movsx eax, bx
push ecx
push eax
call sub.MSVCRT.dll__flsbuf
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jne 0x404e02
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x214]
jb 0x404d55
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e21
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4150a4
call fcn.00414a90
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405e57
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x405e53
call esi
cmp eax, 3
je 0x405e53
or esi, 0xffffffff
jmp 0x405e62
xor esi, esi
jmp 0x405e62
test al, 0x10
je 0x405e5f
push 2
jmp 0x405e61
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402f28
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret