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

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x1000307d
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x100035e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.10015520
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000362d
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x1002e2d3
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.1000249d
add esp, 8
cmp eax, 0
jne 0x10003683
mov eax, dword [0x1002ebb8]
test eax, eax
je 0x1000366a
push eax
mov ebx, eax
call fcn.10001810
inc eax
push eax
call fcn.100147b7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000367d
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
nop
cmp dword [ebp - 8], esp
je 0x100036be
push 0x1d5
push 0x4012e6b
push 6
call fcn.100147bd
add esp, 0xc
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100036d1
mov eax, 0x1002e2d3
push eax
push 1
mov ebx, 0x170
call fcn.10015560
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100036ef
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003700
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10003707
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.10015520
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000374c
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10003781
push 0x36
push 0x401272b
push 6
call fcn.100147bd
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000379d
push eax
mov ebx, eax
call fcn.10001810
inc eax
push eax
call fcn.100147b7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100037a2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100037b3
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10003b1b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10002fca
test eax, eax
je 0x10003b5e
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10003b5e
cmp word [eax], 0x5a4d
jne 0x10003b5e
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10003b5e
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000309c
mov eax, dword [ebp + 8]
jmp 0x10003b77
mov esp, ebp
pop ebp
ret 4

Function at 0x1000cfb6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.100147b7
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x1002ec3c], 0
jne 0x1000d09a
mov ebx, dword [0x1002ec40]
call fcn.1000128a
mov eax, 0
cmp eax, ecx
jl 0x1000d022
push 0x62
push 0x4012bfe
push 1
call fcn.100147bd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x1002e806
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100012aa
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000d04e
push ebx
call fcn.100147b1
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.1000d182
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000d06f
push ebx
call fcn.100147b1
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x1002ec3c], eax
push 0x80000006
push 0
push 0x1000f709
push 1
mov ebx, 0x9dc
call fcn.100155d0
add esp, 0x10
mov dword [0x1002ec44], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x1002ec44]
push dword [0x1002ec3c]
call fcn.1000dd14
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000d104
push 0x19d
push 0x4012bfe
push 6
call fcn.100147bd
add esp, 0xc
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000f520
cmp dword [ebp - 8], 0
je 0x1000d15d
push 2
push dword [ebp - 8]
call fcn.1000b8e0
cmp dword [ebp + 0x1c], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000d154
push 1
push 0xffffffff
push dword [ebp + 0x18]
push dword [ebp - 8]
call fcn.1000f5ad
lea eax, [ebp - 8]
push eax
call fcn.10009de6
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x1000d16e
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10011d26
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x10011d5e
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x10011d4c
mov al, 1
jmp 0x10011dca
cmp dword [ebx + 0x54], ecx
jne 0x10011d55
mov al, 2
jmp 0x10011dca
cmp dword [ebx + 0x7c], ecx
jne 0x10011dca
mov al, 3
jmp 0x10011dca
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x10011d73
mov al, 4
jmp 0x10011dca
cmp ecx, 5
jne 0x10011d93
cmp ebx, 0
jne 0x10011d81
mov al, 5
jmp 0x10011dca
cmp ebx, 1
jne 0x10011d8a
mov al, 6
jmp 0x10011dca
cmp ebx, 2
jne 0x10011d93
mov al, 7
jmp 0x10011dca
cmp ecx, 0xa
jne 0x10011d9a
jmp 0x10011dc8
cmp ecx, 6
jne 0x10011dca
cmp ebx, 0
jne 0x10011da8
mov al, 8
jmp 0x10011dca
cmp ebx, 1
jne 0x10011db1
mov al, 9
jmp 0x10011dca
cmp ebx, 2
jne 0x10011dba
mov al, 0xa
jmp 0x10011dca
cmp ebx, 3
jne 0x10011dc3
mov al, 0xb
jmp 0x10011dca
cmp ebx, 4
jne 0x10011dca
mov al, 0xc
pop ebx
leave
ret

Function at 0x10011ddb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x184
call fcn.10015520
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10011e20
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
cmp dword [ebp - 8], esp
je 0x10011e55
push 0x36
push 0x401272d
push 6
call fcn.100147bd
add esp, 0xc
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10011e68
mov eax, 0x1002e2d3
push eax
push 1
mov ebx, 0x170
call fcn.10015560
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x10011e86
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10011e97
push ebx
call fcn.100147b1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x10015280
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100152e9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10014a60
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100161a0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x100161c5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1001622f
jmp 0x100161e5
mov esi, dword [esp + 0x120]
push esi
call dword [0x1002f208]
add esp, 4
test eax, eax
je 0x1001622f
mov cl, byte [esi]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x14], cl
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1001622f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
imul edx, dword [esp + 4]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop esi
add esp, 0x114
ret
or eax, 0xffffffff
pop esi
add esp, 0x114
ret

Function at 0x10016240
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1001625e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10016253
pop esi
ret

Function at 0x10016950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10016971
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x100169cb
inc edi
cmp edi, esi
jl 0x10016965
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10016a00
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x100169ba
cmp byte [eax], bl
je 0x100169d5
cmp byte [eax + 1], bl
je 0x100169de
cmp byte [eax + 2], bl
je 0x100169e8
cmp byte [eax + 3], bl
je 0x100169f4
add eax, 4
cmp eax, edi
jb 0x10016991
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x10028fbc
Capabilities:
Get file size
Get system information on windows

Disassembly:
push 0x38
mov eax, 0x1006db8e
call fcn.1006ca02
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov ebx, dword [ebp + 0xc]
or dword [esi + 0x14], 0xffffffff
mov ecx, 0x1000
mov dword [ebp - 4], eax
mov dword [esi], fcn.10027600
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x10029017
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, ebx
div ecx
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x14]
mov ecx, ebx
mov eax, edx
sub ecx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x100290d2
cmp edi, 0xffffffff
jne 0x10029077
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp dword [ebp - 0x14], 0
mov edi, eax
jne 0x100290d2
cmp edi, ebx
jbe 0x100290d2
cmp edi, 0xffffffff
je 0x100290d2
sub edi, ebx
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ebx, dword [ebp - 0x40]
lea ecx, [edi + ebx]
mov dword [esi + 0x18], eax
cmp ecx, edi
jb 0x100290d2
test eax, eax
je 0x100290ad
push 0
push ecx
push dword [ebp - 0x3c]
push 0
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFileEx]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100290d2
push 0
push 0
lea ecx, [eax + ebx]
push edi
push ecx
mov ecx, esi
call fcn.1005d1bc
mov byte [esi + 5], 1
mov eax, esi
call fcn.1006ca85
ret 0xc
mov ecx, esi
call fcn.1002913d
push 0x1006ed24
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 1
call sub.MSVCR100.dll__CxxThrowException
int3

Function at 0x1005318f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
xor eax, eax
test edi, edi
je 0x100531b3
mov edx, dword [edi + 0x20]
mov dword [edi + 0x20], eax
mov ax, word [0x10006de8]
xor word [edi + 0x24], ax
mov eax, edi
mov edi, edx
test edx, edx
jne 0x1005319b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
mov dword [esi + 4], eax
mov dword [esi], ecx
pop esi
ret
Function at 0x1005d1bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1005d1cb
pop dword [ebp - 0x4c]
mov eax, 0x3ae330bf
sub eax, 0x2add5ef4
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x4a381
push 0
mov eax, 0x31c0aa9
add eax, 0xce4067f
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xc86dd4f
add ecx, 0xf3795f95
xor edi, edi
add edi, eax
mov ebx, 0x10079600
add ebx, dword [ebp - 0x4c]
mov edx, 0x1e5b6dac
add dword [ebp - 0x3c], 0x6b0ee0ca
mov esi, dword [ebx]
add dword [ebp - 0x3c], 0xecb9013d
add esi, edx
xor dword [ebp - 0x24], 0xee0263e9
mov dword [edi], esi
add dword [ebp - 0x3c], 0x3932f033
add edi, 0x294cd6f7
add edi, 0xd6b3290d
add ebx, 4
loop 0x1005d220
add eax, 0x82f57ce8
sub eax, 0x82f49685
xor ebx, ebx
add ebx, eax
add eax, 0xee938f04
sub eax, 0xee938eff
mov ecx, 0xbcf0384c
add ecx, 0x530fc7b4
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x1006c574
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000a378]
jne 0x1006cc00
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10074a78], eax
mov dword [0x10074a74], ecx
mov dword [0x10074a70], edx
mov dword [0x10074a6c], ebx
mov dword [0x10074a68], esi
mov dword [0x10074a64], edi
mov word [0x10074a90], ss
mov word [0x10074a84], cs
mov word [0x10074a60], ds
mov word [0x10074a5c], es
mov word [0x10074a58], fs
mov word [0x10074a54], gs
pushfd
pop dword [0x10074a88]
mov eax, dword [ebp]
mov dword [0x10074a7c], eax
mov eax, dword [ebp + 4]
mov dword [0x10074a80], eax
lea eax, [ebp + 8]
mov dword [0x10074a8c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100749c8], 0x10001
mov eax, dword [0x10074a80]
mov dword [0x1007497c], eax
mov dword [0x10074970], 0xc0000409
mov dword [0x10074974], 1
mov eax, dword [0x1000a378]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10073cc8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100749c0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000a388
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100749c0], 0
jne 0x1006ccec
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xec55add
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x6e783b15
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
xor edx, edx
lea ebx, [ebx]
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 + 0x417200], ecx
add edx, 1
cmp edx, 0x100
jl 0x401880
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x40e0], ecx
add ecx, edi
mov edi, ecx
shr edi, 1
add edi, ecx
mov ebx, eax
shr ebx, 1
add ebx, edi
lea edx, [eax + 1]
mov dword [esi + 0x410c], ecx
lea ecx, [ebx + edx + 0x80000]
mov dword [esi + 0x40f8], ecx
mov dword [esi + 0x4110], eax
lea ecx, [edx + edx]
mov dword [esi + 0x4118], ecx
add eax, 0xffffffff
xor ecx, ecx
mov edi, eax
mov ebx, ecx
shrd edi, ebx, 1
shr ebx, 1
or ecx, ebx
or eax, edi
mov edi, eax
mov ebx, ecx
shrd edi, ebx, 2
shr ebx, 2
or ecx, ebx
or eax, edi
mov edi, eax
mov ebx, ecx
shrd edi, ebx, 4
shr ebx, 4
or eax, edi
or ecx, ebx
mov edi, eax
or edi, 0x1fffe00
mov ebx, ecx
shrd edi, ebx, 8
shr ebx, 8
or ebx, ecx
or edi, eax
mov dword [esp + 0x18], ebx
mov ebx, edi
mov edi, dword [esp + 0x18]
shrd ebx, edi, 1
shr edi, 1
mov dword [esi + 0x4108], edx
mov dword [esi + 0x40fc], ebp
mov dword [esi + 0x40dc], edx
jne 0x4019eb
cmp ebx, 0x1000000
jbe 0x4019f1
shrd ebx, edi, 1
shr edi, 1
push 0
push 2
push ebp
mov dword [esi + 0x40ec], ebx
add ebx, 0x10401
push edx
adc edi, ebp
mov dword [esi + 0x4114], ebx
call fcn.00413b30
add eax, ebx
adc edx, edi
add dword [esi + 0x40f8], 0x1000
pop edi
mov dword [esi + 0x4100], eax
adc dword [esi + 0x40fc], ebp
mov dword [esi + 0x4104], edx
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x401b00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0xc]
xor eax, eax
or ecx, edx
cmp ecx, 1
je 0x401b48
push esi
mov esi, dword [esp + 8]
push edi
mov edi, edi
mov edx, ecx
and ecx, 1
shr edx, 1
movzx edi, word [esi + edx*2]
neg ecx
sar ecx, 4
and ecx, 0x7f
shr edi, 4
xor edi, ecx
add eax, dword [edi*4 + 0x417000]
mov ecx, edx
cmp ecx, 1
jne 0x401b20
pop edi
pop esi
ret 0xc
Function at 0x401b50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
test edi, edi
mov edx, 1
je 0x401ba0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
jmp 0x401b70
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + edx*2]
mov ecx, esi
and ecx, 1
mov ebp, ecx
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [ebx*4 + 0x417000]
shr esi, 1
sub edi, 1
lea edx, [ecx + edx*2]
jne 0x401b70
pop esi
pop ebp
pop ebx
pop edi
ret 0xc

Function at 0x401c20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
xor eax, eax
or ecx, 0x100
push edi
mov edi, ecx
shr edi, 7
mov esi, ecx
shr esi, 8
movzx esi, word [edx + esi*2]
and edi, 1
neg edi
sar edi, 4
shr esi, 4
and edi, 0x7f
xor esi, edi
add eax, dword [esi*4 + 0x417000]
add ecx, ecx
cmp ecx, 0x10000
jb 0x401c32
pop edi
pop esi
ret 8

Function at 0x401c70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov edx, 0x100
push edi
mov edi, dword [esp + 0x14]
xor eax, eax
or ecx, edx
lea esp, [esp]
add esi, esi
mov ebx, edx
and ebx, esi
add ebx, edx
mov ebp, ecx
shr ebp, 8
add ebp, ebx
movzx ebx, word [edi + ebp*2]
mov ebp, ecx
shr ebp, 7
and ebp, 1
neg ebp
shr ebx, 4
sar ebp, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [ebx*4 + 0x417000]
add ecx, ecx
mov ebx, ecx
xor ebx, esi
not ebx
and edx, ebx
cmp ecx, 0x10000
jb 0x401c90
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x402eb0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [ecx + 0x4194], edi
add ecx, 0x78ed2c
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov edx, 1
mov ebx, 4
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
movzx ecx, word [ecx + edx*2 + 0x47e0]
mov eax, edi
and eax, 1
mov ebp, eax
neg ebp
sar ebp, 4
shr ecx, 4
and ebp, 0x7f
xor ecx, ebp
add esi, dword [ecx*4 + 0x417000]
shr edi, 1
sub ebx, 1
lea edx, [eax + edx*2]
jne 0x402ee0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add edi, 1
mov dword [eax], esi
add eax, 4
cmp edi, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jb 0x402ed1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403640
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp ebx, 4
jge 0x403657
mov eax, 1
pop ebx
add esp, 8
ret
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 8]
push 0x4155fc
push eax
call esi
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x403685
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 8
ret
mov ecx, dword [edi + 0xc]
push 0x4155f8
push ecx
call esi
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4036a7
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 8
ret
mov edx, dword [edi + 4]
xor eax, eax
cmp byte [edx], 0x64
push ebp
sete al
xor esi, esi
lea ebp, [ebx - 4]
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
add edi, 0x10
mov dword [esp + 0x14], eax
cmp ebp, 0xc
mov eax, ebp
jl 0x4036d1
mov eax, 0xc
cmp esi, eax
jge 0x4036f6
mov eax, dword [edi]
xor ecx, ecx
cmp byte [eax], 0x2d
sete cl
add eax, ecx
push eax
call ebx
mov dword [esi*4 + 0x416120], eax
add esp, 4
add esi, 1
add edi, 4
jmp 0x4036c5
cmp dword [esp + 0x14], 0
mov ecx, 0x418000
jne 0x403715
push 2
push 0x1f4
push 0x416150
call fcn.004010f0
jmp 0x403726
push 1
push 0x1f4
push 0x4161b8
call fcn.004010f0
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, 0x49d000
mov dword [0x41800c], eax
mov dword [0x418010], eax
mov dword [0x418014], 0x4ad000
mov ebp, 0x48d000
push 0x401370
push 0x418000
call fcn.00401030
mov esi, eax
add esp, 8
cmp esi, 8
je 0x40376d
test esi, esi
jne 0x40379a
mov edx, dword [0x41c0ec]
mov eax, dword [0x41c0e8]
mov ecx, dword [0x41c0e4]
push edx
mov edx, dword [0x41c0e0]
push eax
push ecx
push edx
push 0x4155e4
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x14
test esi, esi
jne 0x403750
cmp esi, 1
jne 0x4037d7
mov eax, dword [esp + 0x1c]
push eax
push 0x10000
push esi
push ebp
call edi
add esp, 0x10
test eax, eax
lea ecx, [eax + 0x48d000]
mov dword [0x418000], ebp
mov dword [0x418004], ebp
mov dword [0x418008], ecx
jne 0x403750
mov dword [0x418024], esi
jmp 0x403750
mov eax, dword [0x41800c]
mov edx, dword [esp + 0x10]
sub eax, dword [0x418010]
push edx
push eax
push 1
push 0x49d000
call ebx
mov eax, 0x49d000
add esp, 0x10
cmp esi, 2
mov dword [0x41800c], eax
mov dword [0x418010], eax
mov dword [0x418014], 0x4ad000
je 0x403750
push 0x4155f4
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov ecx, 0x418000
call fcn.00401320
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret