joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45af74
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45af8b
add esp, 0xfffffff0
call fcn.00403488
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041952c
mov eax, dword [0x485040]
cmp word [eax + 2], 0
jne 0x45afb3
mov eax, dword [0x485040]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c664
mov eax, dword [0x485100]
cmp word [eax + 2], 0
jne 0x45afcd
mov eax, dword [0x485100]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c85c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41180c]
call fcn.00403134
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41180c]
call fcn.00403134
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bac8]
call fcn.0042357c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b154
mov eax, dword [0x484f50]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042394c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cdfc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x484f50]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c380
test eax, eax
je 0x45b0c2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c3a8
test eax, eax
je 0x45b0d6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404124
mov eax, dword [0x484e04]
cmp byte [eax], 0
jne 0x45b10a
mov eax, ebx
call fcn.0045b27c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045cfd8
mov eax, ebx
call fcn.0045d99c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b14a
call fcn.004034e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b4fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486bb0]
cmp dword [eax + 0x30], 0
je 0x45b5a6
cmp dword [ebx + 0x94], 0
jne 0x45b5a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b48c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b5a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b566
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b5a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413b74
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b575
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c108
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c13d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fa4
jmp 0x45c14a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f08
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d1b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d1f5
mov eax, esi
call fcn.00443448
test al, al
je 0x45d1f5
mov eax, dword [ebx + 0x84]
call fcn.00443144
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d1f5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443144
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4608bc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4608ea
mov eax, ebx
call fcn.00461370
cmp dword [ebx + 0x40], 0
je 0x4608e3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46095b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46094d
cmp dword [ebx + 8], 0
je 0x46090c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46091e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46094d
cmp dword [ebx + 8], 0
je 0x4608ff
cmp eax, 3
je 0x460931
dec eax
jne 0x4608ff
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4608ff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4608ff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x460979
cmp dword [ebx + 0x14], 0xcc
je 0x460979
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00460984
pop ebx
ret
Function at 0x4722fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47255c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47235f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00471dc4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040bf6c
cmp al, 1
jne 0x47235f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004720dc
test al, al
je 0x4724eb
cmp dword [ebp - 8], 0
jge 0x47237d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00471dc4
mov eax, dword [ebp - 0x210]
call fcn.00404174
cmp ebx, eax
jge 0x4723c7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00471dc4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x485258]
and eax, 0xff
bt dword [edx], eax
jae 0x4723c7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4723db
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004722d8
cmp ebx, dword [ebp - 8]
je 0x4724dd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x472407
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403360
and eax, 0x7f
movzx eax, word [eax*2 + 0x484780]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4724ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403360
and eax, 0x7f
movzx eax, word [eax*2 + 0x484780]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00443144
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403360
and eax, 0x7f
movzx eax, word [eax*2 + 0x484780]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00443144
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4724d1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x47253e
cmp dword [ebp - 8], 0
jge 0x4724f6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00471dc4
mov eax, dword [ebp - 0x218]
call fcn.00404174
cmp eax, dword [ebp - 8]
jg 0x472530
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00471dc4
mov eax, dword [ebp - 0x21c]
call fcn.00404174
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004722d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472563
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403ed8
ret
Function at 0x47cce8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
push 4
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x47cd6a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x47cd59
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 4
call fcn.004028b8
mov eax, dword [ebp - 8]
push eax
push 0x10
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cd60
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
Function at 0x405818
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x4058b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.00403ad0
test eax, eax
je 0x40589c
lea eax, [ebp - 4]
call fcn.004057e4
push 0
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
je 0x40586b
mov bl, 1
jmp 0x40589c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004054c0
mov eax, dword [ebp - 8]
call fcn.00405818
test al, al
je 0x405896
push 0
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40589a
xor ebx, ebx
jmp 0x40589c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058be
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403954
ret
Function at 0x406298
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x40630e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403930
mov eax, dword [ebp - 4]
call fcn.00403ad0
mov esi, eax
test esi, esi
jle 0x4062ee
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00403d28
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x49
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4062d4
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00403984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406315
lea eax, [ebp - 4]
call fcn.00403930
ret

Function at 0x4076e4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00404d2c
ret

Function at 0x4079f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, edx
dec esi
test esi, esi
jl 0x407a0d
inc esi
xor edx, edx
xor ebx, ebx
mov bl, byte [eax + edx]
xor bx, 0xb822
mov byte [ecx + edx], bl
inc edx
dec esi
jne 0x4079fc
pop esi
pop ebx
ret

