joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c5ed0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x110]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x100c5f2b
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov edx, 0x100
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
lea esp, [esp]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x100c5f70
lea edx, [esi + 0x9fc]
mov dword [esp + 8], edx
push ebp
jmp 0x100c5fa0
mov edi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x100c5fb0
movzx eax, word [ebp + 0x100e8590]
xor edx, edx
lea ecx, [ebx + 2]
div ecx
mov edx, 0x4000
sub edx, eax
movzx ecx, dx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x100c5fd0
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x100c5fb0
sub dword [esp + 0xc], 0xffffff80
inc ebx
cmp ebx, 0x80
jb 0x100c5fa0
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
pop ebp
mov eax, edi
mov edx, 0x10
jmp 0x100c6010
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x100c6010
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x100c6004
pop edi
mov dword [esi + 0x3b8], 0x40070000
pop ebx
pop ecx
ret
Function at 0x100c8050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x100]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x98
lea ecx, [esi + 0x198]
push ebx
push ecx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0x18
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x100c80c0
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
mov dword [esi + 0x3c], eax
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov dword [eax], 0x10100ff
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x100c80f6
lea eax, [esi + 0x330]
lea edx, [esi + 0x1048]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jmp 0x100c8134
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
movzx edx, byte [eax]
cmp edx, ecx
jne 0x100c8153
nop
inc ebx
lea eax, [esi + ebx + 0x330]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
cmp eax, ecx
je 0x100c8140
mov edi, dword [esp + 0x10]
xor ebp, ebp
lea esp, [esp]
movzx eax, word [ebp + 0x100e85b0]
xor edx, edx
lea ecx, [ebx + 1]
div ecx
mov ecx, 0x4000
sub ecx, eax
movzx ecx, cx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x100c8180
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x100c8160
mov eax, dword [esp + 0xc]
sub dword [esp + 0x10], 0xffffff80
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x19
jb 0x100c8130
xor edi, edi
lea edx, [esi + 0x448]
lea ebp, [esi + 0x333]
lea ebx, [edi + 3]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x18
movzx eax, byte [ebp]
cmp eax, ebx
jne 0x100c81e4
nop
inc edi
movzx ecx, byte [esi + edi + 0x333]
lea ebp, [esi + edi + 0x333]
cmp ecx, ebx
je 0x100c81d0
mov eax, dword [esp + 0x10]
mov ecx, edi
shl ecx, 4
add ecx, 0x28
mov edx, 0x20
jmp 0x100c8200
mov word [eax], cx
mov word [eax + 2], 0x703
add eax, 4
dec edx
jne 0x100c8200
sub dword [esp + 0x10], 0xffffff80
inc ebx
dec dword [esp + 0x14]
jne 0x100c81c7
pop edi
pop ebp
mov dword [esi + 0x444], 0x40070000
pop ebx
add esp, 0xc
ret

Function at 0x100c9e70
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x100c9e98
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c9ea7
mov eax, 1
ret 4
Function at 0x100c9eb0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 4
mov edi, ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
mov esi, eax
add esp, 0x18
mov dword [edi], esi
test esi, esi
je 0x100c9ef6
mov edx, dword [esp + 0x10]
push edx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100c9ef6
mov eax, edi
pop edi
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c9ef1
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x100ca1a0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, edx
mov dword [ecx], eax
dec eax
je 0x100ca1c3
sub eax, 3
je 0x100ca1b9
sub eax, 6
jne 0x100ca1ca
add ecx, 0x10
jmp fcn.100d1310
or eax, 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
ret
mov dword [ecx + 4], 0xffffffff
ret
Function at 0x100d0950
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret

Function at 0x100d0980
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [0x100fb44c]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret

Function at 0x100d1080
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x100d10c2
cmp eax, 0x40
je 0x100d10b4
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
mov ecx, dword [esi + 0x20]
bswap ecx
mov dword [edi], ecx
mov edx, dword [esi + 0x24]
bswap edx
mov dword [edi + 4], edx
mov eax, dword [esi + 0x28]
bswap eax
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x2c]
bswap ecx
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x30]
bswap edx
mov dword [edi + 0x10], edx
pop edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x67452301
mov dword [esi + 0x24], 0xefcdab89
mov dword [esi + 0x28], 0x98badcfe
mov dword [esi + 0x2c], 0x10325476
mov dword [esi + 0x30], 0xc3d2e1f0
pop esi
pop ebx
ret

Function at 0x100d12c0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x100d1310
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x100fb450]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
Function at 0x100d19c0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x100d1a03
cmp eax, 0x40
je 0x100d19f5
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x100d1a48
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x1001f178
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1001f187
pop dword [ebp - 0x4c]
mov eax, 0x1001f187
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x958f3d01
add dword [ebp - 0x5c], 0xb8c3084a
mov dword [ebp - 0x58], 0xf72610e1
add dword [ebp - 0x58], 0x3b0d3b64
mov dword [ebp - 0x54], 0xfe868f98
sub dword [ebp - 0x54], 0xb23a4b6a
mov dword [ebp - 0x50], 0xb0854a45
sub dword [ebp - 0x50], 0xb0854a45
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x5c7e4f7d
sub dword [ebp - 0x5c], 0xe80be627
mov dword [ebp - 0x58], 0x697b5a93
sub dword [ebp - 0x58], 0x280ef91e
mov dword [ebp - 0x54], 0x19c391a4
add dword [ebp - 0x54], 0x49abdac8
mov dword [ebp - 0x50], 0xa5bf67a8
sub dword [ebp - 0x50], 0xa5bf67a8
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x15c9dbb6
add eax, 0xfa3d248a
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x652c1
push 0
call eax
mov ecx, 0x6976973a
add ecx, 0x9689a855
xor edx, edx
add edx, eax
mov esi, 0xca6b638f
add esi, 0x459ce871
add esi, dword [ebp - 0x4c]
mov ebx, 0x75bbbab7
sub ebx, 0x80d18b06
add dword [ebp - 0x34], 0xf299e6fb
mov edi, dword [esi]
sub dword [ebp - 0x24], ebx
sub edi, ebx
xor dword [ebp - 0x44], 0x16ac77be
mov dword [edx], edi
sub dword [ebp - 0x44], ecx
add edx, 0xdc4939fc
sub edx, 0xdc4939f8
add esi, 0x1a29454
sub esi, 0x1a29450
loop 0x1001f2a1
add eax, 0xa6c6578a
sub eax, 0xa6c5667b
mov ebx, eax
add eax, 0x36a5f062
add eax, 0xc95a0fa3
mov ecx, 0x8093508c
add ecx, 0x8f6caf74
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401bbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401cc6
cmp dword [ebp - 4], esi
je 0x401cc6
cmp dword [ebp - 0xc], esi
je 0x401cc6
cmp dword [ebp - 8], esi
je 0x401cc6
cmp dword [ebp - 0x10], esi
je 0x401cc6
cmp dword [ebp - 0x14], esi
je 0x401cc6
cmp dword [ebp - 0x18], esi
je 0x401cc6
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401ca2
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43259c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432924], eax
mov esi, 0x42f0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401c8c
mov eax, dword [ebp - 0x10]
mov dword [0x432810], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431548], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43258c], eax
xor eax, eax
jmp 0x401cc9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401cdd
pop dword [ebp - 0x30]
mov eax, 0x13af20cb
sub eax, 0x136f03ee
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3e327
push 0
mov eax, 0x483a6abe
sub eax, 0x47f818a6
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x49ab
xor edx, edx
add edx, eax
mov ebx, 0x3683fa96
sub ebx, 0x3640a696
add ebx, dword [ebp - 0x30]
mov edi, 0x4a39462
sub edi, 0x9e0786c5
add dword [ebp - 0x10], eax
mov esi, dword [ebx]
xor dword [ebp - 0x1c], edx
sub esi, edi
add dword [ebp - 0x14], 0x1376dc0a
mov dword [edx], esi
sub dword [ebp - 0x20], 0xffefd9bf
add edx, 4
add ebx, 4
loop 0x401d38
add eax, 0xc88aff8
sub eax, 0xc879679
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push 4
lea eax, [esi + 0xc94]
mov dword [ebp - 0xc], edi
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc98]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xca0]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xc9c]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea eax, [esi + 0xca4]
push eax
push edi
call ebx
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea eax, [esi + 0xcb0]
push eax
push edi
call ebx
push 0
lea eax, [ebp - 4]
add esi, 0xcb4
push eax
push 4
push esi
push edi
call ebx
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 4
add eax, 0xcbc
push eax
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 4
add edi, 0xcb8
push edi
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push 0
push eax
push 0xc
add ebx, 0xcc0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xc
add eax, 0xe2c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 0xb34
add eax, 0xe38
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push 8
add eax, 0x196c
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xcb0]
imul eax, dword [ecx + 0xc94]
push eax
call dword [sym.imp.PAL.dll_PalSoundSetPrimaryVolume]
mov ecx, dword [ebp - 8]
mov eax, dword [esi]
mov esi, dword [sym.imp.PAL.dll_PalSoundSetVolume]
push 3
imul eax, dword [ecx + 0xc98]
push eax
call esi
mov eax, dword [ebp - 8]
push 1
mov eax, dword [eax + 0xc9c]
imul eax, dword [edi]
push eax
call esi
mov edi, dword [ebp - 8]
push 4
mov eax, dword [edi + 0xcc4]
imul eax, dword [edi + 0xca8]
push eax
call esi
mov eax, dword [edi + 0xcc8]
imul eax, dword [edi + 0xcac]
push 6
push eax
call esi
mov eax, dword [ebx]
imul eax, dword [edi + 0xca4]
push 5
push eax
call esi
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404540
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x652aa4
call dword [sym.imp.PAL.dll_PalGetFilePath]
push eax
lea eax, [ebp - 0x108]
push str._s_s.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x108]
add esp, 0x10
push eax
push 1
push str.History
push str.DebugWindow
call edi
mov esi, dword [sym.imp.PAL.dll_PalDebugWindowCreate]
test eax, eax
je 0x4045a9
push 1
push 0x6273e4
push 0xa
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push str.UserMemory
push str.DebugWindow
call edi
test eax, eax
je 0x4045d0
push 3
push 0x6273f8
push 0xb
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push str.SystemMemory
push str.DebugWindow
call edi
test eax, eax
je 0x4045f7
push 3
push 0x627418
push 0xc
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push str.TempMemory
push str.DebugWindow
call edi
test eax, eax
je 0x40461e
push 3
push 0x627434
push 0xd
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x627448
push str.DebugWindow
call edi
test eax, eax
je 0x404645
push 3
push 0x62744c
push 0xe
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x62745c
push str.DebugWindow
call edi
test eax, eax
je 0x40466c
push 3
push 0x627460
push 0xf
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push str.Output
push str.DebugWindow
call edi
test eax, eax
je 0x404693
push 1
push str.output
push 0x10
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x627484
push str.DebugWindow
call edi
test eax, eax
je 0x4046ba
push 3
push 0x627484
push 0x11
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x627488
push str.DebugWindow
call edi
test eax, eax
je 0x4046e1
push 3
push 0x627488
push 0x12
call esi
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x414a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push 0x82dfe4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x208], edx
cmp edx, 0xffffffff
je 0x414b73
mov ecx, dword [0x7a4fe0]
xor eax, eax
mov dword [ebp - 0x20c], eax
push esi
push edi
test ecx, ecx
jle 0x414b3c
mov edi, 0x7a50e7
nop
mov esi, dword [edi - 0x103]
test esi, esi
js 0x414b21
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00484a00
push edi
lea eax, [edi + 0xff]
push eax
lea eax, [edi - 0xff]
push eax
movsx eax, byte [edi + 0x11f]
push eax
push esi
lea eax, [ebp - 0x204]
push str._06d__1d___s____s____s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x204]
add esp, 0x28
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x414ae7
push 0
lea eax, [ebp - 0x210]
sub esi, ecx
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x210]
jne 0x414b55
mov ecx, dword [0x7a4fe0]
mov eax, dword [ebp - 0x20c]
inc eax
add edi, 0x224
mov dword [ebp - 0x20c], eax
cmp eax, ecx
jl 0x414a90
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x414b90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000080
push 3
push 0
push 0
push SysReAllocString
push 0x82dfe4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414db1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
lea ecx, [eax + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414db1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [0x7a4fe0], esi
cmp dword [ebp - 0x10], esi
jbe 0x414d8b
nop
mov cl, byte [esi + edi]
xorps xmm0, xmm0
xor eax, eax
movq qword [ebp - 0xc], xmm0
cmp cl, 0x2c
je 0x414c49
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x414c32
cmp eax, 8
jae 0x414dc3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0048fb24
imul ecx, dword [0x7a4fe0], 0x224
inc esi
add esp, 4
mov dword [ecx + 0x7a4fe4], eax
xor eax, eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
je 0x414c8c
inc esi
mov byte [ebp + eax - 0xc], cl
inc eax
mov cl, byte [esi + edi]
cmp cl, 0x2c
jne 0x414c75
cmp eax, 8
jae 0x414dc3
mov byte [ebp + eax - 0xc], 0
lea eax, [ebp - 0xc]
push eax
call fcn.0048fb24
imul ecx, dword [0x7a4fe0], 0x224
add esi, 2
add esp, 4
mov byte [ecx + 0x7a5206], al
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x414cdb
nop word [eax + eax]
imul eax, dword [0x7a4fe0], 0x224
inc esi
mov byte [eax + ecx + 0x7a4fe8], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x414cc0
imul eax, dword [0x7a4fe0], 0x224
add esi, 3
mov byte [eax + ecx + 0x7a4fe8], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x414d1b
nop word [eax + eax]
imul eax, dword [0x7a4fe0], 0x224
inc esi
mov byte [eax + ecx + 0x7a51e6], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x414d00
imul eax, dword [0x7a4fe0], 0x224
add esi, 3
mov byte [eax + ecx + 0x7a51e6], 0
xor ecx, ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
je 0x414d5b
nop word [eax + eax]
imul eax, dword [0x7a4fe0], 0x224
inc esi
mov byte [eax + ecx + 0x7a50e7], dl
inc ecx
mov dl, byte [esi + edi]
cmp dl, 0x22
jne 0x414d40
imul eax, dword [0x7a4fe0], 0x224
add esi, 3
mov byte [eax + ecx + 0x7a50e7], 0
mov eax, dword [0x7a4fe0]
inc eax
mov dword [0x7a4fe0], eax
cmp eax, 0x400
jge 0x414d8b
cmp esi, dword [ebp - 0x10]
jb 0x414c20
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x7a4fe0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.00482be9
mov esp, ebp
pop ebp
ret
call fcn.00482d1d
int3