joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402209
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x402212
cmp byte [ebx], 0
jne 0x402219
xor eax, eax
jmp 0x402299
xor esi, esi
jmp 0x40225c
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402243
cmp dword [ebp - 4], 0
je 0x402243
test esi, esi
jne 0x402243
cmp dword [ebp + 8], 0
je 0x40223f
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x40225c
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402251
cmp ecx, 0xa
jne 0x402259
cmp ecx, 0xd
jne 0x402261
inc ebx
jmp 0x402261
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40221d
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402297
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402297
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.004064bc
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4024d7
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040643c
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.00406510
test eax, eax
jne 0x40256e
push 0x40b1f0
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040643c
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.004063e0
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x402629
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x40b05c], 0
je 0x4026a0
cmp byte [0x40cd34], 0
je 0x4026a0
lea edx, [esp + 8]
mov eax, 0x40cd34
call fcn.004025f8
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4026a0
mov eax, ebx
call fcn.0040643c
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x402838
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x4029a0
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 0x40bba4
push 1
push 0
push 0x40bbb4
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402a9f
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 0x402a03
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 0x402a15
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.004064bc
lea eax, [ebp - 0x40c]
call fcn.004055d8
cmp byte [ebp - 0x40c], 0
je 0x402a46
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 0x40bbd4
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402a96
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 0x402a8d
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 0x402c14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x40bc54]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x40b021], 0
jne 0x402c70
mov eax, dword [0x40d134]
call fcn.00403e64
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x40b099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x40b021], 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
and dword [esp + 8], 0xbfffffff
mov byte [esp + 0x19], 0
test bl, bl
je 0x402cbc
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402cc7
and dword [esp + 8], 0xfffffffe
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x40000001
mov eax, esp
push eax
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
push 0x40b0c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403408
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x40c92c
mov eax, 0x40d584
call fcn.0040612c
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40343f
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40343f
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040644c
mov esi, eax
test esi, esi
je 0x4034ab
mov edx, 0x40b0f2
mov eax, esi
call fcn.00406490
mov esi, eax
test eax, eax
je 0x40345e
mov eax, ebx
mov edx, esi
call fcn.004064bc
xor ecx, ecx
xor eax, eax
jmp 0x40349d
and edx, 0xff
cmp edx, 0x20
je 0x403471
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x403480
cmp edx, 0x2f
jne 0x40349c
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403490
cmp edx, 0x53
jne 0x40349c
mov dword [0x40b058], 1
jmp 0x4034a4
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403464
test cl, cl
jne 0x4034ab
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x40bc88], ebx
mov dword [0x40bc84], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x40cd2c], eax
push 0x65
push dword [0x40bc84]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x40cd30], eax
mov eax, esp
call fcn.00404ecc
push 0x400
push 0x40c52c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x40c52c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x40c52c
mov eax, 0x40bc8c
call fcn.004046b4
lea eax, [esp + 8]
call fcn.00403cd4
lea eax, [esp + 0x20]
call fcn.00403cd4
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push 0
push 0x40100c
mov dword [0x40d134], edx
push 0
mov dword [0x40d138], ecx
push str.STARTDLG
push dword [0x40bc88]
call sub.USER32.DLL_DialogBoxParamA
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00403cf8
lea eax, [esp + 8]
mov edx, 2
call fcn.00403cf8
mov eax, esp
mov edx, 2
call fcn.00404f40
xor ecx, ecx
mov dword [0x40d138], ecx
mov dword [0x40d134], ecx
cmp dword [0x40bc5c], 0
jne 0x4035ae
cmp dword [0x40bc68], 0
jne 0x4035ae
mov ecx, 4
mov edx, dword [0x40b048]
xor eax, eax
call fcn.0040178a
cmp byte [0x40b045], 0
je 0x4035bc
call fcn.004024d7
mov eax, 0x40c4a0
mov ecx, 0x80
xor edx, edx
call fcn.004063e0
cmp dword [0x40b054], 0
jle 0x4035e0
mov eax, dword [0x40b048]
call fcn.004061f4
push dword [0x40cd2c]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x40cd30]
test eax, eax
je 0x4035fa
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x40bc78], 0
jne 0x40361b
cmp dword [0x40bc5c], 0
je 0x40361b
mov eax, 0x40bc78
mov edx, 0xff
call fcn.00405ff0
mov dword [0x40bc5c], 2
push dword [0x40bc78]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x403d20
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 0x403d45
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.00403e7c
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 0x403d8b
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 0x403ddc
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x403e59
mov eax, dword [ebx + 4]
test eax, eax
je 0x403df4
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.0040643c
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.004061e0
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.004064bc
mov edx, edi
mov eax, ebx
call fcn.00404400
test al, al
jne 0x403e35
mov edx, edi
mov eax, ebx
call fcn.00404438
mov edx, edi
mov eax, ebx
call fcn.00404278
mov ebx, eax
mov eax, edi
call fcn.004061f4
test ebx, ebx
je 0x403e59
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.004061f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404060
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 0x4040c6
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4040d7
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4040c6
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 0x40407e
cmp dword [esp], 0
je 0x40407e
xor ebx, ebx
cmp dword [esp], 0
je 0x404121
lea eax, [esp + 4]
push eax
push 0x40bbe4
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404121
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x404117
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 0x404b84
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.00404d80
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 0x404c1b
cmp byte [ebp + 8], 0
jne 0x404c1b
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 0x404c59
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.00404a08
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 0x404d67
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x404cb8
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404a08
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x404d57
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 0x404ce0
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 0x404d77
inc esi
test edi, edi
je 0x404d77
cmp esi, 0x200
jl 0x404c77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405700
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.00404e24
test eax, eax
je 0x405726
test ebx, ebx
je 0x405726
cmp word [ebx], 0
je 0x405726
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40572e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405741
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004058ac
xor eax, eax
jmp 0x40575c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405750
cmp eax, 3
jne 0x405757
mov eax, 2
jmp 0x40575c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4058ac
Capabilities:
Set file attributes

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

Disassembly:
push ebx
push esi
mov esi, 0x40d144
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x4059c6
call fcn.00405974
mov eax, ebp
cmp edi, 8
jb 0x405a51
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x4059d1
xor edx, edx
jmp 0x405a6b
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x405a55
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405b04
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebx + 0xc18], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x405b2d
or esi, 0x40000000
mov dword [ebp - 8], 1
cmp byte [ebx + 0x12], 0
jne 0x405b40
cmp byte [ebp + 0xc], 0
je 0x405b44
or dword [ebp - 8], 2
call fcn.00404e24
test eax, eax
je 0x405b70
test edi, edi
je 0x405b70
cmp word [edi], 0
je 0x405b70
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push edi
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
jmp 0x405b89
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x405ba2
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x405ba2
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x13], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x405be0
mov dword [ebx + 4], esi
test edi, edi
je 0x405bd5
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.004060a4
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.004064bc
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405c58
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x405c67
cmp byte [ebx + 0x14], 0
jne 0x405c6b
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x405c78
mov eax, ebx
call fcn.00405bec
call fcn.00404e24
test eax, eax
je 0x405ca1
cmp word [ebx + 0x416], 0
je 0x405ca1
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x405cb2
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret

Function at 0x405d84
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 0x405dab
cmp esi, 0x4e20
jle 0x405da1
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 0x405dfc
mov eax, ebx
call fcn.00405ed4
test al, al
je 0x405de3
cmp esi, 0x4e20
jle 0x405de3
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00405d84
jmp 0x405dff
cmp dword [ebx + 0xc], 1
jne 0x405df7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x405df7
xor eax, eax
jmp 0x405dff
or eax, 0xffffffff
jmp 0x405dff
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4066ec
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov eax, esp
call fcn.00406650
mov ebx, eax
mov eax, dword [0x419e20]
call fcn.00406324
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x419e38
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
mov eax, dword [0x40dd20]
mov eax, dword [eax + 0x10]
test al, 0x5f
je 0x406744
and eax, 0x7f
push eax
push 0x419e38
call sub.KERNEL32.DLL_SetFileAttributesA
cmp esi, 0xffffffff
jne 0x406763
push 0x419e38
mov eax, 0x6d
call fcn.0040275c
push eax
call fcn.00402d1c
add esp, 8
jmp 0x40679b
test ebx, ebx
je 0x406795
test bl, 1
je 0x406770
mov eax, esp
jmp 0x406772
xor eax, eax
test bl, 2
je 0x40677d
lea edx, [esp + 8]
jmp 0x40677f
xor edx, edx
test bl, 4
je 0x40678a
lea ecx, [esp + 0x10]
jmp 0x40678c
xor ecx, ecx
push eax
push edx
push ecx
push esi
call sub.KERNEL32.DLL_SetFileTime
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x408da8
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40b766
mov eax, 0x419e38
call fcn.004062c4
mov dword [0x419e20], eax
test eax, eax
jne 0x408e0c
push 0
push 0x419e38
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40b766
mov eax, 0x419e38
call fcn.004062c4
mov dword [0x419e20], eax
test eax, eax
jne 0x408e0c
mov dword [0x40b018], 1
push 0x419e38
mov eax, 0x6e
call fcn.0040275c
push eax
call fcn.00402d1c
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x408f98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40d6fc], 0
jg 0x408fb6
dec dword [0x40d6fc]
xor eax, eax
mov dword [0x419d34], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x419d34], 0
jg 0x40900b
push dword [0x419d50]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x419d2c]
call fcn.00406370
mov dword [0x419d34], eax
test eax, eax
jne 0x408ff0
xor edx, edx
or eax, 0xffffffff
mov dword [0x419d34], edx
pop esi
pop ebx
ret
add dword [0x419d58], 0x2000
mov edx, dword [0x419d2c]
mov dword [0x419d30], edx
call fcn.00408e60
mov ecx, dword [0x40dd20]
test byte [ecx + 0x14], 1
je 0x409042
mov esi, dword [0x419d34]
mov ebx, dword [0x419d30]
jmp 0x409039
call fcn.0040a1f4
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040a218
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x409025
dec dword [0x419d34]
mov ecx, dword [0x419d30]
inc dword [0x419d30]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

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

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40911b
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40a13a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.0040a284
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.004063f4
xor ebx, ebx
call fcn.0040a1f4
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040a218
inc ebx
cmp ebx, 0xc
jl 0x40a158
mov edx, dword [0x40dd20]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x40a191
movzx ecx, word [0x419d7e]
sar ecx, 8
jmp 0x40a19d
mov ecx, dword [0x419d84]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40a1a9
or eax, 0xffffffff
jmp 0x40a1ec
mov edx, dword [0x419d34]
cmp edx, dword [0x40d6fc]
jle 0x40a1bf
mov ebx, dword [0x40d6fc]
jmp 0x40a1c5
mov ebx, dword [0x419d34]
mov esi, dword [0x419d30]
jmp 0x40a1e1
call fcn.0040a1f4
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040a218
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40a1cd
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret