joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462da8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404940
xor eax, eax
push ebp
push 0x462e69
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x462e80
call fcn.00404a94
test eax, eax
jne 0x462df0
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x462e8c
call fcn.004047a4
test bl, bl
je 0x462e2f
lea edx, [ebp - 8]
mov eax, 0x462e9c
call fcn.00462a28
cmp dword [ebp - 8], 0
je 0x462e2f
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404950
push eax
mov eax, dword [ebp - 8]
call fcn.00404950
push eax
push 0x462ea4
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x462e4e
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404950
push eax
push 0x462ea4
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462e70
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044c4
ret

Function at 0x462eac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x462f62
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.00409460
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040cc3c
mov eax, dword [ebx]
call fcn.00462f70
test al, al
jne 0x462f44
lea edx, [ebp - 0x114]
mov eax, dword [0x473264]
mov eax, dword [eax]
call fcn.0045f4a4
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.004090b0
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040cc3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462f69
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004044c4
ret

Function at 0x462f70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404950
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x462f89
test al, 0x10
jne 0x462f8d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4640b8
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00404950
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x464172
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x46417c]
fnstsw ax
sahf
je 0x46411c
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.00464064
fld qword [ebp + 8]
fcomp dword [0x46417c]
fnstsw ax
sahf
je 0x464138
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00464064
fld qword [ebp + 0x10]
fcomp dword [0x46417c]
fnstsw ax
sahf
je 0x464154
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.00464064
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4641bc
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404950
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x464217
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00464180
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x464224
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4642a7
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4642a7
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4642a7
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x4642a7
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4642a7
xor edx, edx
push ebp
push 0x46429d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0041ccbc
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4642a7
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4643a4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
test byte [esp], 1
je 0x4643b7
add ebx, 0x20
test byte [esp], 2
je 0x4643c0
add ebx, 2
test byte [esp], 4
je 0x4643c7
inc ebx
test byte [esp], 8
je 0x4643d0
add ebx, 4
test byte [esp], 0x10
je 0x4643dc
add ebx, 0x100
test byte [esp], 0x20
je 0x4643e8
add ebx, 0x1000
push ebx
mov eax, esi
call fcn.00404950
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
pop edx
pop esi
pop ebx
ret

Function at 0x465310
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404940
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x465497
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4654b4
call fcn.00404a94
test eax, eax
jne 0x46535b
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4654c0
call fcn.004047a4
mov eax, esi
mov edx, 0x3c
call fcn.004642dc
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.0040272c
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.0040272c
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.0040272c
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.0040272c
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.0040272c
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.0040272c
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404758
push eax
mov eax, dword [ebp - 4]
call fcn.00404950
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x465451
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404690
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404690
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404690
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404690
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404690
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404690
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.0040274c
mov eax, dword [esi + 0x2c]
call fcn.0040274c
mov eax, dword [esi + 0x24]
call fcn.0040274c
mov eax, dword [esi + 0x1c]
call fcn.0040274c
mov eax, dword [esi + 0x10]
call fcn.0040274c
mov eax, dword [esi + 4]
call fcn.0040274c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46549e
lea eax, [ebp - 4]
call fcn.004044a0
ret
Function at 0x4656b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4656d1
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4656de
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4656fc
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 8]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x465767
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.004046fc
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.004046fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465ac8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
test dl, dl
je 0x465add
add esp, 0xfffffff0
call fcn.00403a14
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x465b1c
mov eax, esi
call fcn.00404950
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x465b0d
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x465b1c
push 0x20
mov eax, esi
call fcn.00404950
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x472e24]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404950
push eax
call sub.kernel32.dll_CreateFileA_1
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cea4
cmp dword [ebx + 4], 0
jge 0x465b7b
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4732dc]
mov dl, 1
mov eax, dword [0x417ddc]
call fcn.0040c1ac
call fcn.00403e7c
cmp byte [ebp + 8], 0
je 0x465b8f
push edi
mov eax, esi
call fcn.00404950
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x465ba6
call fcn.00403a6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x466428
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x466545
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004662f0
pop ecx
test al, al
je 0x466520
mov eax, dword [ebp + 8]
push eax
call fcn.00466134
pop ecx
test al, al
jne 0x466520
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x466520
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.00466174
pop ecx
test al, al
je 0x466520
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404708
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408cac
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x188]
cmp esi, 0xc8
je 0x4664eb
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x466520
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.00466174
pop ecx
test al, al
je 0x466520
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404708
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00408cac
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.00466134
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46654c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004044c4
ret
Function at 0x46e670
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e7c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x474d04]
call fcn.00404950
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x46e738
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403680
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46e728
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x46e7d4
mov edx, 0x46e7d4
mov eax, dword [0x474714]
call fcn.00464224
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0041ca8c
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e72f
mov eax, dword [ebp - 0x10]
call fcn.004036b0
ret
push 1
push dword [0x474d04]
push 0x46e7e4
lea edx, [ebp - 0x1c]
mov eax, dword [0x473264]
mov eax, dword [eax]
call fcn.0045f4a4
push dword [ebp - 0x1c]
push 0x46e7f0
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404818
mov eax, dword [ebp - 0x18]
call fcn.00404950
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x264], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1fa], 0
je 0x46e7a5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1fc]
call dword [ebx + 0x1f8]
jmp 0x46e7aa
call fcn.004642b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e7cc
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004044c4
ret

Function at 0x46e898
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x46e983
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x473264]
mov eax, dword [eax]
call fcn.0045f4a4
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.004090b0
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040cc3c
lea eax, [ebp - 0x144]
mov edx, 0x46e998
call fcn.00404760
mov eax, dword [ebp - 0x144]
call fcn.00404950
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46e965
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404708
mov eax, dword [ebp - 0x150]
call fcn.00409018
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x46e92d
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e98a
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.004044c4
ret
Function at 0x401610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401629
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40163d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40165e
cmp esi, eax
jae 0x401637
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401650
cmp esi, eax
jae 0x401637
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004020c0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401e00
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403922
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403b70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4650e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00456245
push str.ck_W
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.004027b0
push 0x482de4
push eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x38], 1
call fcn.00403890
push str._...
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x44], 2
call fcn.00402210
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x10]
push ecx
push eax
push 0x12
push 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call dword [edx + 0x5c]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x482de4]
push 0
push 0
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.0042ef0f
mov ecx, dword [esi + 0x1c]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0044ed80
test eax, eax
je 0x403c93
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x403c95
xor eax, eax
lea esi, [eax + 0x1f4]
push 0x3e8
mov ecx, esi
call fcn.0044e07f
mov ecx, dword [0x482de4]
mov edx, dword [eax + 0x1c]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x482de4]
push eax
push 0x3e8
mov ecx, esi
call fcn.0044e0c7
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004562a0
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x404080
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push esi
call edi
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
movzx eax, ax
shl eax, 0x10
or eax, 1
push eax
push esi
push pe_nt_image_headers32
push ebx
call ebp
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call edi
movzx ecx, ax
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push esi
push 0x101
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x404960
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x24]
sub eax, ebx
inc eax
sub edi, esi
xor ebx, ebx
inc edi
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebx
jle 0x4049dc
push ebp
mov ebp, dword [esp + 0x18]
lea ecx, [ecx]
xor esi, esi
test edi, edi
jle 0x4049cf
mov eax, dword [esp + 0x1c]
add ebx, eax
lea esp, [esp]
mov ecx, dword [esp + 0x20]
mov eax, dword [0x4832a4]
lea edx, [esi + ecx]
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
xor eax, dword [esp + 0x2c]
neg eax
sbb al, al
inc al
mov byte [esi + ebp], al
inc esi
cmp esi, edi
jl 0x4049a0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
inc ebx
add ebp, 0x40
cmp ebx, eax
mov dword [esp + 0x24], ebx
jl 0x404990
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4055a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x481610]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x24c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055f3
push ebx
push ebx
push str.CreateToolhelp32Snapshot_failed
call fcn.004596c8
or eax, esi
mov ecx, dword [esp + 0x244]
xor ecx, dword [ebp + 4]
call fcn.004380c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x8b
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40563c
push eax
push eax
push str.Call_Process32First_API_failed
call fcn.004596c8
or eax, 0xffffffff
mov ecx, dword [esp + 0x244]
xor ecx, dword [ebp + 4]
call fcn.004380c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
nop
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0043805d
add esp, 8
test eax, eax
je 0x405667
lea eax, [esp + 0x34]
push edi
push eax
call fcn.0043805d
add esp, 8
test eax, eax
jne 0x405668
inc ebx
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x405640
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
xor ecx, dword [ebp + 4]
mov eax, ebx
call fcn.004380c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret