joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x455ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x470a10]
push esi
mov dword [esp + 4], eax
mov eax, dword [ecx + 0xc]
xor esi, esi
cmp eax, 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
jge 0x406ac6
push str.Delete_file_list_not_find
call fcn.00404400
add esp, 4
jmp 0x406b96
cmp eax, esi
jle 0x406b96
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edi, [ecx + 4]
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
call fcn.00405fe0
mov eax, dword [eax]
push 0
push eax
call fcn.0041ffcf
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0043f295
test bl, bl
push esi
je 0x406b57
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call fcn.00405fe0
mov eax, dword [eax]
push eax
call ebp
test eax, eax
lea ecx, [esp + 0x18]
sete bl
call fcn.0043f295
test bl, bl
je 0x406b86
lea eax, [esp + 0x1c]
push esi
push eax
mov ecx, edi
call fcn.00405fe0
mov eax, dword [eax]
mov byte [esp + 0x30], 1
push eax
push str.File_delete_fail.___s_
call fcn.00404400
add esp, 8
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x1c]
jmp 0x406b81
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00405fe0
mov eax, dword [eax]
mov byte [esp + 0x30], 2
push eax
push str.Delete_file_not_find.___s_
call fcn.00404400
add esp, 8
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x20]
call fcn.0043f295
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x406ada
pop edi
pop ebp
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043f295
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x407a40
Capabilities:
Create http request

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
push str.ShieldLab
mov dword [esi], 0x459e54
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov eax, esi
pop edi
pop esi
ret

Function at 0x407b40
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x407b59
push str.Internet_connect_state_not_good.
call fcn.00404400
add esp, 4
xor eax, eax
pop ecx
ret
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x407b7b
push str.Internet_connect_state_not_good.
call fcn.00404400
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x409cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4564d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0xc]
push 0x15
push eax
push 0
mov dword [esp + 0x124], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [esp + 0x11c]
pop edi
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409d4a
lea ecx, [esp + 4]
push eax
push ecx
push str._s_s_update
push 0x475354
call fcn.0043620d
mov edx, dword [esp + 0x128]
add esp, 0x10
lea eax, [esp + 4]
push str.Update.ini
push edx
push eax
push str._s_s_update_s
push 0x47535c
call fcn.0043620d
add esp, 0x14
jmp 0x409dc5
lea ecx, [esp]
push esi
push ecx
call fcn.004367b6
push 0
lea ecx, [esp + 8]
call fcn.004367f5
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 8]
call fcn.004367f5
mov eax, dword [eax + 8]
push esi
lea edx, [esp + 0xc]
push eax
push edx
push str._s_d_d_update
push 0x475354
call fcn.0043620d
add esp, 0x14
lea ecx, [esp + 4]
push 0
call fcn.004367f5
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 8]
call fcn.004367f5
mov eax, dword [eax + 8]
push str.Update.ini
push esi
push eax
lea eax, [esp + 0x14]
push eax
push str._s_d_d_update_s
push 0x47535c
call fcn.0043620d
add esp, 0x18
pop esi
lea ecx, [esp + 0x118]
push ecx
mov ecx, 0x475358
call fcn.0043f3ce
lea edx, [esp + 0x11c]
mov ecx, 0x475364
push edx
call fcn.0043f3ce
lea ecx, [esp + 0x118]
mov byte [esp + 0x110], 0
call fcn.0043f295
lea ecx, [esp + 0x11c]
mov dword [esp + 0x110], 0xffffffff
call fcn.0043f295
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x40a8a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4565f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x470a10]
mov dword [esp], eax
lea ecx, [esp]
mov dword [esp + 0xc], 0
call fcn.0043f220
push 0x475250
lea ecx, [esp + 4]
call fcn.0043f41e
mov ecx, dword [esp]
push str.TMP.
mov eax, dword [ecx - 8]
lea ecx, [esp + 4]
add eax, 0xfffffffd
push eax
call fcn.004359bc
mov edx, dword [esp]
push 0
push edx
call fcn.0041ffcf
add esp, 8
test eax, eax
jne 0x40a915
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp]
push ecx
push 0x475250
call fcn.00403cd0
add esp, 8
test eax, eax
jne 0x40a95f
push str.Tmp_Exe_File_Copy_Failed.___App_ExecuteTmpProgram__
call fcn.00404400
mov edx, dword [esp + 4]
add esp, 4
push edx
push 0x475250
push str.From_:__s._To_:__s
call fcn.00404400
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0x86
call fcn.00446399
jmp 0x40a9a1
push str.Execute_File_Copy_Success
call fcn.004043a0
add esp, 4
lea ecx, [esp]
push 0x46eab0
call fcn.0043f671
mov eax, dword [esp + 0x14]
lea ecx, [esp]
push eax
call fcn.0043f671
push ecx
lea edx, [esp + 4]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0043f00a
call fcn.0040d900
add esp, 4
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.0043f295
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40d900
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x456af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x68]
push eax
push str.Process_Execute____s
call fcn.00404400
add esp, 8
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call fcn.0043f295
mov ecx, dword [esp + 0x58]
pop edi
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x40dee0
Capabilities:
Access peb ldr_data
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x456be0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x470a10]
push ebx
push esi
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.0043f41e
lea ecx, [esp + 0x14]
call fcn.00414680
lea edx, [esp + 0x40]
push 1
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.00435d1b
mov eax, dword [eax]
push 0x46e1b8
push eax
call fcn.0041fdfe
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
setne bl
call fcn.0043f295
test bl, bl
je 0x40df67
push 0x46e1b8
lea ecx, [esp + 0xc]
call fcn.0043f671
push 0x46f0b4
lea ecx, [esp + 0xc]
call fcn.0043f671
mov eax, dword [esp + 8]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00414743
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40e030
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x1c]
call fcn.00414963
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.0041492a
test eax, eax
jne 0x40e026
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x38]
test eax, eax
je 0x40e00a
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
call fcn.00414a32
mov eax, dword [eax]
mov byte [esp + 0x40], bl
push eax
call fcn.0040dee0
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.0043f295
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00414a32
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 0x14]
jmp 0x40e021
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.00414a32
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x18]
call fcn.0043f295
test edi, edi
jne 0x40df9d
pop edi
pop ebp
push 0x5c
lea ecx, [esp + 0xc]
call fcn.00435e65
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.00435d97
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 3
call fcn.0043f3ce
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call fcn.0043f295
mov ecx, dword [esp + 8]
push ecx
call esi
lea ecx, [esp + 0x14]
call fcn.004146f9
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.004146bd
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.0043f295
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x40e130
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x475668]
lea ecx, [esp + 8]
push eax
push 0x100
push ecx
push str.Auto_Update
push str.Title_Name
push str.INFORMATION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x46e5dc
mov ecx, esi
call fcn.0043e79f
pop edi
pop esi
add esp, 0x100
ret
Function at 0x411740
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41174f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x46f190]
test eax, eax
je 0x41175d
call fcn.004116e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x41185f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x477a70]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477a70]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477a70]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477a70]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477a70]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477a70]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477a70]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x477a70]
xor eax, ecx
inc esi
dec edi
jne 0x411777
pop edi
test edx, edx
je 0x411881
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x477a70]
xor eax, ecx
inc esi
dec edx
jne 0x411863
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41ffcf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ffef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042393d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x420012
test byte [esp + 8], 2
je 0x420012
call fcn.004239b0
mov dword [eax], 0xd
call fcn.004239b9
mov dword [eax], 5
jmp 0x41ffeb
xor eax, eax
ret

Function at 0x420bac
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jbe 0x420bd8
push esi
mov esi, dword [esp + 0xc]
mov al, cl
mov dl, cl
imul cl
xor dl, 1
and dl, 7
xor al, dl
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jb 0x420bbc
pop esi
pop edi
ret
Function at 0x435080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004205b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43514b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43514b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4350fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x435109
or bh, 8
and edi, 0x8000000
je 0x435124
mov eax, dword [0x47b6bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43514b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43554b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43556f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43558a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x43bd9a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43bdd2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043f73c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043f714
jmp 0x43bdde
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x43db9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43dbde
call fcn.0044c4da
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43dbde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43dbd5
xor eax, eax
jmp 0x43dbe6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043dbec
pop edi
pop esi
pop ebx
ret 4

Function at 0x44255d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x44258d
push edi
call ebx
push eax
call fcn.00441dc7
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x4425b7
test byte [ebp - 4], 1
je 0x4425b7
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4425b7
push edi
call ebx
push eax
call fcn.00441dc7
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x44265d
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004424aa
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x4425e9
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004424aa
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x4425ff
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004424aa
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x442629
push 0
call ebx
push eax
call fcn.00441dc7
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x442647
push eax
call ebx
push eax
call fcn.00441dc7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x44265b
push eax
call ebx
push eax
call fcn.00441dc7
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x442684
test byte [ebp - 4], 1
jne 0x442684
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x442684
push edi
call ebx
push eax
call fcn.00441dc7
pop edi
pop ebx
leave
ret 8
Function at 0x4547e5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x408120
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e38b
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.004610b1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4081a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045eb67
mov eax, dword [eax]
push 0x54f1d0
push eax
call fcn.004518b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046133c
test bl, bl
je 0x4081a2
push 0x54f1d0
lea ecx, [esp + 0xc]
call fcn.00461718
push 0x552d30
lea ecx, [esp + 0xc]
call fcn.00461718
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 0x4081de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046133c
jmp 0x4082a9
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 0x408262
lea edx, [esp + 0x7c]
push 0x552d2c
push edx
call fcn.004518b4
add esp, 8
test eax, eax
je 0x408262
lea eax, [esp + 0x7c]
push 0x552d28
push eax
call fcn.004518b4
add esp, 8
test eax, eax
je 0x408262
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 0x4081f2
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.0046133c
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 0x408aa0
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 0x408b02
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