joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0x44a4b4
lea esi, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], bx
call fcn.00401248
mov dword [esp + 0x30], ebx
cmp byte [edi], bl
je 0x40e955
lea esi, [edi + 4]
push esi
call fcn.0040d7d0
add esp, 4
push esi
call fcn.0040d4f0
add esp, 4
test al, al
setne al
cmp al, bl
mov byte [edi], al
jne 0x40e955
mov eax, esi
call fcn.00407cf3
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040ba80
add esp, 8
cmp dword [esp + 0x24], 8
mov bl, al
mov byte [edi], bl
jb 0x40e97e
mov edx, dword [esp + 0x10]
push edx
call fcn.00435578
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x40ef40
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
mov edi, eax
lea ebp, [edi + 0xc]
test ebp, ebp
je 0x40ef59
mov eax, dword [ebp]
test eax, eax
je 0x40ef59
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 8]
test eax, eax
jne 0x40ef77
test ebp, ebp
je 0x40ef72
mov ebp, dword [ebp]
test ebp, ebp
je 0x40ef72
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebp
ret
cmp dword [eax + 4], 0
je 0x40ef60
push esi
add eax, 0xc
push eax
push 4
push edi
push 0x40ebc0
push 0
push 0
call fcn.0043658f
mov ecx, dword [edi + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [edi + 8]
add esp, 0x18
cmp dword [edx + 0x10], 0
jne 0x40efe4
mov eax, edx
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi + 8]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x40efc1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
test ebp, ebp
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
je 0x40efde
mov ebp, dword [ebp]
test ebp, ebp
je 0x40efde
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
xor al, al
pop ebp
ret
mov ecx, edx
mov byte [ecx + 8], 1
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40f00b
mov esi, dword [edi + 8]
call fcn.0040edc0
mov ecx, dword [edi + 8]
mov byte [ecx + 8], 0
test ebp, ebp
je 0x40f01d
mov ebp, dword [ebp]
test ebp, ebp
je 0x40f01d
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
mov al, 1
pop ebp
ret
Function at 0x40f9f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.00435420
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40fa67
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
call fcn.00401248
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004351af
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.004351af
add esp, 0x210
ret

Function at 0x40fae0
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40faf7
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40fb10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, 8
cmp dword [ebp + 0x18], esi
push edi
lea edi, [ebp + 4]
jb 0x40fb2b
mov eax, dword [edi]
jmp 0x40fb2d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fb41
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x40fb4a
mov eax, dword [edi]
jmp 0x40fb4c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x40fc21
cmp dword [ebp + 0x18], esi
jb 0x40fb69
mov eax, dword [edi]
jmp 0x40fb6b
mov eax, edi
push ebx
xor ebx, ebx
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
call fcn.00401248
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40fb97
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, 8
sete bl
cmp dword [esp + 0x28], esi
jb 0x40fbbc
mov eax, dword [esp + 0x14]
push eax
call fcn.00435578
add esp, 4
test bl, bl
pop ebx
jne 0x40fc21
cmp dword [ebp + 0x18], esi
jb 0x40fbca
mov eax, dword [edi]
jmp 0x40fbcc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fb38
cmp dword [ebp + 0x18], esi
jb 0x40fbe4
mov eax, dword [edi]
jmp 0x40fbe6
mov eax, edi
xor ecx, ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ecx
mov word [esp + 0x10], cx
call fcn.00401248
mov ecx, dword [esp + 0x2c]
mov eax, esi
call fcn.0040fae0
cmp dword [esp + 0x24], 8
jb 0x40fc21
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00435578
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
Function at 0x40fc30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x45a7ec], edi
mov esi, ecx
je 0x40fc7c
push ebx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov eax, 0x45a7d8
call fcn.00401322
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004351af
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.00435420
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40fd4a
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.00435420
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40fd28
cmp eax, edi
je 0x40fd28
mov word [esp + eax*2 + 0x214], di
lea eax, [esp + 0x214]
call fcn.00401248
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004351af
add esp, 0x624
ret
lea eax, [esp + 8]
call fcn.00401248
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004351af
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004351af
add esp, 0x624
ret

Function at 0x40fd70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call fcn.00435420
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x40fdbc
mov edi, dword [edi + 4]
jmp 0x40fdbf
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x40fdc9
mov ebx, dword [ebx + 4]
jmp 0x40fdcc
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40fe0c
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
call fcn.00401248
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004351af
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004351af
add esp, 0x210
ret
Function at 0x410160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
cdq
push esi
push edx
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040be70
add esp, 8
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov eax, edi
call fcn.00401322
push 0x44a4d4
call fcn.0043551d
add esp, 4
mov ebx, eax
push 0x44a4d4
mov eax, esi
call fcn.00404237
lea eax, [esp + 0x10]
push eax
call fcn.0043551d
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00404237
push 0x44a4d8
call fcn.0043551d
add esp, 4
mov ebx, eax
push 0x44a4d8
mov eax, esi
call fcn.00404237
push 0xffffffffffffffff
push 0
mov eax, ebp
call fcn.00404193
cmp dword [esi + 0x18], 8
jb 0x4101fd
mov esi, dword [esi + 4]
jmp 0x410200
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x54]
pop esi
xor edx, edx
cmp eax, 0xffffffff
pop ebp
sete dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.004351af
add esp, 0x50
ret

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

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x461240], ecx
add edx, 1
cmp edx, 0x100
jb 0x410253
cmp edx, 0x800
jae 0x41033b
nop
mov eax, dword [edx*4 + 0x460e40]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x461240]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x46123c], eax
jb 0x410310
mov dword [0x45da14], 0x4103a0
call fcn.00410570
test eax, eax
jne 0x410358
mov dword [0x45da14], 0x410450
pop ecx
ret
Function at 0x42d2b6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x459210]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00435420
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x42d309
xor al, al
jmp 0x42d342
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42d32a
cmp dword [ebp - 0x80], edi
je 0x42d305
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42d305
lea eax, [ebp - 0x7c]
call fcn.00401248
cmp dword [ebp - 0x80], edi
je 0x42d340
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.004351af
add ebp, 0x398
leave
ret

Function at 0x42d359
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00435420
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x42d3bc
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x42d3c0
Capabilities:
Query environment variable

Disassembly:
push 0x2c
mov eax, 0x445927
call fcn.004372b5
push 1
lea eax, [ebp - 0x30]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x25
call fcn.00403e7b
cmp eax, 0xffffffff
mov eax, edi
jne 0x42d3ff
call fcn.00403d1d
mov eax, esi
jmp 0x42d49a
lea esi, [ebp - 0x2c]
call fcn.00403d1d
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
jb 0x42d418
mov eax, dword [eax]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x42d42d
mov eax, edi
jmp 0x42d483
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004351aa
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
pop ecx
jb 0x42d453
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x30]
push eax
call ebx
test eax, eax
jbe 0x42d477
cmp eax, esi
ja 0x42d477
mov ecx, dword [ebp - 0x30]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x2c]
call fcn.00401248
push dword [ebp - 0x30]
call fcn.00436169
pop ecx
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
call fcn.00403d1d
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b6
mov eax, dword [ebp - 0x34]
call fcn.00437338
ret
Function at 0x42e570
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov eax, 0x8000
cmp dword [esp + 0x18], eax
push ebp
push edi
jbe 0x42e585
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], ebp
je 0x42e68d
cmp eax, ebp
je 0x42e68d
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0xc], ecx
jae 0x42e68d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e5fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e612
mov ecx, dword [esp + 0x10]
push 1
push ebp
push ebp
push ecx
call fcn.0043f3e0
xor ecx, ecx
add eax, edi
adc edx, ecx
jmp 0x42e616
xor eax, eax
xor edx, edx
push ebp
push ebx
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
lea eax, [esi + 4]
push ecx
xor ebx, ebx
mov word [ecx + 4], bp
call fcn.00401322
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp eax, ebp
jne 0x42e68d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi]
add eax, ecx
push eax
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [esp + 0xc], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, ebp
jne 0x42e5c3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
pop edi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x42e8e0
Capabilities:
Get file size

Disassembly:
push ecx
mov edx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e90e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42e90e
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.0043f3e0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x42ed11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42ed1f
and dword [esi], 0
and dword [ebp + 0x10], 0
cmp dword [ebp + 0xc], 0
jbe 0x42ed5c
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42ed36
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42ed58
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
je 0x42ed60
xor eax, eax
jmp 0x42ed7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42ed71
mov eax, 0x80004005
jmp 0x42ed7d
jle 0x42ed7d
and eax, 0xffff
or eax, 0x80070000
pop esi
pop ebp
ret 0xc

Function at 0x43247b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x4325c7
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x4324b7
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4324bc
inc esi
cmp esi, dword [ebp - 8]
jb 0x4324ae
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x4325a8
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x43253b
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x4324e8
cmp cl, 0xff
jne 0x43256a
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x43257b
movzx edi, byte [edx + 0x44b510]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x43252b
cmp bl, 0xff
jne 0x432578
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x432503
dec ecx
shl edx, cl
and edx, 7
je 0x4324d5
movzx ecx, byte [edx + 0x44b510]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x44b508], 0
mov cl, byte [ebx + 4]
je 0x432567
test cl, cl
je 0x432567
cmp cl, 0xff
jne 0x4324d5
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4324a9
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4324a9
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret
Function at 0x43277e
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x432c95
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x432ccc
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x432cbf
cmp esi, edi
jae 0x432d9c
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x432d3c
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x45a178]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x432d84
cmp dword [ebp + 8], 6
jbe 0x432d84
cmp edx, 4
jne 0x432d84
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x432cde
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4351af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459210]
jne 0x4351b9
repz ret
jmp fcn.00437356

Function at 0x43867f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x459230]
je 0x43869a
inc edi
cmp edi, 0x17
jb 0x43868b
cmp edi, 0x17
jae 0x43881a
push ebp
push 3
call fcn.0043d4bd
cmp eax, 1
pop ecx
je 0x4387e6
push 3
call fcn.0043d4bd
test eax, eax
pop ecx
jne 0x4386ce
cmp dword [0x459094], 1
je 0x4387e6
cmp ebx, 0xfc
je 0x438819
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45d1f0
push ebp
call fcn.0043745a
add esp, 0xc
test eax, eax
je 0x438704
push esi
push esi
push esi
push esi
push esi
call fcn.004357c5
add esp, 0x14
push 0x104
mov esi, 0x45d209
push esi
push 0
mov byte [0x45d30d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438748
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043745a
add esp, 0xc
test eax, eax
je 0x438748
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004357c5
add esp, 0x14
push esi
call fcn.00435730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43878d
push esi
call fcn.00435730
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45d504
push 0x448a8c
sub ecx, eax
push ecx
push eax
call fcn.0043aeb9
add esp, 0x14
test eax, eax
je 0x43878d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004357c5
add esp, 0x14
jmp 0x43878f
xor esi, esi
push 0x448a88
push ebx
push ebp
call fcn.0043d44c
add esp, 0xc
test eax, eax
je 0x4387af
push esi
push esi
push esi
push esi
push esi
call fcn.004357c5
add esp, 0x14
push dword [edi*8 + 0x459234]
push ebx
push ebp
call fcn.0043d44c
add esp, 0xc
test eax, eax
je 0x4387d1
push esi
push esi
push esi
push esi
push esi
call fcn.004357c5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043d28f
add esp, 0xc
jmp 0x438819
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438819
cmp ebp, 0xffffffff
je 0x438819
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x459234]
push dword [esi]
call fcn.00435730
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret