joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, edx
xor edx, edx
push 0x206
mov dword [ebp - 0x218], eax
push edx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x214], 0
push eax
mov dword [ebp - 0x21c], ecx
mov word [ebp - 0x20c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x20119
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e803
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 0x210]
push eax
jne 0x40e7fd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e7e4
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
jmp 0x40e832
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x21c]
xor ecx, ecx
mov eax, edi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e821
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00403c20
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.004b7299
mov esp, ebp
pop ebp
ret

Function at 0x40e850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e8c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e8b6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40e8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e936
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e92c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x40ebe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x19
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40ec5b
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec77
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.00403c20
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004b7299
mov esp, ebp
pop ebp
ret

Function at 0x413a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.MSVCR100.dll__time64]
mov ecx, dword [ebp + 8]
add esp, 4
lea edx, [ebp - 0x18]
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0x4ee480
mov dword [ebp - 8], fcn.00413f70
xor eax, 0x10
mov ecx, 0x10
lea edx, [ebp - 5]
push edi
movzx esi, byte [edx + ecx - 0x10]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
dec ecx
xor eax, esi
cmp ecx, 1
jae 0x413a92
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b7299
mov esp, ebp
pop ebp
ret
Function at 0x4193c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, edx
shr ecx, 5
mov eax, edx
xor eax, dword [ebp + 8]
inc ecx
cmp edx, ecx
jb 0x4193f1
push ebx
push edi
movzx edi, byte [esi + edx - 1]
mov ebx, eax
shl ebx, 5
add edi, ebx
mov ebx, eax
shr ebx, 2
add edi, ebx
sub edx, ecx
xor eax, edi
cmp edx, ecx
jae 0x4193d4
pop edi
pop ebx
pop ebp
ret

Function at 0x419500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
mov ebx, dword [esi + 0x38]
mov eax, edi
shr eax, 5
inc eax
xor ebx, edi
mov dword [ebp - 8], esi
mov ecx, edi
mov dword [ebp - 4], edi
cmp edi, eax
jb 0x419549
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx - 1]
mov edx, ebx
shl edx, 5
add ecx, edx
mov edx, ebx
shr edx, 2
add ecx, edx
xor ebx, ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, eax
jae 0x419525
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
and eax, ebx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4195ce
cmp edi, dword [eax + 0xc]
jne 0x4195c4
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x18]
cmp edi, 4
jb 0x41958a
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x4195be
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x419573
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x419647
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4195be
cmp ecx, 1
jbe 0x419644
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4195be
cmp ecx, 2
jbe 0x419644
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x419644
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
test eax, eax
jne 0x419561
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x1c], eax
jl 0x4195fb
cmp eax, 0x3fffffff
jg 0x4195fb
mov ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
call fcn.00419400
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec edx
add esp, 8
and edx, ebx
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
lea edx, [edi + 0x19]
push edx
push 4
push eax
call fcn.0041a7b0
mov ecx, dword [ebp + 0xc]
mov esi, eax
push edi
push ecx
lea edx, [esi + 0x18]
push edx
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
mov byte [esi + 6], 0
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0xc]
mov byte [esi + edi + 0x18], 0
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax], esi
mov eax, dword [ebp - 8]
add esp, 0x18
inc dword [eax + 0x1c]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov cl, byte [eax + 5]
mov dl, byte [edx + 0x3c]
xor cl, 3
xor dl, 3
test cl, dl
jne 0x41963e
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a830
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 4]
and byte [esi + 5], 0xfc
sub eax, 4
push edi
cmp eax, 0x22
ja 0x41a91f
mov edi, dword [ebp + 8]
jmp 0x41a860
movzx eax, byte [eax + 0x41a948]
jmp dword [eax*4 + 0x41a928]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a970
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
lea eax, [edi + 0xf4]
push esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 9
mov ebx, 4
mov ecx, dword [esp + 8]
mov esi, dword [ecx]
test esi, esi
je case.0x41a9c4.6
test byte [esi + 5], 3
je case.0x41a9c4.6
movzx eax, byte [esi + 4]
and byte [esi + 5], 0xfc
sub eax, ebx
cmp eax, 0x22
ja case.0x41a9c4.6
movzx edx, byte [eax + 0x41aa8c]
jmp dword [edx*4 + 0x41aa6c]
mov eax, dword [esi + 8]
test eax, eax
je 0x41a9e2
test byte [eax + 5], 3
je 0x41a9e2
push eax
push edi
call fcn.0041a830
add esp, 8
mov eax, dword [esi + 0xc]
or byte [esi + 5], bl
add eax, 0x18
add dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], ecx
movzx ecx, byte [esi + 6]
test cl, 0x40
je case.0x41a9c4.6
mov cl, byte [eax + 5]
test cl, 3
je case.0x41a9c4.6
and cl, 0xfc
mov esi, eax
mov byte [eax + 5], cl
movzx eax, byte [eax + 4]
sub eax, ebx
cmp eax, 0x22
jbe 0x41a9bd
jmp case.0x41a9c4.6
mov edx, dword [esi + 0xc]
or byte [esi + 5], bl
add edx, 0x19
add dword [edi + 0x10], edx
jmp case.0x41a9c4.6
mov eax, dword [edi + 0x4c]
mov dword [esi + 8], eax
jmp 0x41aa52
mov ecx, dword [edi + 0x4c]
mov dword [esi + 8], ecx
jmp 0x41aa52
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x1c], edx
jmp 0x41aa52
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x24], eax
jmp 0x41aa52
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov dword [edi + 0x4c], esi
add dword [esp + 8], ebx
dec dword [esp + 0xc]
jne 0x41a992
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41aab0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [edi + 0x60]
push esi
test ebx, ebx
je 0x41ab8b
test byte [ebx + 5], 3
je case.0x41aaed.10
movzx eax, byte [ebx + 4]
and byte [ebx + 5], 0xfc
sub eax, 4
mov esi, ebx
cmp eax, 0x22
ja case.0x41aaed.10
movzx eax, byte [eax + 0x41abb4]
jmp dword [eax*4 + 0x41ab94]
mov eax, dword [esi + 8]
test eax, eax
je 0x41ab0b
test byte [eax + 5], 3
je 0x41ab0b
push eax
push edi
call fcn.0041a830
add esp, 8
mov ecx, dword [esi + 0xc]
or byte [esi + 5], 4
add ecx, 0x18
add dword [edi + 0x10], ecx
movzx ecx, byte [esi + 6]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], edx
test cl, 0x40
je case.0x41aaed.10
mov cl, byte [eax + 5]
test cl, 3
je case.0x41aaed.10
and cl, 0xfc
mov esi, eax
mov byte [eax + 5], cl
movzx eax, byte [eax + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x41aae6
jmp case.0x41aaed.10
mov eax, dword [esi + 0xc]
or byte [esi + 5], 4
add eax, 0x19
add dword [edi + 0x10], eax
jmp case.0x41aaed.10
mov ecx, dword [edi + 0x4c]
mov dword [esi + 8], ecx
jmp 0x41ab7e
mov edx, dword [edi + 0x4c]
mov dword [esi + 8], edx
jmp 0x41ab7e
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x1c], eax
jmp 0x41ab7e
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x24], ecx
jmp 0x41ab7e
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov dword [edi + 0x4c], esi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41aac6
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41abe0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x68]
push ebx
push esi
mov dword [esp + 0xc], ecx
test eax, eax
je 0x41ad39
mov ebx, 4
test byte [eax + 5], 7
jne 0x41ac1a
cmp dword [eax + 0x20], 0
je 0x41ac1a
add eax, 0x28
mov dword [esp + 0xc], eax
jmp 0x41ad2b
mov edx, dword [eax + 0x28]
mov dword [ecx], edx
mov edx, dword [eax + 0x20]
mov dword [eax + 0x28], eax
mov dword [esp + 8], edx
test edx, edx
je 0x41ad2b
jmp 0x41ac44
mov edx, dword [esp + 8]
cmp dword [edx + 0xc], 0
je 0x41ad1c
mov eax, dword [edx]
test byte [eax + 8], 0x40
je case.0x41ac80.6
mov esi, dword [eax]
test byte [esi + 5], 3
je case.0x41ac80.6
movzx eax, byte [esi + 4]
and byte [esi + 5], 0xfc
sub eax, ebx
cmp eax, 0x22
ja case.0x41ac80.6
movzx eax, byte [eax + 0x41ad60]
jmp dword [eax*4 + 0x41ad40]
mov eax, dword [esi + 8]
test eax, eax
je 0x41aca2
test byte [eax + 5], 3
je 0x41aca2
push eax
push edi
call fcn.0041a830
mov edx, dword [esp + 0x10]
add esp, 8
mov ecx, dword [esi + 0xc]
or byte [esi + 5], bl
add ecx, 0x18
add dword [edi + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], ecx
movzx ecx, byte [esi + 6]
test cl, 0x40
je case.0x41ac80.6
mov cl, byte [eax + 5]
test cl, 3
je case.0x41ac80.6
and cl, 0xfc
mov esi, eax
mov byte [eax + 5], cl
movzx eax, byte [eax + 4]
sub eax, ebx
cmp eax, 0x22
jbe 0x41ac79
jmp case.0x41ac80.6
mov eax, dword [esi + 0xc]
or byte [esi + 5], bl
add eax, 0x19
add dword [edi + 0x10], eax
jmp case.0x41ac80.6
mov ecx, dword [edi + 0x4c]
mov dword [esi + 8], ecx
jmp 0x41ad12
mov eax, dword [edi + 0x4c]
mov dword [esi + 8], eax
jmp 0x41ad12
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x1c], ecx
jmp 0x41ad12
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x24], eax
jmp 0x41ad12
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov dword [edi + 0x4c], esi
mov dword [edx + 0xc], 0
mov eax, dword [edx + 8]
mov dword [esp + 8], eax
test eax, eax
jne 0x41ac40
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x41ac02
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b330
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov ecx, dword [ebp + 8]
cmp byte [ecx + 6], 0
push ebx
push esi
mov dword [esp + 8], 0
jbe 0x41b440
lea eax, [ecx + 0x10]
mov dword [esp + 0xc], eax
mov ebx, 4
test byte [eax + 8], 0x40
je case.0x41b38c.6
mov esi, dword [eax]
test byte [esi + 5], 3
je case.0x41b38c.6
movzx eax, byte [esi + 4]
and byte [esi + 5], 0xfc
sub eax, ebx
cmp eax, 0x22
ja case.0x41b38c.6
movzx eax, byte [eax + 0x41b470]
jmp dword [eax*4 + 0x41b450]
mov eax, dword [esi + 8]
test eax, eax
je 0x41b3aa
test byte [eax + 5], 3
je 0x41b3aa
push eax
push edi
call fcn.0041a830
add esp, 8
mov ecx, dword [esi + 0xc]
or byte [esi + 5], bl
add ecx, 0x18
add dword [edi + 0x10], ecx
movzx ecx, byte [esi + 6]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], edx
test cl, 0x40
je case.0x41b38c.6
mov cl, byte [eax + 5]
test cl, 3
je case.0x41b38c.6
and cl, 0xfc
mov esi, eax
mov byte [eax + 5], cl
movzx eax, byte [eax + 4]
sub eax, ebx
cmp eax, 0x22
jbe 0x41b385
jmp case.0x41b38c.6
mov eax, dword [esi + 0xc]
or byte [esi + 5], bl
add eax, 0x19
add dword [edi + 0x10], eax
jmp case.0x41b38c.6
mov ecx, dword [edi + 0x4c]
mov dword [esi + 8], ecx
jmp 0x41b41a
mov edx, dword [edi + 0x4c]
mov dword [esi + 8], edx
jmp 0x41b41a
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x1c], eax
jmp 0x41b41a
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x24], ecx
jmp 0x41b41a
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov dword [edi + 0x4c], esi
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
movzx esi, byte [ecx + 6]
inc edx
add eax, 0x10
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
cmp edx, esi
jl 0x41b35c
movzx eax, byte [ecx + 6]
inc eax
pop esi
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41be30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x60], 0
push ebx
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
je 0x41bf7f
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x78]
jae 0x41bf79
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x60]
mov ecx, dword [esi]
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x60], ecx
mov dword [esi], eax
mov dword [ebx + 0x40], esi
and byte [esi + 5], 0xf7
mov cl, byte [ebx + 0x3d]
mov al, byte [esi + 5]
mov dword [ebp - 0x10], esi
cmp cl, 2
jb 0x41be92
cmp cl, 5
ja 0x41be92
mov cl, byte [ebx + 0x3c]
and cl, 3
and al, 0xf8
or cl, al
mov byte [esi + 5], cl
movzx eax, byte [esi + 4]
or eax, 0x40
mov dword [ebp - 0x18], eax
and eax, 0xf
mov ecx, eax
sub ecx, 5
je 0x41bebc
sub ecx, 2
je 0x41beb7
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 + 0xf4]
jmp 0x41bebf
mov eax, dword [esi + 8]
jmp 0x41bebf
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41bf8d
mov edx, dword [edi + 0xc]
mov esi, dword [edx + 0x9c]
mov edx, eax
call fcn.004190c0
mov edx, dword [ebp - 0xc]
test eax, eax
je 0x41bf6c
mov esi, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
and ecx, 0xf
cmp cl, 6
jne 0x41bf6c
movzx ecx, byte [ebx + 0x3f]
movzx edx, byte [edi + 0x6d]
mov byte [edi + 0x6d], 0
mov byte [ebx + 0x3f], 0
mov byte [ebp - 1], dl
mov edx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
add dword [edi + 8], 0x20
mov eax, dword [edi + 8]
sub eax, dword [edi + 0x1c]
push 0
sub eax, 0x20
push eax
push 0
push 0x41be10
mov eax, edi
call fcn.00413760
movzx edx, byte [ebp - 1]
mov cl, byte [ebp - 0x10]
add esp, 0x10
mov byte [edi + 0x6d], dl
mov byte [ebx + 0x3f], cl
test eax, eax
jne 0x41bf97
mov edx, dword [ebp - 0xc]
inc dword [ebp - 8]
cmp dword [edx + 0x60], 0
jne 0x41be4f
cmp dword [edx + 0x60], 0
jne 0x41bfd2
xor eax, eax
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x4ee480
jmp 0x41bee5
cmp eax, 2
jne 0x41bfcb
mov eax, dword [edi + 8]
mov edx, dword [eax - 8]
and dl, 0xf
cmp dl, 4
jne 0x41bfb2
mov eax, dword [eax - 0x10]
add eax, 0x18
jmp 0x41bfb7
mov eax, str.no_message
push eax
push str.error_in___gc_metamethod___s_
push edi
call fcn.0041a610
add esp, 0xc
mov eax, 5
push eax
push edi
call fcn.00412b70
mov eax, dword [edx + 0x78]
add eax, eax
pop esi
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b7690
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x100c]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fread]
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1018], 0x1000
mov ecx, 0x1000
lea ebx, [ebp - 0x101c]
call fcn.0040fee0
push esi
push 0x1000
push 1
push eax
call edi
add dword [ebp - 0x1014], eax
add esp, 0x10
cmp eax, 0x1000
je 0x430e48
mov eax, ebx
call fcn.0040ffa0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b7299
mov esp, ebp
pop ebp
ret

Function at 0x430e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b7690
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x100c]
mov dword [ebp - 0x101c], ecx
mov ecx, esi
lea ebx, [ebp - 0x101c]
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1018], 0x1000
call fcn.0040fee0
push edi
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, eax
add dword [ebp - 0x1014], esi
add esp, 0x10
mov eax, ebx
call fcn.0040ffa0
mov ecx, dword [ebp - 8]
xor edx, edx
cmp edx, esi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.004b7299
mov esp, ebp
pop ebp
ret
Function at 0x434f60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_getenv]
push esi
push edi
push eax
mov esi, ecx
call ebx
mov edi, eax
add esp, 4
test edi, edi
jne 0x434f8d
mov ecx, dword [ebp + 0xc]
push ecx
call ebx
mov edi, eax
add esp, 4
test edi, edi
je 0x434fe9
call fcn.00434ee0
test eax, eax
jne 0x434fe9
push 0x4f08f8
push 0x4f08fc
mov edx, edi
mov ecx, esi
call fcn.00410d20
mov edx, dword [ebp + 0x10]
push edx
push 0x4f0900
mov edx, eax
mov ecx, esi
call fcn.00410d20
mov eax, dword [esi + 8]
lea edi, [eax - 0x20]
lea ebx, [eax - 0x10]
add esp, 0x10
mov ecx, edi
mov eax, edi
call fcn.00411100
lea eax, [edi + 0x10]
mov ecx, ebx
call fcn.00411100
mov ecx, ebx
mov eax, edi
call fcn.00411100
add dword [esi + 8], 0xfffffff0
jmp 0x434ff1
mov edi, dword [ebp + 0x10]
call fcn.00411a30
mov ecx, esi
call fcn.00433240
mov edi, dword [esi + 8]
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [esi + 8], eax
mov eax, ecx
lea edx, [eax + 1]
lea ebx, [edi - 0x20]
mov dword [esp + 0xc], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x435010
sub eax, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.00419670
mov dword [edi], eax
movzx eax, byte [eax + 4]
or eax, 0x40
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [eax - 0x20]
push ecx
add eax, 0xfffffff0
push eax
push ebx
push esi
call fcn.00415100
add esp, 0x10
add dword [esi + 8], 0xffffffe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4421c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
lea eax, [ebp + 0xc]
push eax
push ecx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
push 0x4f037c
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
int3