joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036f0
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x414528
mov eax, 0x4190b0
call fcn.0040edec
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x403727
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x403727
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040e5b0
mov esi, eax
test esi, esi
je 0x403793
mov edx, 0x4130f9
mov eax, esi
call fcn.0040e5f4
mov esi, eax
test eax, eax
je 0x403746
mov eax, ebx
mov edx, esi
call fcn.0040e620
xor ecx, ecx
xor eax, eax
jmp 0x403785
and edx, 0xff
cmp edx, 0x20
je 0x403759
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x403768
cmp edx, 0x2f
jne 0x403784
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403778
cmp edx, 0x53
jne 0x403784
mov dword [0x413050], 1
jmp 0x40378c
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40374c
test cl, cl
jne 0x403793
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x419098], ebx
mov dword [0x419094], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x414928], eax
push 0x65
push dword [0x419094]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x41492c], eax
mov eax, esp
call fcn.00405414
push 0x400
push 0x414128
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x414128
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x414128
mov eax, 0x41909c
call fcn.00404a54
lea eax, [esp + 8]
call fcn.00403fbc
lea eax, [esp + 0x20]
call fcn.00403fbc
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push 0
push 0x40117f
mov dword [0x414d30], edx
push 0
mov dword [0x414d34], ecx
push str.STARTDLG
push dword [0x419098]
call sub.USER32.DLL_DialogBoxParamA
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00403fe0
lea eax, [esp + 8]
mov edx, 2
call fcn.00403fe0
mov eax, esp
mov edx, 2
call fcn.00405488
xor ecx, ecx
mov dword [0x414d34], ecx
mov dword [0x414d30], ecx
cmp dword [0x41387c], 0
jne 0x403896
cmp dword [0x413888], 0
jne 0x403896
mov ecx, 4
mov edx, dword [0x413040]
xor eax, eax
call fcn.004018a2
cmp byte [0x41303d], 0
je 0x4038a4
call fcn.00402650
mov eax, 0x414098
mov ecx, 0x80
xor edx, edx
call fcn.0040e520
cmp dword [0x41304c], 0
jle 0x4038c8
mov eax, dword [0x413040]
call fcn.0040e4a4
push dword [0x414928]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x41492c]
test eax, eax
je 0x4038e2
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x419088], 0
jne 0x403903
cmp dword [0x41387c], 0
je 0x403903
mov eax, 0x419088
mov edx, 0xff
call fcn.0040be8c
mov dword [0x41387c], 2
push dword [0x419088]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x404008
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 0x40402d
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.00404164
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 0x404073
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 0x4040c4
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404141
mov eax, dword [ebx + 4]
test eax, eax
je 0x4040dc
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.0040e5a0
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040e490
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040e620
mov edx, edi
mov eax, ebx
call fcn.004047a0
test al, al
jne 0x40411d
mov edx, edi
mov eax, ebx
call fcn.004047d8
mov edx, edi
mov eax, ebx
call fcn.00404618
mov ebx, eax
mov eax, edi
call fcn.0040e4a4
test ebx, ebx
je 0x404141
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040e4a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404358
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 0x4043be
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4043cf
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4043be
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 0x404376
cmp dword [esp], 0
je 0x404376
xor ebx, ebx
cmp dword [esp], 0
je 0x404419
lea eax, [esp + 4]
push eax
push 0x413804
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404419
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40440f
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 0x404f24
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.00405120
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 0x404fbb
cmp byte [ebp + 8], 0
jne 0x404fbb
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 0x404ff9
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.00404da8
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 0x405107
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405058
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404da8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x4050f7
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 0x405080
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 0x405117
inc esi
test edi, edi
je 0x405117
cmp esi, 0x200
jl 0x405017
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4052f0
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 0x405337
mov edx, edi
mov eax, ebx
call fcn.0040e620
mov eax, ebx
call fcn.0040e5a0
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040e620
mov eax, ebx
call fcn.0040e5a0
inc eax
add ebx, eax
mov eax, 0x85
call fcn.004028b0
mov edx, eax
mov eax, ebx
call fcn.0040e620
mov eax, ebx
call fcn.0040e5a0
inc eax
add ebx, eax
mov edx, 0x413560
mov eax, ebx
call fcn.0040e620
mov eax, ebx
call fcn.0040e5a0
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040e520
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x419094]
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.00405a28
cmp esi, eax
jne 0x4053d0
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 0x405400
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405400
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 0x406374
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.004051c4
test eax, eax
je 0x40639a
test ebx, ebx
je 0x40639a
cmp word [ebx], 0
je 0x40639a
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x4063a2
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x4063b5
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406660
xor eax, eax
jmp 0x4063d0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4063c4
cmp eax, 3
jne 0x4063cb
mov eax, 2
jmp 0x4063d0
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004051c4
test eax, eax
je 0x4065ff
test ebx, ebx
je 0x4065ff
cmp word [ebx], 0
je 0x4065ff
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 0x406634
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.004051c4
test eax, eax
je 0x406656
test ebx, ebx
je 0x406656
cmp word [ebx], 0
je 0x406656
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 0x406660
Capabilities:
Set file attributes

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

Disassembly:
push ebx
push esi
mov esi, 0x415140
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x40819a
call fcn.00408148
mov eax, ebp
cmp edi, 8
jb 0x408225
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 0x4081a5
xor edx, edx
jmp 0x40823f
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 0x408229
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x408847
test esi, esi
jg 0x40884e
xor eax, eax
jmp 0x408900
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x2c]
mov ecx, 0x10
call fcn.0040e534
test esi, esi
jns 0x408868
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x4088e7
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00408bbc
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x40887a
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040e534
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408b24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x417e02]
lea ebx, [ebx*4 + 0x417a02]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x418202]
lea edx, [edx*4 + 0x418602]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x408b36
inc eax
cmp eax, 4
jl 0x408b34
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040e534
inc esi
cmp esi, 0xa
jl 0x408b32
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x409e00
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40d340
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 0x40d363
mov al, 1
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x40d374
or esi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40d383
or dword [ebp - 8], 2
call fcn.004051c4
test eax, eax
je 0x40d3af
test edi, edi
je 0x40d3af
cmp word [edi], 0
je 0x40d3af
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 0x40d3c8
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 0x40d3e1
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40d3e1
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 0x40d42a
mov dword [ebx + 4], esi
test edi, edi
je 0x40d416
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.0040ecf4
jmp 0x40d41f
mov word [ebx + 0x416], 0
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.0040e620
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d5c8
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x40d5d7
cmp byte [ebx + 0x13], 0
jne 0x40d5db
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x40d5e8
mov eax, ebx
call fcn.0040d548
call fcn.004051c4
test eax, eax
je 0x40d611
cmp word [ebx + 0x416], 0
je 0x40d611
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x40d622
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret
Function at 0x40d624
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40d705
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40d65f
dec eax
je 0x40d649
dec eax
je 0x40d655
jmp 0x40d65f
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40d65f
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40d6b1
xor ebp, ebp
cmp esi, ebp
jle 0x40d6cd
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40d684
mov ecx, esi
sub ecx, ebp
jmp 0x40d689
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40d6cd
add ebp, 0x4000
cmp esi, ebp
jg 0x40d66b
jmp 0x40d6cd
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40d701
cmp dword [edi + 0xc], 0
jne 0x40d701
lea ebp, [edi + 0x15]
mov eax, 0x419088
mov edx, ebp
call fcn.0040bd50
test al, al
jne 0x40d65f
mov edx, ebp
mov eax, 0x419088
call fcn.0040bd1c
jmp 0x40d701
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d7dc
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 0x40d803
cmp esi, 0x4e20
jle 0x40d7f9
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 0x40d854
mov eax, ebx
call fcn.0040dacc
test al, al
je 0x40d83b
cmp esi, 0x4e20
jle 0x40d83b
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040d7dc
jmp 0x40d857
cmp dword [ebx + 0xc], 1
jne 0x40d84f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40d84f
xor eax, eax
jmp 0x40d857
or eax, 0xffffffff
jmp 0x40d857
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
cmp byte [0x4136fc], 0
jne 0x40ec0d
call fcn.0040e7d4
mov dword [0x4136f8], eax
inc byte [0x4136fc]
call fcn.0040e7d4
sub eax, dword [0x4136f8]
cmp eax, 0x64
jle 0x40ec49
cmp dword [0x41387c], 0
je 0x40ec44
mov eax, 0x419088
mov edx, 0xff
call fcn.0040be8c
mov eax, 0x419088
mov edx, 0xff
call fcn.0040be84
call fcn.00402950
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219