joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403455
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403494
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403494
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403494
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403494
cmp dword [ecx + 0x74], 0xe
jbe 0x403494
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401379
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013a0
cmp esi, eax
jb 0x4013ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4095c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [edx]
push ebx
push ebp
push esi
push edi
mov esi, 0x5ba0d0
mov dword [esp + 0x10], 0x10
mov edi, edi
xor ecx, dword [esi]
add esi, 4
mov eax, ecx
shr eax, 8
movzx edi, cl
mov ebp, ecx
movzx ebx, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5b90d0]
movzx eax, al
add ecx, dword [eax*4 + 0x5b94d0]
movzx eax, bx
xor ecx, dword [eax*4 + 0x5b98d0]
movzx eax, di
add ecx, dword [eax*4 + 0x5b9cd0]
xor ecx, edx
sub dword [esp + 0x10], 1
mov edx, ebp
jne 0x4095e0
mov eax, dword [0x5ba110]
xor eax, ecx
mov ecx, dword [0x5ba114]
xor ecx, edx
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret

Function at 0x409660
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [edx]
push ebx
push ebp
push esi
push edi
mov esi, 0x5ba114
mov dword [esp + 0x10], 0x10
mov edi, edi
xor ecx, dword [esi]
sub esi, 4
mov eax, ecx
shr eax, 8
movzx edi, cl
mov ebp, ecx
movzx ebx, al
shr eax, 8
mov ecx, eax
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5b90d0]
movzx eax, al
add ecx, dword [eax*4 + 0x5b94d0]
movzx eax, bx
xor ecx, dword [eax*4 + 0x5b98d0]
movzx eax, di
add ecx, dword [eax*4 + 0x5b9cd0]
xor ecx, edx
sub dword [esp + 0x10], 1
mov edx, ebp
jne 0x409680
mov eax, dword [0x5ba0d4]
xor eax, ecx
mov ecx, dword [0x5ba0d0]
xor ecx, edx
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
Function at 0x409700
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 8
cmp dword [0x5b90c8], 0
jne 0x4098bf
mov ecx, dword [0x5b1224]
mov eax, dword [0x5b1220]
mov edx, dword [0x5b1228]
mov dword [0x5ba0d4], ecx
mov ecx, dword [0x5b1230]
mov dword [0x5ba0d0], eax
mov eax, dword [0x5b122c]
mov dword [0x5ba0d8], edx
mov edx, dword [0x5b1234]
mov dword [0x5ba0e0], ecx
mov ecx, dword [0x5b123c]
mov dword [0x5ba0dc], eax
mov eax, dword [0x5b1238]
mov dword [0x5ba0e4], edx
mov edx, dword [0x5b1240]
mov dword [0x5ba0ec], ecx
mov ecx, dword [0x5b1248]
mov dword [0x5ba0e8], eax
mov eax, dword [0x5b1244]
mov dword [0x5ba0f0], edx
mov edx, dword [0x5b124c]
mov dword [0x5ba0f8], ecx
mov ecx, dword [0x5b1254]
push ebx
push ebp
push esi
mov dword [0x5ba0f4], eax
mov eax, dword [0x5b1250]
mov dword [0x5ba0fc], edx
mov edx, dword [0x5b1258]
mov dword [0x5ba104], ecx
mov ecx, dword [0x5b1260]
push edi
mov dword [0x5ba100], eax
mov eax, dword [0x5b125c]
mov dword [0x5ba108], edx
mov edx, dword [0x5b1264]
mov dword [0x5ba110], ecx
mov ecx, 0x400
mov esi, 0x5b1268
mov edi, 0x5b90d0
rep movsd dword es:[edi], dword [esi]
mov si, word [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [0x5ba10c], eax
mov dword [0x5ba114], edx
xor eax, eax
mov edx, 0x5ba0d0
mov dword [esp + 0x14], 0x12
lea esp, [esp]
xor ecx, ecx
lea ebx, [ecx + 4]
movsx ebp, ax
movsx ebp, byte [edi + ebp]
shl ecx, 8
inc eax
or ecx, ebp
cmp ax, si
jl 0x409829
xor eax, eax
sub ebx, 1
jne 0x409815
xor dword [edx], ecx
add edx, 4
sub dword [esp + 0x14], 1
jne 0x409810
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov esi, 0x5ba0d4
lea edi, [ebx + 9]
lea esp, [esp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004095c0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi - 4], edx
mov dword [esi], eax
add esp, 8
add esi, 8
sub edi, 1
jne 0x409850
mov esi, 0x5b90d4
lea ebx, [edi + 4]
nop
mov edi, 0x80
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004095c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esp, 8
add esi, 8
sub edi, 1
jne 0x409885
sub ebx, 1
jne 0x409880
pop edi
pop esi
pop ebp
mov dword [0x5b90c8], 1
pop ebx
xor eax, eax
add esp, 8
ret
Function at 0x40c380
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x55d65b
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x4e8], eax
push esi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x4f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x504]
push 0
push 0
push 0
lea ecx, [esp + 0x54]
call fcn.005135fd
mov eax, 0xffffff
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push 0x208
lea eax, [esp + 0xe4]
push eax
push 0
mov dword [esp + 0x508], 0
call fcn.00412ad0
push 1
lea ecx, [esp + 0xf0]
push ecx
push 0x40
lea edx, [esp + 0x20]
push edx
push str.Custom_colors
push str.Options
call fcn.0044fab0
or dword [esp + 0xf4], 3
lea eax, [esp + 0x2c]
mov dword [esp + 0xf0], eax
mov eax, dword [esi]
add esp, 0x24
cmp eax, 0xffffffff
je 0x40c476
mov dword [esp + 0xc8], eax
lea ecx, [esp + 0x48]
call fcn.005135b3
cmp eax, 1
jne 0x40c4d1
mov ecx, dword [esp + 0xc8]
lea edx, [esp + 0xe0]
push edx
push 0x40
lea eax, [esp + 0x10]
push eax
push str.Custom_colors
push str.Options
mov dword [esi], ecx
call fcn.0044fc20
add esp, 0x14
lea ecx, [esp + 0x48]
mov dword [esp + 0x4fc], 0xffffffff
mov dword [esp + 0x48], vtable.CCommonDialog.0
call fcn.004ff9d7
mov eax, 1
jmp 0x40c4ef
lea ecx, [esp + 0x48]
mov dword [esp + 0x4fc], 0xffffffff
mov dword [esp + 0x48], vtable.CCommonDialog.0
call fcn.004ff9d7
xor eax, eax
mov ecx, dword [esp + 0x4f4]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.0053f73f
add esp, 0x4f8
ret

Function at 0x410be0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410c34
mov edx, dword [str.EDITPLUS.EXE]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x411ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [0x5ba378]
mov ecx, dword [eax + 0xdc]
push ebx
mov ebx, dword [esp + 0x274]
push esi
push ecx
lea edx, [esp + 0x6c]
push 0x104
push edx
call fcn.0053fe1c
mov eax, dword [0x5ba378]
add esp, 0xc
cmp dword [eax + 0xc4], 0x3b5
jne 0x411f43
mov esi, str.license_kr.txt
jmp 0x411fb2
push 0x5c
lea ecx, [esp + 0x10]
push 0
push ecx
mov esi, str.license.txt
call fcn.0053ff80
push 9
call fcn.004358a0
push 0x572ae4
lea edx, [esp + 0x3c]
push 0x20
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0x190
mov byte [esp + 0x3f], 1
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0x31
call fcn.0053fe1c
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 0
push eax
push 0x30
push ebx
mov dword [0x5ba36c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
lea ecx, [esp + 0x6c]
push 0x104
push ecx
call fcn.0053fd9f
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push bind
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41200f
push eax
push 0x10
push 4
call fcn.0050c4d3
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0053f73f
add esp, 0x26c
ret
push ebp
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0054099d
add esp, 4
push 0
push 0
push 2
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [edi - 2]
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
cdq
sub eax, edx
push ebp
xor edx, edx
push edx
push 0xc
sar eax, 1
push ebx
mov word [ebp + eax*2 - 2], dx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x278]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0053f73f
add esp, 0x26c
ret
Function at 0x4121b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55dac8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], vtable.CMenu.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], esi
call fcn.0050b420
movzx ecx, word [esp + 0x4c]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [esp + 0x18]
call fcn.00515b77
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00515b42
mov edi, dword [esp + 0x54]
mov ebx, eax
cmp edi, esi
je 0x412249
mov ebp, dword [esp + 0x58]
test ebp, ebp
jle 0x412249
lea esp, [esp]
mov eax, dword [edi + esi*4]
test eax, eax
jl 0x412244
push 0
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
inc esi
cmp esi, ebp
jl 0x412230
mov ecx, dword [ebx + 4]
push ecx
xor esi, esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov edi, eax
test edi, edi
jle 0x4122a5
cmp esi, edi
mov ebp, dword [sym.imp.USER32.dll_GetMenuItemID]
jge 0x412285
mov edx, dword [ebx + 4]
push esi
push edx
call ebp
test eax, eax
jne 0x412285
mov eax, dword [ebx + 4]
push 0x400
push esi
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
dec edi
cmp esi, edi
jl 0x412265
inc esi
cmp esi, edi
jge 0x4122a0
lea ebx, [ebx]
mov ecx, dword [ebx + 4]
push esi
push ecx
call ebp
test eax, eax
je 0x4122a0
inc esi
cmp esi, edi
jl 0x412290
inc esi
cmp esi, edi
jl 0x412265
mov edx, dword [ebx + 4]
mov eax, dword [0x5ed0c0]
mov ecx, dword [eax + 0x1820]
push edx
mov edx, dword [eax + 0x181c]
push ecx
push edx
call fcn.004ea2d0
mov eax, dword [esp + 0x5c]
add esp, 0xc
test eax, eax
je 0x412314
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x4c]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push 0x42
push edx
mov dword [esp + 0x34], 0x14
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x41232e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push 0
push eax
push ecx
push edx
push 2
mov ecx, ebx
call fcn.00501cd6
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x14], vtable.CMenu.0
call fcn.00515bcf
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x412440
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
push eax
call fcn.00540a67
push 0x410
call fcn.0054099d
mov ecx, dword [esi + 0xdc]
push ecx
push 0x208
push eax
mov dword [esi + 0x64], eax
call fcn.0053fe1c
mov edx, dword [esi + 0x64]
push str.EDITPLUS.chm
push 0x208
push edx
call fcn.0053fd9f
mov eax, dword [esi + 0xc4]
add esp, 0x20
test eax, eax
je 0x4124de
push eax
mov eax, dword [esi + 0xdc]
push eax
lea ecx, [esp + 0xc]
push str._s_d.chm
push ecx
call fcn.00411d10
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4124de
mov ecx, dword [esi + 0x64]
lea eax, [esp + 4]
push eax
push 0x208
push ecx
call fcn.0053fe1c
add esp, 0xc
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.0053f73f
add esp, 0x414
ret
Function at 0x4161b0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x418
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push edi
mov edi, ecx
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x208
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x416258
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0xc]
push eax
call esi
test eax, eax
je 0x416257
mov ecx, dword [0x5ba378]
mov edx, dword [ecx + 0xd8]
push edx
call esi
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x416220
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416220
sub eax, edx
sar eax, 1
cmp eax, 3
jle 0x416247
lea eax, [esp + eax*2 + 0xa]
mov ecx, 0x5c
cmp cx, word [eax]
jne 0x416247
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0xc]
push eax
lea ecx, [edi + 0xf8]
call fcn.00402230
pop esi
mov ecx, dword [esp + 0x418]
pop edi
xor ecx, esp
call fcn.0053f73f
add esp, 0x418
ret 4

Function at 0x416790
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x55dd68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [esp + 0x30]
test eax, eax
jne 0x416832
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4167f0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x28]
push edx
push edi
push 1
push 0
push 0x57bc10
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x28]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x416832
test esi, esi
je 0x4168b7
cmp ebp, 0x80000000
jne 0x4168d7
push 0x5730a8
lea ecx, [esp + 0x30]
call fcn.004022b0
mov dword [esp + 0x20], 0
test ebx, ebx
jne 0x41685c
xor eax, eax
jmp 0x416870
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416861
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.00401fb0
mov edx, dword [esp + 0x2c]
push edi
push edx
push reloc.WSOCK32.dll_accept
call fcn.00416790
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
je 0x4168be
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4168d9
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x417ae0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x55f69b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov eax, dword [esp + 0x430]
push eax
lea ecx, [esp + 0xc]
call fcn.004022b0
lea eax, [esp + 8]
push eax
mov dword [esp + 0x42c], 0
call fcn.004147d0
mov edx, dword [esp + 0xc]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x5731c4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or esi, 0xffffffff
cmp eax, esi
jne 0x417ba4
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x428], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x417ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x417bdf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x428], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x417bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0053f73f
add esp, 0x424
ret
Function at 0x421ce0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x3ec
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x3e8], eax
mov eax, dword [0x5b3520]
push esi
mov esi, dword [esp + 0x3f4]
push edi
push eax
lea ecx, [esp + 0xc]
push 0x1f4
push ecx
call fcn.0053fe1c
push esi
lea edx, [esp + 0x18]
push 0x1f4
push edx
call fcn.0053fd9f
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x18
lea eax, [esp + 8]
push eax
push reloc.WSOCK32.dll_bind
call esi
lea ecx, [esp + 8]
push ecx
push reloc.WSOCK32.dll_accept
mov edi, eax
call esi
test edi, edi
pop edi
pop esi
je 0x421d66
test eax, eax
je 0x421d66
xor eax, eax
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.0053f73f
add esp, 0x3ec
ret
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
mov eax, 1
call fcn.0053f73f
add esp, 0x3ec
ret

Function at 0x424440
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x824
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
mov esi, dword [esp + 0x830]
push edi
mov edi, dword [esp + 0x83c]
push edi
call fcn.0044c010
mov ebx, dword [esp + 0x83c]
add esp, 4
test eax, eax
je 0x42451c
push edi
push ebx
push esi
call fcn.0053fe1c
add esp, 0xc
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x42456a
push eax
push 0x208
lea eax, [esp + 0x424]
push eax
push esi
call fcn.0044cdf0
mov ecx, dword [0x5ba380]
push ecx
lea edx, [esp + 0x20]
push 0x208
push edx
call fcn.0053fe1c
lea eax, [esp + 0x28]
push eax
call fcn.00410df0
lea ecx, [esp + 0x43c]
push ecx
mov edx, 0x208
sub edx, eax
push edx
lea eax, [esp + eax*2 + 0x34]
push eax
call fcn.0053fe1c
add esp, 0x2c
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
je 0x42456a
lea edx, [esp + 0xc]
push edx
push ebx
push esi
call fcn.0053fe1c
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0053f73f
add esp, 0x824
ret
mov eax, dword [0x5ba380]
push eax
push ebx
push esi
call fcn.0053fe1c
push esi
call fcn.00410df0
mov ecx, ebx
push edi
sub ecx, eax
push ecx
lea edx, [esi + eax*2]
push edx
call fcn.0053fe1c
add esp, 0x1c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42456a
mov eax, dword [0x5ba378]
mov ecx, dword [eax + 0xdc]
push ecx
push ebx
push esi
call fcn.0053fe1c
push edi
push ebx
push esi
call fcn.0053fd9f
add esp, 0x18
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f73f
add esp, 0x824
ret
Function at 0x42f840
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x5c30e4]
push ebp
push esi
push edi
push eax
mov ebp, ecx
call fcn.004ff96a
add esp, 4
cmp dword [0x5c30fc], 0
mov dword [0x5c30e4], 0
je 0x42f86e
mov edi, dword [ebp + 0x140]
jmp 0x42f874
mov edi, dword [ebp + 0x38c]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 4
push esi
push eax
push edi
mov dword [0x5c30e4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x5c30e4]
xor ecx, ecx
mov word [edx + eax*2], cx
push 1
mov ecx, ebp
call fcn.00502b1b
pop edi
pop esi
pop ebp
ret

Function at 0x42fa10
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x5c30e4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.004ff96a
mov ecx, dword [0x5c30e0]
xor edi, edi
push ecx
mov dword [0x5c30e4], edi
call fcn.004ff96a
add esp, 8
mov dword [0x5c30e0], edi
cmp dword [0x5c30f8], edi
je 0x42fa53
mov edi, dword [esi + 0x240]
jmp 0x42fa59
mov edi, dword [esi + 0x4cc]
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push edi
call ebp
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
add esp, 4
push esi
push eax
push edi
mov dword [0x5c30e4], eax
call ebx
mov edx, dword [0x5c30e4]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [0x5c30f8], ecx
je 0x42fab0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x1ec]
jmp 0x42faba
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 0x438]
push edi
call ebp
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 4
push esi
push eax
push edi
mov dword [0x5c30e0], eax
call ebx
mov edx, dword [0x5c30e0]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [esp + 0x10]
push 1
call fcn.00502b1b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret