joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x250
mov eax, 0x447dac
call fcn.0042be00
mov esi, ecx
push 7
xor eax, eax
pop ebx
xor ecx, ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x25c], esi
mov word [esi], cx
lea edi, [esi + 0x1c]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], eax
mov dword [ebp - 4], eax
mov word [edi], cx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], eax
mov word [esi + 0x38], cx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], eax
mov word [esi + 0x54], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x70], 0xe
push dword [esi + 0x70]
lea eax, [ebp - 0x218]
push str.SOFTWAREMicrosoftOffice_ld.0ExcelInstallRoot
push eax
call fcn.0042d27b
add esp, 0xc
push 1
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x258]
call fcn.00408c70
cmp dword [ebp - 0x258], 0
je 0x425554
and dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x234], ax
push edi
push str.Path
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 5
call fcn.00408b00
test eax, eax
je 0x425545
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x425545
cmp dword [edi + 0x14], 8
jb 0x4254d6
mov eax, dword [edi]
jmp 0x4254d8
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4254f8
push 0x453978
call fcn.0042c211
pop ecx
push eax
push 0x453978
mov ecx, edi
call fcn.0040d350
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x234]
call fcn.00409cf0
push str.excel.exe
call fcn.0042c211
pop ecx
push eax
push str.excel.exe
lea ecx, [ebp - 0x234]
call fcn.0040d350
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x425539
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42557c
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.00409e50
cmp dword [ebp - 0x258], 0
mov byte [ebp - 4], 3
je 0x42556d
push dword [ebp - 0x258]
call dword [ebp - 0x24c]
dec dword [esi + 0x70]
cmp dword [esi + 0x70], 8
jg 0x425455
jmp 0x4255e8
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.00409cf0
push dword [esi + 0x70]
lea eax, [ebp - 0x218]
push str.SOFTWAREMicrosoftOffice_ld.0_
push eax
call fcn.0042d27b
lea eax, [ebp - 0x218]
push eax
call fcn.0042c211
add esp, 0x10
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x54]
call fcn.00408e30
push edi
push 1
lea ecx, [ebp - 0x234]
call fcn.00409e50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x258], edi
je 0x4255e8
push dword [ebp - 0x258]
call dword [ebp - 0x24c]
or dword [esi + 0x74], 0xffffffff
mov eax, esi
call fcn.0042be83
ret
Function at 0x4255f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x68
mov eax, 0x447dec
call fcn.0042be00
mov edi, ecx
cmp dword [edi + 0x74], 0xffffffff
jne 0x4256ec
mov esi, str.SoftwareMicrosoftOfficeExcelAddInsLockXLSRuntime.Connect
push esi
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0x74], ebx
call fcn.0042536c
pop ecx
pop ecx
test eax, eax
jne 0x4256ec
push esi
push SysReAllocString
call fcn.0042536c
pop ecx
pop ecx
cmp eax, ebx
je 0x425645
cmp eax, 2
jne 0x4256ec
push 1
mov esi, SysReAllocString
push esi
push str.LockXLSRuntime.Connect
lea ecx, [ebp - 0x74]
call fcn.00408c70
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x74], ebx
je 0x4256dd
push 1
push esi
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x50]
call fcn.00408c70
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], ebx
je 0x4256c4
lea eax, [ebp - 0x2c]
push eax
push 0x453990
lea ecx, [ebp - 0x50]
call fcn.00408b00
test eax, eax
je 0x4256c4
cmp dword [ebp - 0x1c], ebx
je 0x4256c4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4256b1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4256c4
mov dword [edi + 0x74], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409e50
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], ebx
je 0x4256dd
push dword [ebp - 0x50]
call dword [ebp - 0x44]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x74], ebx
je 0x4256ec
push dword [ebp - 0x74]
call dword [ebp - 0x68]
xor eax, eax
cmp dword [edi + 0x74], 1
sete al
call fcn.0042be83
ret

Function at 0x42695e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42696c
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x426a27
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x44f078]
add edx, 8
sub edi, 8
dec esi
jne 0x42698a
pop ebx
test edi, edi
je 0x426a40
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x44f078]
inc edx
dec edi
jne 0x426a2b
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x426a46
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44f078]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44f078]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x426eee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x426f22
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426f1d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x426f4a
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x426f33
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0042b3b0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x427d77
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x427dab
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427dab
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x427e55
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x427dc7
cmp cx, 0x5c
jne 0x427dc9
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x427dbb
cmp eax, esi
je 0x427e09
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042b3b0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00427d77
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x427e25
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c25d
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042c22c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427e55
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd88
leave
ret
Function at 0x4293d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42947d
cmp dword [esi + 4], 0xffffffff
jne 0x42947d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0042c211
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x429424
cmp eax, 0x2f
je 0x429424
push 0x453978
push edi
call fcn.0042c22c
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x429446
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x429446
mov eax, 0x2000000
jmp 0x429482
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426d13
add esp, 0x10
test eax, eax
jne 0x429464
mov eax, dword [ebp + 0x10]
jmp 0x429482
push eax
call fcn.00428ea7
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x429482
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x429a33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.004299c9
test eax, eax
je 0x429adb
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x429ad3
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebx + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429ad2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x429ad2
mov eax, dword [ebp + 0x18]
cmp esi, eax
jbe 0x429ad2
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x429a9d
mov edi, esi
lea ecx, [eax + edi]
cmp ecx, esi
jbe 0x429aa8
sub esi, eax
mov edi, esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0040d950
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x429acb
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0x18]
push edi
push ecx
push eax
call fcn.0042b3b0
add esp, 0xc
mov dword [ebp - 4], 1
pop esi
mov ecx, ebx
call fcn.00429987
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x18
Function at 0x42a15a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x44f8b0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x44f8b0]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x42a226
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x42a29b
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x42a252
cmp dword [esi + 0x40], edi
jae 0x42a252
push eax
call fcn.0042c58d
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x42a267
lea eax, [edi + edi]
push eax
call fcn.0042b2f1
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.0042b3b0
add esp, 0xc
test edi, edi
je 0x42a298
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.0042a1c7
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x42a27a
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42a2ca
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42a2b6
mov dword [esi + 0x14], 0x30000
jmp 0x42a2ec
push edi
push edx
add eax, ecx
push eax
call fcn.0042b3b0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x42a2ee
mov eax, dword [esi + 4]
test eax, eax
je 0x42a2e5
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x42a2ee
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a489
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x45fad0]
push esi
push dword [0x45fad0]
mov esi, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0042d27b
add esp, 0x10
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x204]
push eax
push esi
call fcn.0042c22c
push 0x44fcb4
push esi
call fcn.0042c22c
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.0042bd88
leave
ret 4
Function at 0x42a545
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x214], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
test ebx, ebx
je 0x42a64f
cmp dword [ebp + 0xc], 0
je 0x42a64f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc eax
neg eax
sbb eax, eax
inc eax
jne 0x42a5a9
push esi
call edi
test eax, eax
je 0x42a64e
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a489
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
jne 0x42a5dd
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x42a633
lea eax, [ebp - 0x20c]
push 0x454cc0
push eax
call fcn.0042cd1d
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
test eax, eax
je 0x42a633
push eax
push dword [ebp + 0xc]
push 1
push ebx
call fcn.0042cbe5
push dword [ebp - 0x210]
call fcn.0042ca1a
mov ecx, dword [ebp - 0x218]
add esp, 0x14
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042a4f7
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a64e
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd88
leave
ret 0x10

Function at 0x42bd88
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d320]
jne 0x42bd92
repz ret
jmp fcn.0043384c
Function at 0x441cdd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004332f2
and dword [ebp - 0x14], 0
cmp dword [0x460a60], 0
mov dword [ebp - 0x18], eax
jne 0x441d90
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x441e38
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x452b7c
push ebx
call edi
test eax, eax
je 0x441e38
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x460a60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x460a64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x460a68], eax
call edi
push eax
call esi
mov dword [0x460a70], eax
test eax, eax
je 0x441d90
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x460a6c], eax
mov eax, dword [0x460a6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x441de9
cmp dword [0x460a70], ecx
je 0x441de9
push eax
call esi
push dword [0x460a70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x441de9
test ebx, ebx
je 0x441de9
call edi
test eax, eax
je 0x441de0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x441de0
test byte [ebp - 8], 1
jne 0x441de9
or dword [ebp + 0x10], 0x200000
jmp 0x441e1c
mov eax, dword [0x460a64]
cmp eax, dword [ebp - 0x18]
je 0x441e1c
push eax
call esi
test eax, eax
je 0x441e1c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x441e1c
mov eax, dword [0x460a68]
cmp eax, dword [ebp - 0x18]
je 0x441e1c
push eax
call esi
test eax, eax
je 0x441e1c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x460a60]
call esi
test eax, eax
je 0x441e38
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x441e3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd88
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4020b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4020d9
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [edi + 0x44], 2
je 0x402108
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x10]
push 0xcc0020
push eax
mov eax, dword [edi + 0x54]
push ecx
mov ecx, dword [edi + 0x50]
push edx
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x402198
mov edx, dword [edi + 0x34]
push ebx
push ebp
push edx
call fcn.00401f30
mov eax, dword [edi + 0x34]
push eax
call fcn.00401f30
mov ebp, dword [edi + 8]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov ebx, dword [edi + 4]
add esp, 8
mov dword [esp + 0x24], 0
test eax, eax
jle 0x402196
mov dword [esp + 0x14], eax
lea esp, [esp]
xor esi, esi
mov dword [esp + 0x10], 2
lea ebx, [ebx]
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push ebx
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
add esi, ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x402150
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ecx, ebp
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
jne 0x402140
mov esi, dword [esp + 0x20]
pop ebp
pop ebx
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4021ad
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x403670
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x418f08]
test eax, eax
push esi
push edi
je 0x4036cb
mov eax, dword [esp + 0x10]
mov edx, dword [0x418344]
mov ecx, dword [0x418348]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x403696
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40373f
mov esi, dword [0x418340]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x418344]
add ecx, eax
pop edi
mov dword [0x418344], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.0040f04e
mov edi, eax
mov eax, dword [0x418ef8]
add esp, 0x10
test eax, eax
je 0x40373d
test edi, edi
jle 0x40373d
mov edx, dword [0x418d64]
mov eax, dword [0x418d48]
lea ecx, [eax + edx]
mov edx, dword [0x418d54]
mov eax, dword [0x418d50]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40373d
mov dl, byte [0x418d5c]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
sub bl, al
xor bl, cl
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x403727
pop ebp
mov byte [0x418d5c], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x403ff0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x41a7d4]
mov ecx, dword [0x41b390]
push 0x100
push 0x41a1f8
mov word [0x418f18], 0x206
mov word [0x418f1a], 0x19
mov dword [0x418f1c], 0x41a75c
mov dword [0x418f20], eax
mov dword [0x418f24], ecx
mov dword [0x418f28], 0x41acdc
mov dword [0x418f2c], 0x41a1c0
mov dword [0x418f30], 0x41a79c
mov dword [0x418f34], 0x41b388
mov dword [0x418f38], 0x41a790
mov dword [0x418f3c], 0x4190a0
mov dword [0x418f40], 0x408380
mov dword [0x418f44], 0x408c30
mov dword [0x418f48], 0x408bf0
mov dword [0x418f4c], 0x408c90
mov dword [0x418f50], 0x408cf0
mov dword [0x418f54], 0x403fc0
mov dword [0x418f58], 0x403b60
mov dword [0x418f5c], 0x403c90
mov dword [0x418f60], 0x403e30
mov dword [0x418f64], 0x403e70
mov dword [0x418f68], 0x403ee0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x41a0b0
call fcn.0040f3cb
add esp, 8
mov dword [0x41a1b4], 0
jmp fcn.00403f60

Function at 0x404100
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
sub esp, 0xc8
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
mov ebx, eax
test bl, 0x10
push esi
mov esi, 4
mov dword [esp + 0xc], 0x40
je 0x40412f
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x404158
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and ebx, 0xf
mov edx, dword [esp + ebx*4 + 0x10]
pop esi
mov dword [ebp], edx
pop ebp
mov eax, 4
pop ebx
add esp, 0xc8
ret
cmp ebx, 0x10
ja case.0x404168.3
movzx eax, byte [ebx + 0x404298]
jmp dword [eax*4 + 0x404284]
mov ecx, dword [str.Windows]
mov dword [ebp], ecx
mov edx, dword [0x415364]
push edi
mov dword [ebp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, ebp
dec edi
test eax, eax
js 0x4041b0
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404190
mov cx, word [0x41535c]
mov word [edi], cx
mov dl, byte [0x41535e]
jmp 0x4041c8
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4041b0
mov cx, word [0x415358]
mov word [edi], cx
mov dl, byte [0x41535a]
movzx ecx, ah
push ecx
and eax, 0xff
push eax
mov byte [edi + 2], dl
lea edx, [esp + 0x60]
push str._ver_d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x68]
add esp, 0x10
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4041f0
sub eax, edx
dec ebp
mov edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404200
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
lea ecx, [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, 2
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
mov edx, dword [esp + 0x48]
mov eax, esi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0xc8
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc8
ret