joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403725
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040290b
test eax, eax
je 0x4037ac
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
jne 0x40375b
add esi, 0x84
push ebp
push esi
push str.Couldnt_open_service_manager
jmp 0x403782
lea ebx, [esi + 0x84]
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x403785
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x4037bb
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x4037b1
push 1
pop eax
jmp 0x4037c3
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x40381c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x28], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
jne 0x403867
leave
ret
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
leave
ret

Function at 0x403877
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 8]
push 1
pop eax
shl eax, cl
test edi, eax
je 0x403908
mov al, cl
mov byte [ebp - 3], 0x3a
add al, 0x41
mov byte [ebp - 2], 0x5c
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x403908
push 6
lea eax, [ebp - 0x10]
push str..C:
push eax
call fcn.00451bc0
mov al, byte [ebp - 4]
add esp, 0xc
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x10]
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0xc0000000
push eax
mov byte [ebp - 0xa], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x403908
mov edx, dword [ebp + 8]
mov cl, byte [ebp - 4]
push eax
mov byte [esi + edx], cl
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jb 0x40388f
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403988
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
and byte [ebp - 0x200], 0
push esi
push edi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
and byte [ebp - 0x300], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x2ff]
rep stosd dword es:[edi], eax
and byte [ebp - 0x100], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push eax
call fcn.00452490
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.00452490
lea eax, [ebp - 0x100]
xor esi, esi
push eax
call fcn.004525b0
add esp, 0x14
test eax, eax
jbe 0x403a46
xor ecx, ecx
lea eax, [ebp + esi - 0x200]
mov cl, byte [ebp + 0x11]
xor byte [eax], cl
mov ecx, 0x58bf
movzx ax, byte [eax]
add eax, dword [ebp + 0x10]
imul eax, eax, 0x3193
sub ecx, eax
lea eax, [ebp - 0x100]
push eax
mov dword [ebp + 0x10], ecx
inc esi
call fcn.004525b0
cmp esi, eax
pop ecx
jb 0x403a0f
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00452490
push 0x100
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.00451f50
lea eax, [ebp - 0x100]
xor edi, edi
push eax
call fcn.004525b0
add esp, 0x18
test eax, eax
jbe 0x403adf
movzx esi, byte [ebp + edi - 0x100]
lea eax, [ebp - 0x300]
push 0x474558
push eax
call fcn.00452490
mov eax, esi
push 0x1a
cdq
pop ecx
idiv ecx
add al, 0x41
mov byte [ebp - 0x300], al
mov eax, esi
cdq
idiv ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
add dl, 0x41
mov byte [ebp - 0x2ff], dl
call fcn.004524a0
lea eax, [ebp - 0x100]
inc edi
push eax
call fcn.004525b0
add esp, 0x14
cmp edi, eax
jb 0x403a81
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0xc]
call fcn.00452490
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x403af4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
and byte [ebp - 0x200], 0
push esi
push edi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
and byte [ebp - 0x300], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x2ff]
rep stosd dword es:[edi], eax
and byte [ebp - 0x100], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xff]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x100]
push eax
call fcn.00452490
xor edi, edi
push 0x100
lea eax, [ebp - 0x200]
push edi
push eax
call fcn.00451f50
lea eax, [ebp - 0x100]
push eax
call fcn.004525b0
add esp, 0x18
test eax, 0xfffffffe
jbe 0x403bd8
push ebx
lea esi, [ebp - 0xff]
movzx eax, byte [esi - 1]
movzx ecx, byte [esi]
imul eax, eax, 0x1a
lea ebx, [eax + ecx - 0x6db]
lea eax, [ebp - 0x300]
push 0x47455c
push eax
call fcn.00452490
lea eax, [ebp - 0x300]
mov byte [ebp - 0x300], bl
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004524a0
inc edi
lea eax, [ebp - 0x100]
inc esi
push eax
inc esi
call fcn.004525b0
shr eax, 1
add esp, 0x14
cmp edi, eax
jb 0x403b84
pop ebx
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00452490
lea eax, [ebp - 0x100]
xor esi, esi
push eax
call fcn.004525b0
add esp, 0xc
test eax, eax
jbe 0x403c3e
mov al, byte [ebp + esi - 0x100]
xor ecx, ecx
mov cl, byte [ebp + 0x11]
xor cl, al
movzx ax, al
add eax, dword [ebp + 0x10]
mov byte [ebp + esi - 0x200], cl
mov ecx, 0x58bf
imul eax, eax, 0x3193
sub ecx, eax
lea eax, [ebp - 0x100]
push eax
mov dword [ebp + 0x10], ecx
inc esi
call fcn.004525b0
cmp esi, eax
pop ecx
jb 0x403c00
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0xc]
call fcn.00452490
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40404e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x200]
push eax
call fcn.00403c87
test eax, eax
pop ecx
jne 0x40406c
xor al, al
leave
ret
push ebx
push esi
push edi
lea eax, [ebp - 0x200]
push str.BSDbCfg.ini
push eax
call fcn.004524a0
pop ecx
lea eax, [ebp - 0x200]
pop ecx
mov ebx, 0x2000
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
mov edi, str.BSDBCfg
push dword [ebp + 8]
push 0
push str.PartImgPathEx
push edi
call esi
lea eax, [ebp - 0x200]
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push ebx
push eax
push 0
push str.PubPartImgPathEx
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x4052b2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x300]
push eax
push 0
call fcn.004056ae
pop ecx
pop ecx
pop edi
test al, al
jne 0x4052ec
xor eax, eax
leave
ret
lea eax, [ebp - 0x300]
push str.wfbsver.ini
push eax
call fcn.004524a0
push 0xa
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00451f50
add esp, 0x14
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x100]
push 0x100
push eax
push 0
push str.Ver
push str.WFBS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call fcn.00452490
pop ecx
pop ecx
push 1
pop eax
leave
ret

Function at 0x4053d9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004525b0
cmp eax, 0x7f
pop ecx
ja 0x40543e
push 0x1f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x87]
mov byte [ebp - 0x88], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x88]
push eax
call fcn.00452490
pop ecx
mov esi, 0x80
pop ecx
push ebx
push esi
push 3
push ebx
push ebx
push 0xc0000000
push str..PipeWFDeployCfg32APP
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405442
xor eax, eax
jmp 0x405485
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x88]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.00451f50
add esp, 0xc
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x88]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40578f
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x4057b5
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x4057c9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x4057be
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
cmp dword [esi + 8], 0xffffffff
pop esi
setne al
ret
Function at 0x40c5c8
Capabilities:
Delete file

Disassembly:
mov eax, 0x462a48
call fcn.00451b80
sub esp, 0x20
push esi
push edi
mov edi, 0x8000
push edi
call fcn.00451b9f
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.00439686
and dword [ebp - 4], 0
test esi, esi
je 0x40c65f
push edi
push 0
push esi
call fcn.00451f50
add esp, 0xc
lea ecx, [ebp - 0x2c]
push 1
push dword [ebp + 8]
call fcn.004396d6
test eax, eax
je 0x40c62b
push 0x40
push esi
push 0
lea ecx, [ebp - 0x2c]
call fcn.0043980f
test eax, eax
lea ecx, [ebp - 0x2c]
jge 0x40c633
call fcn.0043977d
push esi
call fcn.00431aec
jmp 0x40c65e
call fcn.0043977d
cmp dword [esi], 0x56567878
je 0x40c661
push esi
call fcn.00431aec
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 8]
push str.errimgfile:_s_n
call fcn.00452e0e
pop ecx
pop ecx
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004396c5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40d333
Capabilities:
Delete file

