joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f276
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x48f2f6
cmp dword [ebp + 0xc], ecx
jne 0x48f2f6
cmp dword [ebx + 0x94], ecx
jne 0x48f2f6
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x48f2ec
cmp eax, 0xffffffff
je 0x48f2ec
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.00419ec1
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x48f2f6
xor eax, eax
jmp 0x48f436
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x48f331
cmp dword [ebp + 0xc], 0
jne 0x48f331
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.00419ec1
test eax, eax
jne 0x48f2e5
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x48f357
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x48f357
cmp eax, 0xffffffff
je 0x48f357
cmp dword [ebx + 0x90], ecx
jne 0x48f357
cmp dword [ebx + 0xa8], ecx
je 0x48f2e5
push dword [ebx + 0x6c]
push 0x58fbe4
call fcn.0042232b
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x48f390
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x48f3f6
push edi
jmp 0x48f3f1
push dword [ebx + 0x6c]
push 0x58f824
call fcn.0042232b
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x48f3bc
cmp eax, edi
je 0x48f3bc
cmp dword [0x5964ec], edi
jne 0x48f3bc
push 1
push ebx
mov ecx, eax
call fcn.00477aaf
jmp 0x48f3e9
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48f3d4
push edi
call fcn.004305c4
cmp eax, edi
je 0x48f3d4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x48f2e5
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x48f3f6
push ebx
call fcn.004330f4
cmp dword [ebx + 0x6c], edi
je 0x48f433
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042367d
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a3831
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x53eab5
call fcn.00507191
xor edi, edi
cmp dword [0x58f720], edi
je 0x4a38fa
cmp dword [0x59039c], 0xfffffffe
jne 0x4a38e7
cmp dword [ebp + 8], 0xffffffff
je 0x4a38fa
test byte [0x598190], 1
mov esi, 0x598170
jne 0x4a3890
or dword [0x598190], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.004419e6
push 0x5474c4
call fcn.00504f44
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.00441a3d
cmp dword [0x59816c], edi
je 0x4a38a4
call fcn.0041359b
push edi
push edi
push 0x4a37d9
call fcn.0050bbd6
add esp, 0xc
mov dword [0x59816c], eax
cmp eax, edi
jbe 0x4a38d4
cmp eax, 0xffffffff
je 0x4a38d4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x59039c], eax
jmp 0x4a38da
mov dword [0x59816c], edi
push 0x598178
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a38fa
mov eax, dword [ebp + 8]
mov dword [0x59039c], eax
cmp eax, 0xffffffff
jne 0x4a38fa
mov dword [0x59816c], edi
call fcn.00507269
ret
Function at 0x4dddbf
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x54105a
call fcn.005071fa
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004e37f6
push 0x15c
call fcn.0041261e
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4dde03
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e4d55
jmp 0x4dde05
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004e37c8
call fcn.00421443
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4ddf9f
cmp dword [edi + 4], ebx
jle 0x4ddf9f
lea ecx, [ebp - 0x118]
call fcn.0040dfa0
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4ddf83
lea ecx, [ebp - 0x11c]
call fcn.0040dfa0
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4dded4
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x5613a0
push eax
call fcn.0040de30
add esp, 0xc
jmp 0x4ddf06
jge 0x4ddef4
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.0040de30
add esp, 0x10
jmp 0x4ddf06
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040e2d0
push 0x15c
call fcn.0041261e
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4ddf2a
mov ecx, eax
call fcn.004b6afd
mov esi, eax
jmp 0x4ddf2c
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00420a24
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004e37c8
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.0040e370
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040e370
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4dde6d
call fcn.0050727d
ret
Function at 0x4e2959
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e2971
mov edi, dword [esi + 0xc]
jmp 0x4e29b1
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e298a
call fcn.004171ee
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e299f
call fcn.004171ee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e29b1
call fcn.004171ee
call fcn.00421443
cmp dword [eax + 0x3c], 0
je 0x4e29c6
push edi
mov ecx, ebx
call fcn.004e17bc
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e287f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e29e4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e29f0
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e9b4d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4e9b97
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e9b97
call fcn.004e93d9
test eax, eax
je 0x4e9b97
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.004105c0
xor eax, eax
inc eax
jmp 0x4e9daf
cmp dword [ebx + 4], 0x100
push edi
jne 0x4e9da6
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4e9c94
push 0x11
call edi
test ax, ax
jl 0x4e9c94
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e9c94
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4e9c07
cmp eax, 0x20
jbe 0x4e9c94
cmp eax, 0x24
jbe 0x4e9bfa
cmp eax, 0x26
je 0x4e9bfa
cmp eax, 0x28
jne 0x4e9c94
call fcn.004e93d9
test eax, eax
je 0x4e9c94
mov ecx, esi
call fcn.0041f627
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004e93d9
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4e9c3c
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004105c0
jmp 0x4e9da1
call fcn.0041d331
test eax, eax
je 0x4e9da1
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0041d369
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4e9c6a
xor edi, edi
jmp 0x4e9c6d
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0041d331
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4e9da1
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4e9d70
sub eax, 0x12
je 0x4e9d48
sub eax, 0xb
je 0x4e9cb6
dec eax
dec eax
jne 0x4e9da6
push 0x12
call edi
test ax, ax
jl 0x4e9da6
push 0x11
call edi
test ax, ax
jl 0x4e9da6
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e9da6
call fcn.004e93d9
test eax, eax
jne 0x4e9da1
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004e9353
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041bf97
test eax, eax
je 0x4e9da1
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041bf97
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4e9da1
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4e9d5c
push 0
call fcn.004e9353
mov ecx, esi
call fcn.0041cab4
test eax, eax
je 0x4e9da6
mov ecx, esi
call fcn.0041cab4
jmp 0x4e9d9a
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041bf97
test eax, eax
je 0x4e9da6
push dword [esi + 0x20]
call edi
push eax
call fcn.0041bf97
push 0
push esi
mov ecx, eax
call fcn.0041623f
mov ecx, eax
call fcn.0041f627
xor eax, eax
inc eax
jmp 0x4e9dae
push ebx
mov ecx, esi
call fcn.00419e2d
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f6fdb
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x537937
call fcn.00507191
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4f70b1
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4f70b1
cmp ebx, 0x43
je 0x4f701d
cmp ebx, 0x2d
jne 0x4f70b1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f70b1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0040dfa0
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.0040de30
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040e370
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00476728
call fcn.00507269
ret 4

Function at 0x4ff2f7
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x4ff337
test edi, edi
jl 0x4ff337
cmp al, 0x20
je 0x4ff32c
cmp word [ebp + 8], 0x71
jne 0x4ff337
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x5043e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x591d64]
jne 0x5043f1
repz ret
jmp fcn.0050c364
Function at 0x51e324
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.0050d5f2
and dword [ebp - 4], 0
cmp dword [0x599eb0], 0
mov ebx, eax
jne 0x51e3d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51e486
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56e078
push edi
call esi
test eax, eax
je 0x51e486
push eax
call fcn.0050d580
mov dword [esp], 0x56e068
push edi
mov dword [0x599eb0], eax
call esi
push eax
call fcn.0050d580
mov dword [esp], 0x56e054
push edi
mov dword [0x599eb4], eax
call esi
push eax
call fcn.0050d580
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x599eb8], eax
call esi
push eax
call fcn.0050d580
pop ecx
mov dword [0x599ec0], eax
test eax, eax
je 0x51e3d5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050d580
pop ecx
mov dword [0x599ebc], eax
mov eax, dword [0x599ebc]
cmp eax, ebx
je 0x51e42d
cmp dword [0x599ec0], ebx
je 0x51e42d
push eax
call fcn.0050d5fb
push dword [0x599ec0]
mov esi, eax
call fcn.0050d5fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51e42d
test edi, edi
je 0x51e42d
call esi
test eax, eax
je 0x51e424
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51e424
test byte [ebp - 0xc], 1
jne 0x51e42d
or dword [ebp + 0x10], 0x200000
jmp 0x51e466
mov eax, dword [0x599eb4]
cmp eax, ebx
je 0x51e466
push eax
call fcn.0050d5fb
pop ecx
test eax, eax
je 0x51e466
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51e466
mov eax, dword [0x599eb8]
cmp eax, ebx
je 0x51e466
push eax
call fcn.0050d5fb
pop ecx
test eax, eax
je 0x51e466
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x599eb0]
call fcn.0050d5fb
pop ecx
test eax, eax
je 0x51e486
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51e488
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1039477
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
mov byte [ebp - 1], 1
cmp ebx, 0xffffffff
jne 0x1039499
mov dword [ebp - 8], 0x57
jmp 0x10394fd
push esi
push 4
push 0x28
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jl 0x10394df
test byte [ebp - 0x18], 1
je 0x10394df
push edi
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x18], 0x80
call esi
pop edi
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
pop esi
test eax, eax
jge 0x10394fd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 8], eax
pop ebx
sete al
leave
ret 4

Function at 0x4283d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4283e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42848c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x428487
mov ecx, dword [ebp - 8]
push ecx
call fcn.004289b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x428446
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x428446
xor eax, eax
jmp 0x42848c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4283df
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

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

Function at 0x438c9d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop ecx
mov esi, 0xa67d7836
sub esi, 0xf196dc77
call fcn.00438ce7
and esi, ebx
and esi, ebx
xor dword [eax], ecx
add ebx, esi
add eax, 1
add ebx, 0xf549dcf1
cmp eax, edx
jne fcn.00438c9d
push 0x51d145eb
pop esi
add ebx, 0xed7f0a78
ret
Function at 0x40aa30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ee3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00463931
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40aab2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004616b0
mov eax, dword [eax]
push 0x4b51f0
push eax
call fcn.00454264
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463bbc
test bl, bl
je 0x40aab2
push 0x4b51f0
lea ecx, [esp + 0xc]
call fcn.00463f4c
push 0x4b8d6c
lea ecx, [esp + 0xc]
call fcn.00463f4c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40aaee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463bbc
jmp 0x40abb9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40ab72
lea edx, [esp + 0x7c]
push 0x4b8d68
push edx
call fcn.00454264
add esp, 8
test eax, eax
je 0x40ab72
lea eax, [esp + 0x7c]
push 0x4b8d64
push eax
call fcn.00454264
add esp, 8
test eax, eax
je 0x40ab72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ab02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00463bbc
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b3b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b412
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40b420
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46eebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c1830]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40b558
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b486
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463bbc
xor eax, eax
jmp 0x40b5cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00463cf9
push esi
lea ecx, [esp + 0xc]
call fcn.00463f88
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b5ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b3b0
test eax, eax
jne 0x40b5ad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040b3b0
test eax, eax
jne 0x40b5ad
lea eax, [esp + 0x14]
push 0x4b8d80
push eax
call fcn.00455330
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b58c
lea ecx, [esp + 0x14]
push 0x4b8d7c
push ecx
call fcn.004552b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b58c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b58f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463ca9
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b49e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463bbc
xor eax, eax
jmp 0x40b5cf
mov byte [esi], 0
push 0x4b8d78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00463bbc
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4