joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411188
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x4111b9
cmp dword [ebx + 0x54], 0
jne 0x4111b9
cmp dword [ebx + 0x5c], 0
jne 0x4111b9
mov esi, dword [ebp - 8]
jmp 0x411264
cmp esi, 0xffffffff
jne 0x4111c4
dec esi
jmp 0x411264
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x411264
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.004026e8
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x411226
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x41122b
mov word [edx], 0
dec eax
test eax, eax
jne 0x411208
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x411257
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x41125c
mov word [edx], 0
dec eax
test eax, eax
jne 0x411239
add esi, dword [ebp - 8]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
je 0x4112ce
push ebp
mov edx, dword [ebx + 0x54]
add edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x20]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.00411118
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x4112b4
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x4112ce
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jne 0x411198
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4127c8
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4128fe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x4127f0
cmp dword [ebx + 4], 0
jne 0x4128fe
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x412816
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x412816
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ebx + 8]
mov eax, 0x100000
call fcn.00410cd0
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4128fe
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x4128bb
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x412861
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push 0
push 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, dword [ebx + 8]
jne 0x4128b1
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4128b1
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x4128b1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
jmp 0x4128d6
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
jmp 0x4128d6
push esi
mov eax, dword [ebx + 8]
push eax
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebx], eax
cmp dword [ebx + 8], 0
jne 0x4128fe
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x414c08
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x414c2f
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
and edx, 0xff
mov edx, dword [edx*4 + 0x44d7bc]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x414c13
mov eax, esi
pop esi
ret
Function at 0x415520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x41553f
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00415160
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x1048], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x1044], ecx
inc edi
cmp edi, 9
jne 0x4155a1
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1000]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x1048]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00415160
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x4155f0
add ebx, 0x400
dec edi
jne 0x4155ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415638
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x1049], cl
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
call fcn.004039c4
lea esi, [ebp - 0x1058]
xor eax, eax
push ebp
push 0x415819
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov esi, 0x44dbbc
lea edi, [ebp - 0x1048]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x44dc04
lea edi, [ebp - 0x1000]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
mov eax, dword [ebp + 0x14]
call fcn.00403810
push eax
mov eax, dword [ebp + 0x14]
call fcn.004039d4
pop edx
call fcn.00415520
pop ecx
cmp byte [ebp - 0x1049], 0
je 0x4156d4
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 1
jmp 0x4156ea
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 0xffffffff
shr edi, 3
dec edi
test edi, edi
jl 0x415803
inc edi
mov dword [ebp - 0x1060], edi
cmp dword [ebp + 0x10], 0
jne 0x415707
cmp dword [ebp + 0xc], 0
je 0x415783
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
mov dl, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41572d
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41570f
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.00415134
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.00415134
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00415160
pop ecx
mov eax, dword [esi]
call fcn.00415134
xor dword [ebx], eax
mov eax, dword [ebp - 0x105c]
call fcn.00415134
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x4157f4
cmp byte [ebp + 8], 0
jne 0x4157db
mov edi, ebx
mov eax, dword [edi]
call fcn.00415134
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.00415134
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00415160
pop ecx
mov eax, dword [esi]
call fcn.00415134
mov dword [edi], eax
mov eax, dword [ebp - 0x105c]
call fcn.00415134
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x4157f4
push ebp
mov eax, dword [ebp - 0x1054]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1050]
call fcn.00415160
pop ecx
add ebx, 8
dec dword [ebp - 0x1060]
jne 0x4156fd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415820
lea eax, [ebp + 0x14]
call fcn.004035f4
ret
Function at 0x4159e0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test edi, edi
jle 0x415b02
lea eax, [edi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
shl edx, 2
mov eax, esi
call fcn.00403b40
mov ecx, dword [esi]
mov eax, edi
mov esi, 3
cdq
idiv esi
mov esi, eax
test esi, esi
jle 0x415a79
xor eax, eax
mov al, byte [ebx]
shl eax, 0x10
xor edx, edx
mov dl, byte [ebx + 1]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x44ec04]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x44ec04]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + 0x44ec04]
mov byte [ecx + 2], dl
and eax, 0x3f
mov al, byte [eax + 0x44ec04]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec esi
jne 0x415a1a
mov eax, edi
mov esi, 3
cdq
idiv esi
dec edx
je 0x415a8b
dec edx
je 0x415abb
jmp 0x415b09
xor eax, eax
mov al, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x44ec04]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x44ec04]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x415b09
xor eax, eax
mov al, byte [ebx]
shl eax, 0x10
xor edx, edx
mov dl, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x44ec04]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x44ec04]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x44ec04]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x415b09
mov eax, esi
call fcn.004035f4
pop edi
pop esi
pop ebx
ret
Function at 0x41607c
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039c4
xor eax, eax
push ebp
push 0x41616b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004039d4
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x416155
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x416155
xor eax, eax
push ebp
push 0x41614e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, ebx
call fcn.00403b40
cmp dword [ebx], 0
je 0x41612e
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00403810
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x41612e
mov eax, dword [ebx]
call fcn.00403810
cmp eax, dword [ebp - 0x10]
je 0x416132
xor eax, eax
jmp 0x416134
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416155
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416172
lea eax, [ebp - 4]
call fcn.004035f4
ret
Function at 0x420b28
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x14]
mov edx, 0x14
call fcn.00405b9c
mov dword [ebp - 0x14], 0x14
push 0x420c30
push 0x420c40
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x420b6b
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x420bc1
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
test eax, eax
je 0x420bc1
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
test eax, eax
je 0x420b93
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov ebx, eax
jmp 0x420b95
xor ebx, ebx
test ebx, ebx
je 0x420ba7
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x420bc1
push 0
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x420c2a
test byte [ebp - 0x10], 1
je 0x420c2a
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x420c02
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420be9
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420bf6
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, dword [eax - 8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub edx, dword [eax - 4]
push edx
push esi
call sub.user32.dll_DrawIconEx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421f28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
mov al, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x421fbe
xor ebx, ebx
mov bl, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421f80
inc esi
mov cl, 0xff
jmp 0x421f84
add cl, byte [esp + 5]
xor ebx, ebx
mov bl, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421f9c
inc esi
mov dl, 0xff
jmp 0x421fa0
add dl, byte [esp + 6]
xor ebx, ebx
mov bl, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421fb8
inc esi
mov al, 0xff
jmp 0x421feb
add al, byte [esp + 7]
jmp 0x421feb
cmp cl, byte [esp + 5]
jae 0x421fc9
inc esi
xor ecx, ecx
jmp 0x421fcd
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x421fd8
inc esi
xor edx, edx
jmp 0x421fdc
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x421fe7
inc esi
xor eax, eax
jmp 0x421feb
sub al, byte [esp + 7]
dec esi
jle 0x422001
mov cl, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.00421f28
jmp 0x42201a
and eax, 0xff
shl eax, 0x10
and edx, 0xff
shl edx, 8
add eax, edx
xor edx, edx
mov dl, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x423214
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423290
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.00405b9c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00423390
mov eax, dword [ebp - 4]
call fcn.00403810
push eax
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00423390
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423297
lea eax, [ebp - 4]
call fcn.004035f4
ret

Function at 0x423770
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x4237b7
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
call fcn.00403b40
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.00403810
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebx + 0x50]
call fcn.00403b40
mov eax, edi
mov edx, dword [ebx + 0x50]
call fcn.0040368c
pop edi
pop esi
pop ebx
ret

Function at 0x427f88
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428099
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x428074
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004037e4
cmp dword [ebx], 0
je 0x42807b
push 0
mov eax, dword [ebx]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.00403810
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x42800f
mov eax, ebx
mov edx, 0x4280b0
call fcn.00403818
push dword [ebx]
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.00427df4
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
call fcn.00427e24
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00427f14
push dword [ebp - 0x10c]
push 0x4280bc
mov eax, ebx
mov edx, 3
call fcn.004038d0
push 0
mov eax, dword [ebx]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x4280b0
call fcn.00403818
jmp 0x42807b
mov eax, ebx
call fcn.004035f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4280a0
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00403618
ret
Function at 0x4280c8
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4281d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00427f88
cmp dword [ebp - 4], 0
je 0x4281ac
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4281ac
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x4281e8
mov edx, dword [ebp - 4]
call fcn.0040385c
mov eax, dword [ebp - 0x148]
call fcn.004039d4
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42819e
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.004037e4
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 4]
call fcn.0040385c
mov eax, dword [ebp - 0x148]
call fcn.004039d4
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x42814c
push ebx
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4281d9
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.00403618
lea eax, [ebp - 4]
call fcn.004035f4
ret

Function at 0x4281ec
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004037e4
add esp, 0x10c
pop ebx
ret
Function at 0x428220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004039c4
mov eax, dword [ebp - 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x428319
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004035f4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4282fe
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004039d4
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x10], 0
je 0x4282f5
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4282ef
cmp dword [ebp - 0x14], 1
jne 0x4282e3
mov eax, ebx
mov edx, esi
call fcn.004037a8
jmp 0x4282ef
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.004036d8
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428320
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403618
ret

Function at 0x42832c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004039c4
mov eax, dword [ebp - 8]
call fcn.004039c4
mov eax, dword [ebp + 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x4283e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4283c2
mov eax, dword [ebp + 8]
call fcn.00403810
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.004039d4
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.004039d4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4283c4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4283ee
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403618
lea eax, [ebp + 8]
call fcn.004035f4
ret