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

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x114]
test ebp, ebp
je 0x4021c7
mov dword [ebp], 0
mov eax, dword [esp + 0x110]
lea edx, [esp + 4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4021d4
push 1
lea eax, [esp + 8]
push eax
call fcn.00402130
test eax, eax
jne 0x402206
pop ebp
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004637ae
add esp, 0x108
ret 8
lea eax, [esp + 4]
dec eax
jmp 0x402210
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402210
mov ecx, dword [str.doon.tmp]
mov edx, dword [0x47f9b8]
push 0
push 0x80
push 2
push 0
mov dword [eax], ecx
mov cl, byte [0x47f9bc]
push 0
mov dword [eax + 4], edx
push 0x40000000
lea edx, [esp + 0x1c]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x402283
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004637ae
add esp, 0x108
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
mov esi, eax
cmp esi, 3
jne 0x4022de
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00464953
add esp, 8
test eax, eax
je 0x4022de
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, edi
push 0
lea edx, [esp + 0x14]
push edx
mov byte [eax], 0
call edi
test eax, eax
jne 0x402302
call ebx
cmp eax, 0xb7
je 0x4022de
mov esi, eax
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.00464953
add esp, 8
test eax, eax
jne 0x4022b0
test ebp, ebp
je 0x4022e5
mov dword [ebp], esi
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.004637ae
add esp, 0x108
ret 8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, 1
jmp 0x4022e7

Function at 0x4023c0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4023e8
mov esi, 1
test edi, edi
je 0x4023f3
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x402430
cmp dword [esp + 0x14], 0
je 0x402428
push ebx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402428
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x402421
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
Function at 0x402870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x104], eax
cmp byte [esp + 0x10c], 0
push ebx
mov ebx, ecx
je 0x4028af
lea eax, [ebx + 0x450]
push eax
lea ecx, [esp + 8]
push str._sDefSet.ini
push ecx
call fcn.004649e7
add esp, 0xc
jmp 0x402979
mov eax, dword [esp + 0x114]
sub eax, 1
jne 0x40295c
lea edx, [esp + 4]
push edx
push eax
push eax
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x40295c
lea eax, [esp + 4]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4028e0
mov ecx, dword [str.SBMSDC_100_]
mov edx, dword [0x47fb60]
mov dword [eax], ecx
mov ecx, dword [0x47fb64]
mov dword [eax + 4], edx
mov dx, word [0x47fb68]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov eax, dword [ebx + 0x60]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402912
push esi
push edi
lea edi, [esp + 0xc]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402924
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402941
mov ecx, dword [str..ini]
mov dl, byte [0x47fb58]
mov dword [eax], ecx
mov byte [eax + 4], dl
jmp 0x402979
mov eax, dword [ebx + 0x60]
push eax
lea ecx, [ebx + 0x450]
push ecx
lea edx, [esp + 0xc]
push str._s_s.ini
push edx
call fcn.004649e7
add esp, 0x10
mov eax, dword [ebx + 0x68]
push eax
lea eax, [esp + 8]
push eax
call fcn.004654aa
add esp, 8
test eax, eax
je 0x4029a7
mov ecx, dword [ebx + 0x68]
push ecx
call fcn.00463fc5
lea edx, [esp + 8]
push edx
call fcn.004654c1
add esp, 8
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x68]
push eax
call fcn.00402320
mov ecx, dword [esp + 0x108]
pop ebx
xor ecx, esp
call fcn.004637ae
add esp, 0x108
ret 8

Function at 0x402b60
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
xor ecx, ecx
test edx, edx
jbe 0x402b90
xor byte [ecx + esi], 0xa9
inc ecx
cmp ecx, edx
jb 0x402b87
pop esi
ret 0xc

Function at 0x402ba0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push ebp
call fcn.00401f70
mov esi, eax
test ebp, ebp
jbe 0x402bce
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov edi, ebp
lea ecx, [ecx]
mov dl, byte [ecx + eax]
xor dl, 0xa9
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x402bc0
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call fcn.00401c00
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1fc
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [esp + 0x210]
push 0
lea eax, [esp + 0x14]
push eax
mov ebx, ecx
push 0x1d
lea ecx, [esp + 0x1b0]
push ecx
push edi
call ebp
push 0x1d
lea edx, [esp + 0x1a8]
push str.SBM_File_format_v1.2_by_doon_n
push edx
call fcn.00465516
add esp, 0xc
test eax, eax
je 0x402ee7
push 0x1d
lea eax, [esp + 0x1a8]
push str.SBM_File_format_v1.1_by_jung_n
push eax
call fcn.00465516
add esp, 0xc
test eax, eax
jne 0x402ec0
lea ebx, [eax + 0xb]
xor eax, eax
push 0x180
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x20], 0
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
call fcn.00463860
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 0x184
lea eax, [esp + 0x20]
push eax
push edi
call ebp
cmp ebx, 0xa
jne 0x402f03
xor eax, eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1a0], eax
jmp 0x402f17
push 0x1d
lea ecx, [esp + 0x1a8]
push str.SBM_File_format_v1.0_by_doon_n
push ecx
call fcn.00465516
add esp, 0xc
test eax, eax
jne 0x40304c
lea ebx, [eax + 0xa]
jmp 0x402e5f
mov eax, dword [ebx + 0xcc]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push esi
push edi
call ebp
mov eax, 1
jmp 0x40304e
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xc
lea edx, [esp + 0x1a4]
push edx
push edi
call ebp
push 0x14c
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004639c0
push 0x5c
lea edi, [esi + 0x150]
push 0
push edi
call fcn.00463860
mov ecx, dword [esp + 0x178]
mov eax, dword [esp + 0x1a8]
mov edx, dword [esp + 0x17c]
mov dword [esi + 0x14c], ecx
mov ecx, dword [esp + 0x1ac]
mov dword [esi + 0x1a4], eax
mov eax, dword [esp + 0x184]
mov dword [edi], edx
mov edx, dword [esp + 0x180]
mov dword [esi + 0x1a8], ecx
mov ecx, dword [esp + 0x188]
mov dword [esi + 0x158], eax
mov eax, dword [esp + 0x190]
mov dword [esi + 0x154], edx
mov edx, dword [esp + 0x18c]
mov dword [esi + 0x164], eax
mov eax, dword [esp + 0x19c]
mov dword [esi + 0x15c], ecx
mov ecx, dword [esp + 0x194]
mov dword [esi + 0x160], edx
mov edx, dword [esp + 0x198]
mov dword [esi + 0x170], eax
mov al, byte [esp + 0x1b0]
mov dword [esi + 0x168], ecx
mov ecx, dword [esp + 0x1a0]
mov dword [esi + 0x16c], edx
mov edx, dword [esp + 0x1a4]
add esp, 0x18
mov dword [esi + 0x174], ecx
mov dword [esi + 0x178], edx
cmp al, 0x4f
jne 0x40301c
cmp byte [esp + 0x199], 0x55
jne 0x40303b
cmp byte [esp + 0x19a], 0x54
jne 0x40303b
mov dword [esi + 0x1ac], 2
mov eax, 1
jmp 0x40304e
cmp al, 0x49
jne 0x40303b
cmp byte [esp + 0x199], 0x4e
jne 0x40303b
mov dword [esi + 0x1ac], 1
mov eax, 1
jmp 0x40304e
mov dword [esi + 0x1ac], 0
mov eax, 1
jmp 0x40304e
xor eax, eax
mov ecx, dword [esp + 0x208]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004637ae
add esp, 0x1fc
ret 8
Function at 0x4030c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4030ef
pop edi
xor eax, eax
pop esi
ret 8
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push esi
mov ecx, edi
call fcn.00402de0
test eax, eax
jne 0x403110
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
ret 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edi, [ebx + 0x1b0]
push edi
push esi
call ebp
mov edx, dword [edi]
push 0
shl edx, 5
push edx
call fcn.00401f70
mov edx, dword [edi]
push 0
lea ecx, [esp + 0x18]
push ecx
shl edx, 5
push edx
push eax
push esi
mov dword [ebx + 0x1b4], eax
call ebp
push esi
mov dword [ebx + 0x148], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x403170
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 0x403189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4031c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4031c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4031c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4031b0
cmp esi, eax
jb 0x4031ca
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 0x405d00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x405d2f
pop esi
xor eax, eax
pop ebp
ret 8
push edi
mov edi, dword [esp + 0x14]
push edi
push ebp
mov ecx, esi
call fcn.00402de0
test eax, eax
jne 0x405d50
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea esi, [edi + 0x1b0]
push esi
push ebp
call ebx
mov edx, dword [esi]
push 0
shl edx, 5
push edx
call fcn.00401f70
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
shl edx, 5
push edx
push eax
push ebp
mov dword [edi + 0x1b4], eax
call ebx
cmp dword [edi + 0x148], 0
je 0x405e54
mov eax, dword [esi]
add eax, eax
push 0
add eax, eax
push eax
call fcn.00401f70
xor esi, esi
cmp dword [edi + 0x1b0], esi
mov dword [edi + 0x1b8], eax
jle 0x405e54
jmp 0x405dc6
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x14
call fcn.00401f70
mov ecx, dword [edi + 0x1b8]
push 0
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 0x1b8]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x18]
push edx
push 0xc
push ecx
push ebp
call ebx
mov eax, dword [edi + 0x1b8]
mov ecx, dword [eax + esi*4]
push 0
lea edx, [esp + 0x18]
push edx
push 1
add ecx, 0xc
push ecx
push ebp
call ebx
mov edx, dword [edi + 0x1b8]
mov eax, dword [edx + esi*4]
mov ebx, dword [eax + 8]
imul ebx, dword [eax + 4]
push 0
push ebx
call fcn.00401f70
mov ecx, dword [edi + 0x1b8]
mov edx, dword [ecx + esi*4]
mov dword [edx + 0x10], eax
mov ecx, dword [edi + 0x1b8]
mov edx, dword [ecx + esi*4]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + 0x10]
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
inc esi
cmp esi, dword [edi + 0x1b0]
jl 0x405dc0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
Function at 0x406bd0
Capabilities:
Copy file

Disassembly:
sub esp, 0x224
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
push edi
lea eax, [esp + 0x124]
push eax
mov edi, ecx
call fcn.00406470
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c97
lea edx, [esp + 0x18]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx edx, word [esp + 0x12]
movzx eax, word [esp + 0x10]
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0xe]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00405e70
push eax
lea eax, [esp + 0x34]
push str._sLogRecvLog__02d_02d__02d_02d.dat
push eax
call fcn.004649e7
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
push ecx
call fcn.00402d40
add esp, 4
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
xor ecx, esp
call fcn.004637ae
add esp, 0x224
ret
Function at 0x407290
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
sub esp, 0x260
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
mov esi, dword [esp + 0x26c]
cmp word [esi], 0
push edi
mov edi, dword [esp + 0x26c]
mov dword [esp + 0xc], ecx
jne 0x4072d6
mov eax, dword [esp + 0x274]
cmp word [eax], 0
jne 0x4072d6
push edi
call fcn.004067c0
jmp 0x4074c1
push ebx
push ebp
push 0
push 0xfa0
mov dword [edi], 0
call fcn.00401f70
mov dword [edi + 4], eax
mov bp, word [esi]
mov bx, word [esi + 2]
mov si, word [esi + 6]
mov word [esp + 0x18], bp
mov word [esp + 0x1a], bx
mov ecx, dword [esp + 0x27c]
movzx eax, word [ecx]
cmp bp, ax
jb 0x407321
jne 0x4074aa
cmp bx, word [ecx + 2]
ja 0x4074aa
movzx ecx, bx
push ecx
mov ecx, dword [esp + 0x18]
movzx edx, bp
push edx
call fcn.00405e70
push eax
lea eax, [esp + 0x174]
push str._sSaveData_04d_02d
push eax
call fcn.004649e7
add esp, 0x14
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407478
mov eax, dword [esp + 0x27c]
cmp bp, word [eax]
jne 0x40737a
cmp bx, word [eax + 2]
jne 0x40737a
movzx edx, word [eax + 6]
mov dword [esp + 0x10], edx
jmp 0x407382
mov dword [esp + 0x10], 0x1f
movzx ebx, si
cmp si, word [esp + 0x10]
ja 0x407473
mov eax, dword [esp + 0x1a]
mov ecx, dword [esp + 0x18]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x174]
push edx
call fcn.00406780
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407462
lea ebx, [ebx]
test byte [esp + 0x28], 0x10
jne 0x407447
lea edx, [esp + 0x168]
push 0x5c
push edx
lea esi, [esp + 0x5c]
call fcn.00464f70
mov ecx, 1
mov edx, esi
sub ecx, edx
add esp, 8
add ecx, eax
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x4073f8
push 0
lea eax, [esp + 0x16c]
push eax
call fcn.00401fb0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov eax, dword [edi]
mov ecx, eax
and ecx, 0x800001ff
jns 0x40742f
dec ecx
or ecx, 0xfffffe00
inc ecx
jne 0x407447
push 0
lea edx, [eax*4 + 0xfa0]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.00401f90
mov dword [edi + 4], eax
lea ecx, [esp + 0x28]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4073d0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
inc ebx
cmp bx, word [esp + 0x10]
jbe 0x407390
mov bp, word [esp + 0x18]
mov bx, word [esp + 0x1a]
cmp bx, 0xc
jne 0x407499
mov edx, 1
inc bp
mov word [esp + 0x18], bp
mov word [esp + 0x1a], dx
mov bx, dx
mov esi, edx
jmp 0x407302
inc bx
mov word [esp + 0x1a], bx
mov esi, 1
jmp 0x407302
cmp dword [edi], 0
pop ebp
pop ebx
jne 0x4074c1
mov eax, dword [edi + 4]
push eax
call fcn.00401c00
mov dword [edi + 4], 0
mov ecx, dword [esp + 0x264]
pop edi
pop esi
xor ecx, esp
call fcn.004637ae
add esp, 0x260
ret 0xc
Function at 0x408530
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x47ac48
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a0538]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x408561
call fcn.00405e70
mov esi, eax
cmp byte [esi], 0
je 0x4085fa
cmp byte [esi + 1], 0
je 0x4085fa
call fcn.00442426
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40858e
push 0x80004005
call fcn.00402090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
lea ecx, [esp + 0x20]
push str._sdoon.tmp
push ecx
mov dword [esp + 0x20], 0
call fcn.00407c80
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or edi, 0xffffffff
cmp eax, edi
jne 0x408610
lea eax, [esi - 0x10]
mov dword [esp + 0x14], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x4085fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40863b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4086d1
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push 0
mov ecx, 0x4a1a80
call fcn.00408530
test eax, eax
jne 0x4086e9
pop esi
pop ecx
ret 8
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00402d40
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40871f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x1d
push str.SBM_File_format_v1.2_by_doon_n
push edi
call ebx
mov edx, dword [esi + 0xcc]
mov ebp, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push edi
call ebx
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea esi, [ebp + 0x1b0]
push esi
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0x1b4]
push 0
lea ecx, [esp + 0x14]
push ecx
shl edx, 5
push edx
push eax
push edi
call ebx
cmp dword [ebp + 0x148], 0
je 0x4087e7
xor esi, esi
cmp dword [ebp + 0x1b0], esi
jle 0x4087e7
jmp 0x408790
mov edx, dword [ebp + 0x1b8]
mov eax, dword [edx + esi*4]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xc
push eax
push edi
call ebx
mov edx, dword [ebp + 0x1b8]
mov eax, dword [edx + esi*4]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
add eax, 0xc
push eax
push edi
call ebx
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 8]
imul ecx, dword [eax + 4]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [eax + 0x10]
push ecx
push edx
push edi
call ebx
inc esi
cmp esi, dword [ebp + 0x1b0]
jl 0x408790
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x409810
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
lea ebx, [ecx + 0xa4]
push 0xf
push str.255.255.255.255
mov ecx, ebx
call fcn.004077b0
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4098ad
push 0x50
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x4098ad
push edi
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4098ac
mov eax, dword [edi + 0xc]
push esi
xor esi, esi
cmp dword [eax], esi
je 0x4098ab
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call ebp
push eax
push 0x4806d4
push ebx
call fcn.00407c80
mov ecx, dword [edi + 0xc]
inc esi
lea eax, [ecx + esi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x409888
pop ebp
pop esi
pop edi
mov ecx, dword [esp + 0x1e4]
pop ebx
xor ecx, esp
call fcn.004637ae
add esp, 0x1e4
ret
Function at 0x411070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x254], eax
push edi
mov edi, ecx
push 0
mov ecx, 0x4a1a80
call fcn.00408530
test eax, eax
jne 0x4110e1
push str.The_Working_Path_is_not_accessible._Check__Setup____Configuration_.
push str.mWrongWorkPath
push str.Main_Form
mov ecx, 0x24a4558
call fcn.00422400
mov ecx, dword [0x4a1ecc]
mov edx, dword [edi + 0x20]
push 0x30
push ecx
push eax
push edx
mov ecx, 0x24a4558
call fcn.004219b0
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004637ae
add esp, 0x258
ret
mov ecx, dword [edi + 0x260]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xc]
push eax
push 0
push 0x1001
push ecx
call ebp
mov edx, dword [edi + 0x2b4]
push 0
push 0
push 0xb
push edx
call ebp
mov eax, dword [edi + 0x2b4]
push 0
push 0
push 0x1009
push eax
call ebp
mov ecx, dword [esp + 0x12]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x168]
push ecx
mov ecx, 0x4a1a80
call fcn.00406780
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4111bc
push esi
jmp 0x411160
test byte [esp + 0x20], 0x10
jne 0x4111a4
lea ecx, [esp + 0x160]
push 0x5c
push ecx
lea esi, [esp + 0x54]
call fcn.00464f70
lea ecx, [eax + 1]
mov edx, esi
add esp, 8
sub ecx, edx
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x411184
lea eax, [esp + 0x160]
push eax
lea ecx, [edi + 0x294]
push ecx
mov ecx, edi
call fcn.0040f1c0
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411160
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov eax, dword [edi + 0x2b4]
push 0
push 1
push 0xb
push eax
call ebp
mov ecx, dword [edi + 0x2b4]
push 0
push 0
push 0x1004
push ecx
call ebp
mov ecx, dword [esp + 0x260]
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.004637ae
add esp, 0x258
ret