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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x40bc5c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x40b019], 0
jne 0x402d3c
mov eax, dword [0x40d13c]
call fcn.00403e9c
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x40b091
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x40b019], 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 0x402d88
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402d93
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 0x40b0b8
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403440
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x40c934
mov eax, 0x40d590
call fcn.00406384
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x403477
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x403477
lea eax, [esi + 1]
mov edx, 0x22
call fcn.004066a4
mov esi, eax
test esi, esi
je 0x4034e3
mov edx, 0x40b0ea
mov eax, esi
call fcn.004066e8
mov esi, eax
test eax, eax
je 0x403496
mov eax, ebx
mov edx, esi
call fcn.00406714
xor ecx, ecx
xor eax, eax
jmp 0x4034d5
and edx, 0xff
cmp edx, 0x20
je 0x4034a9
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x4034b8
cmp edx, 0x2f
jne 0x4034d4
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4034c8
cmp edx, 0x53
jne 0x4034d4
mov dword [0x40b050], 1
jmp 0x4034dc
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40349c
test cl, cl
jne 0x4034e3
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x40bc90], ebx
mov dword [0x40bc8c], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x40cd34], eax
push 0x65
push dword [0x40bc8c]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x40cd38], eax
mov eax, esp
call fcn.00405040
push 0x400
push 0x40c534
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x40c534
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x40c534
mov eax, 0x40bc94
call fcn.004047a4
lea eax, [esp + 8]
call fcn.00403d0c
lea eax, [esp + 0x20]
call fcn.00403d0c
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push 0
push 0x40109f
mov dword [0x40d13c], edx
push 0
mov dword [0x40d140], ecx
push str.STARTDLG
push dword [0x40bc90]
call sub.USER32.DLL_DialogBoxParamA
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00403d30
lea eax, [esp + 8]
mov edx, 2
call fcn.00403d30
mov eax, esp
mov edx, 2
call fcn.004050b4
xor ecx, ecx
mov dword [0x40d140], ecx
mov dword [0x40d13c], ecx
cmp dword [0x40bc64], 0
jne 0x4035e6
cmp dword [0x40bc70], 0
jne 0x4035e6
mov ecx, 4
mov edx, dword [0x40b040]
xor eax, eax
call fcn.004017c2
cmp byte [0x40b03d], 0
je 0x4035f4
call fcn.004025a3
mov eax, 0x40c4a8
mov ecx, 0x80
xor edx, edx
call fcn.00406638
cmp dword [0x40b04c], 0
jle 0x403618
mov eax, dword [0x40b040]
call fcn.0040644c
push dword [0x40cd34]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x40cd38]
test eax, eax
je 0x403632
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x40bc80], 0
jne 0x403653
cmp dword [0x40bc64], 0
je 0x403653
mov eax, 0x40bc80
mov edx, 0xff
call fcn.00406248
mov dword [0x40bc64], 2
push dword [0x40bc80]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x403d58
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 0x403d7d
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.00403eb4
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 0x403dc3
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 0x403e14
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x403e91
mov eax, dword [ebx + 4]
test eax, eax
je 0x403e2c
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.00406694
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.00406438
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.00406714
mov edx, edi
mov eax, ebx
call fcn.004044f0
test al, al
jne 0x403e6d
mov edx, edi
mov eax, ebx
call fcn.00404528
mov edx, edi
mov eax, ebx
call fcn.00404368
mov ebx, eax
mov eax, edi
call fcn.0040644c
test ebx, ebx
je 0x403e91
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040644c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4040a8
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 0x40410e
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x40411f
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x40410e
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 0x4040c6
cmp dword [esp], 0
je 0x4040c6
xor ebx, ebx
cmp dword [esp], 0
je 0x404169
lea eax, [esp + 4]
push eax
push 0x40bbec
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404169
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40415f
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 0x404c74
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.00404e70
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 0x404d0b
cmp byte [ebp + 8], 0
jne 0x404d0b
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 0x404d49
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.00404af8
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 0x404e57
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x404da8
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404af8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x404e47
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 0x404dd0
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 0x404e67
inc esi
test edi, edi
je 0x404e67
cmp esi, 0x200
jl 0x404d67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405910
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.00404f14
test eax, eax
je 0x405936
test ebx, ebx
je 0x405936
cmp word [ebx], 0
je 0x405936
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40593e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405951
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00405abc
xor eax, eax
jmp 0x40596c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405960
cmp eax, 3
jne 0x405967
mov eax, 2
jmp 0x40596c
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00404f14
test eax, eax
je 0x405a93
test ebx, ebx
je 0x405a93
cmp word [ebx], 0
je 0x405a93
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 0x405abc
Capabilities:
Set file attributes

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

Disassembly:
push ebx
push esi
mov esi, 0x40d14c
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x405bd6
call fcn.00405b84
mov eax, ebp
cmp edi, 8
jb 0x405c61
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 0x405be1
xor edx, edx
jmp 0x405c7b
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 0x405c65
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405d1c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
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 + 0x14], 0
mov edi, ecx
je 0x405d3f
mov al, 1
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x405d50
or esi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x405d5f
or dword [ebp - 8], 2
call fcn.00404f14
test eax, eax
je 0x405d8b
test edi, edi
je 0x405d8b
cmp word [edi], 0
je 0x405d8b
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 0x405da4
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 0x405dbd
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x405dbd
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x12], 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 0x405e06
mov dword [ebx + 4], esi
test edi, edi
je 0x405df2
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.004062fc
jmp 0x405dfb
mov word [ebx + 0x416], 0
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.00406714
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405e94
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x405ea3
cmp byte [ebx + 0x13], 0
jne 0x405ea7
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x405eb4
mov eax, ebx
call fcn.00405e14
call fcn.00404f14
test eax, eax
je 0x405edd
cmp word [ebx + 0x416], 0
je 0x405edd
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x405eee
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret

Function at 0x405fc0
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 0x405fe7
cmp esi, 0x4e20
jle 0x405fdd
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 0x406038
mov eax, ebx
call fcn.00406110
test al, al
je 0x40601f
cmp esi, 0x4e20
jle 0x40601f
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00405fc0
jmp 0x40603b
cmp dword [ebx + 0xc], 1
jne 0x406033
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x406033
xor eax, eax
jmp 0x40603b
or eax, 0xffffffff
jmp 0x40603b
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x406944
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.004068a8
mov ebx, eax
mov eax, dword [0x419e2c]
call fcn.0040657c
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x419e44
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
mov eax, dword [0x40dd2c]
mov eax, dword [eax + 0x10]
test al, 0x5f
je 0x40699c
and eax, 0x7f
push eax
push 0x419e44
call sub.KERNEL32.DLL_SetFileAttributesA
cmp esi, 0xffffffff
jne 0x4069bb
push 0x419e44
mov eax, 0x6d
call fcn.00402828
push eax
call fcn.00402de8
add esp, 8
jmp 0x4069f3
test ebx, ebx
je 0x4069ed
test bl, 1
je 0x4069c8
mov eax, esp
jmp 0x4069ca
xor eax, eax
test bl, 2
je 0x4069d5
lea edx, [esp + 8]
jmp 0x4069d7
xor edx, edx
test bl, 4
je 0x4069e2
lea ecx, [esp + 0x10]
jmp 0x4069e4
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 0x409000
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40b76e
mov eax, 0x419e44
call fcn.0040651c
mov dword [0x419e2c], eax
test eax, eax
jne 0x409069
push 0
push 0x419e44
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40b76e
mov eax, 0x419e44
call fcn.0040651c
mov dword [0x419e2c], eax
test eax, eax
jne 0x409069
mov eax, 0x40bc80
mov edx, 9
call fcn.00406248
push 0x419e44
mov eax, 0x6e
call fcn.00402828
push eax
call fcn.00402de8
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4091f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40d708], 0
jg 0x409212
dec dword [0x40d708]
xor eax, eax
mov dword [0x419d40], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x419d40], 0
jg 0x409267
push dword [0x419d5c]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x419d38]
call fcn.004065c8
mov dword [0x419d40], eax
test eax, eax
jne 0x40924c
xor edx, edx
or eax, 0xffffffff
mov dword [0x419d40], edx
pop esi
pop ebx
ret
add dword [0x419d64], 0x2000
mov edx, dword [0x419d38]
mov dword [0x419d3c], edx
call fcn.004090bc
mov ecx, dword [0x40dd2c]
test byte [ecx + 0x14], 1
je 0x40929e
mov esi, dword [0x419d40]
mov ebx, dword [0x419d3c]
jmp 0x409295
call fcn.0040a454
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040a478
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x409281
dec dword [0x419d40]
mov ecx, dword [0x419d3c]
inc dword [0x419d3c]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

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

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

Function at 0x40a39a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.0040a4e4
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.0040664c
xor ebx, ebx
call fcn.0040a454
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040a478
inc ebx
cmp ebx, 0xc
jl 0x40a3b8
mov edx, dword [0x40dd2c]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x40a3f1
movzx ecx, word [0x419d8a]
sar ecx, 8
jmp 0x40a3fd
mov ecx, dword [0x419d90]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40a409
or eax, 0xffffffff
jmp 0x40a44c
mov edx, dword [0x419d40]
cmp edx, dword [0x40d708]
jle 0x40a41f
mov ebx, dword [0x40d708]
jmp 0x40a425
mov ebx, dword [0x419d40]
mov esi, dword [0x419d3c]
jmp 0x40a441
call fcn.0040a454
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040a478
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40a42d
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x40a478
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x419f50]
push ebx
mov ecx, edx
mov ebx, dword [0x419d30]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x419f50], ecx
and ecx, 0xff
add dword [0x419f54], ecx
imul edx, dword [0x419f54], 0x8088405
inc edx
mov dword [0x419f54], edx
shr edx, 0x18
mov ecx, dword [0x419f58]
xor edx, ecx
mov ebx, dword [0x419d30]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x419f58], edx
pop ebx
ret

Function at 0x40a6c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40a6d4
xor eax, eax
jmp 0x40a7cc
call fcn.0040a6b8
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40a7a9
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40a6e5
test edi, edi
je 0x40a7c7
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40a7ad
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret