joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005732
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
imul edi, dword [ebp + 8], 0xc
mov eax, dword [edi + 0x100170a8]
cmp eax, 0xffffffff
je 0x10005753
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x100170a8], 0xffffffff
mov eax, dword [edi + 0x100170ac]
test eax, eax
je 0x100057a0
cmp dword [ebp + 0xc], 0
je 0x10005791
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [edi + 0x100170ac]
push str.delete_dumpfile___s___ret___d__err___d_r_n
push 2
call fcn.100057f8
mov eax, dword [edi + 0x100170ac]
add esp, 0x14
pop esi
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and dword [edi + 0x100170ac], 0
pop ecx
and dword [edi + 0x100170a4], 0
pop edi
pop ebp
ret

Function at 0x100057f8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push eax
call fcn.10006aa6
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push dword [ebp + 8]
call sym.wbxtrace.dll_WBXTRACERAW
add esp, 0x24
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
leave
ret

Function at 0x1000585a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
push esi
push 0xfffffffffffffffd
pop esi
je 0x100058a5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10005891
cmp edi, dword [ebp - 4]
jne 0x10005891
xor esi, esi
inc esi
jmp 0x100058a4
push edi
push dword [ebp + 0xc]
push str.write_dumpfile__0x_X__u__failed_r_n
push 4
call fcn.100057f8
add esp, 0x10
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10005c9b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.10003cb1
pop ecx
test eax, eax
jne 0x10005d98
cmp dword [0x10017728], 2
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x10005cfb
cmp dword [0x1001771c], 6
jb 0x10005cfb
push 0x10010418
push esi
call ebx
push esi
call fcn.10003cb1
pop ecx
test eax, eax
jne 0x10005d98
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shell32.dll
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x10005d9b
push edi
push str.SHGetSpecialFolderPathW
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005d87
push edi
push 0x20
push esi
push edi
call eax
test eax, eax
je 0x10005d87
push esi
call fcn.10003cb1
pop ecx
test eax, eax
je 0x10005d5e
inc edi
jmp 0x10005d87
cmp dword [0x10017728], 2
jne 0x10005d87
cmp dword [0x1001771c], 6
jb 0x10005d87
push 0x10010418
push esi
call ebx
push esi
call fcn.10003cb1
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
jmp 0x10005d9b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100085db
leave
ret

Function at 0x10005eee
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
cmp dword [eax + 0x10], 0x10000
je 0x10005f42
cmp dword [eax + 0x18], 0x20000
je 0x10005f42
mov edi, dword [eax + 4]
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10005f42
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10005f42
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10005f42
cmp dword [esi], 0x4550
cmove eax, esi
jmp 0x10005f44
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x10006c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
jge 0x10006c81
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10017d70]
inc eax
mov dword [0x10017d70], eax
cmp eax, 1
jne 0x10006ca8
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, 0xbb40e64e
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
push esi
push edi
push ebx
call fcn.10006e20
add esp, 0xc
mov dword [ebp - 0x18], 0
nop word [eax + eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
sar eax, 7
movzx edx, al
push esi
push edi
mov dword [ebp - 0x20], edx
call fcn.10006dc0
push edx
push esi
push edi
mov ebx, eax
call fcn.10006e90
mov ecx, dword [ebp - 0x18]
add esp, 0x14
mov eax, dword [ebp - 0x20]
xor al, bl
mov byte [ebp + ecx - 0x10], al
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 0xa
jl 0x10006cc0
push esi
push edi
push dword [ebp - 0x1c]
call fcn.10006e20
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x18], edx
sub eax, edx
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
push esi
push edi
call fcn.10006dc0
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + edx]
movzx ecx, al
push ecx
push esi
push edi
mov byte [ebp - 0x11], al
call fcn.10006e90
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov al, byte [ebp - 0x11]
xor al, bl
mov byte [edx], al
inc edx
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x18], edx
jne 0x10006d20
push esi
push edi
call fcn.10006dc0
mov esi, dword [ebp + 0x1c]
mov ebx, esi
shr ebx, 0x10
movzx ecx, bl
push ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push edi
call fcn.10006e90
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
xor bl, byte [ebp - 0x1c]
push edx
push edi
mov byte [eax + 0xa], bl
call fcn.10006dc0
shr esi, 0x18
mov ebx, eax
push esi
push edx
push edi
call fcn.10006e90
mov ecx, dword [ebp - 0x24]
add esp, 0x28
mov eax, esi
xor al, bl
mov byte [ecx + 0xb], al
mov eax, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100085db
mov esp, ebp
pop ebp
ret

Function at 0x10006e90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov eax, ecx
xor eax, dword [ebp + 0x10]
mov edx, dword [ebx + 8]
movzx eax, al
shr ecx, 8
mov eax, dword [esi + eax*4]
xor eax, ecx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [ebp + 0x10]
inc ecx
mov dword [ebx + 4], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [esi + ecx*4]
pop esi
mov dword [ebx + 8], edx
pop ebx
pop ebp
ret
Function at 0x10006ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
test esi, esi
jne 0x10006efd
lea eax, [edi - 0x66]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2c], 1
jne 0x10006f0e
push esi
call fcn.100070e0
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
push ebx
test eax, eax
jne 0x10006f28
mov eax, dword [esi + 0x40b4]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10006f28
mov dword [ebp - 8], eax
jmp 0x10006f3c
mov ebx, eax
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10006f30
sub ebx, ecx
mov dword [ebp - 8], ebx
push dword [esi + 0x20]
mov eax, dword [esi + 0xc]
push dword [esi + 0x1c]
call eax
add esp, 8
mov ebx, eax
mov dword [ebp + 8], ebx
test edi, edi
jne 0x10006f9b
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x10006f98
xor eax, eax
nop dword [eax]
test edi, edi
jne 0x10006f8c
mov eax, dword [ebx + 8]
test eax, eax
je 0x10006f89
push eax
lea eax, [ebx + 0x10]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, dword [ebx + 8]
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [ebp - 4]
add eax, dword [ebx + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x10006f60
mov ebx, dword [ebp + 8]
push dword [esi + 0x24]
call fcn.10006df0
add esp, 4
test edi, edi
jne 0x100070a1
push 4
push 0x6054b50
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
push 2
push eax
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
push 2
push eax
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
push 2
push dword [esi + 0x40b0]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
push 2
push dword [esi + 0x40b0]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
push 4
push dword [ebp - 4]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
sub ebx, dword [esi + 0x40ac]
push 4
push ebx
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
mov ebx, dword [ebp - 8]
push 2
push ebx
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100070a1
test ebx, ebx
je 0x100070a1
mov eax, dword [esi + 8]
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, ebx
mov ebx, 0xffffffff
cmovne edi, ebx
jmp 0x100070a4
or ebx, 0xffffffff
push dword [esi + 0x20]
mov eax, dword [esi + 0x14]
push dword [esi + 0x1c]
call eax
add esp, 8
test eax, eax
je 0x100070bb
test edi, edi
cmove edi, ebx
mov eax, dword [esi + 0x40b4]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x100070d1
push eax
call ebx
add esp, 4
push esi
call ebx
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100072fd
cmp dword [esi + 0x2c], eax
je 0x100072fd
cmp dword [esi + 0x80], 8
push ebx
push edi
mov dword [esi + 0x34], eax
jne 0x1000716f
cmp dword [esi + 0x84], eax
jne 0x1000716f
lea ebx, [esi + 0x30]
cmp dword [esi + 0x40], 0
jne 0x10007155
push esi
call fcn.10007310
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
add esp, 4
mov dword [esi + 0x3c], eax
mov edi, dword [esi + 0x44]
push 4
push ebx
call fcn.1000a730
mov ecx, dword [esi + 0x44]
add esp, 8
sub ecx, edi
add dword [esi + 0x6c], ecx
test eax, eax
je 0x10007136
xor ecx, ecx
cmp eax, 1
cmovne ecx, eax
or ebx, 0xffffffff
cmp dword [esi + 0x6c], 0
mov edi, ecx
jbe 0x10007194
test ecx, ecx
jne 0x10007194
push esi
call fcn.10007310
add esp, 4
cmp eax, ebx
cmove edi, ebx
cmp dword [esi + 0x80], 8
jne 0x100071bb
cmp dword [esi + 0x84], 0
jne 0x100071cf
lea eax, [esi + 0x30]
push eax
call fcn.1000b2d0
add esp, 4
mov dword [esi + 0x68], 0
mov edi, eax
cmp dword [esi + 0x84], 0
jne 0x100071cf
mov ecx, dword [esi + 0x408c]
mov eax, dword [esi + 0x38]
jmp 0x100071d5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [esi + 0x40a4]
add ebx, dword [esi + 0x44]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x74]
push 4
push ecx
add eax, 0x10
mov dword [ebp - 4], ecx
push eax
call fcn.10008200
mov eax, dword [esi + 0x74]
push 4
add eax, 0x14
push ebx
push eax
call fcn.10008200
add esp, 0x18
cmp dword [esi + 0x5c], 1
jne 0x1000721e
mov eax, dword [esi + 0x74]
push 2
add eax, 0x24
push 1
push eax
call fcn.10008200
add esp, 0xc
mov eax, dword [esi + 0x74]
push 4
push dword [ebp + 8]
add eax, 0x18
push eax
call fcn.10008200
add esp, 0xc
test edi, edi
jne 0x1000724a
push dword [esi + 0x78]
lea eax, [esi + 0x24]
push dword [esi + 0x74]
push eax
call fcn.10006b60
add esp, 0xc
mov edi, eax
push dword [esi + 0x74]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
jne 0x100072e7
push dword [esi + 0x20]
mov eax, dword [esi + 0xc]
push dword [esi + 0x1c]
call eax
mov ecx, dword [esi + 0x70]
push edi
add ecx, 0xe
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
push ecx
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
add esp, 0x18
test eax, eax
je 0x1000728b
or edi, 0xffffffff
jmp 0x100072ca
push 4
push dword [ebp - 4]
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100072ca
push 4
push ebx
push dword [esi + 0x20]
push esi
call fcn.100081a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100072ca
push 4
push dword [ebp + 8]
push dword [esi + 0x20]
push esi
call fcn.100081a0
add esp, 0x10
mov edi, eax
mov eax, dword [esi + 0x10]
push 0
push dword [ebp - 8]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
add esp, 0x10
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
inc dword [esi + 0x40b0]
mov eax, edi
pop edi
pop ebx
mov dword [esi + 0x2c], 0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff9a
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x4090], ebx
je 0x10007379
cmp dword [esi + 0x6c], ebx
jbe 0x10007379
mov ecx, 0xffffff78
lea eax, [esi + 0x4094]
sub ecx, esi
push edi
lea edi, [esi + 0x88]
mov dword [ebp + 8], ecx
nop
mov edx, dword [esi + 0x40a0]
push edx
push eax
call fcn.10006dc0
movzx ecx, byte [edi]
mov ebx, eax
push ecx
push edx
lea eax, [esi + 0x4094]
push eax
call fcn.10006e90
xor byte [edi], bl
add esp, 0x14
mov eax, dword [ebp + 8]
inc edi
add eax, edi
cmp eax, dword [esi + 0x6c]
lea eax, [esi + 0x4094]
jb 0x10007340
xor ebx, ebx
pop edi
push dword [esi + 0x6c]
mov ecx, dword [esi + 8]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call ecx
add esp, 0x10
or ecx, 0xffffffff
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
cmovne ebx, ecx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x1000c020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 0x6c]
nop dword [eax]
mov edi, dword [esi + 0x74]
mov eax, edi
cmp edi, 0x102
ja 0x1000c066
push esi
call fcn.1000c360
mov edi, dword [esi + 0x74]
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp edi, 0x102
ja 0x1000c05c
test ecx, ecx
je 0x1000c235
mov eax, edi
test edi, edi
je 0x1000c23c
xor edx, edx
mov dword [esi + 0x60], 0
cmp eax, 3
jb 0x1000c0e0
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x1000c0e0
mov eax, dword [esi + 0x38]
add eax, ecx
mov dword [ebp + 8], eax
mov cl, byte [eax - 1]
cmp cl, byte [eax]
jne 0x1000c0e0
cmp cl, byte [eax + 1]
jne 0x1000c0e0
add eax, 2
cmp cl, byte [eax]
jne 0x1000c0e0
mov edx, dword [ebp + 8]
add edx, 0x102
nop
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
inc eax
cmp cl, byte [eax]
jne 0x1000c0cc
cmp eax, edx
jb 0x1000c0a0
sub eax, edx
lea edx, [eax + 0x102]
mov dword [esi + 0x60], edx
cmp edx, edi
jbe 0x1000c0e0
mov dword [esi + 0x60], edi
mov edx, edi
mov eax, dword [esi + 0x60]
cmp edx, 3
jb 0x1000c15f
mov ecx, dword [esi + 0x16a0]
sub al, 3
mov dword [ebp + 8], eax
mov edx, 1
mov eax, dword [esi + 0x16a4]
mov word [eax + ecx*2], dx
mov ecx, dword [esi + 0x16a0]
mov eax, dword [esi + 0x1698]
mov edx, dword [ebp + 8]
mov byte [ecx + eax], dl
xor ecx, ecx
inc dword [esi + 0x16a0]
movzx eax, dl
movzx eax, byte [eax + 0x10014198]
inc word [esi + eax*4 + 0x498]
movzx eax, byte [0x10014298]
add dword [eax], eax
push 0x1000
add byte [eax], al
Function at 0x1000c8f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1000c8fc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.1000cd80

Function at 0x1000cc30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x10017014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
jg 0x1000cc68
jl 0x1000cc55
test edi, edi
jne 0x1000cc68
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100085db
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x1000cc80
push ebx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.1000d050
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1000d050
mov ebx, dword [ebp + 8]
add esp, 0x10
nop dword [eax]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.1000d050
mov eax, edi
add esp, 8
and eax, 1
or eax, 0
je 0x1000cd05
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x1000cd03
nop dword [eax]
mov edx, ebx
test bl, 1
je 0x1000ccf9
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x1000ccf0
mov ebx, ecx
shrd edi, esi, 1
sar esi, 1
mov eax, edi
or eax, esi
je 0x1000cd65
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1000d050
mov eax, edi
add esp, 8
and eax, 1
or eax, 0
je 0x1000cd55
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x1000cd53
nop dword [eax]
mov edx, ebx
test bl, 1
je 0x1000cd49
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x1000cd40
mov ebx, ecx
shrd edi, esi, 1
sar esi, 1
mov eax, edi
or eax, esi
jne 0x1000ccc0
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100085db
mov esp, ebp
pop ebp
ret

Function at 0x1000d0e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000d1f0

Function at 0x402000
Capabilities:
Encode data using xor

Disassembly:
call dword [sym.imp.kernel32.dll_GetACP]
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
call fcn.0040142a
push 0x7eff
push 0
call fcn.00401451
call dword [0x40652a]
adc eax, 0x40652a
mov dword [0x403071], eax
mov ebx, 0x7f00
push ebx
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov ebx, 0x403059
mov dword [0x403069], 0x400000
mov dword [0x40306d], 0
push ebx
call dword [sym.imp.user32.dll_RegisterClassA]
call fcn.0040100f
push edi
sbb byte [eax], al
xor bh, byte [ecx - 0x19]
xchg esi, eax
push es
add byte [ebp + ebp + 0x7d9e3], cl
mov eax, 0xd29a9e8
add bh, dl
and cl, byte [eax]
daa
adc dword [eax], eax
in al, dx
dec edx
or eax, 0x9f00120d
jno 0x40201e
or dword [edi], ecx
add byte [edx + 0x50], ch
stosd dword es:[edi], eax
push cs
verw word [esi + 0x1040c48c]
add byte [ebx], ah
hlt
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40c281
pop dword [ebp - 0x38]
mov eax, 0x40c281
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3983a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xd3347c9b
add ecx, 0x2ccbcb43
mov edx, eax
mov ebx, 0xc2f5c526
sub ebx, 0xc2b48962
add ebx, dword [ebp - 0x38]
mov edi, 0x3c3c6f77
sub edi, 0xaa483751
xor dword [ebp - 0x30], edi
mov esi, dword [ebx]
sub dword [ebp - 0x28], 0x8fadf70e
add esi, edi
sub dword [ebp - 0x18], 0xe18bcf08
mov dword [edx], esi
sub dword [ebp - 0x28], 0xeaec13d6
add edx, 0xe9e038f5
sub edx, 0xe9e038f1
add ebx, 4
loop 0x40c2d6
add eax, 0x389c4731
sub eax, 0x389b34e6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret