joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418310
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
mov dword [esi], vtable.RenderCanonOEMDither.0
je 0x418329
push eax
call fcn.0041adb0
add esp, 4
mov eax, dword [esi + 0x58]
push eax
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esi + 0x64]
add esp, 4
test eax, eax
je 0x418345
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov ecx, esi
pop esi
jmp 0x419530
cmp dword [eax], ebx
je 0x41956f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x41956a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
or dword [ebx + 0xe281d1], ecx
lock add byte [eax], al
cmp edx, 0x3000
jne 0x419554
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x41955c
cmp edx, ebx
jne 0x4196aa
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41952b
add eax, dword [eax + 4]
jmp 0x419518
mov dword [ebp + 0xc], ebx
jmp 0x41957a
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x419592
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4195b0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41960e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4195f5
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4195fe
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x419608
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4195ea
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x419574
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x41965b
dec eax
je 0x419652
sub eax, 3
je 0x419649
mov dword [ebp - 4], 0x40
jmp 0x419678
mov dword [ebp - 4], 4
jmp 0x41965e
mov dword [ebp - 4], 0x20
jmp 0x41965e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4196aa
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x41962a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00418ebb
out 0x8b, eax
add byte [edi + edi*8 + 0x16a1475], ah
push esi
call edi
mov eax, esi
jmp 0x4196b6
Function at 0x43dff0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, eax
mov eax, dword [0x6bf424]
test eax, eax
je 0x43e007
push esi
call fcn.004720a0
add esp, 4
mov esi, eax
test esi, esi
jne 0x43e020
push 0xb
push str.Out_of_memory._n
call fcn.0043b440
push esi
call fcn.0044b1f0
add esp, 0xc
push 0x1ff
push esi
call fcn.00471ac0
mov eax, dword [0x6bf424]
add esp, 8
test eax, eax
je 0x43e046
mov eax, dword [0x6bf498]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 8]
add esp, 8
pop esi
ret
Function at 0x440fc0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x691ae0]
test eax, eax
jne 0x440fdb
push 0xd
push str.Thread_creation_:_thread_table_unititialized._n
call fcn.0043b440
add esp, 8
pop ecx
ret
cmp word [0x691e08], 0x20
jb 0x440ff6
push 0xd
push str.Thread_creation_:_count_exceeded._n
call fcn.0043b440
add esp, 8
pop ecx
ret
push esi
call fcn.00440f90
mov esi, eax
test esi, esi
jne 0x441014
push 0xd
push str.Thread_creation_:_count_exceeded_or_table_corrupted._n
call fcn.0043b440
add esp, 8
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edi
push edx
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x44104d
push 0xd
push str.Thread_creation_failed._n
call fcn.0043b440
add esp, 8
pop edi
pop esi
pop ecx
ret
shl esi, 4
mov dword [esi + 0x691c08], eax
mov eax, dword [esp + 8]
push 8
mov dword [esi + 0x691c0c], eax
mov dword [esi + 0x691c10], edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
add esp, 4
inc word [0x691e08]
mov dword [esi + 0x691c14], eax
pop edi
mov dword [ecx], edx
xor eax, eax
pop esi
pop ecx
ret

Function at 0x441090
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov esi, 0x691c18
xor edi, edi
cmp dword [esi + 8], edi
je 0x4410d3
mov eax, dword [esi]
cmp eax, edi
je 0x4410bb
push edi
push eax
call ebx
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [esi + 0xc]
push ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [esi + 0xc], edi
add esi, 0x10
cmp esi, 0x691e08
jl 0x4410a7
pop edi
pop esi
pop ebp
mov word [0x691e08], 1
pop ebx
ret
Function at 0x46d2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x692b08]
sub esp, 0x4c
test eax, eax
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x60]
push edi
mov dword [ebx], 0
je 0x46d362
cmp ebp, 0xff
ja 0x46d362
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x46d362
mov eax, dword [esp + 0x60]
movzx edi, byte [esi + ebp + 0x3c]
push ebx
push esi
push eax
call fcn.0046bcb0
add esp, 0xc
test eax, eax
je 0x46d362
mov ecx, dword [ebx + 0xc]
imul ecx, dword [ebx + 8]
mov eax, dword [eax + edi*4]
mov dword [ebx], eax
lea edx, [eax + ecx*4]
add dword [ebx + 0x20], edi
mov eax, dword [ebx + 0x24]
mov dword [ebx + 4], edx
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [0x692b28]
push ecx
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x60], eax
call fcn.004d8e20
mov ebp, eax
xor eax, eax
add esp, 0xc
test ebp, ebp
setne al
test eax, eax
mov dword [esp + 0x74], eax
je 0x46d3db
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x40], eax
lea esi, [ebp + 0x14]
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x46d3ce
lea eax, [ebx + 0x1c]
mov dword [ebx], eax
add eax, 4
mov dword [ebx + 4], eax
call fcn.0044a820
cmp al, 1
jne 0x46d3db
inc word [ebp + 8]
mov eax, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret

Function at 0x46dc90
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x6bf424]
test eax, eax
je 0x46dd28
push ebx
mov ebx, dword [esp + 8]
push edi
push ebx
call fcn.004f5cd0
mov edi, eax
add esp, 4
test edi, edi
je 0x46dd26
push ebp
push esi
xor ebp, ebp
push edi
call fcn.004f5ce0
mov esi, eax
add esp, 4
test esi, esi
je 0x46dcee
push 0x66d1e0
push esi
call fcn.0045a7e0
add esp, 8
test eax, eax
je 0x46dcea
push 0x66d1dc
push esi
call fcn.0045a7e0
add esp, 8
test eax, eax
je 0x46dcea
inc ebp
test ebp, ebp
je 0x46dcb6
push edi
call fcn.004f5cc0
add esp, 4
test ebp, ebp
jne 0x46dd04
push ebx
call fcn.00471ad0
add esp, 4
call fcn.0046dbc0
mov esi, eax
test esi, esi
je 0x46dd24
push esi
call fcn.0046dc90
mov eax, dword [0x6bf498]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 8]
add esp, 0xc
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x4720d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov esi, 0x695408
xor edi, edi
mov ecx, dword [edi + 0x681f68]
lea eax, [esp + 8]
push eax
push ecx
call fcn.00486400
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.00487730
mov edx, dword [esp + 0x28]
mov eax, edx
sar eax, 0x10
xor eax, edx
mov ecx, eax
sar ecx, 8
xor eax, ecx
mov ecx, eax
sar ecx, 4
xor ecx, eax
and ecx, 0xf
mov eax, dword [ecx*4 + 0x694fa8]
mov dword [esi + 4], eax
mov dword [ecx*4 + 0x694fa8], esi
mov dword [esi], edx
add edi, 4
add esp, 0x14
add esi, 8
cmp edi, 0xfc
jb 0x4720e2
pop edi
mov dword [0x694fe8], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x472690
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x30]
push esi
cdq
mov esi, 0xff8f
idiv esi
mov esi, dword [ecx]
mov eax, dword [ecx + 0x18]
imul edx, edx, 0xfb0f
test esi, 0x100
je 0x4726f1
test eax, eax
je 0x4726f1
mov ecx, dword [ecx + 4]
mov esi, dword [esp + 8]
shr ecx, 2
test esi, esi
push edi
je 0x4726db
test ecx, ecx
jle 0x4726f0
mov esi, ecx
mov ecx, dword [eax]
mov edi, ecx
xor edi, edx
mov dword [eax], edi
add eax, 4
add edx, ecx
dec esi
jne 0x4726c8
pop edi
pop esi
ret
test ecx, ecx
jle 0x4726f0
nop
mov edi, dword [eax]
xor edi, edx
mov esi, edi
mov dword [eax], edi
add edx, esi
add eax, 4
dec ecx
jne 0x4726e0
pop edi
pop esi
ret
Function at 0x473260
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x6bf41c]
test eax, eax
push ebx
mov ebx, 1
je 0x473383
test byte [esi], 0x20
je 0x473285
push esi
call fcn.004725c0
add esp, 4
mov eax, ebx
pop ebx
ret
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x473296
push 0
call fcn.0044b1f0
add esp, 4
mov eax, dword [esi + 0x30]
cdq
mov ecx, 0xff8f
idiv ecx
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
push ebp
push edi
imul edx, edx, 0xfb0f
test ch, 1
je 0x4732d3
test eax, eax
je 0x4732d3
mov ecx, dword [esi + 4]
shr ecx, 2
test ecx, ecx
jle 0x4732d3
mov edi, ecx
mov ecx, dword [eax]
mov ebp, ecx
xor ebp, edx
mov dword [eax], ebp
add eax, 4
add edx, ecx
dec edi
jne 0x4732c3
push 0x66ab9c
push esi
call fcn.00472aa0
mov edi, eax
add esp, 8
test edi, edi
je 0x473323
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov edx, dword [edi + 0x10]
push edi
push eax
push 1
push ecx
call dword [edx + 0xc]
mov ecx, dword [esi + 4]
add esp, 0x10
cmp ecx, eax
jne 0x47330c
test byte [edi + 0xc], 0x10
jne 0x47330c
xor ebx, ebx
jmp 0x473311
mov ebx, 1
mov edx, dword [edi + 0x10]
push edi
call dword [edx + 0x18]
add esp, 4
neg eax
sbb eax, eax
neg eax
or ebx, eax
mov eax, dword [esi + 0x30]
cdq
mov ecx, 0xff8f
idiv ecx
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
imul edx, edx, 0xfb0f
test ch, 1
je 0x473360
test eax, eax
je 0x473360
mov ecx, dword [esi + 4]
shr ecx, 2
test ecx, ecx
jle 0x473360
lea esp, [esp]
mov ebp, dword [eax]
xor ebp, edx
mov edi, ebp
mov dword [eax], ebp
add edx, edi
add eax, 4
dec ecx
jne 0x473350
cmp ebx, 1
pop edi
pop ebp
jne 0x473380
mov edx, dword [esi]
mov eax, dword [esi + 0x30]
shr edx, 3
and edx, 1
push edx
push eax
call fcn.00472bf0
add esp, 8
xor eax, eax
pop ebx
ret
or dword [esi], 0x20
mov eax, 1
pop ebx
ret

Function at 0x473900
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor dx, dx
xor cx, cx
test edi, edi
mov word [esp + 6], dx
mov word [esp + 4], cx
jle 0x47396e
push ebx
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
mov al, byte [esi]
movzx ecx, cx
movzx edx, dx
and eax, 0xff
movzx eax, ax
shr ecx, 8
xor ecx, eax
shr edx, 8
xor edx, eax
xor ebx, ebx
mov bh, byte [esp + 0xc]
xor eax, eax
mov ah, byte [esp + 0xe]
xor bx, word [ecx*2 + 0x695200]
xor ax, word [edx*2 + 0x694ff0]
mov cx, bx
mov dx, ax
inc esi
dec edi
mov word [esp + 0xc], cx
mov word [esp + 0xe], dx
jne 0x473920
pop esi
pop ebx
movzx eax, dx
movzx ecx, cx
shl eax, 0x10
or eax, ecx
pop edi
pop ecx
ret
Function at 0x481cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [edi + 0x18]
push ebp
xor ebp, ebp
cmp ebx, 0xffffffff
push esi
mov dword [esp + 0xc], eax
jl 0x481cce
cmp dword [edi + 0x34], ebp
jl 0x481cce
cmp eax, ebp
jge 0x481cdc
push ebp
push 0x204
call fcn.0047e830
add esp, 8
mov eax, dword [0x6bf498]
mov ecx, dword [eax]
push 0x7c
push eax
call dword [ecx]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x481cff
push ebp
push 0x203
call fcn.0047e830
add esp, 8
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 8]
imul edx, dword [edi + 0x10]
cmp ebx, ebp
mov dword [esi + 0x4c], edx
mov dword [esi + 0x14], ebp
je 0x481d43
cmp ebx, 0xffffffff
je 0x481d43
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x34]
mov eax, ecx
sub eax, edx
lea eax, [eax + ebx - 1]
cdq
idiv ecx
jmp 0x481d48
mov eax, 0x7fffffff
mov edx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x34]
cmp edx, eax
jg 0x481d5a
xor eax, eax
jmp 0x481d68
mov ecx, dword [edi + 0x10]
mov ebx, ecx
sub ebx, eax
lea eax, [ebx + edx - 1]
cdq
idiv ecx
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov al, byte [edi + 0x58]
cmp al, 0xfe
jne 0x481d83
mov edx, dword [0x695b20]
mov dword [esi + 0x24], edx
jmp 0x481d90
movzx eax, al
mov ecx, dword [eax*4 + 0x695af8]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov cl, byte [edi + 0x58]
mov byte [esi + 0x58], cl
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x34], edx
cmp dword [edi + 0x34], ebp
jne 0x481de0
mov dword [esi + 0x38], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebp
jmp 0x481e32
mov edx, dword [edi + 0x34]
imul edx, dword [esi + 8]
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
add edx, 8
push edx
push eax
call dword [ecx]
add esp, 8
cmp eax, ebp
mov dword [esi + 0x38], eax
jne 0x481e17
mov eax, dword [0x6bf498]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 8]
push ebp
push 0x203
call fcn.0047e830
add esp, 0x10
mov eax, dword [esi + 0x38]
lea ecx, [eax + 8]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 0x34]
imul edx, dword [edi + 8]
add edx, ecx
mov dword [esi + 0x48], edx
mov dword [eax], 0xfacecafe
push 0x6bf3dc
call fcn.0044bf90
mov eax, dword [0x695b24]
push 0x6bf3dc
mov dword [esi + 4], eax
mov dword [0x695b24], esi
call fcn.0044bfe0
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x49a515
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
movsx edx, word [esi + 2]
push edi
xor ebp, ebp
mov ecx, 7
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov si, word [eax + 6]
mov di, word [eax + 0x12]
xor ecx, ecx
dec edx
cmp si, word [eax + 4]
mov dword [esp + 0x14], ebp
setne cl
xor ebx, ebx
cmp di, word [eax + 0x10]
mov dword [esp + 0x10], ebp
setne bl
mov dword [esp + 0x18], ebp
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
je 0x49a565
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x49a577
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
movsx ebx, word [eax]
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
jge 0x49a5f7
sub ecx, ebx
mov ebx, dword [esp + 0x28]
dec ecx
cmp ebx, edx
mov word [eax], bx
jne 0x49a5a5
mov word [eax + 0x10], di
pop edi
mov word [eax + 4], si
pop esi
inc edx
pop ebp
mov word [eax + 2], dx
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49a5cc
test ecx, ecx
jle 0x49a5ba
mov esi, ecx
imul esi, dword [esp + 0x14]
add ebp, esi
mov edi, dword [esp + 0x14]
mov esi, ebp
sar esi, 0x10
add ebp, edi
mov word [eax + 4], si
mov dword [eax + 8], ebp
mov esi, dword [esp + 0x20]
test esi, esi
je 0x49a5f7
test ecx, ecx
mov esi, dword [esp + 0x10]
jle 0x49a5e3
imul ecx, dword [esp + 0x18]
add esi, ecx
mov edi, dword [esp + 0x18]
mov ecx, esi
sar ecx, 0x10
add esi, edi
mov word [eax + 0x10], cx
mov dword [eax + 0x14], esi
jmp 0x49a5fb
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
cmp edx, edi
jl 0x49a661
movsx edx, word [eax]
mov ecx, edi
sub ecx, edx
sub ecx, 2
mov word [eax + 2], di
jns 0x49a62b
mov cx, word [eax + 4]
mov dx, word [eax + 0x10]
pop edi
pop esi
pop ebp
mov word [eax + 6], cx
mov word [eax + 0x12], dx
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x49a647
test ecx, ecx
jle 0x49a640
mov edx, ecx
imul edx, dword [esp + 0x14]
add ebp, edx
sar ebp, 0x10
mov word [eax + 6], bp
mov edx, dword [esp + 0x20]
test edx, edx
je 0x49a661
test ecx, ecx
jle 0x49a65a
imul ecx, dword [esp + 0x18]
add esi, ecx
sar esi, 0x10
mov word [eax + 0x12], si
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a1b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0xc]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edx
je 0x4a1b43
mov ecx, dword [edi]
cmp dword [eax], ecx
jne 0x4a1b3f
mov eax, dword [eax + 0xc]
cmp eax, edx
jne 0x4a1b32
jmp 0x4a1b43
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
jmp 0x4a1b50
cmp ecx, edx
jne 0x4a1b5e
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
mov dword [edi + 0xc], edx
mov eax, dword [edi]
dec eax
cmp eax, 3
ja case.default.0x4a1b6a
jmp dword [eax*4 + 0x4a1ca4]
cmp ebp, edx
jne 0x4a1b8e
mov ecx, dword [esp + 0x6c]
push edi
push ecx
call fcn.00541150
push edi
call fcn.005547c0
add esp, 0xc
jmp case.default.0x4a1b6a
lea edx, [esp + 0x70]
push edx
call fcn.00553fe0
mov esi, eax
mov eax, dword [esp + 0x74]
push eax
push esi
push ebp
push edi
call fcn.00554680
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4a1c0c
mov ecx, dword [esp + 0x6c]
push eax
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
call fcn.005535c0
mov ecx, dword [esp + 0x78]
mov eax, 1
mov word [esp + 0x5c], ax
mov word [esp + 0x5e], ax
lea eax, [esp + 0x38]
push eax
push 0x4a1a80
push 0x4a1aa0
push 0x4a1ac0
push ecx
push esi
push ebp
push edi
call fcn.00554330
lea edx, [esp + 0x60]
push edx
call fcn.005547c0
push esi
call fcn.00554020
add esp, 0x30
jmp case.default.0x4a1b6a
push esi
call fcn.00554020
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x4a1c29
mov eax, dword [esp + 0x6c]
push ebx
push eax
call fcn.00541150
add esp, 8
push ebx
call fcn.005547c0
push ebx
call fcn.00553620
add esp, 8
jmp case.default.0x4a1b6a
cmp ebp, edx
je 0x4a1c4c
lea ecx, [esp + 0x20]
push ecx
push ebp
call fcn.00538200
add esp, 8
mov eax, dword [esp + 0x6c]
mov edx, ebp
neg edx
sbb edx, edx
lea ecx, [esp + 0x20]
and edx, ecx
push edx
mov edx, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov eax, dword [edx + 0x20]
push 0x4a1af0
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.0053ff80
add esp, 0x14
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp ecx, edx
jne 0x4a1c9a
mov eax, dword [esp + 0x14]
cmp eax, edx
mov dword [edi + 0xc], eax
mov edi, eax
jne 0x4a1b50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
Function at 0x4bcd60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x69779c]
mov cx, word [0x6977c0]
push esi
push edi
mov edi, dword [0x6977a0]
cmp eax, edi
mov word [0x6977c2], cx
mov dword [0x6977c4], eax
movzx esi, cx
jae 0x4bcda6
movzx ecx, byte [eax]
mov edx, esi
add esi, ecx
imul esi, esi, 0xce6d
shr edx, 8
xor dl, cl
add esi, 0x58bf
mov byte [eax], dl
inc eax
cmp eax, edi
jb 0x4bcd87
pop edi
mov word [0x6977c0], si
pop esi
ret

Function at 0x4bcdb0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x6977b4]
test eax, eax
je 0x4bce25
mov eax, dword [0x69779c]
push esi
mov esi, dword [0x6977a0]
cmp eax, esi
je 0x4bce10
mov ecx, dword [0x6977c4]
cmp ecx, esi
mov ax, word [0x6977c2]
mov word [esp + 4], ax
jae 0x4bce10
mov edx, dword [esp + 4]
push ebx
mov bl, byte [ecx]
mov ax, word [esp + 8]
shr ax, 8
xor al, bl
movzx bx, al
mov byte [ecx], al
add ebx, edx
imul ebx, ebx, 0x3193
mov edx, 0x58bf
sub edx, ebx
inc ecx
cmp ecx, esi
mov dword [esp + 8], edx
jb 0x4bcde4
pop ebx
mov dword [0x6977b4], 0
mov dword [0x6977b0], 0
pop esi
pop ecx
ret
Function at 0x535a00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 4]
test eax, eax
je 0x535a16
mov ecx, dword [ebp + 0xc]
add eax, 0x20
cmp eax, ecx
jbe 0x535a27
push ebp
call fcn.00456030
add esp, 4
test eax, eax
je 0x535b1d
mov ecx, dword [esp + 0xc]
movsx edx, word [ecx + 2]
mov eax, dword [ebp + 4]
push esi
movsx esi, word [ecx]
sub edx, esi
cmp edx, 1
jne 0x535a6d
mov word [eax], 0x10
mov dx, word [ecx]
add eax, 2
mov word [eax], dx
mov dx, word [ecx + 4]
add eax, 2
mov word [eax], dx
add eax, 2
mov cx, word [ecx + 0x10]
mov word [eax], cx
add eax, 2
mov dword [ebp + 4], eax
pop esi
mov word [eax], 0
pop ebp
ret
mov si, word [ecx + 6]
sub si, word [ecx + 4]
push edi
mov di, word [ecx + 0x12]
neg si
sbb esi, esi
sub di, word [ecx + 0x10]
inc esi
neg di
sbb edi, edi
inc edi
xor edx, edx
test esi, esi
je 0x535a9b
test edi, edi
sete dl
lea edx, [edx + edx + 0x12]
jmp 0x535aa4
test edi, edi
sete dl
lea edx, [edx + edx + 0x16]
mov word [eax], dx
mov dx, word [ecx]
add eax, 2
mov word [eax], dx
mov dx, word [ecx + 2]
add eax, 2
mov word [eax], dx
mov dx, word [ecx + 4]
add eax, 2
mov word [eax], dx
add eax, 2
test esi, esi
jne 0x535ae5
mov dx, word [ecx + 6]
mov word [eax], dx
mov edx, dword [ecx + 8]
add eax, 2
mov dword [eax], edx
mov edx, dword [ecx + 0xc]
add eax, 4
mov dword [eax], edx
add eax, 4
test edi, edi
pop edi
jne 0x535a58
mov dx, word [ecx + 0x10]
mov word [eax], dx
mov dx, word [ecx + 0x12]
mov word [eax + 2], dx
mov edx, dword [ecx + 0x14]
add eax, 2
mov dword [eax + 2], edx
mov ecx, dword [ecx + 0x18]
add eax, 2
add eax, 4
mov dword [eax], ecx
add eax, 4
mov dword [ebp + 4], eax
mov word [eax], 0
pop esi
pop ebp
ret