Disassembly:
mov eax, 0x462afc
call fcn.00451b80
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call fcn.0040d206
test eax, eax
jne 0x40d41c
cmp byte [edi + 0x2c], al
lea ebx, [edi + 0x14]
mov dword [ebp - 0x14], ebx
je 0x40d366
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
lea ecx, [edi + 4]
push eax
call fcn.00410bba
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x40d436
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x204]
test eax, eax
je 0x40d3d5
push 0x688
push 0x5802
push dword [eax + 0x260]
call fcn.0041bc5b
mov ecx, dword [esi + 0x204]
add esp, 0xc
push 1
call fcn.0040c360
test eax, eax
jl 0x40d40f
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x40d3cc
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x204], 0
jmp 0x40d404
mov eax, dword [esi + 0x200]
test eax, eax
je 0x40d404
push 0x688
push 0x5802
push eax
call fcn.0041bc5b
push dword [esi + 0x200]
call fcn.00431aec
add esp, 0x10
and dword [esi + 0x200], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40d420
cmp byte [ebx + 0x18], 0
je 0x40d41c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x40d459
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
lea ecx, [edi + 4]
push eax
call fcn.0041087a
push esi
call fcn.00431aec
pop ecx
mov eax, dword [edi + 0x48]
lea ecx, [edi + 0x44]
lea edx, [ebp + 8]
push edx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00410d63
cmp byte [ebx + 0x18], 0
je 0x40d457
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40df5f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2524
call fcn.00452660
push ebx
push esi
push edi
xor ebx, ebx
and byte [ebp - 0x2524], bl
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x2523]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2524]
push eax
call fcn.00403d35
test eax, eax
pop ecx
je 0x40dfb1
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x2524]
push eax
call fcn.00413026
pop ecx
mov ebx, eax
pop ecx
push ebx
push str._
call fcn.00452e0e
pop ecx
test ebx, ebx
pop ecx
jle 0x40e152
lea esi, [ebp - 0x524]
mov edi, ebx
push 0x47456c
push dword [esi]
call fcn.004524a0
pop ecx
add esi, 4
dec edi
pop ecx
jne 0x40dfce
mov esi, dword [ebp + 8]
push 0x20
push 0
push esi
call fcn.00451f50
push esi
call fcn.00403d6d
add esp, 0x10
test eax, eax
jne 0x40e016
test ebx, ebx
jle 0x40e062
lea esi, [ebp - 0x524]
push dword [esi]
call fcn.00431aec
add esi, 4
dec ebx
pop ecx
jne 0x40e006
jmp 0x40e062
cmp ebx, 0x100
jge 0x40e073
push esi
call fcn.004525b0
test eax, eax
pop ecx
je 0x40e073
push 0x200
call fcn.00451b9f
test eax, eax
pop ecx
mov dword [ebp + ebx*4 - 0x524], eax
jne 0x40e069
test ebx, ebx
jle 0x40e057
lea esi, [ebp - 0x524]
push dword [esi]
call fcn.00431aec
add esi, 4
dec ebx
pop ecx
jne 0x40e049
push 0x474f84
call fcn.00452e0e
pop ecx
xor eax, eax
jmp 0x40e1b7
push esi
push eax
call fcn.00452490
pop ecx
inc ebx
pop ecx
and dword [ebp - 4], 0
test ebx, ebx
jle 0x40e1b4
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x524]
push dword [esi]
push dword [ebp - 4]
push str.ptr__d__:_s_n
call fcn.00452e0e
push 0x20
push 0
push dword [ebp + 8]
call fcn.00451f50
push dword [esi]
push dword [ebp + 8]
call fcn.00452490
push dword [ebp + 0x10]
lea eax, [ebp - 0x124]
push eax
call fcn.00452490
lea eax, [ebp - 0x124]
push str..bin
push eax
call fcn.004524a0
push dword [ebp + 8]
push edi
call fcn.00452490
push 0x474b48
push edi
call fcn.004524a0
add esp, 0x40
lea eax, [ebp - 0x124]
push eax
push edi
call fcn.004524a0
mov al, byte [edi]
pop ecx
mov byte [ebp - 0xc], al
pop ecx
lea eax, [ebp - 0x14]
and byte [ebp - 0xa], 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xb], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40e141
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.00453410
push eax
push 0x474f58
mov dword [ebp + 0xc], eax
call fcn.00452e0e
cmp dword [ebp + 0xc], 0x400
pop ecx
pop ecx
ja 0x40e19c
inc dword [ebp - 4]
add esi, 4
cmp dword [ebp - 4], ebx
jl 0x40e088
jmp 0x40e19c
push dword [ebp + 0x10]
lea eax, [ebp - 0x124]
push eax
call fcn.00452490
lea eax, [ebp - 0x124]
push str..bin
push eax
call fcn.004524a0
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00452490
push 0x474b48
push dword [ebp + 0xc]
call fcn.004524a0
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0xc]
call fcn.004524a0
add esp, 0x28
test ebx, ebx
jle 0x40e1b4
lea esi, [ebp - 0x524]
push dword [esi]
call fcn.00431aec
add esi, 4
dec ebx
pop ecx
jne 0x40e1a6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410109
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [eax + 0x47]
lea edi, [ebx + 0x8498]
lea eax, [ebp - 4]
push esi
push eax
mov ecx, edi
call fcn.004116ee
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x849c]
jne 0x410161
push 0x10
call fcn.00451b9f
mov ebx, eax
mov eax, dword [esi]
pop ecx
mov dword [ebx], eax
mov eax, dword [esi + 4]
and dword [ebx + 0xc], 0
mov dword [ebx + 4], eax
call fcn.0040273d
push esi
mov ecx, edi
mov dword [ebx + 8], eax
call fcn.0041055e
mov dword [eax], ebx
jmp 0x41018c
call fcn.0040273d
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx + 0x10]
sub eax, dword [ebx + 8]
cmp eax, 0x32
jbe 0x41018c
cmp dword [ebx + 0xc], 0
jne 0x41018c
mov eax, dword [esi + 4]
and dword [ebx + 0xc], 0
mov dword [ebx + 4], eax
call fcn.0040273d
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
push 1
sub esp, 0x10
lea esi, [eax + 0x2c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0x880b
movsd dword es:[edi], dword [esi]
push 0x10
push ebx
push dword [eax + 0x43]
movsd dword es:[edi], dword [esi]
call fcn.0041bb1a
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41658f
Capabilities:
Delete file

Disassembly:
mov eax, 0x4630b8
call fcn.00451b80
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x44c], 0
lea edi, [esi + 0x434]
mov dword [ebp - 0x18], edi
je 0x4165ba
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x424]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00419190
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [esi + 0x428]
je 0x41664e
mov esi, dword [ebx + 0x10]
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x416618
call fcn.00413612
test eax, eax
jge 0x416601
push str.ClosePartImgObj_falied_n
call fcn.00452e0e
jmp 0x41663c
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x416611
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi + 0x204], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00418e50
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41664e
push esi
push str.DeleteFile__s_falied_n
call fcn.00452e0e
pop ecx
cmp byte [edi + 0x18], 0
pop ecx
je 0x41664a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x41665d
cmp byte [edi + 0x18], 0
je 0x41665b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4167dd
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x47cdf4]
test ecx, ecx
je 0x4167ec
jmp fcn.00415673
ret

Function at 0x417585
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov edi, eax
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 8]
push 1
pop eax
shl eax, cl
test edi, eax
je 0x417613
mov al, cl
mov byte [ebp - 3], 0x3a
add al, 0x41
mov byte [ebp - 2], 0x5c
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x417613
push 6
lea eax, [ebp - 0x10]
push str..C:
push eax
call fcn.00451bc0
mov al, byte [ebp - 4]
add esp, 0xc
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x10]
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0xc0000000
push eax
mov byte [ebp - 0xa], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x417613
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jb 0x41759b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41893b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
xor ebx, ebx
push 0x80
lea eax, [ebp - 0x188]
push ebx
push eax
call fcn.00451f50
lea eax, [ebp - 0x188]
push eax
push ebx
call fcn.004056ae
add esp, 0x14
test al, al
jne 0x418974
xor eax, eax
jmp 0x418a7a
push esi
push edi
lea eax, [ebp - 0x188]
push str.wfbsver.ini
push eax
call fcn.004524a0
pop ecx
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
push 0x3f
mov byte [ebp - 0x108], bl
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push 0x100
push eax
push ebx
push 0x475690
push str.WFBS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
lea edi, [ebp - 7]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp - 0x107]
mov byte [ebp - 7], bl
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call fcn.00452a87
mov esi, dword [ebp + 8]
mov byte [ebp - 7], bl
mov byte [esi], al
mov al, byte [ebp - 0x105]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call fcn.00452a87
mov byte [esi + 1], al
mov al, byte [ebp - 0x103]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x102]
mov byte [ebp - 7], al
lea eax, [ebp - 8]
push eax
mov byte [ebp - 6], bl
call fcn.00452a87
mov word [esi + 4], ax
mov al, byte [ebp - 0x100]
mov byte [ebp - 8], al
mov al, byte [ebp - 0xff]
mov byte [ebp - 7], al
lea eax, [ebp - 8]
push eax
mov byte [ebp - 6], bl
call fcn.00452a87
mov cl, byte [esi + 2]
mov byte [ebp - 6], bl
mov dl, cl
xor dl, al
mov al, byte [ebp - 0xfe]
mov byte [ebp - 8], al
mov al, byte [ebp - 0xfd]
and dl, 0xf
mov byte [ebp - 7], al
lea eax, [ebp - 8]
xor dl, cl
push eax
mov byte [esi + 2], dl
call fcn.00452a87
add esp, 0x14
mov byte [esi + 3], al
mov word [esi + 6], bx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d96a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
push 0x19e2
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov ax, word [ebp + 0x10]
lea esi, [edi + 0x50]
mov word [edi + 0x88], ax
push 2
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov ebx, eax
test ebx, ebx
jge 0x41d9bb
push str.socket_create_failed_n
jmp 0x41d9ec
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [esi]
push 0
push ebx
push eax
mov ecx, esi
call dword [edx + 0x14]
mov ebx, eax
test ebx, ebx
jge 0x41d9f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
push str.bind_dhcp_port_failed_n
call fcn.00452e0e
pop ecx
mov eax, ebx
jmp 0x41da3b
lea eax, [ebp - 4]
push 4
push eax
push 0x20
push 0xffff
push dword [edi + 0x7c]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41da22
push str.setsockopt_failed_n
call fcn.00452e0e
pop ecx
mov eax, 0xc0000001
jmp 0x41da3b
mov eax, dword [edi]
and dword [edi + 0x84], 0
push 0x11
mov ecx, edi
push dword [ebp + 0xc]
call dword [eax + 8]
test eax, eax
jl 0x41da3b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x19e2
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
or dword [ebp - 0xc], 0xffffffff
and word [ebp - 0x1cf], 0
push 0x10
push eax
push 0
lea eax, [ebp - 0x1d4]
push 0xb
push eax
push dword [ebp + 8]
mov byte [ebp - 0x1d4], 0x18
mov word [ebp - 0x1d3], 0x721
mov dword [ebp - 0x1cd], 0x1234
call dword [sym.imp.WS2_32.dll_sendto]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x19e2
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
or dword [ebp - 0xc], 0xffffffff
and word [ebp - 0x1cf], 0
push 0x10
push eax
push 0
lea eax, [ebp - 0x1d4]
push 0xb
push eax
push dword [ebp + 8]
mov byte [ebp - 0x1d4], 0x18
mov word [ebp - 0x1d3], 0x8721
mov dword [ebp - 0x1cd], 0x1235
call dword [sym.imp.WS2_32.dll_sendto]
leave
ret