joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b50
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x4117c0
push 1
push 0
push 0x4117d0
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402c4f
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402bb3
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402bc5
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040c45c
lea eax, [ebp - 0x40c]
call fcn.00405f08
cmp byte [ebp - 0x40c], 0
je 0x402bf6
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x4117f0
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402c46
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402c3d
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402c60
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x402dc4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x411870]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x411019], 0
jne 0x402e20
mov eax, dword [0x412d2c]
call fcn.00404258
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x411099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x411019], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x402e7a
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x402ece
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4110c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403780
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x413968
push ebx
mov ebx, 0x412524
push esi
call fcn.0040cc08
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4037ba
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4037ba
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040c3ec
mov esi, eax
test esi, esi
je 0x40386a
mov edx, 0x411108
mov eax, esi
call fcn.0040c430
mov esi, eax
test eax, eax
je 0x4037dd
mov eax, ebx
mov edx, esi
call fcn.0040c45c
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40385a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x4037f4
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x4037fa
inc esi
test esi, 1
jne 0x403859
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40381b
test eax, eax
je 0x403825
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403825
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403859
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403835
cmp edx, 0x53
jne 0x403859
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403846
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403859
mov dword [0x411058], 1
mov byte [0x41105c], 1
jmp 0x403861
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4037e7
cmp byte [ebp - 1], 0
jne 0x40386a
mov byte [ebx], 0
push 0x400
push 0x412124
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x412124
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x413960], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x412924], eax
push 0x65
push dword [0x413960]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x412928], eax
lea eax, [ebp - 0xc]
call fcn.00405520
mov edx, 0x412124
mov eax, 0x41394c
call fcn.00404b60
lea eax, [ebp - 0x24]
call fcn.004040c8
lea eax, [ebp - 0x3c]
call fcn.004040c8
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x412d2c], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x412d30], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x411870], eax
xor edx, edx
mov dword [0x412d30], edx
mov dword [0x412d2c], edx
cmp dword [0x411878], 0
jne 0x40393d
cmp dword [0x411884], 0
jne 0x40393d
mov ecx, 4
mov edx, dword [0x411048]
xor eax, eax
call fcn.004018d1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004040ec
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004040ec
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405594
cmp byte [0x411044], 0
je 0x403972
call fcn.004026e6
mov eax, 0x412094
mov ecx, 0x80
xor edx, edx
call fcn.0040c35c
cmp dword [0x411054], 0
jle 0x403996
mov eax, dword [0x411048]
call fcn.0040c2e0
push dword [0x412924]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x412928]
test eax, eax
je 0x4039b0
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x413940], 0
jne 0x4039d1
cmp dword [0x411878], 0
je 0x4039d1
mov eax, 0x413940
mov edx, 0xff
call fcn.004099f4
mov dword [0x411878], 2
push dword [0x413940]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4039f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x411888], 1
mov ebx, dword [0x411870]
test ebx, ebx
je 0x403a18
mov eax, 0x7d
call fcn.00402930
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x41188c], edx
mov dword [0x411890], 1
mov eax, dword [0x411870]
test eax, eax
je 0x403a71
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x411054], 0
jne 0x403a68
cmp byte [0x411019], 0
jne 0x403a68
push 0
push 1
push 0x111
push dword [0x411870]
call sub.USER32.DLL_SendMessageA
jmp 0x403a68
call fcn.004029ac
cmp dword [0x411878], 2
jne 0x403a63
cmp byte [0x411044], 0
je 0x403a7f
call fcn.004026e6
pop ebx
ret

Function at 0x404114
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 0x404139
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.00404270
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 0x40417f
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 0x4041d0
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x40424d
mov eax, dword [ebx + 4]
test eax, eax
je 0x4041e8
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.0040c3dc
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040c2cc
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040c45c
mov edx, edi
mov eax, ebx
call fcn.004048ac
test al, al
jne 0x404229
mov edx, edi
mov eax, ebx
call fcn.004048e4
mov edx, edi
mov eax, ebx
call fcn.00404724
mov ebx, eax
mov eax, edi
call fcn.0040c2e0
test ebx, ebx
je 0x40424d
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040c2e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404464
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 0x4044ca
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4044db
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4044ca
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 0x404482
cmp dword [esp], 0
je 0x404482
xor ebx, ebx
cmp dword [esp], 0
je 0x404525
lea eax, [esp + 4]
push eax
push 0x411800
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404525
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40451b
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 0x405030
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.0040522c
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 0x4050c7
cmp byte [ebp + 8], 0
jne 0x4050c7
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 0x405105
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.00404eb4
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 0x405213
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405164
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404eb4
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x405203
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 0x40518c
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 0x405223
inc esi
test edi, edi
je 0x405223
cmp esi, 0x200
jl 0x405123
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4053fc
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 0x405443
mov edx, edi
mov eax, ebx
call fcn.0040c45c
mov eax, ebx
call fcn.0040c3dc
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040c45c
mov eax, ebx
call fcn.0040c3dc
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402930
mov edx, eax
mov eax, ebx
call fcn.0040c45c
mov eax, ebx
call fcn.0040c3dc
inc eax
add ebx, eax
mov edx, 0x41156c
mov eax, ebx
call fcn.0040c45c
mov eax, ebx
call fcn.0040c3dc
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040c35c
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x413960]
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.00405b3c
cmp esi, eax
jne 0x4054dc
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 0x40550c
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x40550c
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 0x40646c
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.004052d0
test eax, eax
je 0x406492
test ebx, ebx
je 0x406492
cmp word [ebx], 0
je 0x406492
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40649a
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x4064ad
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406828
xor eax, eax
jmp 0x4064c8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4064bc
cmp eax, 3
jne 0x4064c3
mov eax, 2
jmp 0x4064c8
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052d0
test eax, eax
je 0x4067c7
test ebx, ebx
je 0x4067c7
cmp word [ebx], 0
je 0x4067c7
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 0x4067fc
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004052d0
test eax, eax
je 0x40681e
test ebx, ebx
je 0x40681e
cmp word [ebx], 0
je 0x40681e
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 0x406828
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.004052d0
test eax, eax
je 0x406855
test ebx, ebx
je 0x406855
cmp word [ebx], 0
je 0x406855
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x406864
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 0x4083e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41313c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x4083fa
call fcn.004083a8
mov eax, ebp
jmp 0x408412
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 0x40841a
test al, 7
jne 0x4083fe
cmp esi, 8
jb 0x4084a3
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 0x408423
xor edx, edx
jmp 0x4084bd
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 0x4084a7
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40af50
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40af59
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.004061c4
lea eax, [esp + 0xc40]
call fcn.004061c4
lea eax, [esp + 0xc6c]
call fcn.004061c4
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.0040572c
test al, al
jne 0x40afb9
xor eax, eax
jmp 0x40b106
cmp byte [esp], 0
je 0x40afc9
cmp byte [esp + 0xc98], 0
jne 0x40afd0
xor eax, eax
jmp 0x40b106
mov eax, esp
call fcn.00405b3c
lea edx, [esp + 0xc98]
call fcn.00406910
test eax, eax
je 0x40affe
mov eax, esi
call fcn.00405b3c
lea edx, [esp + 0xc98]
call fcn.00406910
test eax, eax
je 0x40b005
xor eax, eax
jmp 0x40b106
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.0040c46c
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00405b3c
push eax
call fcn.0040c554
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.0040679c
test al, al
je 0x40b043
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40b007
mov eax, edi
xor edx, edx
call fcn.0040679c
test al, al
je 0x40b057
xor eax, eax
jmp 0x40b106
lea eax, [esp + 0x14b4]
mov ecx, 0x400
mov edx, esi
call fcn.0040c46c
mov eax, esp
call fcn.00405b3c
push eax
lea eax, [esp + 0x14b8]
call fcn.00405b3c
pop edx
call fcn.0040c45c
push edi
lea ecx, [esp + 0x14b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40b09a
xor eax, eax
jmp 0x40b106
lea eax, [esp + 0x18b4]
call fcn.0040b110
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.0040679c
test al, al
jne 0x40b0c7
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.0040b2fc
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40b0f1
lea eax, [esp + 0x18b4]
call fcn.0040b3cc
lea eax, [esp + 0x18b4]
call fcn.0040b454
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.0040b164
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x40b1ac
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 0x40b1cf
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40b1e0
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40b1ef
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x40b1f9
xor eax, eax
jmp 0x40b1fe
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004052d0
test eax, eax
je 0x40b22b
test esi, esi
je 0x40b22b
cmp word [esi], 0
je 0x40b22b
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 0x40b242
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 0x40b25b
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40b25b
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 0x40b2c5
mov dword [ebx + 4], edi
test esi, esi
je 0x40b290
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040cb10
jmp 0x40b299
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40b2ac
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040c45c
jmp 0x40b2bb
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040ca88
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040b3ac
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8