joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054a0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a4
mov eax, dword [0x476110]
xor eax, esp
mov dword [esp + 0x29c], eax
push 0x103
lea eax, [esp + 0x195]
push 0
push eax
mov byte [esp + 0x19c], 0
call fcn.0044a310
add esp, 0xc
lea ecx, [esp]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4054fa
xor al, al
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.004468f0
add esp, 0x2a4
ret
push 0x104
lea edx, [esp + 0x194]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4054e3
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4054e3
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
je 0x4054e3
push eax
mov ecx, esi
call fcn.00402c80
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x29c]
xor ecx, esp
mov al, 1
call fcn.004468f0
add esp, 0x2a4
ret

Function at 0x406770
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x45df38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401900
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4067c6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00401370
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401900
cmp dword [esp + 0x24], 8
jb 0x40680f
mov edx, dword [esp + 0x10]
push edx
call fcn.00446950
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x406ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d69b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.l.5.0
mov dword [esi + 0x20], vtable.l.4.0
mov dword [esi + 0x30], vtable.l.3.0
mov dword [esi + 0x34], vtable.l.2.0
mov dword [esi + 0x38], vtable.l.1.0
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], 0
call fcn.004106ae
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.004132c3
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x406be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45d6fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00413517
push 0x53
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], vtable.B.0
call fcn.00412be9
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x30], vtable.5.0
mov dword [esi + 0x34], vtable.0.0
mov dword [esi + 0x38], vtable.l.0
lea ecx, [esi + 0x3c]
mov dword [esi], vtable.l.5.0
mov dword [esi + 0x20], vtable.l.4.0
mov dword [esi + 0x30], vtable.l.3.0
mov dword [esi + 0x34], vtable.l.2.0
mov dword [esi + 0x38], vtable.l.1.0
call fcn.0040fd69
mov dword [esi + 0x3d4], edi
mov dword [esi + 0x3d8], edi
mov dword [esi + 0x3dc], edi
mov dword [esi + 0x3e0], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40cca0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40ccbd
push eax
call edi
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40ccca
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x1c]
mov dword [esi + 0x20], ebx
mov dword [edi], ebx
mov dword [esi + 0x30], ecx
cmp eax, ebx
jne 0x40cd2a
xor edx, edx
push 0xb
mov eax, 0x46c0d0
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
call fcn.00401510
cmp dword [esp + 0x24], 8
jb 0x40cd1f
mov eax, dword [esp + 0x10]
push eax
call fcn.00446950
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc
cmp dword [esi], 1
mov dword [esi + 0x38], eax
jne 0x40cd5a
lea ecx, [esp + 0xc]
cmp dword [esi + 8], ebx
je 0x40cd42
mov eax, 0x46c0e8
jmp 0x40cd96
mov eax, 0x46c104
call fcn.00401300
cmp dword [esp + 0x24], 8
jb 0x40cdaf
mov edx, dword [esp + 0x10]
push edx
jmp 0x40cda7
push edi
push 4
push esi
push 0x40cfc0
push ebx
push ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xf
push eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [edi], ebx
je 0x40cdaf
mov dword [esi], 1
mov eax, 0x46c11c
lea ecx, [esp + 0xc]
call fcn.00401300
cmp dword [esp + 0x24], 8
jb 0x40cdaf
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00446950
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x40cde0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push edi
mov edi, ecx
cmp dword [edi], 0
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x2c], ecx
je 0x40ce6d
push esi
lea esi, [edi + 0x20]
push esi
push 0
push edi
push 0x40d030
push 0
push 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esi], 0
mov dword [edi + 0x18], eax
je 0x40ce60
xor edx, edx
push 0x16
mov eax, str.Pbk_ah
lea esi, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], dx
call fcn.00401510
cmp dword [esp + 0x20], 8
jb 0x40ce59
mov eax, dword [esp + 0xc]
push eax
call fcn.00446950
add esp, 4
mov dword [edi + 8], 1
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret 8
xor eax, eax
pop edi
add esp, 0x1c
ret 8
Function at 0x40d460
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45e108
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x60]
cmp dword [ebp + 0x18], 8
lea esi, [ebp + 4]
jb 0x40d49a
mov eax, dword [esi]
jmp 0x40d49c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
cmp dword [edi + 0x4c], ebx
jne 0x40d4f9
xor eax, eax
mov word [esp + 0x1c], ax
push 0xf
mov eax, 0x46c1c8
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.00401510
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x70]
mov eax, esi
mov dword [esp + 0x60], ebx
call fcn.00401900
cmp dword [esp + 0x30], 8
jb 0x40d4f2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00446950
add esp, 4
xor al, al
jmp 0x40d651
cmp dword [edi + 0x90], ebx
jne 0x40d50c
mov ecx, edi
call sym.Install.exe_protected:_bool___thiscall_CShortcut::InitUrlInstance_void_
test al, al
je 0x40d4f2
cmp dword [edi + 0x50], 8
jb 0x40d517
mov ecx, dword [edi + 0x3c]
jmp 0x40d51a
lea ecx, [edi + 0x3c]
mov eax, dword [edi + 0x90]
mov edx, dword [eax]
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
cmp eax, ebx
jge 0x40d581
xor ecx, ecx
push 0xc
mov eax, str.SetURL
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
call fcn.00401510
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x70]
mov eax, esi
mov dword [esp + 0x60], 1
call fcn.00401900
cmp dword [esp + 0x30], 8
jb 0x40d4f2
mov edx, dword [esp + 0x1c]
push edx
call fcn.00446950
add esp, 4
xor al, al
jmp 0x40d651
mov dword [esp + 0x60], ebx
cmp dword [edi + 0x68], ebx
je 0x40d5cd
mov eax, dword [edi + 0x90]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push 0x46af54
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40d5cd
cmp dword [edi + 0x6c], 8
jb 0x40d5b0
mov ecx, dword [edi + 0x58]
jmp 0x40d5b3
lea ecx, [edi + 0x58]
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi + 0x90]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push 0x46afa4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40d4f2
cmp dword [ebp + 0x18], 8
jb 0x40d5fa
mov ecx, dword [esi]
jmp 0x40d5fc
mov ecx, esi
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push 1
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jge 0x40d64f
mov eax, 0x46c204
lea ecx, [esp + 0x34]
call fcn.00401300
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x70]
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], 2
call fcn.00401900
lea esi, [esp + 0x34]
call fcn.004019b0
xor al, al
jmp 0x40d651
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
Function at 0x40d8e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45e176
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x476110]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x26c]
xor eax, eax
mov edi, ecx
push 0x208
push eax
lea ecx, [esp + 0x56]
push ecx
mov dword [esp + 0x1c], edi
mov word [esp + 0x58], ax
call fcn.0044a310
mov esi, dword [esp + 0x27c]
add esp, 0xc
push 0
push esi
lea edx, [esp + 0x54]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40d9b1
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
push 0xa
mov eax, 0x46c24c
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
call fcn.00401510
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x70]
mov eax, esi
mov dword [esp + 0x26c], 0
call fcn.00401900
cmp dword [esp + 0x2c], 8
jb 0x40d9aa
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00446950
add esp, 4
xor al, al
jmp 0x40dadc
cmp esi, 0x1a
jne 0x40d9d8
lea edi, [esp + 0x4c]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d9c0
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x4c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d9e0
cmp dword [ebx + 0x18], 8
mov edx, dword [0x46b464]
mov dword [edi], edx
jb 0x40d9ff
mov eax, dword [ebx + 4]
jmp 0x40da02
lea eax, [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da04
lea edi, [esp + 0x4c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40da20
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40da20
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40da43
mov ecx, dword [str..lnk]
mov edx, dword [0x46bac4]
mov dword [eax], ecx
mov cx, word [0x46bac8]
mov dword [eax + 4], edx
xor edx, edx
mov word [eax + 8], cx
lea eax, [esp + 0x4c]
mov word [esp + 0x34], dx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
call fcn.00401510
mov ecx, dword [esp + 0x10]
mov eax, esi
push eax
mov dword [esp + 0x268], 1
call sym.Install.exe_public:_bool___thiscall_CShortcut::CreateFileLink_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
cmp dword [esp + 0x48], 8
mov bl, al
jb 0x40dada
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00446950
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004468f0
add esp, 0x258
ret 8
Function at 0x40db10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45e176
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x476110]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x476110]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x26c]
xor eax, eax
mov edi, ecx
push 0x208
push eax
lea ecx, [esp + 0x56]
push ecx
mov dword [esp + 0x1c], edi
mov word [esp + 0x58], ax
call fcn.0044a310
mov esi, dword [esp + 0x27c]
add esp, 0xc
push 0
push esi
lea edx, [esp + 0x54]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40dbe1
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
push 0xa
mov eax, 0x46c24c
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
call fcn.00401510
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x70]
mov eax, esi
mov dword [esp + 0x26c], 0
call fcn.00401900
cmp dword [esp + 0x2c], 8
jb 0x40dbda
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00446950
add esp, 4
xor al, al
jmp 0x40dd0c
cmp esi, 0x1a
jne 0x40dc08
lea edi, [esp + 0x4c]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dbf0
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x4c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc10
cmp dword [ebx + 0x18], 8
mov edx, dword [0x46b464]
mov dword [edi], edx
jb 0x40dc2f
mov eax, dword [ebx + 4]
jmp 0x40dc32
lea eax, [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc34
lea edi, [esp + 0x4c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40dc50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40dc50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40dc73
mov ecx, dword [str..url]
mov edx, dword [0x46c2c0]
mov dword [eax], ecx
mov cx, word [0x46c2c4]
mov dword [eax + 4], edx
xor edx, edx
mov word [eax + 8], cx
lea eax, [esp + 0x4c]
mov word [esp + 0x34], dx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dcc0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
call fcn.00401510
mov ecx, dword [esp + 0x10]
mov eax, esi
push eax
mov dword [esp + 0x268], 1
call sym.Install.exe_public:_bool___thiscall_CShortcut::CreateUrlLink_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
cmp dword [esp + 0x48], 8
mov bl, al
jb 0x40dd0a
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00446950
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004468f0
add esp, 0x258
ret 8
Function at 0x40df60
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x476110]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0044a310
mov esi, dword [esp + 0x230]
add esp, 0xc
push 0
push esi
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp esi, 0x1a
jne 0x40dfd8
lea edi, [esp + 0xc]
add edi, 0xfffffffe
jmp 0x40dfc0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dfc0
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0xc]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dfe0
cmp dword [ebx + 0x18], 8
mov eax, dword [0x46b464]
mov dword [edi], eax
jb 0x40dffe
mov eax, dword [ebx + 4]
jmp 0x40e001
lea eax, [ebx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e003
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e020
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e020
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [esp + 8]
pop esi
add eax, 0xfffffffe
cmp dword [esp + 0x220], 0
pop ebx
jne 0x40e080
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e050
mov ecx, dword [str..url]
mov edx, dword [0x46c2c0]
mov dword [eax], ecx
mov cx, word [0x46c2c4]
mov dword [eax + 4], edx
mov word [eax + 8], cx
jmp 0x40e0a8
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40e080
mov edx, dword [str..lnk]
mov ecx, dword [0x46bac4]
mov dword [eax], edx
mov dx, word [0x46bac8]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov al, 1
call fcn.004468f0
add esp, 0x210
ret

Function at 0x40e367
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x40e37d
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x40e389
or edi, 1
push 1
call esi
test ax, ax
jge 0x40e395
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x40e3a1
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x40e3ad
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x410928
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x41094d
cmp ebx, dword [esi + 0x58]
je 0x41094d
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x58]
cmp ebx, eax
je 0x410a0f
push edi
test eax, eax
je 0x4109a0
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x58]
mov ecx, esi
call fcn.004102e4
mov dword [esi + 0x58], edi
test ebx, ebx
je 0x410a0e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x410a0e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x410a0e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe0]
test al, al
je 0x410a0e
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x58], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x11c]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x58]
mov ecx, esi
call fcn.004102e4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4177c2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4177cd
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x417888
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x461720]
inc edx
sub edi, 8
dec esi
jne 0x4177ed
pop ebx
test edi, edi
je 0x4178a1
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x461720]
inc edx
dec edi
jne 0x41788c
pop edi
not eax
pop esi
ret

Function at 0x417d38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x417d6c
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417d67
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x417d94
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x417d7d
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00449e70
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x418b31
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x476110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x418bdb
movzx ecx, word [esi]
test cx, cx
je 0x418bdb
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x418b6f
cmp cx, 0x5c
jne 0x418b71
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x418b63
cmp eax, esi
je 0x418baf
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044ad7f
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00418b31
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0044a3b8
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0044a38a
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004468f0
leave
ret
Function at 0x41a10c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41a187
cmp dword [esi + 4], 0xffffffff
jne 0x41a187
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x46b464
push edi
call fcn.0044a38a
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x41a159
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x41a159
mov eax, 0x2000000
jmp 0x41a18c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417b4e
add esp, 0x10
test eax, eax
jne 0x41a177
mov eax, dword [ebp + 0x10]
jmp 0x41a18c
push eax
call fcn.00419d08
mov dword [esi], eax
mov eax, dword [0x477cc0]
pop ecx
jmp 0x41a18c
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc