joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a60
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x434dc0]
xor eax, esp
mov dword [esp + 0x11c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
jbe 0x402aa9
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00411ee2
add esp, 0x120
ret
jae 0x402ac3
or eax, 0xffffffff
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00411ee2
add esp, 0x120
ret
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x402a8f
jb 0x402aab
xor ecx, ecx
cmp ecx, dword [esp + 0xc]
mov ecx, dword [esp + 0x11c]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00411ee2
add esp, 0x120
ret
Function at 0x4032a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2008
call fcn.00415e90
mov eax, dword [0x434dc0]
xor eax, esp
mov dword [esp + 0x2004], eax
cmp dword [esp + 0x200c], 0
je 0x4033dd
push 0x1ffe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00413d60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [edi + 0x248]
push ecx
push str._s__X_:
lea edx, [esp + 0x10]
push 0x1000
push edx
call fcn.00412027
mov edx, dword [esp + 0x2020]
lea ecx, [esp + 0x2024]
push ecx
push edx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x24]
push edx
call fcn.00412f5b
push 0x42ea7c
lea eax, [esp + 0x2c]
push 0x1000
push eax
call fcn.0041215a
lea eax, [edi + 0x40]
add esp, 0x30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403342
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub eax, edx
sar eax, 1
push esi
je 0x403377
lea esi, [edi + 4]
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00403210
push esi
call ebp
lea eax, [esp + 0x10]
xor edx, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403380
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
je 0x4033c6
cmp word [esp + edx*2 + 0x10], 0xa
jne 0x4033a3
mov word [esp + edx*2 + 0x10], 0x20
lea eax, [esp + 0x10]
add edx, 1
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4033b0
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
cmp edx, eax
jb 0x403394
lea esi, [edi + 4]
push esi
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.00411ee2
add esp, 0x2008
ret

Function at 0x403ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4298d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434dc0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, 1
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x34]
push 0
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push edi
call fcn.00401c00
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
mov esi, dword [esp + 0x3c]
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push esi
call fcn.00401c00
mov ecx, dword [esp + 0x3c]
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x30], bl
call fcn.00403da0
mov ebx, eax
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404089
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040aa
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x406c6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x434dc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x406cac
push 0x42a980
push 4
push eax
call fcn.00412b88
push eax
call fcn.00401f30
add esp, 0x10
jmp 0x406cbe
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x406d29
push edi
call fcn.004128e2
mov edi, dword [eax]
call fcn.004128e2
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00412043
add esp, 0x18
mov ebx, eax
call fcn.004128e2
cmp dword [eax], 0
je 0x406d09
call fcn.004128e2
push dword [eax]
call fcn.00406bff
pop ecx
jmp 0x406d10
call fcn.004128e2
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x406d29
cmp ebx, esi
jae 0x406d29
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x406d2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee2
leave
ret
Function at 0x4095be
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4095ec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40960a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00409528
jmp 0x40960a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40960a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00409528
test edi, edi
mov eax, edi
jne 0x4095f4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x436f54]
test ecx, ecx
je 0x4096cd
jmp 0x4095bd
ret 8

Function at 0x411ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434dc0]
jne 0x411eec
repz ret
jmp fcn.00417678
Function at 0x416382
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 + 0x434de0]
je 0x41639d
inc edi
cmp edi, 0x17
jb 0x41638e
cmp edi, 0x17
jae 0x41651d
push ebp
push 3
call fcn.004203ad
cmp eax, 1
pop ecx
je 0x4164e9
push 3
call fcn.004203ad
test eax, eax
pop ecx
jne 0x4163d1
cmp dword [0x434c24], 1
je 0x4164e9
cmp ebx, 0xfc
je 0x41651c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x438e38
push ebp
call fcn.0041cac9
add esp, 0xc
test eax, eax
je 0x416407
push esi
push esi
push esi
push esi
push esi
call fcn.00413087
add esp, 0x14
push 0x104
mov esi, 0x438e51
push esi
push 0
mov byte [0x438f55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41644b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041cac9
add esp, 0xc
test eax, eax
je 0x41644b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00413087
add esp, 0x14
push esi
call fcn.0041cb30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416490
push esi
call fcn.0041cb30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43914c
push 0x42c324
sub ecx, eax
push ecx
push eax
call fcn.004202fa
add esp, 0x14
test eax, eax
je 0x416490
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00413087
add esp, 0x14
jmp 0x416492
xor esi, esi
push 0x42c320
push ebx
push ebp
call fcn.00420289
add esp, 0xc
test eax, eax
je 0x4164b2
push esi
push esi
push esi
push esi
push esi
call fcn.00413087
add esp, 0x14
push dword [edi*8 + 0x434de4]
push ebx
push ebp
call fcn.00420289
add esp, 0xc
test eax, eax
je 0x4164d4
push esi
push esi
push esi
push esi
push esi
call fcn.00413087
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004200cc
add esp, 0xc
jmp 0x41651c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41651c
cmp ebp, 0xffffffff
je 0x41651c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x434de4]
push dword [esi]
call fcn.0041cb30
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
Function at 0x4200cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416f47
xor ebx, ebx
cmp dword [0x439940], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4201a2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420282
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x420282
push eax
call fcn.00416ed9
mov dword [esp], 0x42c5e8
push edi
mov dword [0x439940], eax
call esi
push eax
call fcn.00416ed9
mov dword [esp], 0x42c5d4
push edi
mov dword [0x439944], eax
call esi
push eax
call fcn.00416ed9
mov dword [0x439948], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00413e99
test eax, eax
pop ecx
pop ecx
je 0x420170
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413087
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4201a2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416ed9
cmp eax, ebx
pop ecx
mov dword [0x439950], eax
je 0x4201a2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416ed9
pop ecx
mov dword [0x43994c], eax
mov eax, dword [0x43994c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x420227
cmp dword [0x439950], ecx
je 0x420227
push eax
call fcn.00416f50
push dword [0x439950]
mov esi, eax
call fcn.00416f50
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x420227
cmp edi, ebx
je 0x420227
call esi
cmp eax, ebx
je 0x4201f4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4201f4
test byte [ebp - 0x18], 1
jne 0x420227
lea eax, [ebp - 0x10]
push eax
call fcn.00413ed0
test eax, eax
pop ecx
je 0x42020f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413087
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42021e
or dword [ebp + 0x10], 0x200000
jmp 0x420262
or dword [ebp + 0x10], 0x40000
jmp 0x420262
mov eax, dword [0x439944]
cmp eax, dword [ebp - 8]
je 0x420262
push eax
call fcn.00416f50
cmp eax, ebx
pop ecx
je 0x420262
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420262
mov eax, dword [0x439948]
cmp eax, dword [ebp - 8]
je 0x420262
push eax
call fcn.00416f50
cmp eax, ebx
pop ecx
je 0x420262
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439940]
call fcn.00416f50
cmp eax, ebx
pop ecx
je 0x420282
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420284
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422559
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x422586
call fcn.004128f5
mov dword [eax], esi
call fcn.004128e2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00413183
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x422562
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4225b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00412908
pop ecx
call fcn.004128e2
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4225dc
test al, 1
je 0x4225dc
test byte [esp + 0xc], 2
je 0x4225dc
call fcn.004128f5
mov dword [eax], 5
call fcn.004128e2
mov dword [eax], 0xd
jmp 0x4225ac
xor eax, eax
pop esi
ret
Function at 0x428d1c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x434dc0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00428cb1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413d60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x428d6b
cmp dword [ebp - 0x1c], 5
jb 0x428d83
jmp 0x428d7f
cmp dword [ebp - 0x10], 1
jne 0x428d83
cmp dword [ebp - 0x1c], 4
ja 0x428d7f
jne 0x428d83
cmp dword [ebp - 0x18], 0
jbe 0x428d83
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42d7fc
call fcn.00428ba2
test eax, eax
jge 0x428da4
mov byte [0x439af8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411ee2
add ebp, 0x78
leave
ret
Function at 0x401e90
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x401f87
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x401f87
push ebx
call fcn.00408b70
add esp, 4
test eax, eax
je 0x401eea
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x401ef1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x401ed0
jmp 0x401ef3
mov esi, 0x1505
jmp 0x401ef3
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov edx, ebx
sub edx, 1
jb 0x401f87
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov dword [esp], edx
jmp 0x401f24
inc ebp
dec ebx
je 0x401f85
mov eax, ebp
and eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x401f85
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f20
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408b70
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x401f20
push dword [esp + 4]
push dword [esp + 0xc]
push dword [esp + 0x30]
call fcn.00408b90
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x401f20
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edi*4]
jmp 0x401f87
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401fa0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x402087
test edx, edx
je 0x402087
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401fea
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401ff1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x401fd0
jmp 0x401ff3
mov esi, 0x1505
jmp 0x401ff3
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
lea ebx, [ebp - 1]
mov edx, ebp
sub edx, 1
jb 0x402087
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
jmp 0x402024
inc ebx
dec ebp
je 0x402085
mov eax, ebx
and eax, edx
mov edi, dword [esp + 0x10]
mov edi, dword [edi + eax*4]
cmp edi, 0xffffffff
je 0x402085
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x402020
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408b70
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x402020
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408b90
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402020
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x402087
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402480
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x402588
mov esi, edx
test edx, edx
je 0x402588
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x402588
push esi
call fcn.00408b70
add esp, 4
test eax, eax
je 0x4024da
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x4024e1
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x4024c0
jmp 0x4024e3
mov ebp, 0x1505
jmp 0x4024e3
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x402590
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x40254a
call fcn.00402680
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402588
push ecx
call fcn.00408b70
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
lea ebx, [esi - 1]
mov eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
jae 0x4025ff
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*4], edx
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x4025a8
inc ebx
dec esi
je 0x4024ff
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402504
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x4025a0
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408b70
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x4025a0
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408b90
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4025a0
mov eax, 0xffffffff
jmp 0x402588
and ebx, ebp
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
jmp 0x402618
inc ebx
dec esi
je 0x402545
mov edi, ebx
and edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x40254a
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402610
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
push eax
call fcn.00408b70
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402610
push dword [esp + 4]
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.00408b90
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402610
jmp 0x40254a
Function at 0x402d30
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x402ef6
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0x402eef
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebx
sub esi, eax
jmp 0x402dc3
add ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov ebx, dword [esp + 0x10]
sub ebx, esi
mov esi, 0x15b0
je 0x402eef
xor edx, edx
cmp esi, 8
mov dword [esp + 4], esi
jb 0x402e4b
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop
nop
nop
mov eax, edx
movzx edx, byte [ebp + edx]
mov esi, edi
and esi, edx
xor edi, edx
lea edx, [edi + esi*2]
add ecx, edx
movzx esi, byte [ebp + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 2]
mov edi, esi
and edi, edx
xor esi, edx
lea edx, [esi + edi*2]
add ecx, edx
movzx esi, byte [ebp + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 6]
add edx, esi
mov esi, dword [esp + 4]
add ecx, edx
movzx edi, byte [ebp + eax + 7]
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x402de0
add ebp, edx
mov edx, dword [esp]
mov eax, esi
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x402d88
mov dword [esp], edx
not edx
add edx, esi
mov dword [esp + 8], edx
and esi, 3
mov dword [esp + 0xc], eax
je 0x402ea3
neg esi
xor edx, edx
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x402e80
mov eax, dword [esp]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x402d80
jmp 0x402eb5
mov ebx, ebp
mov eax, dword [esp + 8]
mov edx, dword [esp]
cmp eax, 3
jb 0x402d80
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x402ec0
jmp 0x402d80
shl ecx, 0x10
or ecx, edi
jmp 0x402efb
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
not eax
cmp edx, 4
jb 0x402fb5
nop
nop
nop
nop
nop
nop
mov ebx, eax
shr ebx, 8
xor al, byte [ecx]
movzx eax, al
mov eax, dword [eax*4 + 0x437928]
mov esi, eax
and esi, ebx
add ebx, eax
add esi, esi
sub ebx, esi
mov eax, ebx
xor bl, byte [ecx + 1]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x437928]
mov esi, eax
shr esi, 8
movzx edi, byte [ecx + 2]
mov ebx, eax
and ebx, edi
add eax, edi
add ebx, ebx
sub eax, ebx
mov edi, eax
xor edi, 0x3fffff00
or eax, 0xff
and eax, edi
xor esi, dword [eax*4 + 0x437928]
mov eax, esi
shr eax, 8
movzx edi, byte [ecx + 3]
or edi, 0x3fffff00
xor edi, esi
or esi, 0xff
and esi, edi
xor eax, dword [esi*4 + 0x437928]
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x402f30
test edx, edx
je 0x40301e
test dl, 1
jne 0x402fc7
mov esi, edx
cmp edx, 1
jne 0x402fe2
jmp 0x40301e
movzx ebx, byte [ecx]
xor bl, al
movzx esi, bl
inc ecx
shr eax, 8
xor eax, dword [esi*4 + 0x437928]
lea esi, [edx - 1]
cmp edx, 1
je 0x40301e
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [ecx + edx]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x437928]
movzx ebx, byte [ecx + edx + 1]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x437928]
add edx, 2
cmp esi, edx
jne 0x402ff0
not eax
pop esi
pop edi
pop ebx
ret