Function at 0x407a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x407a19
mov eax, dword [ebp - 4]
add esp, 0xffffffb8
mov byte [ebp - 1], 0
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
mov eax, dword [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x407ab8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
jne 0x407a64
call fcn.00403488
jmp 0x407abf
lea ecx, [ebp - 0x204c]
mov eax, 0x40f150
mov edx, 0x2040
call fcn.004079f0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x2040
lea eax, [ebp - 0x204c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407abf
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x407bbc
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00403cd0
push eax
mov eax, dword [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x407c54
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
jne 0x407c0d
call fcn.00403488
jmp 0x407c5b
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00403ad0
push eax
mov eax, ebx
call fcn.00403cd0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c5b
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407c7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x407d06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403930
mov eax, dword [ebp - 4]
call fcn.00403cd0
call fcn.00407c64
mov ebx, eax
test ebx, ebx
jle 0x407ce8
mov edi, 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor edx, dword [ebp - 8]
call fcn.00403a6c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00403ad8
inc edi
dec ebx
jne 0x407cc7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d0d
lea eax, [ebp - 0xc]
call fcn.00403930
lea eax, [ebp - 4]
call fcn.00403930
ret
Function at 0x408010
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb8
push ebx
xor eax, eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4081db
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407ea4
push 0
push 0
push 0
push 0
push 0x4081ec
call dword [0x415724]
mov dword [ebp - 0x14], eax
push 0
push 0x80000000
push 0
push 0
mov eax, ebx
call fcn.00403cd0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x415728]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x13
mov eax, dword [ebp - 0x18]
push eax
call dword [0x41572c]
lea eax, [ebp - 0x444]
lea edx, [ebp - 0x40]
call fcn.00403a7c
mov eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x448]
mov edx, 0x1b
mov eax, 0x4081fc
call fcn.00407c7c
mov edx, dword [ebp - 0x448]
pop eax
call fcn.00403c1c
jne 0x40819c
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x408195
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40812f
call fcn.00403488
jmp 0x4081b0
lea eax, [ebp - 0x28]
push eax
push 0x400
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x41573c]
test eax, eax
je 0x408167
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x28], 0
jne 0x40812f
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40819c
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
mov eax, dword [ebp - 0x18]
push eax
call dword [0x415740]
mov eax, dword [ebp - 0x14]
push eax
call dword [0x415740]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081e2
lea eax, [ebp - 0x448]
mov edx, 2
call fcn.00403954
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403954
ret
Function at 0x409230
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
mov eax, dword [ebp - 8]
call fcn.00403cc0
mov eax, dword [ebp - 0xc]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x409385
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
mov eax, dword [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x409356
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, ebx
call fcn.00402518
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x409334
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov esi, dword [ebp - 0x1c]
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0xc]
call fcn.00403cd0
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403a7c
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00403cd0
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.00403a7c
mov eax, dword [ebp - 0x24]
mov edx, esi
mov ecx, ebx
call fcn.0040917c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40933b
mov eax, dword [ebp - 0x1c]
call fcn.00402538
ret

Function at 0x409478
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x409502
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403930
mov eax, dword [ebp - 4]
call fcn.00403cd0
call fcn.00409460
mov ebx, eax
test ebx, ebx
jle 0x4094e4
mov edi, 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor edx, dword [ebp - 8]
call fcn.00403a6c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00403ad8
inc edi
dec ebx
jne 0x4094c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409509
lea eax, [ebp - 0xc]
call fcn.00403930
lea eax, [ebp - 4]
call fcn.00403930
ret
Function at 0x4095b8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
mov eax, dword [ebp - 8]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x4096e4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x4096f4
mov eax, dword [ebp - 4]
call fcn.00403cd0
mov esi, eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4096a2
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindow
mov esi, eax
test esi, esi
je 0x4096b9
push 0xff
lea eax, [ebp - 0x107]
push eax
push esi
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x409692
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x107]
call fcn.00409410
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00409424
mov eax, dword [ebp - 0x10c]
push eax
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.00409424
mov eax, dword [ebp - 0x114]
pop edx
call fcn.00403db8
test eax, eax
je 0x409692
mov bl, 1
jmp 0x4096b9
push 2
push esi
call sub.user32.dll_GetWindow
mov esi, eax
test esi, esi
jne 0x409631
jmp 0x4096b9
mov eax, dword [ebp - 8]
call fcn.00403cd0
push eax
push esi
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4096b9
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096eb
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00403954
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403954
ret

Function at 0x409ba8
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffd0
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x409c20
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x409c0e
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
add esp, 0x30
ret
Function at 0x409cd4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebx], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov eax, dword [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x409d68
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
jne 0x409d20
call fcn.00403488
jmp 0x409d6f
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebx], eax
mov eax, dword [ebx]
call fcn.00402518
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d6f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409d78
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403930
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00403cd0
push eax
mov eax, dword [0x414bd4]
mov eax, dword [eax]
call eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x409e1a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0xffffffff
jne 0x409dcc
call fcn.00403488
jmp 0x409e21
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403e00
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, ebx
call fcn.00403d28
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e21
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret