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

Disassembly:
sub esp, 0x544
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x540], eax
push ebp
mov ebp, dword [esp + 0x54c]
push esi
lea edx, [esp + 0x33c]
push edi
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a1a0
lea eax, [esp + 0x340]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a1b2
mov ecx, dword [str..]
mov dl, byte [0x4484b8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x344]
push ecx
call fcn.00423b20
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x40a323
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00423c50
add esp, 8
test eax, eax
jne 0x40a31a
lea ecx, [esp + 0x34]
mov eax, 0x4479b0
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a230
test dl, dl
je 0x40a22c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a230
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a210
xor eax, eax
jmp 0x40a235
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a304
lea ecx, [esp + 0x34]
mov eax, 0x4484bc
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a266
test dl, dl
je 0x40a262
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a266
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a246
xor eax, eax
jmp 0x40a26b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a304
lea edx, [esp + 0x138]
mov eax, ebp
sub edx, ebp
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a280
lea edi, [esp + 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a292
mov ax, word [0x447968]
mov word [edi], ax
lea eax, [esp + 0x34]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2b0
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a2c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x10], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x40a2f2
lea ecx, [esp + 0x138]
push ecx
call fcn.0040a170
add esp, 4
jmp 0x40a300
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00423c50
add esp, 8
test eax, eax
je 0x40a205
push esi
call fcn.00423d7f
add esp, 4
push ebp
call fcn.00423da5
mov ecx, dword [esp + 0x550]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00421f05
add esp, 0x544
ret
Function at 0x40a410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x4484b0
lea ecx, [esp + 4]
call fcn.00409b60
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a491
cmp dword [esp + 0x4c], 0
je 0x40a491
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a4b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x40
ret

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

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x447ae8
push eax
xor esi, esi
call fcn.004228cf
mov ecx, dword [esp + 0x1c]
push 0x447ed4
push ecx
mov ebp, eax
call fcn.004228cf
add esp, 0x10
mov edi, eax
mov dword [esp + 0xc], edi
test ebp, ebp
je 0x40ac0b
test edi, edi
je 0x40ac02
push 0x7d000
call fcn.00413bd6
push ebp
mov edi, eax
call fcn.0042303e
add esp, 8
test eax, eax
jne 0x40abf0
lea esp, [esp]
push ebp
push 0x7d000
push 1
push edi
call fcn.00423346
lea edx, [eax + esi]
add esp, 0x10
cmp edx, ebx
jbe 0x40abcc
mov eax, ebx
sub eax, esi
mov ecx, dword [esp + 0xc]
push ecx
push eax
push 1
push edi
call fcn.00422fbc
add esi, eax
add esp, 0x10
cmp esi, ebx
jae 0x40abf0
push ebp
call fcn.0042303e
add esp, 4
test eax, eax
je 0x40abb0
push edi
call fcn.00413bcb
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, 1
push ebp
call fcn.0042295d
add esp, 4
test edi, edi
je 0x40ac18
push edi
call fcn.0042295d
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x40ad10
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43ed98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.00413be1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad4f
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x34], 0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40adb1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.GetDiskFreeSpaceEx_failed_with_error_code__d
push eax
call fcn.00409910
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
push 0x453d11
call fcn.0040d890
jmp 0x40adc9
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x14]
jb 0x40adc9
ja 0x40adc7
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x10]
jbe 0x40adc9
xor edi, edi
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x40d5d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041502b

Function at 0x40d620
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43ecd5
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CLog.0
call fcn.00413be1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d67d
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 4], eax
mov dword [esp + 0x228], 0
call fcn.00413be1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d6b1
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 8], eax
mov byte [esp + 0x228], 1
lea ebp, [edi + 0xc]
call fcn.00413be1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d6e5
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x230], 2
push 0
mov dword [0x453d21], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d720
sub eax, edx
add eax, 0xffffffff
js 0x40d73b
mov cl, 0x5c
cmp byte [esp + eax + 0x14], cl
je 0x40d73b
sub eax, 1
jns 0x40d730
mov byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d745
mov edx, dword [str._trace.ini]
mov ecx, dword [0x448958]
mov dword [eax], edx
mov dx, word [0x44895c]
mov dword [eax + 4], ecx
mov cl, byte [0x44895e]
mov word [eax + 8], dx
lea esi, [esp + 0xc]
mov byte [eax + 0xa], cl
call fcn.0040db80
push eax
mov ecx, ebp
mov byte [esp + 0x22c], 3
call fcn.00409c90
mov byte [esp + 0x228], 2
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.trace
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov dword [edi + 0x14], eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00421f05
add esp, 0x220
ret
Function at 0x40d980
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x30c], eax
push 0x100
lea eax, [esp + 0x210]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.004253a0
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004253a0
add esp, 0x18
push 0x100
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x20c]
mov byte [esp + 4], al
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d9e7
mov ecx, dword [str.:InetPub]
mov edx, dword [0x448980]
mov dword [eax], ecx
mov cx, word [0x448984]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov word [eax + 8], cx
call fcn.00424427
lea eax, [esp + 8]
add esp, 4
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da20
mov ecx, dword [str._ftproot]
mov edx, dword [0x44898c]
mov dword [eax], ecx
mov cl, byte [0x448990]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov byte [eax + 8], cl
call fcn.00424427
lea eax, [esp + 8]
add esp, 4
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da54
mov ecx, dword [str.Tipray]
mov edx, dword [0x448998]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 4]
push eax
call fcn.00424427
lea eax, [esp + 8]
add esp, 4
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40da80
mov ecx, dword [str.LdRead]
mov edx, dword [0x4489a0]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 4]
push eax
call fcn.00424427
lea eax, [esp + 8]
add esp, 4
dec eax
jmp 0x40dab0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dab0
mov ecx, dword [str.log]
mov dl, byte [0x4489a8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 4]
push eax
call fcn.00424427
lea eax, [esp + 8]
add esp, 4
dec eax
jmp 0x40dae0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dae0
mov ecx, dword [str.LdCab.log]
mov edx, dword [0x4489b0]
mov dword [eax], ecx
mov cx, word [0x4489b4]
mov dword [eax + 4], edx
mov dl, byte [0x4489b6]
mov word [eax + 8], cx
push esi
mov byte [eax + 0xa], dl
lea eax, [esp + 8]
push 0x447ae8
push eax
call fcn.004228cf
mov esi, eax
add esp, 8
test esi, esi
je 0x40db56
push edi
push 2
push 0
push esi
call fcn.00423e5f
push esi
call fcn.00424081
push esi
mov edi, eax
call fcn.0042295d
add esp, 0x14
cmp edi, 0xfa000
pop edi
jbe 0x40db56
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 8]
push edx
mov ecx, ebx
call fcn.00409b60
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
mov eax, ebx
call fcn.00421f05
add esp, 0x310
ret
Function at 0x40db80
Capabilities:
Delete file

Disassembly:
sub esp, 0x624
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x620], eax
push 0x208
lea eax, [esp + 0x210]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.004253a0
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004253a0
add esp, 0x18
push 0x208
lea edx, [esp + 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dbe3
sub eax, edx
add eax, 0xffffffff
js 0x40dc01
mov cl, 0x5c
cmp byte [esp + eax + 0x20c], cl
je 0x40dc01
sub eax, 1
jns 0x40dbf3
mov byte [esp + eax + 0x20c], 0
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 8]
push str._slog
push ecx
call fcn.00421f65
push 0x208
lea edx, [esp + 0x425]
push 0
push edx
mov byte [esp + 0x42c], 0
call fcn.004253a0
lea eax, [esp + 0x1c]
push eax
call fcn.0043dddb
push eax
lea ecx, [esp + 0x434]
push 0x447b00
push ecx
call fcn.00421f65
lea edx, [esp + 0x43c]
push str.TiprayLdTerm_
push edx
call fcn.00423370
add esp, 0x30
test eax, eax
jne 0x40dc8b
lea eax, [esp + 0x414]
push str.DLPApplication_
push eax
call fcn.00423370
add esp, 8
test eax, eax
je 0x40dc98
lea ecx, [esp + 4]
push ecx
call fcn.00424427
add esp, 4
push edi
lea edi, [esp + 8]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40dca0
mov dx, word [0x447968]
lea eax, [esp + 8]
mov word [edi], dx
dec eax
pop edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40dcb8
mov ecx, dword [str.LdCabErrInfo.ini]
mov edx, dword [0x4489e8]
mov dword [eax], ecx
mov ecx, dword [0x4489ec]
mov dword [eax + 4], edx
mov edx, dword [0x4489f0]
mov dword [eax + 8], ecx
mov cl, byte [0x4489f4]
mov dword [eax + 0xc], edx
lea edx, [esp + 4]
push edx
mov byte [eax + 0x10], cl
call fcn.0040a100
add esp, 4
test eax, eax
je 0x40dd08
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00409b60
mov ecx, dword [esp + 0x620]
xor ecx, esp
mov eax, esi
call fcn.00421f05
add esp, 0x624
ret
Function at 0x40e590
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x43ec78
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x60], eax
push ebp
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
push ebx
push edi
mov dword [esp + 0x14], ebp
call fcn.0041e115
push 0x40
lea eax, [esp + 0x14]
push ebp
push eax
mov dword [esp + 0x18], vtable.CMD5Checksum.0
call fcn.004253a0
add esp, 0xc
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], 0x67452301
mov dword [esp + 0x5c], 0xefcdab89
mov dword [esp + 0x60], 0x98badcfe
mov dword [esp + 0x64], 0x10325476
push edi
mov eax, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], ebp
call fcn.0040efc0
push esi
lea ecx, [esp + 0x10]
call fcn.0040ed40
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop ebp
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00421f05
add esp, 0x70
ret

Function at 0x40f1f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00414af4
mov eax, dword [esi + 0x98]
push 0x640000
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x40f170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov dword [esi + 0x74], eax
pop esi
pop ecx
ret

Function at 0x40f3b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43f828
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040f060
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d08], ecx
test esi, esi
jne 0x40f400
xor eax, eax
jmp 0x40f40e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f405
sub eax, edx
push eax
push esi
mov ecx, 0x453cfc
call fcn.00409f10
test edi, edi
jne 0x40f422
xor eax, eax
jmp 0x40f430
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f427
sub eax, edx
push eax
push edi
mov ecx, 0x453d00
call fcn.00409f10
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x40f300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414df3
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041510a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.004146a2
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret
Function at 0x412c90
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43ebf0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00409b60
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0040a9e0
add esp, 4
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x447968
lea ecx, [esp + 0x18]
call fcn.0040d490
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412d24
mov ecx, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jge 0x412d92
jmp 0x412d40
test esi, esi
jl 0x412dc9
cmp esi, eax
jg 0x412dc9
cmp byte [esi + ecx], 0x5c
jne 0x412d8a
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00409440
mov edi, dword [esp + 0x18]
push 0
push edi
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x412d40
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412db6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.0040a000
int3
Function at 0x412de0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43ef6b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
call fcn.00413be1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e33
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x234], 0
call fcn.004253a0
add esp, 0xc
push 0x208
lea edx, [esp + 0x18]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040ad10
add esp, 0xc
test eax, eax
jne 0x412ebc
lea eax, [esp + 0x10]
push str.The_disk_free_space_is_to_small_
push eax
xor edi, edi
call fcn.00409910
mov esi, dword [esp + 0x18]
add esp, 8
push edi
push esi
push 0x453d11
call fcn.0040d890
lea eax, [esi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ee3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00421f05
add esp, 0x220
ret
Function at 0x413310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
xor eax, eax
lea ebx, [ebx]
mov dword [esi + eax*4 + 8], eax
inc eax
cmp eax, 0x100
jl 0x413320
push ebp
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 8], 0x40
jmp 0x413340
movzx ebp, byte [edx + ebx]
mov eax, dword [ecx - 8]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x41335b
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx - 8], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx - 4]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x41338c
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx - 4], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x4133bc
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx + 4]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x4133ec
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx + 4], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
add ecx, 0x10
sub dword [esp + 8], 1
jne 0x413340
pop edi
pop ebp
pop ecx
ret
Function at 0x413a70
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8008
call fcn.00427790
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x8004], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0
call fcn.00413be1
test eax, eax
jne 0x413aa6
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebp, eax
push 0x447ae8
push esi
add ebp, 0x10
call fcn.00438d50
mov edi, eax
add esp, 8
test edi, edi
je 0x413b48
push 0x447ed4
push ebx
call fcn.004228cf
mov esi, eax
add esp, 8
test esi, esi
je 0x413b3f
push esi
mov dword [esp + 0x10], 1
call fcn.0042303e
add esp, 4
test eax, eax
jne 0x413b36
push 0x8000
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004392c0
add esp, 0xc
test eax, eax
jle 0x413b36
push esi
push eax
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00422fbc
add esp, 0x10
test eax, eax
je 0x413b2e
push esi
call fcn.0042303e
add esp, 4
test eax, eax
je 0x413af3
jmp 0x413b36
mov dword [esp + 0xc], 0
push esi
call fcn.0042295d
add esp, 4
push edi
call fcn.00439730
add esp, 4
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
test edx, edx
jg 0x413b66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8008]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00421f05
add esp, 0x8008
ret

Function at 0x41d5ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41d611
call fcn.0041809e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d611
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41d62d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d144
mov esi, eax
test edi, edi
je 0x41d62b
test ebx, ebx
je 0x41d62b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421f05
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44fb64]
jne 0x421f0f
repz ret
jmp fcn.00427d63