joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4404c0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4ac6bb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4caef0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00497550
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x440558
push 0x4c423c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0049861b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x443f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push eax
push edx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebp
ret

Function at 0x443f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push eax
push edx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
ret
Function at 0x469030
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
nop
lea esi, [esi]
mov cl, byte [edx]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov byte [esi], cl
mov bl, byte [eax]
mov byte [esi + 1], bl
mov cl, byte [edi]
mov byte [esi + 2], cl
mov cl, byte [edx + 2]
mov byte [esi + 3], cl
mov cl, byte [eax]
mov byte [esi + 4], cl
mov ecx, edi
mov cl, byte [ecx]
mov byte [esi + 5], cl
mov cl, byte [edx + 4]
mov byte [esi + 6], cl
mov cl, byte [eax + 2]
mov byte [esi + 7], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 8], cl
mov cl, byte [edx + 6]
mov byte [esi + 9], cl
mov cl, byte [eax + 2]
mov byte [esi + 0xa], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 0xb], cl
mov cl, byte [edx + 8]
mov byte [esi + 0xc], cl
mov cl, byte [eax + 4]
mov byte [esi + 0xd], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0xa]
mov byte [esi + 0xf], cl
mov cl, byte [eax + 4]
mov byte [esi + 0x10], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0x11], cl
mov cl, byte [edx + 0xc]
mov byte [esi + 0x12], cl
mov cl, byte [eax + 6]
mov byte [esi + 0x13], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x14], cl
mov cl, byte [edx + 0xe]
mov byte [esi + 0x15], cl
mov cl, byte [eax + 6]
mov byte [esi + 0x16], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x17], cl
mov cl, byte [edx + 0x10]
add esi, dword [esp + 0x30]
mov byte [esi], cl
mov cl, byte [eax]
mov byte [esi + 1], cl
mov ecx, edi
mov cl, byte [ecx]
mov byte [esi + 2], cl
mov cl, byte [edx + 0x12]
mov byte [esi + 3], cl
mov cl, byte [eax]
mov byte [esi + 4], cl
mov ecx, edi
mov cl, byte [ecx]
mov byte [esi + 5], cl
mov cl, byte [edx + 0x14]
mov byte [esi + 6], cl
mov cl, byte [eax + 2]
mov byte [esi + 7], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 8], cl
mov cl, byte [edx + 0x16]
mov byte [esi + 9], cl
mov cl, byte [eax + 2]
mov byte [esi + 0xa], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 0xb], cl
mov cl, byte [edx + 0x18]
mov byte [esi + 0xc], cl
mov cl, byte [eax + 4]
mov byte [esi + 0xd], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0x1a]
mov byte [esi + 0xf], cl
mov cl, byte [eax + 4]
mov byte [esi + 0x10], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0x11], cl
mov cl, byte [edx + 0x1c]
mov byte [esi + 0x12], cl
mov cl, byte [eax + 6]
mov byte [esi + 0x13], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x14], cl
mov cl, byte [edx + 0x1e]
add edx, 0x20
mov byte [esi + 0x15], cl
mov cl, byte [eax + 6]
add eax, 0x10
mov byte [esi + 0x16], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x17], cl
mov ecx, dword [esp + 8]
inc ecx
add dword [esp + 0xc], 0x10
add esi, dword [esp + 0x30]
mov dword [esp + 4], esi
cmp ecx, 4
mov dword [esp + 8], ecx
jl 0x469060
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x485a75
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4d4600], 0
push esi
jne 0x4859e8
call fcn.0048590e
test eax, eax
je 0x485a2b
mov eax, dword [0x4d4600]
cmp eax, 1
jne 0x485a09
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x485a2b
pop esi
ret
push eax
call dword [0x4d4608]
test eax, eax
jne 0x485a73
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x485a2f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4d4600]
call dword [0x4d4608]
mov edi, eax
test edi, edi
je 0x485a54
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x485a70
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4d4600]
call dword [0x4d4604]
add edi, 0x10
cmp edi, esi
jb 0x485a5c
mov eax, edi
pop edi
pop esi
ret
jmp 0x4859d5
Function at 0x4862b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x48645a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x486308
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x48631b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x48632f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x486376.3
jmp 0x486340
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x48634c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x486351
mov esi, 1
inc eax
cmp eax, edi
jl 0x486340
cmp si, cx
je case.0x486376.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x486376.3
movzx eax, byte [eax + 0x486474]
jmp dword [eax*4 + 0x486460]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x486376.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x486390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x486376.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x4863d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x486376.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4863f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x486376.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x486420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4948e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4caef0]
jne 0x4948f0
repz ret
jmp fcn.00499148

Function at 0x4a65d7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0049bc66
and dword [ebp - 4], 0
cmp dword [0x4d51fc], 0
mov ebx, eax
jne 0x4a6688
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a6739
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a6739
push eax
call fcn.0049bbf4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d51fc], eax
call esi
push eax
call fcn.0049bbf4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d5200], eax
call esi
push eax
call fcn.0049bbf4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d5204], eax
call esi
push eax
call fcn.0049bbf4
pop ecx
mov dword [0x4d520c], eax
test eax, eax
je 0x4a6688
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049bbf4
pop ecx
mov dword [0x4d5208], eax
mov eax, dword [0x4d5208]
cmp eax, ebx
je 0x4a66e0
cmp dword [0x4d520c], ebx
je 0x4a66e0
push eax
call fcn.0049bc6f
push dword [0x4d520c]
mov esi, eax
call fcn.0049bc6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a66e0
test edi, edi
je 0x4a66e0
call esi
test eax, eax
je 0x4a66d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a66d7
test byte [ebp - 0xc], 1
jne 0x4a66e0
or dword [ebp + 0x10], 0x200000
jmp 0x4a6719
mov eax, dword [0x4d5200]
cmp eax, ebx
je 0x4a6719
push eax
call fcn.0049bc6f
pop ecx
test eax, eax
je 0x4a6719
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a6719
mov eax, dword [0x4d5204]
cmp eax, ebx
je 0x4a6719
push eax
call fcn.0049bc6f
pop ecx
test eax, eax
je 0x4a6719
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d51fc]
call fcn.0049bc6f
pop ecx
test eax, eax
je 0x4a6739
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a673b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a610
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edx
mov eax, dword [esi + 8]
and dword [eax + 0x228], 0xffffffef
mov dword [eax + 0xe0], 0
mov byte [esi + 7], 0
call fcn.0040a740
mov eax, dword [esi + 8]
add esp, 4
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x40a647
push esi
call eax
add esp, 4
push 1
call fcn.0046fab1
pop esi
int3

Function at 0x40a760
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x28]
sub edx, 8
test ebx, ebx
je case.default.0x40a79a
mov eax, ebx
and eax, 0xfffffffc
mov eax, dword [eax + 0x48]
test eax, eax
jns 0x40a78d
mov ecx, dword [esi + 0x1c]
sub ecx, eax
cmp edx, ecx
jb 0x40a7e7
cmp edx, dword [esi + 0x1c]
jbe case.default.0x40a79a
mov ecx, dword [edx + 4]
mov eax, ecx
and eax, 7
jmp dword [eax*4 + 0x40a8d0]
movzx ecx, byte [ecx - 3]
mov eax, 0xfffffff8
shl ecx, 3
sub eax, ecx
add edx, eax
jmp 0x40a7d6
cmp dword [edx - 8], 1
jne case.0x40a79a.3
test edi, edi
jne 0x40a7f8
cmp ebx, dword [esp + 0x14]
je 0x40a815
mov ebx, dword [ebx + 0x44]
jmp case.0x40a79a.3
and ecx, 0xfffffff8
sub edx, ecx
test ebx, ebx
jne 0x40a778
test edi, edi
jne 0x40a89c
jmp 0x40a896
test edi, edi
je 0x40a890
lea eax, [edx + 8]
push ecx
jmp 0x40a87e
and ecx, 0xfffffff8
mov eax, edx
sub eax, ecx
add eax, 8
push edx
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x44]
push esi
mov dword [esi + 0x28], eax
call fcn.0040b0d0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x44]
push esi
mov dword [esi + 0x28], eax
call fcn.0040b0d0
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x1c]
add eax, 8
mov dword [esi + 0x28], 0
push eax
push esi
mov dword [esi + 0x10], eax
call fcn.0040b0d0
add esp, 8
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x40a8c9
push esi
call eax
add esp, 4
push 1
call fcn.0046fab1
mov eax, dword [0xb90040a7]
cmpsd dword [esi], dword es:[edi]
inc eax
add byte [ebx - 0x2effbf59], dh
cmpsd dword [esi], dword es:[edi]
inc eax
add byte [ecx + 0x4b0040a7], ah
test al, 0x40
add al, cl
cmpsd dword [esi], dword es:[edi]
inc eax
add al, cl
cmpsd dword [esi], dword es:[edi]
inc eax
add byte [ecx + 0x4ad004], ah
mov eax, dword [str.not_enough_memory]
Function at 0x40b740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov cl, byte [ebp + 0x71]
mov bl, byte [ebp + 0x72]
mov dl, cl
and dl, 0xc
mov byte [esp + 0xb], bl
neg dl
mov al, cl
sbb dl, dl
sar al, 7
and al, 0x44
and dl, 4
or dl, al
mov eax, dword [ebp + 0x228]
neg eax
sbb al, al
and cl, 3
and al, 0x25
or dl, al
mov al, byte [ebp + 0x1e4]
and al, 1
shl al, 4
or dl, al
or dl, cl
cmp bl, dl
je 0x40b9b7
mov al, dl
mov byte [ebp + 0x72], dl
and al, 0x30
lea ebx, [ebp + 0xb68]
push esi
push edi
cmp al, 0x10
jne 0x40b7da
movzx ecx, word [0x49408e]
movzx esi, word [0x494094]
add ecx, section..text
movzx edi, word [0x49409a]
add esi, section..text
movzx eax, word [0x4940a2]
add edi, section..text
movzx ebp, word [0x4940a8]
jmp 0x40b7fa
mov ecx, dword [ebx + 0x3a8]
mov esi, dword [ebx + 0x3b4]
mov edi, dword [ebx + 0x3c0]
movzx eax, word [0x4940a4]
movzx ebp, word [0x4940aa]
lea eax, [eax + section..text]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x14], eax
lea ebp, [ebp + section..text]
mov dh, dl
mov dword [ebx + 0x3a4], ecx
xor dh, byte [esp + 0x13]
mov al, dl
and al, 4
mov dword [ebx + 0x3b0], esi
mov dword [ebx + 0x3bc], edi
test dh, 0x64
je 0x40b8ab
test al, al
jne 0x40b878
lea esi, [ebx + 0x268]
mov ecx, 0x59
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test dl, 2
je 0x40b920
mov dword [ebx + 0x124], 0x404139
mov dword [ebx + 0x128], 0x404139
mov dword [ebx + 0x12c], 0x404139
mov dword [ebx + 0x130], 0x404139
jmp 0x40b920
test dl, 0x40
je 0x40b890
mov eax, 0x4042a0
mov ecx, 0x59
mov edi, ebx
rep stosd dword es:[edi], eax
jmp 0x40b920
test dl, 0x20
mov ecx, 0x40411e
mov eax, 0x404146
mov edi, ebx
cmovne eax, ecx
mov ecx, 0x59
rep stosd dword es:[edi], eax
jmp 0x40b920
test al, al
jne 0x40b920
mov dword [ebx + 0x13c], ecx
mov dword [ebx + 0x148], esi
mov dword [ebx + 0x154], edi
test dl, 2
je 0x40b8f0
mov dword [ebx + 0x124], 0x404139
mov dword [ebx + 0x128], 0x404139
mov dword [ebx + 0x12c], 0x404139
mov dword [ebx + 0x130], 0x404139
jmp 0x40b920
mov eax, dword [ebx + 0x38c]
mov dword [ebx + 0x124], eax
mov eax, dword [ebx + 0x390]
mov dword [ebx + 0x128], eax
mov eax, dword [ebx + 0x394]
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x398]
mov dword [ebx + 0x130], eax
test dh, 1
je 0x40b96d
lea edi, [ebx + 0x164]
test dl, 1
jne 0x40b95f
mov ecx, 0xb2
nop word [eax + eax]
movzx eax, word [ecx + 0x493ff0]
lea edi, [edi + 4]
add eax, section..text
add ecx, 2
mov dword [edi - 4], eax
cmp ecx, 0x134
jb 0x40b940
jmp 0x40b972
mov ecx, 0x41
mov eax, 0x4041c3
rep stosd dword es:[edi], eax
jmp 0x40b982
test dl, 1
jne 0x40b982
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x164], eax
mov dword [ebx + 0x170], ebp
mov ebp, dword [esp + 0x1c]
test dl, 0x10
je 0x40b9b5
test byte [esp + 0x13], 0x10
jne 0x40b9b5
mov ax, word [ebp + 0x7a0]
lea edi, [ebp + 0xae8]
add ax, ax
mov ecx, 0x20
dec ax
movzx eax, ax
mov edx, eax
shl edx, 0x10
or eax, edx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40dc00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
push edi
mov edi, dword [esp + 0x1c]
sub eax, 0x40
push edi
sar eax, 2
push eax
push ebx
call fcn.0040d0e0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x40dcb7
lea ebp, [ebx + 0x40]
sub esi, 4
cmp esi, ebp
jbe case.0x40dc88.19
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ebx, cl
mov cx, word [edx*2 + 0x493eb8]
and cx, 7
cmp cx, 2
jne 0x40dc6f
cmp edi, ebx
jb 0x40dc32
cmp edx, 0x2c
jne case.0x40dc88.19
shr eax, 0x10
cmp edi, eax
ja 0x40dc32
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp cx, 1
jne 0x40dc32
cmp ebx, edi
jne 0x40dc32
add edx, 0xffffffee
cmp edx, 0x27
ja case.0x40dc88.19
movzx ecx, byte [edx + 0x40dd94]
jmp dword [ecx*4 + 0x40dd80]
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, esi
shr edi, 0x10
sub eax, ecx
sub eax, 0x40
push edi
sar eax, 2
push eax
push ecx
call fcn.0040d0e0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x40dc32
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, str.local
pop ebx
ret
mov ecx, dword [esp + 0x14]
shr eax, 0x10
not eax
pop edi
mov ecx, dword [ecx + 0x10]
pop esi
pop ebp
pop ebx
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x10]
add ecx, 0x10
mov dword [eax], ecx
mov eax, str.global
ret
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x14]
not edx
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x20]
add edx, 0x10
mov dword [ecx], edx
mov ecx, dword [esi - 4]
cmp cl, 0x12
jne 0x40dd32
shr ecx, 8
movzx edx, cl
lea ecx, [ebx + 1]
cmp edx, ecx
jne 0x40dd32
shr eax, 8
xor eax, dword [esi - 4]
test eax, 0xffff0000
jne 0x40dd32
pop edi
pop esi
pop ebp
mov eax, str.method
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, str.field
pop ebx
ret
mov ecx, dword [esp + 0x14]
shr eax, 0x10
mov edx, dword [ecx + 0x38]
test edx, edx
jne 0x40dd5f
mov eax, dword [esp + 0x20]
mov edx, 0x4934ca
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, str.upvalue
pop ebx
ret
test eax, eax
je 0x40dd6f
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40dd63
sub eax, 1
jne 0x40dd63
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, str.upvalue
pop ebx
ret
Function at 0x40ec20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
movzx eax, byte [edi + 0x1d]
cmp eax, 5
ja case.default.0x40ec37
jmp dword [eax*4 + 0x40edf8]
mov eax, dword [edi + 0x74]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
test byte [eax + 4], 3
je 0x40ec69
push eax
push edi
call fcn.0040eac0
mov eax, dword [edi + 0x74]
add esp, 8
mov eax, dword [eax + 0x24]
test byte [eax + 4], 3
je 0x40ec7c
push eax
push edi
call fcn.0040eac0
add esp, 8
mov eax, dword [edi + 0x7c]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x40ec9a
mov eax, dword [edi + 0x78]
test byte [eax + 4], 3
je 0x40ec9a
push eax
push edi
call fcn.0040eac0
add esp, 8
push edi
call fcn.0040eb60
add esp, 4
mov byte [edi + 0x1d], 1
xor eax, eax
pop edi
pop esi
pop ebx
ret
cmp dword [edi + 0x2c], 0
je 0x40ecc0
push edi
call fcn.0040fbe0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov byte [edi + 0x1d], 2
xor eax, eax
pop edi
pop esi
pop ebx
ret
cmp dword [edi + 0xe0], 0
jne 0x40eda6
push ebx
push edi
call fcn.0040e6e0
add esp, 8
mov byte [edi + 0x1d], 3
mov dword [edi + 0x20], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov ecx, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
push 0xffffffffffffffff
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
mov eax, dword [edi]
lea eax, [eax + ecx*4]
push eax
push edi
call fcn.0040f080
mov eax, dword [edi + 0x20]
add esp, 0xc
cmp eax, dword [edi + 4]
jbe 0x40ed1b
mov byte [edi + 0x1d], 4
mov eax, dword [edi + 0x14]
sub eax, esi
add dword [edi + 0x40], eax
mov eax, 0xa
pop edi
pop esi
pop ebx
ret
mov esi, dword [edi + 0x14]
push 0x28
push dword [edi + 0x28]
push edi
call fcn.0040f080
mov ecx, dword [edi + 0x14]
add esp, 0xc
sub ecx, esi
mov dword [edi + 0x28], eax
add dword [edi + 0x40], ecx
cmp dword [eax], 0
jne 0x40ed8e
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 2
cmp dword [edi + 8], eax
ja 0x40ed6e
cmp ecx, 0x1ff
jbe 0x40ed6e
shr ecx, 1
push ecx
push ebx
call fcn.004102e0
add esp, 8
cmp dword [edi + 0x38], 0
je 0x40ed83
mov word [edi + 0x1d], 0x105
mov eax, 0x190
pop edi
pop esi
pop ebx
ret
mov byte [edi + 0x1d], 0
mov dword [edi + 0x3c], 0
pop edi
pop esi
mov eax, 0x190
pop ebx
ret
cmp dword [edi + 0x38], 0
je 0x40edcf
cmp dword [edi + 0xe0], 0
je 0x40edaf
pop edi
pop esi
mov eax, 0x7fffff00
pop ebx
ret
push ebx
call fcn.0040e9d0
mov eax, dword [edi + 0x40]
add esp, 4
cmp eax, 0x64
jbe 0x40edc6
add eax, 0xffffff9c
mov dword [edi + 0x40], eax
pop edi
pop esi
mov eax, 0x64
pop ebx
ret
cmp byte [edi + 0x1e], 0
jne 0x40ede7
mov eax, dword [edi + 0xe4]
push dword [eax + 0x14]
push ebx
call fcn.00410c30
add esp, 8
mov byte [edi + 0x1d], 0
mov dword [edi + 0x3c], 0
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4117a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
movzx eax, byte [ebp + 0x24]
lea edx, [eax*4 + 0x14]
call fcn.0040e6a0
mov esi, eax
lea ecx, [ebp + 0x40]
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], ecx
mov word [esi + 5], 8
mov byte [esi + 7], 0
movzx ecx, byte [ebp + 0x25]
add ecx, 0x20
mov eax, ecx
shr eax, 3
and al, 0x20
sub cl, al
mov al, byte [ebp + 0x24]
mov byte [ebp + 0x25], cl
mov byte [esp + 0x18], al
movzx ecx, al
test al, al
je 0x411851
push ebx
lea ebx, [esi + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov edx, 0x18
call fcn.0040e6a0
lea ebx, [ebx + 4]
lea ecx, [eax + 8]
mov word [eax + 5], 0x105
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx + edi*2]
inc edi
mov ecx, edx
shl edx, 0x18
shr ecx, 0xe
xor edx, ebp
and cl, 1
mov dword [eax + 0x14], edx
mov byte [eax + 7], cl
mov dword [ebx - 4], eax
cmp edi, esi
jb 0x411802
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
pop ebx
mov byte [esi + 7], al
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4186c0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0xa
mov al, byte [esi]
test al, al
je 0x418705
movsx ecx, al
inc esi
cmp ecx, 0x66
je 0x4186ed
cmp ecx, 0x69
je 0x4187d7
cmp ecx, 0x6c
jne 0x4186ff
mov eax, dword [ebx + 8]
push ebx
mov dword [eax + 0xae0], ecx
call fcn.004142e0
add esp, 4
mov al, byte [esi]
test al, al
jne 0x4186d6
cmp dword [0x4adc98], 0
je 0x418724
push ebx
call sym.luajit.exe_luaJIT_profile_stop
add esp, 4
cmp dword [0x4adc98], 0
jne 0x41883b
cmp dword [0x4adcc0], 0
mov eax, dword [ebx + 8]
mov dword [0x4adc98], eax
mov eax, dword [esp + 0x18]
mov dword [0x4adc9c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4adcb4], edi
mov dword [0x4adca0], eax
mov dword [0x4adcb8], 0
mov dword [0x4adcb0], ebx
mov dword [0x4adca4], 0
mov dword [0x4adca8], 0
mov dword [0x4adcac], 0
jne 0x418809
push 0
push 0
push str.winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [0x4adcc0], eax
test eax, eax
je 0x418809
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.timeBeginPeriod
push eax
call esi
push str.timeEndPeriod
push dword [0x4adcc0]
mov dword [0x4adcc4], eax
call esi
cmp dword [0x4adcc4], 0
mov dword [0x4adcc8], eax
je 0x4187c9
test eax, eax
jne 0x418809
pop edi
pop esi
mov dword [0x4adcc0], 0
pop ebx
ret
mov al, byte [esi]
xor edi, edi
cmp al, 0x30
jl 0x4187ff
nop
cmp al, 0x39
ja 0x4187f7
movzx eax, al
lea edi, [edi + edi*4]
inc esi
lea edi, [edi - 0x18]
lea edi, [eax + edi*2]
mov al, byte [esi]
cmp al, 0x30
jge 0x4187e0
test edi, edi
jg 0x4186ff
mov edi, 1
jmp 0x4186ff
push 0x4adccc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0x4adc98
push 0x4188d0
push 0
push 0
mov dword [0x4adce8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4adce4], eax
pop edi
pop esi
pop ebx
ret