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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a99b
add esp, 0xfffffff0
call fcn.00403fdc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fc20
mov eax, dword [0x48d230]
cmp word [eax + 2], 0
jne 0x45a9c3
mov eax, dword [0x48d230]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c5dc
mov eax, dword [0x48d2ec]
cmp word [eax + 2], 0
jne 0x45a9dd
mov eax, dword [0x48d2ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c7e8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416d60]
call fcn.00403c88
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416d60]
call fcn.00403c88
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416d60]
call fcn.00403c88
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42456c]
call fcn.0042b950
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45ab94
mov eax, dword [0x48d13c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bd24
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cebc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48d13c]
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.0040d9a0
test eax, eax
je 0x45aae4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409b1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d9d4
test eax, eax
je 0x45aaf8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404e34
mov byte [ebx + 0xd4], 0
push ebx
push 0x45c104
call fcn.00420d9c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x48d00c]
cmp byte [eax], 0
jne 0x45ab49
mov eax, ebx
call fcn.0045acd8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045d094
mov eax, ebx
call fcn.0045dbf8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ab89
call fcn.00404034
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45af58
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45aff7
cmp dword [ebx + 0x94], 0
jne 0x45aff1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45aee0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45aff1
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 0x45afb7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45aff1
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.004195f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45afc6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b210
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x492c94]
cmp dword [eax + 0x30], 0
je 0x45b36d
test bl, bl
jne 0x45b2be
cmp dword [esi + 0x9c], 0
jne 0x45b2b3
mov eax, esi
call fcn.0045da74
push eax
push 0x45b13c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45b284
mov eax, dword [0x492c94]
call fcn.0045e154
test al, al
je 0x45b284
mov eax, dword [0x492cb8]
call fcn.00405f38
mov edi, eax
cmp edi, 0
jl 0x45b284
push 0
mov eax, dword [0x492cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45b26e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45b2b3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004195f0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45b293
inc dword [esi + 0x9c]
jmp 0x45b36d
cmp dword [esi + 0x9c], 0
jle 0x45b36d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45b36d
cmp dword [esi + 0x44], 0
je 0x45b319
mov eax, dword [0x492c94]
call fcn.0045e154
test al, al
je 0x45b319
mov eax, dword [0x492cb8]
call fcn.00405f38
mov edi, eax
cmp edi, 0
jl 0x45b319
push 5
mov eax, dword [0x492cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45b303
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45b348
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004195f0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45b328
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x492cb8
mov ecx, 1
mov edx, dword [0x45b11c]
call fcn.004060ec
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45be00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45be6a
mov eax, ebx
call fcn.0045e154
test al, al
jne 0x45be6a
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.00404cb4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45be57
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45be77
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c18
jmp 0x45be77
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c18
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45d278
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d2e6
mov eax, esi
call fcn.00446d48
test al, al
je 0x45d2e6
mov eax, dword [ebx + 0x84]
call fcn.00446998
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d2e6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45d2da
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446998
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e934
jmp 0x45d2e6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045d0b4
pop esi
pop ebx
ret

Function at 0x463984
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405044
xor eax, eax
push ebp
push 0x463a1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404bc4
mov eax, dword [ebp - 4]
call fcn.00404e84
test eax, eax
jle 0x4639fd
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
xor dl, 0x10
and edx, 0xff
sub edx, 0xf
call fcn.00404dac
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4639c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463a22
lea eax, [ebp - 0x14]
call fcn.00404bc4
lea eax, [ebp - 4]
call fcn.00404bc4
ret
Function at 0x46b228
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push 0x46b380
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46b378
mov dword [ebp - 0x14], 0x104
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00407a18
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x46b3bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46b329
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x46b329
push 4
push 0x1000
mov eax, dword [ebp - 0x1c]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46b319
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x46b3c0
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46b319
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
push 0x8000
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [ebp - 0x2c]
call fcn.00407a04
movzx eax, ax
mov dword [ebp - 4], eax
shl dword [ebp - 4], 8
movzx eax, word [ebp - 0x2c]
add dword [ebp - 4], eax
shl dword [ebp - 4], 8
mov eax, dword [ebp - 0x28]
call fcn.00407a04
movzx eax, ax
add dword [ebp - 4], eax
shl dword [ebp - 4], 8
movzx eax, word [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46b824
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x46b8fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x46b8fc
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x20]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x46b8f4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x20]
add edx, edx
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
movzx edx, word [ebp - 0x2e]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x46b8fc
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x46b88b
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x46d27c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x46d28e
add esp, 0xfffffff0
call fcn.00403fdc
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x46d380
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46d35e
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00407a18
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x46d3bc
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46d355
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x46d34c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4174dc]
call fcn.0041be90
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046d3d8
mov eax, dword [ebp - 0x10]
call fcn.00403cb8
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x46d376
call fcn.00404034
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46f6e8
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x46f782
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x48c810]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x48c810]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x48c810]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x48c810]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x46f707
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x46f798
dec edx
je 0x46f7cd
jmp 0x46f81e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x48c810]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x48c810]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x46f81e
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x48c810]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x48c810]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x48c810]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46f888
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x46f8a7
add edx, 3
sar edx, 2
test edx, edx
jle 0x46f9b5
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x46f8dc
je 0x46f91f
sub ecx, 0x2b
je 0x46f915
sub ecx, 4
je 0x46f91a
dec ecx
sub ecx, 0xa
jb 0x46f907
jmp 0x46f922
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x46f8ee
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x46f8f9
jmp 0x46f922
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x46f922
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x46f922
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x46f922
mov byte [eax], 0x3e
jmp 0x46f922
mov byte [eax], 0x3f
jmp 0x46f922
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x46f8bf
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x46f973
cmp byte [esp + 7], 0xff
jne 0x46f973
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x46f9aa
cmp dl, 0xff
je 0x46f9aa
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x46f8b6
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4705dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4705fd
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4705ea
pop edi
pop esi
pop ebx
ret
Function at 0x4754cc
Capabilities:
Clear file content
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475736
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x28], 0
je 0x475504
mov dword [ebp - 8], 4
mov esi, 2
jmp 0x475510
mov dword [ebp - 8], 0xf001f
mov esi, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00405054
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edi
test edi, edi
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], al
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x475601
test ebx, ebx
setne cl
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004753f0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
test ebx, ebx
jne 0x475588
test eax, eax
jne 0x47557d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
jmp 0x47562f
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
jmp 0x47562f
mov edx, dword [ebp - 4]
cmp byte [edx + 0x30], 0
je 0x4755db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29], 0
je 0x4755d1
push 0x30
push 0x475744
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
lea edx, [ebp - 0x58]
xor ecx, ecx
mov eax, 0x475778
call fcn.0040a1e4
mov eax, dword [ebp - 0x50]
call fcn.00405054
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
jmp 0x47562f
cmp eax, ebx
jbe 0x4755f9
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004098a8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetEndOfFile
call fcn.0040e248
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
jmp 0x47562f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x47562f
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetSystemInfo
test ebx, ebx
jne 0x475629
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x2c], edx
jmp 0x47562f
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], ebx
xor eax, eax
push ebp
push 0x4756a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
jne 0x475691
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00405054
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
push 0
push esi
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
test ebx, ebx
jne 0x475691
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, 0x4757bc
mov dl, 1
mov eax, dword [0x4750e0]
call fcn.0040cb48
call fcn.004045f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4756af
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x489408
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x48944c
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x48944a
dec ecx
jne 0x48944c
cmp eax, 5
jne 0x489441
test edx, edx
jne 0x489441
xor ebx, ebx
jmp 0x48944c
cmp eax, 5
jl 0x48944c
mov bl, 1
jmp 0x48944c
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401984
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x40199b
push esp
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4040b0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4016e2
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040b0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a36
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a1d
pop ebp
ret 0x10