joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403143
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403192
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40319d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4033e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x489c95
push 0x489c95
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40342a
push 6
call fcn.00457db0
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x405e6f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0x406409
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x405ea1
push 6
call fcn.00457db0
add esp, 4
mov eax, dword [0x48cee2]
push eax
mov ebx, eax
call fcn.0040260d
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00457da4
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0x405f3d
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
push eax
push 0x14
call fcn.00457da4
add esp, 4
pop esi
mov edi, eax
push eax
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x405f0e
push eax
mov ebx, eax
call fcn.00403513
inc eax
push eax
call fcn.00457da4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x405f2d
push eax
mov ebx, eax
call fcn.00403513
inc eax
push eax
call fcn.00457da4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0x405ed5
pop eax
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x405f5e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x405f5a
imul eax, dword [ebx]
jmp 0x405f4f
mov ecx, eax
test ecx, ecx
je 0x405fa1
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x405f7c
push ebx
call fcn.00457daa
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x405f90
push ebx
call fcn.00457daa
add esp, 4
pop ebx
call fcn.00457daa
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x405f64
call fcn.00457daa
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0x48cee2]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x405fd0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x405fcc
imul eax, dword [ebx]
jmp 0x405fc1
mov ecx, eax
test ecx, ecx
je 0x406013
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x405fee
push ebx
call fcn.00457daa
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406002
push ebx
call fcn.00457daa
add esp, 4
pop ebx
call fcn.00457daa
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x405fd6
call fcn.00457daa
add esp, 4
mov eax, 0x483968
mov dword [0x48cee2], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.004034fa
jmp 0x406034
mov esp, ebp
pop ebp
ret 8
Function at 0x4062b1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.0045a860
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4062f6
push ebx
call fcn.00457daa
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push pe_nt_image_headers32
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x406324
push 6
call fcn.00457db0
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x406340
push eax
mov ebx, eax
call fcn.00403513
inc eax
push eax
call fcn.00457da4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x406345
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406356
push ebx
call fcn.00457daa
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40965d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40968d
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4096a4
mov eax, 0
jmp 0x4096ae
mov eax, 1
jmp 0x4096ae
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad07
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.0040ad6d
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.0045b660
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xffff
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40ad69
push 6
call fcn.00457db0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40cc98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40ccd3
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0045b640
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40cd36
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0045b660
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40cd5a
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0045b640
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40cdbd
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0045b660
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40cde1
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.0045b640
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40ce44
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.0045b660
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40ce4c
mov esp, ebp
pop ebp
ret
Function at 0x411276
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4112bc
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x489dee]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040110a
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.0045a860
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41130f
push ebx
call fcn.00457daa
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x411348
push 6
call fcn.00457db0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x411364
push eax
mov ebx, eax
call fcn.00403513
inc eax
push eax
call fcn.00457da4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x411369
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41137a
push ebx
call fcn.00457daa
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x452918
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x48cf26], 0
jne 0x452986
mov dword [ebp - 4], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x45294d
push 6
call fcn.00457db0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 0x4530b9
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x452981
push 6
call fcn.00457db0
add esp, 4
mov dword [0x48cf26], eax
cmp dword [0x48cf26], 0
mov eax, 0
setg al
jmp 0x45299a
mov esp, ebp
pop ebp
ret
Function at 0x45a460
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45a4f2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45a4e4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45a4dc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45a4a5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x45a8f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x45a903
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.0045cf10
add esp, 4
test eax, eax
jne 0x45a915
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x45a9d6
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x45aa53
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x45a95e
mov esi, dword [ebx]
jmp 0x45a972
push ebx
call fcn.0045cd70
mov esi, eax
add esp, 4
test esi, esi
je 0x45a9b6
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x45a99d
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45a99d
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x45a9aa
push esi
call fcn.0045e3a3
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45aa53
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x45a94e
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x45aa53
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x45aa53
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x45aa07
mov esi, dword [ebx]
jmp 0x45aa1b
push ebx
call fcn.0045cd70
mov esi, eax
add esp, 4
test esi, esi
je 0x45aa45
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x45aa38
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x45aa45
push esi
call fcn.0045e3a3
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x45a9f7
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x45aac0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x45aad6
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.0045cf10
add esp, 4
test eax, eax
jne 0x45aaed
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x45ab9d
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x45ac05
cmp edi, ebx
jae 0x45ac05
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x45ac05
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45ac05
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x45ac05
mov al, byte [esp + 0x24]
test al, al
je 0x45abfd
cmp al, 0x1a
jne 0x45ac05
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x45ac05
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.0045cd60
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x45ac05
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x45ac05
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45ac05
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x45ac05
mov al, byte [esp + 0x24]
test al, al
je 0x45abfd
cmp al, 0x1a
jne 0x45ac05
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x45ac20
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x45ac39
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.0045cf10
add esp, 4
test eax, eax
jne 0x45ac4e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x45ad8e
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x45ac8c
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.0045e7bb
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ad6e
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x45acd4
mov al, byte [esi]
cmp al, 0xd
je 0x45ad16
cmp al, 0xa
je 0x45ad16
inc ecx
inc esi
cmp ecx, edx
jb 0x45acc4
add ebp, edx
cmp edx, 0x1000
jb 0x45ad18
push 0x1000
push ebx
call fcn.0045e48c
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x45ad18
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ad6e
jmp 0x45acba
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.00457ee0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x45ad36
cmp al, 0xa
jne 0x45ad3f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x45ad3f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.0045e130
push ebx
mov byte [edi + ebp], 0
call fcn.0045e3a3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0045e3a3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x45ae1c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jbe 0x45add7
mov cl, byte [ebp]
cmp cl, 0xd
je 0x45add7
cmp cl, 0xa
je 0x45add7
inc ebx
inc ebp
cmp ebx, eax
jb 0x45adc4
lea eax, [ebx + 1]
push eax
call fcn.00457ee0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x45adf6
cmp al, 0xa
jne 0x45adff
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x45adff
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.0045e130
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x45b490
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x45b513
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45b513
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x45b506
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x45b530
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45b54e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45b543
pop esi
ret
Function at 0x4a98ea
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004a9a9a
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4a99e8
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4a998b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4a99ce
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4a99a2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4a99bd
test al, 0x40
je 0x4a99b4
mov ecx, dword [edi + 0x20]
jmp 0x4a99bb
test al, 0x80
je 0x4a99ce
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4a99ce
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4a995a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x405ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00404e60
xor eax, eax
mov dword [esi], 0x4416b0
mov byte [esi + 6], al
mov cl, byte [edi + 1]
mov byte [esi + 5], cl
mov byte [esi + 4], cl
mov ecx, dword [esp + 0x50]
lea edx, [esi + 0x38]
mov dword [esi + 0x3c], ecx
mov dword [esp + 0x14], edx
mov ecx, 0xff
lea edx, [esi + 0x39]
mov edi, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
push 0x30
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x48], eax
mov byte [esi + 7], al
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00404f40
lea eax, [esp + 0xc]
push eax
call fcn.00416170
mov ecx, dword [0x44ccdc]
xor eax, eax
xor edx, edx
add esp, 4
div ecx
mov eax, edi
pop edi
mov edx, dword [edx*4 + 0x453550]
mov dword [0x450d00], edx
xor edx, edx
div ecx
mov eax, dword [edx*4 + 0x453550]
xor edx, edx
mov dword [0x450d04], eax
mov eax, 2
div ecx
mov eax, 3
mov edx, dword [edx*4 + 0x453550]
mov dword [0x450d08], edx
xor edx, edx
div ecx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
mov eax, dword [edx*4 + 0x453550]
mov dword [0x450d0c], eax
mov eax, esi
pop esi
add esp, 0x40
ret 8