joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x404511
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.00404648
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x404557
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x4045a8
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404625
mov eax, dword [ebx + 4]
test eax, eax
je 0x4045c0
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040cdb8
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040cca8
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040ce38
mov edx, edi
mov eax, ebx
call fcn.00404c84
test al, al
jne 0x404601
mov edx, edi
mov eax, ebx
call fcn.00404cbc
mov edx, edi
mov eax, ebx
call fcn.00404afc
mov ebx, eax
mov eax, edi
call fcn.0040ccbc
test ebx, ebx
je 0x404625
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040ccbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40483c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4048a2
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4048b3
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4048a2
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x40485a
cmp dword [esp], 0
je 0x40485a
xor ebx, ebx
cmp dword [esp], 0
je 0x4048fd
lea eax, [esp + 4]
push eax
push 0x412844
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x4048fd
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x4048f3
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x405408
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00405604
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x40549f
cmp byte [ebp + 8], 0
jne 0x40549f
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x4054dd
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.0040528c
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x4055eb
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x40553c
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.0040528c
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x4055db
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x405564
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x4055fb
inc esi
test edi, edi
je 0x4055fb
cmp esi, 0x200
jl 0x4054fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4057d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x40581b
mov edx, edi
mov eax, ebx
call fcn.0040ce38
mov eax, ebx
call fcn.0040cdb8
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040ce38
mov eax, ebx
call fcn.0040cdb8
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402bc4
mov edx, eax
mov eax, ebx
call fcn.0040ce38
mov eax, ebx
call fcn.0040cdb8
inc eax
add ebx, eax
mov edx, 0x4125a4
mov eax, ebx
call fcn.0040ce38
mov eax, ebx
call fcn.0040cdb8
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040cd38
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x414e30]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405f14
cmp esi, eax
jne 0x4058b4
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x4058e4
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x4058e4
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4068e8
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.004056a8
test eax, eax
je 0x40690e
test ebx, ebx
je 0x40690e
cmp word [ebx], 0
je 0x40690e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406916
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406929
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406cd4
xor eax, eax
jmp 0x406944
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x406938
cmp eax, 3
jne 0x40693f
mov eax, 2
jmp 0x406944
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x406c48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004056a8
test eax, eax
je 0x406c73
test ebx, ebx
je 0x406c73
cmp word [ebx], 0
je 0x406c73
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x406ca8
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004056a8
test eax, eax
je 0x406cca
test ebx, ebx
je 0x406cca
cmp word [ebx], 0
je 0x406cca
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x406cd4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004056a8
test eax, eax
je 0x406d01
test ebx, ebx
je 0x406d01
cmp word [ebx], 0
je 0x406d01
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x406d10
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x408b48
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41460c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x408b62
call fcn.00408b10
mov eax, ebp
jmp 0x408b7a
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408b82
test al, 7
jne 0x408b66
cmp esi, 8
jb 0x408c0b
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408b8b
xor edx, edx
jmp 0x408c25
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x408c0f
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b834
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40b83d
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.00406640
lea eax, [esp + 0xc40]
call fcn.00406640
lea eax, [esp + 0xc6c]
call fcn.00406640
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.00405b04
test al, al
jne 0x40b89d
xor eax, eax
jmp 0x40b9ea
cmp byte [esp], 0
je 0x40b8ad
cmp byte [esp + 0xc98], 0
jne 0x40b8b4
xor eax, eax
jmp 0x40b9ea
mov eax, esp
call fcn.00405f14
lea edx, [esp + 0xc98]
call fcn.00406dc4
test eax, eax
je 0x40b8e2
mov eax, esi
call fcn.00405f14
lea edx, [esp + 0xc98]
call fcn.00406dc4
test eax, eax
je 0x40b8e9
xor eax, eax
jmp 0x40b9ea
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00406e6c
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00405f14
push eax
call fcn.0040cf30
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00406c48
test al, al
je 0x40b927
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40b8eb
mov eax, edi
xor edx, edx
call fcn.00406c48
test al, al
je 0x40b93b
xor eax, eax
jmp 0x40b9ea
lea eax, [esp + 0x14b4]
mov ecx, 0x400
mov edx, esi
call fcn.00406e6c
mov eax, esp
call fcn.00405f14
push eax
lea eax, [esp + 0x14b8]
call fcn.00405f14
pop edx
call fcn.0040ce38
push edi
lea ecx, [esp + 0x14b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40b97e
xor eax, eax
jmp 0x40b9ea
lea eax, [esp + 0x18b4]
call fcn.0040b9f4
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00406c48
test al, al
jne 0x40b9ab
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.0040bbd4
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40b9d5
lea eax, [esp + 0x18b4]
call fcn.0040bca4
lea eax, [esp + 0x18b4]
call fcn.0040bd2c
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.0040ba44
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x40ba88
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40baab
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40babc
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40bacb
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40bad8
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004056a8
test eax, eax
je 0x40bb05
test esi, esi
je 0x40bb05
cmp word [esi], 0
je 0x40bb05
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40bb1c
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bb35
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40bb35
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40bb9f
mov dword [ebx + 4], edi
test esi, esi
je 0x40bb6a
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040d5e4
jmp 0x40bb73
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40bb86
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040ce38
jmp 0x40bb95
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0040d3f0
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040bc84
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd5c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40be7f
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40bd97
dec eax
je 0x40bd81
dec eax
je 0x40bd8d
jmp 0x40bd97
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40bd97
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40bde9
xor ebp, ebp
cmp esi, ebp
jle 0x40be05
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40bdbc
mov ecx, esi
sub ecx, ebp
jmp 0x40bdc1
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40be05
add ebp, 0x4000
cmp esi, ebp
jg 0x40bda3
jmp 0x40be05
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40be7b
cmp byte [edi + 0x14], 0
je 0x40be7b
cmp dword [edi + 0xc], 0
jne 0x40be7b
lea edx, [edi + 0x17]
mov eax, 0x414e10
call fcn.00409fd8
test al, al
je 0x40be65
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40bd97
cmp dword [esp + 4], 0
jbe 0x40bd97
mov eax, edi
call fcn.0040c0a4
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040bfec
jmp 0x40bd97
lea ecx, [edi + 0x17]
mov eax, 0x414e10
xor edx, edx
call fcn.00409fc0
jmp 0x40be7b
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40bf6c
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40bf93
cmp esi, 0x4e20
jle 0x40bf89
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40bfe4
mov eax, ebx
call fcn.0040c2ac
test al, al
je 0x40bfcb
cmp esi, 0x4e20
jle 0x40bfcb
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040bf6c
jmp 0x40bfe7
cmp dword [ebx + 0xc], 1
jne 0x40bfdf
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40bfdf
xor eax, eax
jmp 0x40bfe7
or eax, 0xffffffff
jmp 0x40bfe7
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d380
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x41273c], 0
jne 0x40d399
call fcn.0040cfd4
mov dword [0x412738], eax
inc byte [0x41273c]
call fcn.0040cfd4
sub eax, dword [0x412738]
cmp eax, 0x64
jle 0x40d3d5
cmp dword [0x413148], 0
je 0x40d3d0
mov eax, 0x414e10
mov edx, 0xff
call fcn.0040a168
mov eax, 0x414e10
mov edx, 0xff
call fcn.0040a160
call fcn.00402c40
ret
Function at 0x401ef0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401510
push 0x414d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0xb
mov esi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
call esi
cmp dword [ebp - 0x24], edi
je 0x401fdd
push dword [ebp - 0x24]
call fcn.0040505d
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x401fdd
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x24]
push eax
push 0xb
call esi
cmp eax, edi
jne 0x401fd5
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi]
add esi, 4
xor edx, edx
cmp edx, ecx
jae 0x401fd5
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 8]
ja 0x401fef
mov ebx, dword [esi + 0xc]
add ebx, eax
cmp dword [ebp + 8], ebx
jae 0x401fef
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 0xc]
call fcn.00414be0
add esp, 0xc
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x2c], eax
cmp ebx, eax
jae 0x401f9f
mov dword [ebp - 0x2c], ebx
dec dword [ebp - 0x2c]
push dword [ebp - 0x2c]
movzx eax, word [esi + 0x1a]
lea eax, [eax + esi + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.00414ae0
push dword [ebp + 0xc]
call fcn.00414a60
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x401fd1
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.00405081
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
inc edx
add esi, 0x11c
jmp 0x401f67
Function at 0x404b45
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x41fcf4
xor esi, esi
push 0x7f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x404bf9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x404bf9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x10c]
push 0x41fce4
push eax
call fcn.00414f40
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404bf9
lea eax, [ebp - 8]
push esi
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x404bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404c01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404c4a
Capabilities:
Create service
Delete service
Get common file path
Query service status
Start service

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, esi
je 0x404d25
mov ebx, 0x41fcf8
push 0x10004
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x404ca7
cmp dword [esp + 0x14], 4
jne 0x404ca0
xor eax, eax
jmp 0x404d2f
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x2c]
push 0x41fce4
push eax
call fcn.00414f40
pop ecx
lea eax, [esp + 0x30]
pop ecx
push esi
push esi
push esi
push esi
push esi
push eax
push esi
push 3
push 1
push 0x10030
push 0x424d18
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, esi
je 0x404d15
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x404d15
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x404d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call edi
push ebp
call edi
jmp 0x404d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x404e1b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
push 0x41fcf8
cmp eax, 5
jb 0x404e40
push str..Global_s
jmp 0x404e45
push str.._s
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
push esi
push eax
push 0x80
push 3
push eax
push eax
lea eax, [ebp - 0x80]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x41fcac], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x41fcac]
cmp eax, 0xffffffff
je 0x404e90
push 2
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov eax, esi
pop esi
leave
ret

Function at 0x4050b9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareFour_FWinObjEx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405123
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x2c
push eax
push dword [0x424e24]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x40511a
push dword [ebp - 0x34]
lea eax, [ebp - 0x34]
push eax
push 3
push esi
push 0x41fde8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret