joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb220
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0xc], 1
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
jne 0x4bb2c9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push esi
push 0x4bafa0
push dword [0x569b84]
push 0
call fcn.004e3869
mov ecx, dword [ebp - 8]
mov edx, eax
add esp, 0x18
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ecx
test edx, edx
je 0x4bb2d7
mov eax, dword [esi + 0x20]
sub eax, 0
je 0x4bb296
sub eax, 1
je 0x4bb292
sub eax, 1
jne 0x4bb2f3
mov eax, 2
jmp 0x4bb29b
xor eax, eax
jmp 0x4bb29b
mov eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4bb301
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4bb31d
lea ecx, [ebp - 0x10]
mov dword [esi + 0x1c], 1
call fcn.0041e950
pop esi
mov esp, ebp
pop ebp
ret
push 0x554970
lea eax, [ebp - 1]
push eax
call fcn.004ce518
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.004bab00
push 0x55499c
mov eax, ecx
push eax
call fcn.004ce518
push 0x554970
lea eax, [ebp - 1]
push eax
call fcn.004ce518
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.004bab00
push 0x55499c
mov eax, ecx
push eax
call fcn.004ce518
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.004bab00
push 0x55499c
mov eax, ecx
push eax
call fcn.004ce518
int3

Function at 0x4bb340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x4bb35e
cmp eax, 2
jne 0x4bb3a4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x5a4b80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x4bb3b9
cmp dword [esi + 0x34], 0
jne 0x4bb3c7
push 0xffffffffffffffff
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4bb3d5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4bb396
mov eax, dword [esi + 0x4c]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
ret 4
mov ecx, edi
call fcn.0041e920
push 0x554970
lea eax, [ebp + 0xb]
push eax
call fcn.004ce518
push 0x554970
lea eax, [ebp + 0xb]
push eax
call fcn.004ce518
push 0x554970
lea eax, [ebp + 0xb]
push eax
call fcn.004ce518
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.004bab00
push 0x55499c
mov eax, ecx
push eax
call fcn.004ce518
int3
Function at 0x4bb480
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push dword [0x5a4b80]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4bb4ce
push esi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x34], 0
pop esi
je 0x4bb4cb
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
call fcn.004e38ee
add esp, 4
pop edi
pop ebx
ret
mov dword [edi + 0x4c], ebx
push 0
call fcn.004e38ee
add esp, 4
pop edi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
not eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jbe 0x4bdfcf
test bl, 7
je 0x4bdf39
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x509828]
test bl, 7
jne 0x4bdf20
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x4bdfcf
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [ebp + 0x10], ebx
add dword [ebp + 0x10], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x509c28]
xor edx, dword [ecx*4 + 0x50a028]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x50ac28]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x50b028]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x509828]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x50a828]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x50a428]
xor edx, dword [eax*4 + 0x50b428]
mov eax, edx
cmp ebx, edi
jb 0x4bdf50
test esi, esi
je 0x4bdfed
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x509828]
sub esi, 1
jne 0x4bdfd3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x4be4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
not eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
not esi
cmp edi, 4
jbe 0x4be597
mov dword [ebp + 0x14], ebx
test bl, 3
je 0x4be4f7
nop word [eax + eax]
movzx ecx, byte [ebx]
dec edi
movzx edx, al
inc ebx
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x50ba08]
xor esi, dword [edx*8 + 0x50ba0c]
test bl, 3
jne 0x4be4d0
mov dword [ebp + 0x14], ebx
mov edx, edi
mov dword [ebp - 8], 0
and edx, 0xfffffffc
mov dword [ebp - 4], 0
and edi, 3
mov dword [ebp + 0xc], edi
lea ecx, [edx + ebx]
shr edx, 2
cmp ebx, ecx
cmova edx, dword [ebp - 8]
mov dword [ebp - 8], edx
test edx, edx
je 0x4be597
mov edi, edx
mov ebx, dword [ebx]
xor ebx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*8 + 0x50c208]
mov edx, dword [edx*8 + 0x50c20c]
xor eax, dword [ecx*8 + 0x50ca08]
xor edx, dword [ecx*8 + 0x50ca0c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x50ba08]
xor edx, dword [ecx*8 + 0x50ba0c]
movzx ecx, bl
mov ebx, dword [ebp + 0x14]
add ebx, 4
mov dword [ebp + 0x14], ebx
xor eax, dword [ecx*8 + 0x50d208]
xor edx, dword [ecx*8 + 0x50d20c]
xor eax, esi
mov ecx, dword [ebp - 4]
xor edx, 0
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
cmp ecx, edi
jb 0x4be525
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4be5c5
nop dword [eax + eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x50ba08]
xor esi, dword [edx*8 + 0x50ba0c]
sub edi, 1
jne 0x4be5a0
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bfb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], 0x4000400
test edx, edx
je 0x4bfb91
lea eax, [ebx + 0x104]
mov ecx, edx
movaps xmm0, xmmword [0x50b950]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movaps xmm0, xmmword [0x50b950]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x4bfb70
cmp byte [ebp + 0x10], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x4bfd54
mov dword [ebp - 4], 0
test edx, edx
je 0x4bfd54
lea eax, [ebx + 0x404]
lea ecx, [ebx + 0x4808]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], ecx
push esi
nop
mov edi, dword [ebx + 0x4804]
xor esi, esi
mov dword [ecx], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [ebp - 8], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp + 8], esi
movzx eax, byte [eax + 0x50da08]
movzx edx, byte [ecx + 0x50da08]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x50da08]
add eax, edx
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + 0x50da08]
add eax, edx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4bfd33
cmp esi, 8
jae 0x4bfc89
lea edx, [esi + 8]
xor edi, edi
mov esi, dword [ebp - 4]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x50da08]
add edi, eax
cmp edx, 1
jne 0x4bfc41
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4bfc34
jmp 0x4bfd33
cmp esi, edi
jae 0x4bfd33
cmp esi, 0x10
jae 0x4bfce8
mov edx, esi
xor edi, edi
mov esi, dword [ebp - 4]
nop dword [eax]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x50da08]
add edi, eax
cmp edx, 1
jne 0x4bfca0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4bfc91
jmp 0x4bfd33
cmp esi, edi
jae 0x4bfd33
nop dword [eax]
xor edi, edi
lea eax, [esi + 0xf0]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x50da08]
add edi, ecx
cmp eax, 1
jne 0x4bfcf8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x4bfcf0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add dword [ebp + 0x10], 0x440
add ecx, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp + 0xc]
jb 0x4bfbd0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bfd60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx + 0x4804]
mov dword [ebp - 8], edi
mov dword [ebx + esi*4 + 0x4808], edi
movzx ecx, word [ebx]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
movzx eax, byte [eax + 0x50da08]
movzx edx, byte [ecx + 0x50da08]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x50da08]
add eax, edx
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0x50da08]
add eax, edx
mov dword [ebp - 0x14], eax
imul eax, esi, 0x440
xor esi, esi
mov dword [ebp + 8], esi
add eax, 0x404
add eax, ebx
mov dword [ebp - 4], eax
test edi, edi
je 0x4bfeeb
cmp esi, 8
jae 0x4bfe3f
lea edx, [esi + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x50da08]
add edi, eax
cmp edx, 1
jne 0x4bfdf5
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4bfde8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x4bfeeb
cmp esi, 0x10
jae 0x4bfea0
mov edx, esi
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x50da08]
add edi, eax
cmp edx, 1
jne 0x4bfe53
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4bfe47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x4bfeeb
xor edi, edi
lea eax, [esi + 0xf0]
nop dword [eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x50da08]
add edi, ecx
cmp eax, 1
jne 0x4bfeb0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x4bfea4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c26e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x3706
mov dword [ebp + 8], esi
lea eax, [edi + 0x105a4]
lea edx, [edi + 0x101a0]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
nop word [eax + eax]
mov eax, dword [edi + 0x10da0]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x4c276b
nop
lea eax, [ebx + 0x40]
xor esi, esi
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
lea ecx, [ebx + eax]
and edx, 0x7f
movzx ecx, word [edi + ecx*2]
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x50da08]
add esi, ecx
cmp eax, 1
jne 0x4c2728
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ebx*4], esi
inc ebx
mov eax, dword [edi + 0x10da0]
mov dword [ebp - 4], ebx
cmp ebx, eax
jb 0x4c2720
mov esi, dword [ebp + 8]
mov ecx, 0xe
cmp eax, ecx
jbe 0x4c278a
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [edx + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x10da0]
jb 0x4c2774
mov ecx, dword [ebp - 0xc]
add esi, 0x40
mov eax, dword [edx]
mov dword [ebp + 8], esi
mov dword [ecx - 4], eax
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0xc]
add edx, 0x100
mov dword [ecx + 8], eax
add ecx, 0x200
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
cmp esi, 0x3806
jb 0x4c2710
mov ebx, 4
lea eax, [edi + 0x107b0]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, 0x2000
jae 0x4c27e9
movzx esi, byte [ebx + 0x50da88]
jmp 0x4c280f
mov eax, ebx
cmp ebx, 0x2000000
jae 0x4c2802
shr eax, 0xc
movzx esi, byte [eax + 0x50da88]
add esi, 0x18
jmp 0x4c280f
shr eax, 0x18
movzx esi, byte [eax + 0x50da88]
add esi, 0x30
mov eax, esi
mov edx, esi
shr eax, 1
and edx, 1
dec eax
or edx, 2
mov ecx, eax
mov dword [ebp - 0xc], eax
shl edx, cl
mov eax, ebx
mov ecx, 1
mov dword [ebp - 0x10], edx
sub eax, edx
mov dword [ebp + 8], ecx
xor ebx, ebx
mov edx, eax
sub ecx, esi
add ecx, dword [ebp - 0x10]
and edx, 1
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, edx
neg eax
movzx ecx, word [edi + ecx*2 + 0x700a]
shr eax, 4
shr ecx, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x50da08]
mov ecx, dword [ebp + 8]
add ebx, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x14]
lea ecx, [edx + ecx*2]
mov dword [ebp + 8], ecx
jne 0x4c2834
mov ecx, dword [ebp - 4]
mov eax, dword [edi + esi*4 + 0x101a0]
add eax, ebx
mov dword [ecx - 0x200], eax
mov eax, dword [edi + esi*4 + 0x102a0]
add eax, ebx
mov dword [ecx], eax
mov eax, dword [edi + esi*4 + 0x103a0]
add eax, ebx
mov dword [ecx + 0x200], eax
mov eax, dword [edi + esi*4 + 0x104a0]
add eax, ebx
mov ebx, dword [ebp - 8]
inc ebx
mov dword [ecx + 0x400], eax
add ecx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
cmp ebx, 0x80
jb 0x4c27d8
mov dword [edi + 0x10da4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c28e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, 8
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [edi + 0xaa4]
sub ecx, edx
mov eax, dword [edi + 0xaa8]
and eax, dword [ebp + 0xc]
shr esi, cl
mov ecx, edx
shl eax, cl
add esi, eax
imul eax, esi, 0x600
add eax, 0xaac
add eax, edi
mov dword [ebp + 8], eax
cmp byte [ebp + 0x14], bl
jne 0x4c2934
push dword [ebp + 0x1c]
push 8
push eax
call fcn.004c3f30
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0x1c]
mov esi, 0x100
mov edi, dword [ebp + 0x18]
add edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
movzx eax, byte [ecx + 0x50da08]
mov ecx, edi
xor ecx, edx
add ebx, eax
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x4c2941
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4c3f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
add ecx, eax
mov eax, dword [ebp + 8]
nop dword [eax]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [eax + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
movzx edx, byte [edx + 0x50da08]
add edi, edx
cmp ecx, 1
jne 0x4c3f50
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4c54c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c54d0
Function at 0x4caf20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4caf45
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4caf5d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x4caf8c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x4cafce
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x4cb0a2
sub edx, 0x10000
js 0x4cb0a2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x4cafb4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x4cafb4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4cb025
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x4cb022
add edx, 8
jne 0x4cb009
jmp 0x4cb093
add edx, 4
test eax, 0xffff
jne 0x4cb032
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x4cb093
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4cb066
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x4cafb4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x4cb0a2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x4cafb4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x4cb0b3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4e1fdf
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e1ea2

Function at 0x4eabb9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ea527

Function at 0x4eabc4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ea762

Function at 0x4eb664
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004eb4e3
Function at 0x40d3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.040d378f
jae 0x40d370e
xor ecx, ecx
call fcn.040d378f
jae 0x40d373d
xor eax, eax
call fcn.040d378f
jae 0x40d374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.040d378f
adc al, al
jae 0x40d372f
jne 0x40d3779
stosb byte es:[edi], al
jmp 0x40d3711
call fcn.040d379b
sub ecx, ebx
jne 0x40d3756
call fcn.040d3799
jmp 0x40d3775
lodsb al, byte [esi]
shr eax, 1
je 0x40d3783
adc ecx, ecx
jmp 0x40d3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.040d3799
cmp eax, 0x7d00
jae 0x40d3772
cmp ah, 5
jae 0x40d3773
cmp eax, 0x7f
ja 0x40d3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40d3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4149cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414845

Function at 0x419000
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418b53

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x4ead0971
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x40cb5f5e
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x3000c2fb
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x3000e730
call fcn.3000c781
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30012128
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3000c09a
cmp eax, esi
jne 0x3000c08d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3000c09d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3000c074
xor esi, esi
inc esi
mov eax, dword [0x30012124]
cmp eax, esi
jne 0x3000c0b0
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000c0df
mov eax, dword [0x30012124]
test eax, eax
jne 0x3000c0d9
mov dword [0x30012124], esi
push 0x30001290
push 0x30001288
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x3000c0df
jmp 0x3000c207
mov dword [0x30011ddc], esi
mov eax, dword [0x30012124]
cmp eax, esi
jne 0x3000c103
push 0x30001284
push 0x30001278
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30012124], 2
test ebx, ebx
jne 0x3000c10f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30012134], 0
je 0x3000c133
push 0x30012134
call fcn.3000c709
pop ecx
test eax, eax
je 0x3000c133
push 0
push 2
push 0
call dword [0x30012134]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3000c18f
test al, al
je 0x3000c14d
cmp dword [ebp - 0x1c], 0
jne 0x3000c18f
mov al, byte [esi]
test al, al
je 0x3000c15d
cmp al, 0x20
ja 0x3000c15d
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3000c14d
test byte [ebp - 0x3c], 1
je 0x3000c169
movzx eax, word [ebp - 0x38]
jmp 0x3000c16c
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30011dd8], eax
cmp dword [0x30011dcc], 0
jne 0x3000c1e3
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3000c19e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x3000c1b1
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3000c13a
cmp dword [0x30011ddc], 0
jne 0x3000c1f2
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30011dd8]
jmp 0x3000c213
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000c7c6
ret
call fcn.3000bf21
jmp 0x3000c03a