joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a940
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 1
push 0
mov dword [0x43c6ac], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 4
mov dword [0x43c6ac], eax
call fcn.00406be0
add esp, 0xc
test eax, eax
jne 0x40a980
mov eax, dword [0x43c6ac]
test eax, eax
je 0x40a9d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
push 0
push 0
push 0
push 0x409880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43cdb4], eax
test eax, eax
jne 0x40a9a3
call fcn.00406bb0
mov eax, dword [0x43c6ac]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x43c6ac]
test eax, eax
je 0x40a9c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004059b0
push str.Exit_n
call fcn.004058e0
pop ecx
ret

Function at 0x40aa70
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x414
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push edi
push 0x43d598
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push str.PktFlt_DataCopy
push ebx
push ebx
push ebx
mov dword [0x43c6b0], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x43c6b0], eax
cmp eax, ebx
jne 0x40aac7
push str.Event_Fails_n
call fcn.004058e0
add esp, 4
lea eax, [ebx + 2]
jmp 0x40ab56
cmp dword [esp + 0x42c], 1
mov dword [esp + 8], 0x4396bc
mov dword [esp + 0xc], 0x40a9e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [0x43f75c], ebx
jne 0x40ab73
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x18]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x40ab00
push esi
lea eax, [esp + 0x1c]
push 0x20
push eax
call fcn.0040e720
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40ab6f
inc esi
push str.install
push esi
call fcn.0042dde8
add esp, 8
test eax, eax
jne 0x40ab3a
call fcn.00406c60
mov edi, eax
push str.remove
push esi
call fcn.0042dde8
add esp, 8
test eax, eax
jne 0x40ab53
call fcn.00406db0
mov edi, eax
mov eax, edi
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.0040c71a
add esp, 0x414
ret 0x10
xor eax, eax
jmp 0x40ab55
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
jmp 0x40ab56
Function at 0x40ab90
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x436c80
push 0x40e810
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4399d0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 0x80
mov dword [ebp - 0x20], 0x10
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], esi
push 0x80
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
test eax, eax
je 0x40ac6a
mov eax, dword [ebp - 0x20]
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x24], esi
je 0x40ac6a
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [edi]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x40ac66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ac6a
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [edi]
push edx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [edi], eax
test eax, eax
je 0x40ac6a
mov eax, dword [ebp - 0x20]
push eax
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x40ac06
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ac97
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af10
Capabilities:
Check os version

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x1b4], eax
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x34], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x34], 6
jb 0x40af61
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
call sub.NETAPI32.dll_NetWkstaUserEnum
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40b091
mov esi, eax
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x1c], ebx
jbe 0x40b091
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebp, [esp + 0xc4]
dec ebp
mov eax, dword [esi]
push ebx
push ebx
push 0x100
lea edx, [esp + 0xd0]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call edi
lea ecx, [esp + 0xc4]
push ecx
call fcn.00431112
lea eax, [esp + 0xc8]
add esp, 4
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40afe0
sub eax, edx
cmp byte [eax + ebp], 0x24
je 0x40b07b
cmp byte [esp + 0x13], bl
je 0x40b066
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc8]
push eax
push 0x441c18
call fcn.0040ab90
add esp, 0xc
test al, al
je 0x40b066
cmp dword [esp + 0x18], ebx
je 0x40b066
push 0x40
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x40b066
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidA
mov eax, dword [esp + 0x14]
push 1
push eax
call fcn.0040acc0
add esp, 8
test al, al
jne 0x40b0ce
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b066
push eax
call fcn.0040cd53
add esp, 4
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc4]
push ebx
push ecx
call fcn.0040acc0
add esp, 8
test al, al
jne 0x40b0f4
mov eax, dword [esp + 0x24]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jb 0x40afa8
mov ecx, dword [str.S_1_5_18]
mov edx, dword [0x433270]
mov al, byte [0x433274]
mov dword [0x441b10], ecx
mov dword [0x441b14], edx
mov byte [0x441b18], al
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0040c71a
add esp, 0x1b8
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x40b0e0
mov cl, byte [esp + eax + 0xc4]
mov byte [eax + 0x441c58], cl
inc eax
cmp cl, bl
jne 0x40b0e0
jmp 0x40b0b3
xor eax, eax
jmp 0x40b100
mov cl, byte [esp + eax + 0xc4]
mov byte [eax + 0x441c58], cl
inc eax
cmp cl, bl
jne 0x40b100
push 0x441b10
lea eax, [esp + 0xc8]
push str.NPClSrv:SID_of_Current_user_is__s
push eax
call fcn.0040e1bd
add esp, 0xc
jmp 0x40b0b3

Function at 0x40c71a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4399d0]
jne 0x40c724
repz ret
jmp fcn.004134ba
Function at 0x42ccd5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004137be
and dword [ebp - 4], 0
cmp dword [0x4427cc], 0
mov ebx, eax
jne 0x42cd86
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ce37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42ce37
push eax
call fcn.0041374c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4427cc], eax
call esi
push eax
call fcn.0041374c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4427d0], eax
call esi
push eax
call fcn.0041374c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4427d4], eax
call esi
push eax
call fcn.0041374c
pop ecx
mov dword [0x4427dc], eax
test eax, eax
je 0x42cd86
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041374c
pop ecx
mov dword [0x4427d8], eax
mov eax, dword [0x4427d8]
cmp eax, ebx
je 0x42cdde
cmp dword [0x4427dc], ebx
je 0x42cdde
push eax
call fcn.004137c7
push dword [0x4427dc]
mov esi, eax
call fcn.004137c7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42cdde
test edi, edi
je 0x42cdde
call esi
test eax, eax
je 0x42cdd5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42cdd5
test byte [ebp - 0xc], 1
jne 0x42cdde
or dword [ebp + 0x10], 0x200000
jmp 0x42ce17
mov eax, dword [0x4427d0]
cmp eax, ebx
je 0x42ce17
push eax
call fcn.004137c7
pop ecx
test eax, eax
je 0x42ce17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ce17
mov eax, dword [0x4427d4]
cmp eax, ebx
je 0x42ce17
push eax
call fcn.004137c7
pop ecx
test eax, eax
je 0x42ce17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4427cc]
call fcn.004137c7
pop ecx
test eax, eax
je 0x42ce37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ce39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402847
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x40288c
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a46a
mov eax, esi
push eax
call fcn.0040a377
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a46a
push esi
call fcn.0040a377
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098ea
push eax
push esi
call fcn.0040a46a
push esi
call fcn.0040a377
lea esi, [esi + eax + 1]
push 0x4122e4
push esi
call fcn.0040a46a
push esi
call fcn.0040a377
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a27c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.004073ce
cmp eax, esi
jne 0x40291b
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x40293a
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40293c
call ebx
mov edi, eax
test edi, edi
jne 0x40296a
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402968
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402964
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402966
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402cb8
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402cc6
call fcn.00402c8e
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402cf3
test cl, 7
je 0x402cf3
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402cd4
cmp esi, 8
jb 0x402d77
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402cfd
xor edx, edx
test esi, esi
jbe 0x402d97
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d7e
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b42
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403549
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406038
test al, al
je 0x404cdb
cmp byte [ebp - 0x24c0], bl
je 0x404cdb
cmp byte [ebp - 0x1840], bl
je 0x404cdb
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073ce
push eax
call fcn.0040dafe
test eax, eax
je 0x404cdb
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.004073ce
push eax
call fcn.0040dafe
test eax, eax
jne 0x404cdb
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040dbda
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.004073ce
push eax
call fcn.0040a603
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040575a
test al, al
je 0x404c1a
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404bd4
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040575a
test al, al
jne 0x404cdb
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040dbda
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073ce
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.004073ce
push eax
call fcn.0040a46a
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404cdb
lea ecx, [ebp - 0x1420]
call fcn.00404eb6
push 0
push edi
xor bl, bl
call fcn.0040575a
test al, al
jne 0x404ca2
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051cb
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404ccc
lea ecx, [ebp - 0x1420]
call fcn.00404f21
lea ecx, [ebp - 0x1420]
call fcn.00404f9f
lea ecx, [ebp - 0x1420]
call fcn.00405067
mov al, 1
jmp 0x404cdd
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40508a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x4050a4
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4050b7
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4050ca
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406e98
test eax, eax
je 0x405103
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405103
cmp word [eax], bx
je 0x405103
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405117
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405133
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405133
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x405195
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x405161
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040e3e2
jmp 0x40516a
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x40517d
push dword [ebp + 8]
push eax
call fcn.0040a46a
jmp 0x40518b
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040e1bf
push dword [esi + 4]
mov ecx, esi
call fcn.00404efa
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4052c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4052eb
cmp dword [ebp + 0xc], esi
jbe 0x4052e0
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40533b
mov ecx, edi
call fcn.00405044
test al, al
je 0x405321
cmp dword [ebp + 0xc], esi
jbe 0x405321
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052c5
jmp 0x40533e
cmp dword [edi + 0xc], 1
jne 0x405336
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405336
xor eax, eax
jmp 0x40533e
or eax, 0xffffffff
jmp 0x40533e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405578
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405678
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4055a5
dec eax
je 0x40559a
dec eax
jne 0x4055a5
push 0xfffffffffffffff4
jmp 0x40559c
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x4055f4
cmp dword [ebp + 0xc], edi
jbe 0x40560f
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055cc
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x40560f
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4055bc
jmp 0x40560b
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405672
cmp byte [esi + 0x14], 0
je 0x405672
cmp dword [esi + 0xc], 0
jne 0x405672
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.004032f7
test al, al
je 0x405665
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4055ad
test eax, eax
jbe 0x4055ad
push 0
mov ecx, esi
call fcn.00404fcf
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054e0
jmp 0x4055ad
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00403464
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x40575a
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e98
test eax, eax
je 0x40577a
mov eax, dword [esp + 8]
test eax, eax
je 0x40577a
cmp word [eax], 0
je 0x40577a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405784
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x4057ae
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e98
test eax, eax
je 0x4057ce
mov eax, dword [esp + 8]
test eax, eax
je 0x4057ce
cmp word [eax], 0
je 0x4057ce
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4057d8
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x4057db
Capabilities:
Set file attributes

Disassembly:
call fcn.00406e98
test eax, eax
je 0x4057ff
mov eax, dword [esp + 8]
test eax, eax
je 0x4057ff
cmp word [eax], 0
je 0x4057ff
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40580d
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
Function at 0x40588b
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406e98
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4058b0
test esi, esi
je 0x4058b0
cmp word [esi], 0
je 0x4058b0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4058bb
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4058d5
cmp byte [ebp + 0x10], 0
je 0x4058d1
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057db
xor eax, eax
jmp 0x4058ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4058ea
cmp eax, 3
je 0x4058ea
xor eax, eax
inc eax
jmp 0x4058ed
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x4064f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x406522
cmp dword [ebp - 8], ebx
jne 0x406563
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406563
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40650f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40650f
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4065a3
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x412858
push eax
call dword [ecx]
test eax, eax
jl 0x4065a3
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x40659a
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x406d47
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x406d6a
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00406ce0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x406dc0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x406e0b
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x406e20
cmp dword [esi + 0x18], 0x64
jbe 0x406e91
mov ecx, esi
call fcn.004066a6
jmp 0x406e91
mov eax, dword [esi + 4]
cmp eax, edi
je 0x406e31
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.0040a377
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.0040a1df
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040a46a
push ebx
mov ecx, esi
call fcn.004065ac
test al, al
jne 0x406e6d
push ebx
mov ecx, esi
call fcn.004065dc
push ebx
mov ecx, esi
call fcn.00406a0c
push ebx
mov esi, eax
call fcn.0040a1f8
cmp esi, edi
je 0x406e91
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.0040a1f8
pop edi
pop esi
pop ebx
leave
ret 0xc