joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403200
Capabilities:
Copy file
Enumerate gui resources
Get file attributes

Disassembly:
mov eax, dword [0x49d36c]
mov ecx, dword [0x49a278]
sub esp, 0x82c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x4032ee
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x49d36c], 0x959
jne 0x4032d4
push 0x402c4c
call edi
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call ebx
push 0
push 0
call ebp
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402c5c
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x14]
push edx
call fcn.00403060
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403240
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret
Function at 0x409bc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430b80]
jne 0x409bca
repz ret
jmp fcn.0040cccf

Function at 0x40c737
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.004065c7
and dword [ebp - 4], 0
cmp dword [0x432e24], 0
mov ebx, eax
jne 0x40c7e8
push 0x402bac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c899
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ba0
push edi
call esi
test eax, eax
je 0x40c899
push eax
call fcn.00406555
mov dword [esp], 0x402b90
push edi
mov dword [0x432e24], eax
call esi
push eax
call fcn.00406555
mov dword [esp], 0x402b7c
push edi
mov dword [0x432e28], eax
call esi
push eax
call fcn.00406555
mov dword [esp], 0x402b60
push edi
mov dword [0x432e2c], eax
call esi
push eax
call fcn.00406555
pop ecx
mov dword [0x432e34], eax
test eax, eax
je 0x40c7e8
push 0x402b48
push edi
call esi
push eax
call fcn.00406555
pop ecx
mov dword [0x432e30], eax
mov eax, dword [0x432e30]
cmp eax, ebx
je 0x40c840
cmp dword [0x432e34], ebx
je 0x40c840
push eax
call fcn.004065d0
push dword [0x432e34]
mov esi, eax
call fcn.004065d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c840
test edi, edi
je 0x40c840
call esi
test eax, eax
je 0x40c837
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c837
test byte [ebp - 0xc], 1
jne 0x40c840
or dword [ebp + 0x10], 0x200000
jmp 0x40c879
mov eax, dword [0x432e28]
cmp eax, ebx
je 0x40c879
push eax
call fcn.004065d0
pop ecx
test eax, eax
je 0x40c879
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c879
mov eax, dword [0x432e2c]
cmp eax, ebx
je 0x40c879
push eax
call fcn.004065d0
pop ecx
test eax, eax
je 0x40c879
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432e24]
call fcn.004065d0
pop ecx
test eax, eax
je 0x40c899
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c89b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x629ac1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313b0
cmp edx, dword [eax]
je 0x629ae3
add eax, 8
inc ecx
cmp eax, 0x631440
jl 0x629ad4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313b0]
jne 0x629c11
mov eax, dword [0x639d40]
cmp eax, 1
je 0x629beb
test eax, eax
jne 0x629b14
cmp dword [0x6312dc], 1
je 0x629beb
cmp edx, 0xfc
je 0x629c11
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629b4b
lea eax, [ebp - 0x1a4]
push 0x62e958
push eax
call fcn.0062a4a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062a930
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629b8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062a930
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62e954
push edi
call fcn.0062c800
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x62e938
push eax
call fcn.0062a4a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062a4b0
lea eax, [ebp - 0xa0]
push 0x62e934
push eax
call fcn.0062a4b0
push dword [esi + 0x6313b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062a4b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x62e90c
push eax
call fcn.0062c774
add esp, 0x2c
pop edi
jmp 0x629c11
lea eax, [ebp + 8]
lea esi, [esi + 0x6313b4]
push 0
push eax
push dword [esi]
call fcn.0062a930
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x44d090
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
mov dword [ebp - 0x180], 0x44d7c0
mov dword [ebp - 4], 0
invalid
Function at 0x4091b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
jmp 0x4091ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4091d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4091c0
mov eax, 1
add ebx, ebx
jne 0x4091e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4091d8
jne 0x4091f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4091d8
xor ecx, ecx
sub eax, 3
jb 0x409208
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40927a
mov ebp, eax
add ebx, ebx
jne 0x409213
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409220
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409244
inc ecx
add ebx, ebx
jne 0x409230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409225
jne 0x409241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409225
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409264
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409255
jmp 0x4091c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409264
add edi, ecx
jmp 0x4091c6
pop esi
mov edi, esi
mov ecx, 0x1e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409282
cmp byte [edi], 0
jne 0x409282
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x409287
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x4092f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4092b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x909c]
or eax, eax
je 0x4092f0
mov dword [ebx], eax
add ebx, 4
jmp 0x4092d1
call dword [esi + 0x9098]
mov ebp, dword [esi + 0x90a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40932a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10025f10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100260d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x10025f3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10025f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10025f30
mov eax, 1
add ebx, ebx
jne 0x10025f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10025f48
jne 0x10025f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10025f48
xor ecx, ecx
sub eax, 3
jb 0x10025f78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10025fea
mov ebp, eax
add ebx, ebx
jne 0x10025f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10025f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10025fb4
inc ecx
add ebx, ebx
jne 0x10025fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10025f95
jne 0x10025fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10025f95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10025fd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10025fc5
jmp 0x10025f36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10025fd4
add edi, ecx
jmp 0x10025f36
pop esi
mov edi, esi
mov ecx, 0x527
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10025ff2
cmp byte [edi], 0xb
jne 0x10025ff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10025ff7
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x10026066
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10026024
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26084]
or eax, eax
je 0x10026060
mov dword [ebx], eax
add ebx, 4
jmp 0x10026041
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10026097
cmp al, 0xef
ja 0x1002608a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002606c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10026079
mov ebp, dword [esi + 0x26088]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100260cb
sub esp, 0xffffff80
jmp 0x10007fa0
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48a004]
jne 0x40100a
repz ret
jmp fcn.004018f4

Function at 0x4067a8
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.0040261d
and dword [ebp - 4], 0
cmp dword [0x48bcdc], 0
mov ebx, eax
jne 0x406859
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40690a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40690a
push eax
call fcn.004025ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48bcdc], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48bce0], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48bce4], eax
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x48bcec], eax
test eax, eax
je 0x406859
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x48bce8], eax
mov eax, dword [0x48bce8]
cmp eax, ebx
je 0x4068b1
cmp dword [0x48bcec], ebx
je 0x4068b1
push eax
call fcn.00402626
push dword [0x48bcec]
mov esi, eax
call fcn.00402626
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4068b1
test edi, edi
je 0x4068b1
call esi
test eax, eax
je 0x4068a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068a8
test byte [ebp - 0xc], 1
jne 0x4068b1
or dword [ebp + 0x10], 0x200000
jmp 0x4068ea
mov eax, dword [0x48bce0]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068ea
mov eax, dword [0x48bce4]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48bcdc]
call fcn.00402626
pop ecx
test eax, eax
je 0x40690a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40690c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x485cc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x485cd9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x485d21
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.00485cb0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x485ce0
cmp edi, 0x2d
jne 0x485d3a
mov dword [0x2b89ef8], 0xa62e7790
mov dword [0x2b89efc], 0xffffffff
add esp, 0xc
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x459860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x549f94
push dword [ebp + 8]
call fcn.00459640
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4598ba
push edi
push esi
call fcn.00459640
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4598b9
push esi
call fcn.00459640
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4598b9
push 0x45ffe0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0044d4b0
add esp, 0xc
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp + 0xc]
call fcn.004598d0
add esp, 4
pop esi
pop ebp
ret

Function at 0x4598e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521546
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x569910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.004591b0
add esp, 4
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00460430
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00460310
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.00412a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4599da
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x459a15
cmp esi, 0x400000
ja 0x459a15
push esi
mov dword [ebp - 0x11c], 0
call fcn.004dfbf1
add esp, 4
mov edi, eax
lea eax, [ebp - 0x11c]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x11c], esi
jne 0x4599cf
push esi
push edi
call fcn.00459cb0
add esp, 8
push edi
call fcn.004e25f3
add esp, 4
jmp 0x459a15
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push esi
call fcn.004593e0
mov esi, eax
add esp, 8
test esi, esi
je 0x459a15
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jbe 0x459a15
push eax
push esi
call fcn.00459cb0
push esi
call fcn.004e25f3
add esp, 0xc
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00460310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0222
mov esp, ebp
pop ebp
ret

Function at 0x459f70
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x459f95
or esi, 2
push 1
call edi
test ax, ax
jns 0x459fa1
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x459fad
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x459fb9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4c0270
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4c0402
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4c03ec
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4c02bf
lea ebp, [eax + 0xe]
jmp 0x4c02cb
cmp eax, 0x17
jne 0x4c0379
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4c0379
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4c0379
cmp eax, ebp
jb 0x4c0379
push 0x20
call dword [0x569300]
mov esi, eax
add esp, 4
test esi, esi
je 0x4c03e1
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x569300]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4c03d0
push ebp
push dword [edi + 0x18]
push eax
call fcn.004eaa40
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4c0365
push eax
call dword [0x56930c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4c03b6
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4c0375
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4c02b2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4c0398
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4c03e8
push ebx
call fcn.004c0230
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x569304]
push esi
call dword [0x569304]
add esp, 8
jmp 0x4c0388
push esi
mov ebp, 8
call dword [0x569304]
add esp, 4
jmp 0x4c0388
mov ebp, 8
jmp 0x4c0388
test ebx, ebx
jne 0x4c03f8
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c4df0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x198]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c4e3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004b38e0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.004c4700
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4c4f70
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x130]
jne 0x4c50bb
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x4c4fa7
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c4fb2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c4fbd
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x1c]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4c4ff0
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c4ffa
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c5004
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c500e
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c5019
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c5024
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004c4810
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x198]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4c507a
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004b38e0
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.004c4e60
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x198]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c50b8
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004b38e0
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4e6d2c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5f08e6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f0901
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b5b26]
pop edx
test eax, eax
je 0x5f09d3
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f09c2
test dword [ebp - 0x2a8], 1
jne 0x5f09c2
and dword [ebp - 0x2a8], 0x100
jne 0x5f09c2
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2ccb]
pop edx
pop esi
test eax, eax
je 0x5f0965
jmp 0x5f09c2
cmp word [esi], 0x5a4d
jne 0x5f09c2
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f09c2
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2d87]
pop edx
test eax, eax
je 0x5f09c2
lea eax, [ebp - 0x28c]
push eax
call fcn.005f0842
test eax, eax
jne 0x5f09bb
jmp 0x5f09c2
mov eax, esi
jmp 0x5f09d3
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f0901
pop esi
leave
ret 4