joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b0c4
Capabilities:
Encode data using xor

Disassembly:
outsb dx, byte [esi]
dec ebx
movsd dword es:[edi], dword [esi]
xchg dh, dl
mov ah, 0xba
in al, dx
sbb ebx, dword [ebx]
xor al, 0xa0
sub eax, 0xd566c7c6
fnstcw word [ecx - 0x2261b7a]
rcl edi, 0x53
adc byte [ebx + 5], 0x13
sub eax, 0xc25334a7
aaa
and eax, 0xb6cd2b5a
or eax, 0x1760c2a5
in eax, dx
in al, 0xd
and ch, 0xc5
jno 0x51b13a
xchg bl, dl
push edx
sub al, 4
push cs
xlatb
xchg edx, eax
mov edx, 0x8643abf9
mov byte [edi + ebx*4], dl
cld
xor ecx, edx
or eax, 0x35f2c5fc
invalid
test dh, al
push cs
sub al, 0xb3
mov dh, 0x88
mov es, word [edx - 5]
push es
adc eax, 0x771902e5
xlatb
mov esp, 0xd77d0b0
sbb dl, bh
aad 0x74
wait
aas
xor al, 0x70
xchg ebp, eax
ja 0x51b184
mov al, byte [0x1479e343]
invalid
cwde
pop ss
push es
je 0x51b122
test byte [edi - 0x33], dl
pop edi
wait
add eax, 0xd9ddaa03
out 0xee, al
in eax, 0xce
aaa
adc ebx, esi
mov esi, 0xe7c13944
outsd dx, dword [esi]
push ebp
ret 0x45e6
and eax, 0x785dda44
rol dword [esi + 0x5e], 1
jne 0x51b14f
xchg ebx, eax
mov al, byte [0xc314eea5]
mov esi, 0xc99195b3
cdq
ror al, 0x76
mov bh, 0xf2
push 0x46044455
xor ecx, ebx
jge 0x51b15e
int1
cmp ecx, eax
and esi, dword [ecx]
add bl, cl
dec edx
popfd
outsb dx, byte [esi]
mov dl, 0x53
push cs
invalid

Function at 0x537c2d
Capabilities:
Encode data using xor

Disassembly:
xor ah, byte [esi + 0x32]
inc edi
dec eax
xchg edx, eax
adc dh, cl
sub eax, 0xc8f92209
mov ebp, 0x36cdcafe
stc
enter 0xfffffffffffffebd, 0xffffffffffffffca
int 0x36
xor al, 0xb1
and edx, eax
jnp 0x537c38
test eax, 0x5f4e9111
dec esi
or dword [edx - 0x5a], edi
cmpsb byte [esi], byte es:[edi]
test eax, 0xa7c90e3a
xchg byte [esi + 0x21a93dda], cl
push 0x21
fidivr dword [ebx - 0x2a]
invalid
Function at 0x5b9a68
Capabilities:
Encode data using xor

Disassembly:
imul ecx, dword [ebx - 0x31], 0xfffffff4
or ebp, ebp
hlt
mov al, 0xe9
test dword [esi - 0x9db4240], ebp
rcl dword [ebx + 0xe77320b]
inc edx
add dh, ah
nop
cwde
cdq
imul edi, dword [ebx + 0x4b925350], 0x68919e07
sbb dword [eax + 0xd91a7ad], eax
mov edi, 0xd77fff98
mov esi, dword [edx + 0x225ef093]
jge 0x5b9b05
arpl word [edi + 0x7b2b216b], sp
mov esp, 0xcb3be57f
fdiv st(4)
xlatb
jl 0x5b9a6b
push ebx
mov al, 0x8d
daa
and dl, byte [ebp - 0x7d721045]
jle 0x5b9a6e
mov ebx, 0x73813b44
sbb ecx, 0xaf95ba80
push edi
arpl word [ebx + 0x2b], di
cmp eax, dword [ecx - 0x7f267e8d]
mov edx, 0x6357af95
jnp 0x5b9af7
mov esp, 0xef81f3ff
fnsave dword [edx - 0x15]
jb 0x5b9abf
inc ecx
nop
xor dword [eax], ebp
pop esp
inc edx
pop ecx
inc ebp
xor byte [ecx], cl
push edx
out dx, al
mov esi, 0xba677e31
mov al, 0xba
scasd eax, dword es:[edi]
xchg byte [ecx + esi*8], dl
daa
push edx
mov ebx, 0x73c70df3
scasd eax, dword es:[edi]
and ebp, dword [ebx - 0x61]
push es
invalid
enter 0x717d, 0x69
test al, 0x87
test byte [ebx + ebx*2 - 1], dh
adc al, 0xc2
fxch st(7)
lahf
and dword [eax], edi
mul dword [ecx + edi*2 - 0x35f1cc5]
jns 0x5b9b47
jecxz 0x5b9aae
cld
test al, 0x46
and al, 0x28
or eax, dword [ecx - 0x47]
jl 0x5b9b93
loop 0x5b9ad2
outsb dx, byte [esi]
dec edi
je 0x5b9b2e
loope 0x5b9b8f
loope 0x5b9b0a
mov eax, dword [0x808ce1fd]
inc ebx
cld
sti
jns 0x5b9b0f
sti
hlt
lea esi, [ecx + 0x26]
and byte [edx], dh
invalid
and dword [0x20dc210], 0xfffffff7
inc esi
stosd dword es:[edi], eax
adc dl, al
or eax, 0xab46f702
cmp eax, 0xb3530632
xchg byte [esi - 0x33], dh
mov dl, 0x77
out dx, al
dec ebx
cmpsb byte [esi], byte es:[edi]
dec eax
stc
mov ebx, 0xcd10f2cf
loope 0x5b9af0
mov ebp, 0xafdad202
mov bl, 0x43
stosb byte es:[edi], al
loop 0x5b9b49
add al, 0x9d
popal
into
dec ebp
scasb al, byte es:[edi]
push ds
sub eax, 0x3352fda9
invalid
pop edx
xor ebx, ebp
inc eax
call 0x2e8e04ea
add byte [esi], bl
invalid

Function at 0x40891d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408939
or ebx, ebx
dec ebx
xor dword [edi], eax
inc edi
dec ecx
cmp edi, edx
jne fcn.0040891d
ret
Function at 0x40347c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4213cc]
mov edi, eax
sub esi, dword [0x4152fc]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x40364c
push dword [0x4293d8]
call fcn.0040368e
push ebp
push ebp
push dword [0x4152fc]
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4293d4], esi
mov dword [0x4213c8], ebp
mov eax, dword [0x4213d0]
mov ebx, 0x4000
sub eax, dword [0x4293d8]
cmp eax, ebx
jg 0x4034ef
mov ebx, eax
mov esi, 0x41d388
push ebx
push esi
call fcn.0040365c
test eax, eax
je 0x40360d
add dword [0x4293d8], ebx
mov dword [0x415318], esi
mov dword [0x41531c], ebx
cmp dword [0x44ba48], ebp
je 0x403580
cmp dword [0x44bae0], ebp
jne 0x403580
cmp dword [esp + 0x10], ebp
je 0x40354d
mov eax, dword [0x4293d4]
push ebp
sub eax, dword [0x4213cc]
sub eax, dword [esp + 0x20]
add eax, dword [0x4152fc]
mov dword [0x4213c8], eax
call fcn.00406503
jmp 0x403580
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403580
mov eax, dword [0x44ba44]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402fa9
push ebp
push 0x6f
push dword [0x44ba40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x415300
mov dword [0x415320], 0x415388
mov dword [0x415324], 0x8000
call fcn.004065d8
test eax, eax
jl 0x403657
mov esi, dword [0x415320]
mov eax, 0x415388
sub esi, eax
je 0x4035e7
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403612
cmp esi, dword [esp + 0x14]
jne 0x403612
add dword [0x4152fc], esi
cmp dword [0x41531c], ebp
jne 0x403515
jmp 0x4035f3
cmp dword [0x41531c], ebp
jne 0x403657
cmp ebx, ebp
je 0x403657
mov eax, dword [0x4213cc]
mov ecx, eax
sub ecx, dword [0x4152fc]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x403616
jmp 0x4034d9
or eax, 0xffffffff
jmp 0x40364e
push 0xfffffffffffffffe
jmp 0x403659
push ebp
push ebp
push eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x40364c
mov eax, dword [0x4293d4]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4213c8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40364e
Function at 0x403d7e
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x47c000
je 0x403d9d
push edi
call fcn.0040604f
jmp 0x403da3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44ba84]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403df7
mov ecx, dword [0x44ba48]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44ba80]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403dde
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403dc6
jmp 0x403df7
mov edx, dword [ecx + 2]
mov dword [0x447a20], edx
mov edx, dword [ecx + 6]
mov dword [0x44bae8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403e09
cmp bx, 0xffff
jne 0x403e05
mov ebx, 0x3ff
jmp 0x403da3
xor ebx, ebx
jmp 0x403da3
mov dword [0x447a1c], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.00406036
push 0xfffffffffffffffe
push 0x447a40
call fcn.00406108
push eax
push dword [0x4353f0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba6c]
mov esi, dword [0x44ba68]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403e63
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403e5c
push eax
push ebx
call fcn.00406108
add esi, edi
add ebx, edi
dec ebp
jne 0x403e4f
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405909
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43ac18], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40592d
test al, 0x10
jne 0x405930
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43ac18
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40595b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4059db
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405cc0
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405a0f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44bac8], eax
jmp 0x405bd8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405a2d
test eax, eax
je 0x405b5c
test byte [ebp + 0xc], 2
je 0x405b5c
mov esi, 0x436418
push edi
push esi
call fcn.004060d9
test ebx, ebx
je 0x405a4a
push str..
push esi
call fcn.004060f7
jmp 0x405a50
push edi
call fcn.00405c25
push 0x40a228
push edi
call fcn.004060f7
push edi
call fcn.004060ea
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b52
cmp byte [ebp - 0x118], 0x2e
jne 0x405aa1
cmp byte [ebp - 0x117], 0x2e
je 0x405b35
cmp byte [ebp - 0x117], 0
je 0x405b35
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.004060d9
test byte [ebp - 0x144], 0x10
je 0x405acc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b35
push dword [ebp + 0xc]
push edi
call fcn.004059db
jmp 0x405b35
push edi
push str.Delete:_DeleteFile___s__
call fcn.0040647f
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405b2d
test byte [ebp + 0xc], 4
push edi
je 0x405b19
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040647f
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004053e6
push 0
push edi
call fcn.00405e22
jmp 0x405b35
push str.Delete:_DeleteFile_failed___s__
call fcn.0040647f
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405b35
push edi
push 0xfffffffffffffff2
call fcn.004053e6
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b5c
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405bd8
cmp dword [ebp - 4], esi
push edi
jne 0x405b7e
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040647f
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405bd8
call fcn.0040649b
test eax, eax
je 0x405bd8
push edi
call fcn.00405bde
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040647f
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405bd0
test byte [ebp + 0xc], 4
push edi
je 0x405bc9
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040647f
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.004053e6
push esi
push edi
call fcn.00405e22
jmp 0x405bd8
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405b6f
push edi
push 0xffffffffffffffe5
call fcn.004053e6
pop edi
pop esi
leave
ret 8
Function at 0x405cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x438418
push esi
call fcn.004060d9
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405ce1
xor eax, eax
jmp 0x405d33
push edi
call fcn.00406349
test byte [0x44ba50], 0x80
je 0x405cfa
mov al, byte [edi]
test al, al
je 0x405cdd
cmp al, 0x5c
je 0x405cdd
sub edi, esi
push esi
call fcn.004060ea
cmp eax, edi
push esi
jle 0x405d1d
call fcn.0040649b
test eax, eax
je 0x405d15
test byte [eax], 0x10
je 0x405cdd
push esi
call fcn.00405c25
jmp 0x405cfc
call fcn.00405bde
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405daa
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405dd9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e1e
mov eax, edi
dec edi
test eax, eax
jne 0x405de4
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e18
Function at 0x405e22
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.004064d9
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e4e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f92
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ada0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43ada0
je 0x405e92
push 1
push 0
push esi
call fcn.00405daa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f98
cmp eax, edi
jg 0x405f98
mov esi, 0x43a818
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f98
cmp eax, edi
jg 0x405f98
push esi
push ebp
push str._s_s_r_n
push 0x43a418
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.004060f7
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405f92
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405f7a
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405f6e
push str._Rename__r_n
push edi
call fcn.00405d38
test eax, eax
jne 0x405f9f
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.004060d9
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x43a418
push eax
call fcn.00405d84
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44bad0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9d8
push eax
call fcn.00405d38
test eax, eax
je 0x405f55
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405fc8
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405fbb
sub eax, edi
jmp 0x405f57
Function at 0x405fcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406030
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40601f
cmp dword [ebp + 0x14], 1
je 0x406021
cmp dword [ebp + 0x14], 2
je 0x406021
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4063e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406407
mov eax, dword [0x40a8d4]
cmp eax, 0xffffffff
je 0x4063fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8d4], 0xffffffff
jmp 0x40647a
cmp dword [0x43b9a0], ebx
je 0x40647a
cmp byte [0x43b5a0], bl
je 0x406446
cmp dword [0x40a8d4], 0xffffffff
jne 0x40644f
push 4
push 0x40000000
push 0x43b5a0
call fcn.00405daa
cmp eax, 0xffffffff
mov dword [0x40a8d4], eax
je 0x40647a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8d4], 0xffffffff
je 0x40647a
push esi
mov esi, 0x43f9e0
push 0x40aaa8
push esi
call fcn.004060f7
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004060ea
push eax
push esi
push dword [0x40a8d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b1a4], esi
push edi
jne 0x40657a
mov ecx, 0x43b1a0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406556
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b5a0
jl 0x406551
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4065af
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b1a0]
xor eax, esi
inc ecx
dec edx
jne 0x406592
pop edi
pop esi
not eax
ret 0xc
Function at 0x519020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0xae000]
push edi
or ebp, 0xffffffff
jmp 0x519042
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x519049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x519038
mov eax, 1
add ebx, ebx
jne 0x51905b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51906c
jne 0x51908b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51908b
dec eax
add ebx, ebx
jne 0x519078
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x519050
add ebx, ebx
jne 0x519087
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5190dd
xor ecx, ecx
sub eax, 3
jb 0x5190a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x519112
sar eax, 1
mov ebp, eax
jmp 0x5190ae
add ebx, ebx
jne 0x5190ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51907c
inc ecx
add ebx, ebx
jne 0x5190bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51907c
add ebx, ebx
jne 0x5190c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5190be
jne 0x5190da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5190be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5190fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5190ee
jmp 0x51903e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5190fc
add edi, ecx
jmp 0x51903e
pop esi
mov edi, esi
mov ecx, 0x320c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51911a
cmp byte [edi], 0x24
jne 0x51911a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51911f
lea edi, [esi + 0x116000]
mov eax, dword [edi]
or eax, eax
je 0x519197
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x122020]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x122160]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51914c
mov ecx, edi
jns 0x51917b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x122164]
or eax, eax
je 0x519191
mov dword [ebx], eax
add ebx, 4
jmp 0x519169
call dword [esi + 0x122174]
mov ebp, dword [esi + 0x122168]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5191cb
sub esp, 0xffffff80
jmp 0x45f16f
Function at 0x402f90
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
mov ebp, esi
push edi
shr ebp, 0x14
push ebp
push esi
push str.FileSize0x_X_dM
mov dword [esp + 0x20], 0
call fcn.00405fd0
mov ebx, dword [esp + 0x30]
add esp, 0x10
test ebx, ebx
je 0x40301c
test esi, esi
je 0x40301c
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40301c
cmp esi, 0x100000
jae 0x403024
push 0x4097b8
call fcn.00405fd0
add esp, 4
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], esi
je 0x4030cc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
and esi, 0xfffff
mov ebx, esi
xor esi, esi
test ebp, ebp
jbe 0x403053
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x100000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403015
inc esi
cmp esi, ebp
jb 0x403032
test ebx, ebx
je 0x4030cc
mov eax, ebx
mov esi, ebx
and eax, 0x3ff
xor ebp, ebp
sub esi, eax
push esi
push ebx
push 0x409780
call fcn.00405fd0
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
lea ecx, [esp + 0x10]
push ebp
push ecx
push esi
push edx
push edi
call ebx
test eax, eax
jne 0x4030ba
sub esi, 0x800
inc ebp
push esi
push 0x409768
call fcn.00405fd0
add esp, 8
cmp ebp, 0x64
jg 0x4030ba
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edi
call ebx
test eax, eax
je 0x40308c
mov edx, dword [esp + 0x10]
push edx
push 0x409748
call fcn.00405fd0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret