joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082d8
Capabilities:
Get graphical window text

Disassembly:
push 0x25c
mov eax, 0x4403a9
call fcn.00433e6d
push str.ck_WS_
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x208
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00431dd0
add esp, 0xc
push 0x3ec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, edi
je 0x408353
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408353
lea eax, [ebp - 0x21c]
push eax
call fcn.00431e8f
pop ecx
lea esi, [ebx + 0x194]
lea ecx, [ebp - 0x21c]
call fcn.004011a6
cmp dword [ebx + 0x20], 2
jne 0x408427
cmp byte [ebx + 0x40], 0
je 0x408427
cmp dword [ebx + 0x38], edi
je 0x408427
lea esi, [ebx + 0x24]
lea eax, [ebx + 0x194]
mov ecx, esi
call fcn.0040a74f
test eax, eax
je 0x408427
mov eax, esi
lea esi, [ebp - 0x238]
call fcn.00403751
push 0x3a
mov dword [ebp - 4], edi
call fcn.0040a877
pop ecx
push 0x5c
call fcn.0040a877
pop ecx
mov edi, str.SoftwareHaoZip_SFX
push edi
lea eax, [ebp - 0x258]
call fcn.00403725
lea eax, [ebp - 0x258]
call fcn.00401530
push 0
push 1
lea esi, [ebp - 0x258]
mov byte [ebp - 0x239], al
call fcn.0040115f
cmp byte [ebp - 0x239], 0
je 0x408414
push edi
lea eax, [ebp - 0x258]
call fcn.00403725
lea ecx, [ebx + 0x194]
lea edi, [ebp - 0x238]
lea eax, [ebp - 0x258]
call fcn.0040166b
push 0
push 1
lea esi, [ebp - 0x258]
call fcn.0040115f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x238]
call fcn.0040115f
lea eax, [ebp - 0x268]
call fcn.00402c8e
mov dword [ebp - 4], 1
push dword [ebx + 4]
lea eax, [ebx + 0x194]
push eax
lea ecx, [ebp - 0x268]
lea eax, [ebx + 0x14]
push ecx
call fcn.00403578
lea esi, [ebp - 0x268]
call fcn.004036c1
call fcn.00433ef0
ret
Function at 0x4087bc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [esi + 0x10]
sub ecx, 0
push ebx
mov ebx, 0x3ec
lea eax, [ebx - 3]
push edi
mov dword [ebp - 0x30], 0x3f0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x3ed
mov dword [ebp - 0x24], 0x3f1
mov dword [ebp - 0x20], 0x3ee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x3ea
je 0x408911
dec ecx
je 0x408857
dec ecx
jne 0x40898e
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x408824
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x408837
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ed
push dword [esi + 4]
call edi
test eax, eax
je 0x40898e
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40898e
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], 0x458e3c
mov dword [ebp - 8], 2
push dword [ebx]
push dword [esi + 4]
call edi
test eax, eax
je 0x40888c
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x14], 8
jb 0x408884
mov ecx, dword [ecx]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
add dword [ebp - 4], 0x1c
add ebx, 4
dec dword [ebp - 8]
jne 0x40886e
push 0x3eb
push dword [esi + 4]
call edi
mov ebx, eax
test ebx, ebx
je 0x4088f1
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x10]
sub eax, 0x52
push 0x44
mov dword [ebp - 0x10], eax
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xfffffffffffffffe
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor ebx, ebx
push dword [ebp + ebx*4 - 0x30]
push dword [esi + 4]
call edi
test eax, eax
je 0x408909
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, 5
jb 0x4088f3
jmp 0x40898e
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
push dword [ebp + ebx*4 - 0x30]
push dword [esi + 4]
call edi
test eax, eax
je 0x40892f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, 5
jb 0x408919
push 0x3eb
push dword [esi + 4]
call edi
mov edi, eax
test edi, edi
je 0x40898e
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x10]
add eax, 0x52
push 0x44
mov dword [ebp - 0x10], eax
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xfffffffffffffffe
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebx
leave
ret
Function at 0x40b1fc
Capabilities:
Move file

Disassembly:
jmp 0x40cb93
cmp dword [eax + 0x18], 8
jb 0x40cb9e
mov eax, dword [eax + 4]
jmp 0x40cba1
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40cbac
mov ecx, dword [ecx + 4]
jmp 0x40cbaf
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40b201
Capabilities:
Delete directory

Disassembly:
jmp 0x40cbbd
cmp dword [eax + 0x18], 8
jb 0x40cbc8
mov eax, dword [eax + 4]
jmp 0x40cbcb
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
ret

Function at 0x40b206
Capabilities:
Create directory

Disassembly:
jmp 0x40cbd8
cmp dword [eax + 0x18], 8
jb 0x40cbe3
mov eax, dword [eax + 4]
jmp 0x40cbe6
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

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

Disassembly:
push 0x20
mov eax, 0x43e2e0
call fcn.00433e6d
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00403751
and dword [ebp - 4], 0
mov eax, esi
push 0x442e58
push eax
call fcn.0040a970
push 0x443738
mov eax, esi
call fcn.0040a901
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x40b3a3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3c9
test al, 0x10
je 0x40b3c9
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.0040115f
mov al, bl
call fcn.00433ef0
ret
xor bl, bl
jmp 0x40b3b5

Function at 0x40c0e7
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40c0f4
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x40c0f0
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40c031
push ebx
push ebx
call fcn.0043327d
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40c12b
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0040c074
xor al, al
jmp 0x40c14d
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40c14b
mov esi, dword [edi]
call fcn.0040c074
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret

Function at 0x40cb74
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40cb7f
mov eax, dword [eax + 4]
jmp 0x40cb82
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x40cbfa
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
jb 0x40cc11
add edi, 4
mov eax, dword [edi]
jmp 0x40cc16
add edi, 4
mov eax, edi
push ebx
push esi
push eax
lea eax, [ebp - 0x1c]
call fcn.00403725
push 0
lea eax, [ebp - 0x1c]
call fcn.0040cb74
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x1c]
inc bl
call fcn.0040115f
pop esi
test bl, bl
pop ebx
je 0x40cc4a
xor al, al
jmp 0x40cc61
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40cc55
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop edi
leave
ret

Function at 0x40cc64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x452210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
push esi
mov esi, edx
jb 0x40cc88
mov eax, dword [eax + 4]
jmp 0x40cc8b
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40cc96
mov ecx, dword [ecx + 4]
jmp 0x40cc99
add ecx, 4
lea edx, [ebp - 0x210]
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40cccf
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
push eax
call fcn.00431e8f
pop ecx
lea ecx, [ebp - 0x210]
call fcn.004011a6
mov al, 1
jmp 0x40ccd1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00431f25
leave
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40cdad
mov dword [ecx*4 + 0x45a160], eax
inc ecx
cmp ecx, 0x100
jb 0x40cda8
pop esi
ret

Function at 0x40cfdb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d008
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d008
xor al, al
jmp 0x40d023
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043c290
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40d1d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40d1e9
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40d2ad
jmp 0x40d2a5
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40d2ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cfdb
test al, al
jne 0x40d24b
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040cea6
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.00403751
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp eax, ebx
jne 0x40d2ad
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x40d21d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x41f21d
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41f234
add eax, eax
xor eax, 0x4c11db7
jmp 0x41f236
add eax, eax
dec edx
test edx, edx
jg 0x41f227
mov dword [ecx*4 + 0x4568a8], eax
inc ecx
cmp ecx, 0x100
jb 0x41f21f
ret
Function at 0x42cb47
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x452210]
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.00431dd0
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 0x42cb9a
xor al, al
jmp 0x42cbdd
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42cbbb
cmp dword [ebp - 0x80], edi
je 0x42cb96
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42cb96
lea eax, [ebp - 0x7c]
push eax
call fcn.00431e8f
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.004011a6
cmp dword [ebp - 0x80], edi
je 0x42cbdb
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.00431f25
add ebp, 0x398
leave
ret

Function at 0x42cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42cf5e
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42cf9a
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42cf78
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 0x42cf9a
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040c817
pop ecx
pop esi
pop ebp
ret 0xc
Function at 0x42f4ce
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 0x42f61a
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 0x42f50a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42f50f
inc esi
cmp esi, dword [ebp - 8]
jb 0x42f501
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42f5fb
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42f58e
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42f53b
cmp cl, 0xff
jne 0x42f5bd
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 0x42f5ce
movzx edi, byte [edx + 0x443260]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42f57e
cmp bl, 0xff
jne 0x42f5cb
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42f556
dec ecx
shl edx, cl
and edx, 7
je 0x42f528
movzx ecx, byte [edx + 0x443260]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x443258], 0
mov cl, byte [ebx + 4]
je 0x42f5ba
test cl, cl
je 0x42f5ba
cmp cl, 0xff
jne 0x42f528
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42f4fc
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 0x42f4fc
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 0x42f7d1
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 0x42fb42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ecx, ecx
call fcn.0042fb2a
mov ebx, eax
call fcn.0042fb36
mov edi, eax
mov esi, pe_nt_image_headers32
movzx eax, byte [ebx + ecx]
mov byte [eax + edi], cl
inc ecx
cmp ecx, esi
jb 0x42fb60
call fcn.0042fb24
mov edx, eax
call fcn.0042fb30
lea ecx, [eax + 0xc00]
mov dword [ebp - 0x18], eax
sub dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ebx
sub dword [ebp - 0x10], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], edi
lea ecx, [edx + 0x800]
mov esi, 0xff
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
movzx edi, byte [eax + edx]
mov eax, edi
and al, 0x80
neg al
lea edx, [edi + edi]
mov dword [ebp - 0x14], edi
sbb eax, eax
and eax, 0x1b
xor eax, edx
and eax, esi
mov edx, eax
xor edx, edi
mov dword [ebp - 8], edx
shl edx, 8
or edx, edi
shl edx, 8
or edx, edi
shl edx, 8
or edx, eax
mov dword [ecx - 0x800], edx
mov edx, edi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, edi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl edx, 8
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
or edx, edi
shl ebx, 8
or ebx, dword [ebp - 8]
mov dword [ecx - 0x400], ebx
mov dword [ecx], edx
mov dword [ecx + 0x400], eax
mov eax, dword [ebp - 0xc]
movzx edi, byte [eax]
mov eax, edi
and al, 0x80
neg al
lea edx, [edi + edi]
sbb eax, eax
and eax, 0x1b
xor eax, edx
and eax, esi
mov ebx, eax
and al, 0x80
neg al
lea edx, [ebx + ebx]
mov dword [ebp - 0x20], ebx
sbb eax, eax
and eax, 0x1b
xor eax, edx
and eax, esi
mov edx, eax
and dl, 0x80
neg dl
mov dword [ebp - 0x14], eax
sbb edx, edx
and edx, 0x1b
add eax, eax
xor edx, eax
and edx, esi
mov eax, edx
xor edx, edi
mov dword [ebp - 8], edx
mov edx, eax
xor eax, dword [ebp - 0x14]
xor edx, ebx
mov ebx, eax
xor edx, edi
xor ebx, edi
xor eax, dword [ebp - 0x20]
mov edi, edx
shl edi, 8
or edi, ebx
shl edi, 8
or edi, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 4]
shl edi, 8
or edi, eax
mov dword [ebx - 0xc00], edi
mov edi, dword [ebp - 0x14]
shl edi, 8
or edi, dword [ebp - 8]
shl edi, 8
or edi, eax
shl edi, 8
or edi, edx
mov dword [ebx - 0x800], edi
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
shl edi, 8
or edi, eax
shl eax, 8
or eax, edx
shl edi, 8
or edi, edx
mov edx, dword [ebp - 4]
add dword [ebp - 4], 4
shl eax, 8
or eax, dword [ebp - 0x14]
shl edi, 8
or edi, dword [ebp - 0x14]
shl eax, 8
or eax, dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [ebx + ecx], edi
add ecx, 4
dec dword [ebp - 0x1c]
mov dword [edx], eax
jne 0x42fb9e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42fe08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
mov ecx, esi
call fcn.0042fcef
mov eax, dword [esi]
lea eax, [eax*8 - 4]
pop ecx
xor ecx, ecx
test eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x42fe8f
call fcn.0042fb2a
mov edx, eax
call fcn.0042fb30
push ebx
push edi
mov ecx, dword [esi + ecx*4 + 0x14]
mov dword [ebp - 8], ecx
movzx edi, byte [ebp - 6]
movzx edi, byte [edi + edx]
mov edi, dword [eax + edi*4 + 0x800]
movzx ebx, ch
movzx ebx, byte [ebx + edx]
xor edi, dword [eax + ebx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + edx]
xor edi, dword [eax + ebx*4 + 0xc00]
and ecx, 0xff
movzx ecx, byte [ecx + edx]
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov dword [esi + ecx*4 + 0x14], edi
inc ecx
cmp ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jb 0x42fe3c
pop edi
pop ebx
leave
ret

Function at 0x430237
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, eax
test ebx, ebx
push edi
mov edi, ecx
je 0x4302ce
push 0x10
pop eax
cmp ebx, eax
jb 0x4302ce
sub ebx, eax
add ebx, eax
shr ebx, 4
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [edi]
push dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x14]
call fcn.0042fe91
mov eax, dword [esi]
xor eax, dword [ebp - 0x24]
pop ecx
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x20]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x1c]
pop ecx
mov dword [edi - 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 0x18]
dec ebx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
jne 0x430261
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x431f25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452210]
jne 0x431f2f
repz ret
jmp fcn.00434168

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x433115
call fcn.00432da3
mov dword [eax], esi
call fcn.00432d90
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004322e1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4330f1
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433144
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432db6
pop ecx
call fcn.00432d90
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x43316b
test al, 1
je 0x43316b
test byte [esp + 0xc], 2
je 0x43316b
call fcn.00432da3
mov dword [eax], 5
call fcn.00432d90
mov dword [eax], 0xd
jmp 0x43313b
xor eax, eax
pop esi
ret
Function at 0x4351f9
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 + 0x452228]
je 0x435214
inc edi
cmp edi, 0x17
jb 0x435205
cmp edi, 0x17
jae 0x435394
push ebp
push 3
call fcn.0043a905
cmp eax, 1
pop ecx
je 0x435360
push 3
call fcn.0043a905
test eax, eax
pop ecx
jne 0x435248
cmp dword [0x452090], 1
je 0x435360
cmp ebx, 0xfc
je 0x435393
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x456070
push ebp
call fcn.00433f0e
add esp, 0xc
test eax, eax
je 0x43527e
push esi
push esi
push esi
push esi
push esi
call fcn.004321e5
add esp, 0x14
push 0x104
mov esi, 0x456089
push esi
push 0
mov byte [0x45618d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4352c2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00433f0e
add esp, 0xc
test eax, eax
je 0x4352c2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004321e5
add esp, 0x14
push esi
call fcn.00432150
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435307
push esi
call fcn.00432150
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x456384
push 0x441a2c
sub ecx, eax
push ecx
push eax
call fcn.0043a852
add esp, 0x14
test eax, eax
je 0x435307
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004321e5
add esp, 0x14
jmp 0x435309
xor esi, esi
push 0x441a28
push ebx
push ebp
call fcn.0043a7e1
add esp, 0xc
test eax, eax
je 0x435329
push esi
push esi
push esi
push esi
push esi
call fcn.004321e5
add esp, 0x14
push dword [edi*8 + 0x45222c]
push ebx
push ebp
call fcn.0043a7e1
add esp, 0xc
test eax, eax
je 0x43534b
push esi
push esi
push esi
push esi
push esi
call fcn.004321e5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043a624
add esp, 0xc
jmp 0x435393
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435393
cmp ebp, 0xffffffff
je 0x435393
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45222c]
push dword [esi]
call fcn.00432150
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