joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a560
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
mov esi, ecx
call fcn.00402660
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x1000
push ecx
push 0
push str.AddrBytes
push 0x4645c8
call edi
test eax, eax
je 0x40a5b1
mov edx, dword [esi + 4]
push 0xa
push 0
push edx
call fcn.0043b593
add esp, 0xc
cmp eax, 1
je 0x40a5b8
cmp eax, 2
je 0x40a5b8
cmp eax, 4
je 0x40a5b8
pop edi
xor eax, eax
pop esi
ret 4
push ebx
lea ebx, [eax + eax]
mov eax, dword [esi]
push eax
mov eax, dword [esi + 4]
push 0x1000
push eax
push 0
push str.RegBytes
push 0x4645c8
call edi
test eax, eax
je 0x40a5f9
mov ecx, dword [esi + 4]
push 0xa
push 0
push ecx
call fcn.0043b593
add esp, 0xc
cmp eax, 1
je 0x40a601
cmp eax, 2
je 0x40a601
cmp eax, 4
je 0x40a601
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
push eax
push 0x1000
push edx
push 0
push str.OffsetBits
push 0x4645c8
call edi
test eax, eax
je 0x40a642
mov eax, dword [esi + 4]
push 0xa
push 0
push eax
call fcn.0043b593
add esp, 0xc
lea ecx, [ebx*4]
cmp eax, ecx
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
ret 4
xor eax, eax
lea ecx, [ebx*4]
cmp eax, ecx
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
ret 4

Function at 0x40b190
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esi + 4]
push 0x1000
push eax
push 0
push ecx
push str.Segment
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b1ee
mov esi, dword [esi + 4]
test esi, esi
jne 0x40b1cf
mov ecx, dword [esp + 0xc]
xor eax, eax
push eax
push esi
call fcn.00401640
mov al, 1
pop esi
ret 8
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b1d4
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
push esi
call fcn.00401640
mov al, 1
pop esi
ret 8
xor al, al
pop esi
ret 8
Function at 0x40b200
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x47c5d0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
cmp eax, 0x46a
push esi
mov esi, ecx
jb 0x40b2f4
cmp eax, 0x475
ja 0x40b2f4
push 0xa
lea ecx, [esp + 8]
push ecx
push eax
call fcn.0043b65f
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esp, 0xc
push eax
push 0x1000
push edx
push 0
lea eax, [esp + 0x14]
push eax
push str.Basic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b2f4
mov ecx, dword [esi + 4]
push ebp
push 0x7c
push ecx
call fcn.0043bb10
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b287
pop ebp
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
call fcn.0043a7a4
add esp, 0x10
ret 8
push ebx
push edi
mov edi, dword [esp + 0x28]
mov byte [ebp], 0
mov edx, dword [esi + 4]
lea ebx, [edi + 4]
push edx
mov ecx, ebx
call fcn.00401880
mov ecx, ebx
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
lea ebx, [edi + 8]
inc ebp
push ebp
mov ecx, ebx
call fcn.00401880
push 0x464680
push 0x464680
mov ecx, ebx
call fcn.0040a4f0
mov ecx, eax
call fcn.0040a3b0
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00409fa0
mov dword [edi], eax
pop edi
pop ebx
pop ebp
mov al, 1
pop esi
mov ecx, dword [esp + 0xc]
call fcn.0043a7a4
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
xor al, al
pop esi
call fcn.0043a7a4
add esp, 0x10
ret 8

Function at 0x40b310
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x47c5d0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
cmp eax, 0x487
push esi
mov esi, ecx
jb 0x40b404
cmp eax, 0x48c
ja 0x40b404
push 0xa
lea ecx, [esp + 8]
push ecx
push eax
call fcn.0043b65f
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esp, 0xc
push eax
push 0x1000
push edx
push 0
lea eax, [esp + 0x14]
push eax
push str.Basic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b404
mov ecx, dword [esi + 4]
push ebp
push 0x7c
push ecx
call fcn.0043bb10
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b397
pop ebp
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
call fcn.0043a7a4
add esp, 0x10
ret 8
push ebx
push edi
mov edi, dword [esp + 0x28]
mov byte [ebp], 0
mov edx, dword [esi + 4]
lea ebx, [edi + 4]
push edx
mov ecx, ebx
call fcn.00401880
mov ecx, ebx
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
lea ebx, [edi + 8]
inc ebp
push ebp
mov ecx, ebx
call fcn.00401880
push 0x464680
push 0x464680
mov ecx, ebx
call fcn.0040a4f0
mov ecx, eax
call fcn.0040a3b0
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.00409fa0
mov dword [edi], eax
pop edi
pop ebx
pop ebp
mov al, 1
pop esi
mov ecx, dword [esp + 0xc]
call fcn.0043a7a4
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
xor al, al
pop esi
call fcn.0043a7a4
add esp, 0x10
ret 8
Function at 0x40b420
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x47c5d0]
push ebx
mov ebx, dword [esp + 0x18]
cmp ebx, 0x482
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
jb 0x40b4b8
cmp ebx, 0x486
ja 0x40b4b8
push 0xa
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.0043b65f
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0xc
push eax
push 0x1000
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push str.Basic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b4b8
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [esp + 0x24]
push edi
lea edi, [ebp + 4]
push eax
mov ecx, edi
call fcn.00401880
mov ecx, edi
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
push ebx
mov ecx, esi
call fcn.00409fa0
pop edi
mov dword [ebp], eax
pop ebp
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
call fcn.0043a7a4
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x14]
pop esi
xor al, al
pop ebx
call fcn.0043a7a4
add esp, 0x10
ret 8

Function at 0x40b4d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
push ebp
push esi
mov esi, ecx
mov edx, dword [esi]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
push edx
mov edx, dword [esi + 4]
push 0x1000
push edx
xor ebp, ebp
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b5b3
inc eax
cmp eax, 0x1000
je 0x40b5b3
mov esi, dword [esi + 4]
push ebx
push edi
push 0x7c
push esi
call fcn.0043bb10
mov edi, eax
add esp, 8
test edi, edi
je 0x40b578
mov ebx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x18]
jae 0x40b583
test esi, esi
mov byte [edi], 0
jne 0x40b536
xor eax, eax
jmp 0x40b549
mov eax, esi
lea edx, [eax + 1]
jmp 0x40b540
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b540
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00401640
mov ecx, ebx
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
lea esi, [edi + 1]
push 0x7c
push esi
inc ebp
add ebx, 4
call fcn.0043bb10
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b525
cmp byte [esi], 0
je 0x40b5aa
cmp ebp, dword [esp + 0x18]
jb 0x40b58c
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0x10
mov eax, dword [esp + 0x14]
lea edi, [eax + ebp*4]
push esi
mov ecx, edi
call fcn.00401880
mov ecx, edi
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
inc ebp
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x40b5c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45ed6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov dword [esp + 8], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, ecx
mov ecx, dword [esi]
push ecx
mov ecx, dword [esi + 4]
push 0x1000
push ecx
lea eax, [eax + eax*2]
push edx
lea eax, [eax*8 + str.Chip]
push eax
push 0x4645c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40b62d
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x28]
call fcn.004018c0
mov dword [esp + 0x14], 0
mov ebx, 1
jmp 0x40b656
call fcn.0044fd47
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
call fcn.00401440
mov ebx, 2
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [esp + 0xc], ebx
call fcn.00401bd0
mov esi, dword [esp + 0x20]
add eax, 0x10
or ebx, 4
add esp, 4
test bl, 2
mov dword [esi], eax
mov dword [esp + 0x14], 0
je 0x40b6a6
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 8], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x14], 0xffffffff
je 0x40b6d1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40c250
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45eef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.0044fd47
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
push edx
mov edx, dword [esi + 4]
push 0x1000
push edx
push 0
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40c3af
inc eax
cmp eax, 0x1000
je 0x40c3af
mov esi, dword [esi + 4]
push ebx
push ebp
push 0x7c
push esi
call fcn.0043bb10
mov ebp, dword [esp + 0x28]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c345
push edi
test esi, esi
mov byte [ebx], 0
jne 0x40c2e0
xor eax, eax
jmp 0x40c2ee
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c2e5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401640
lea ecx, [esp + 0x10]
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.00403d00
push 1
mov ecx, ebp
mov edi, eax
call fcn.004041a0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [ebx + 1]
push 0x7c
push esi
mov dword [eax], edi
call fcn.0043bb10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c2d5
pop edi
cmp byte [esi], 0
je 0x40c370
push esi
lea ecx, [esp + 0x10]
call fcn.00401880
lea ecx, [esp + 0xc]
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
lea edx, [esp + 0xc]
push edx
mov ecx, ebp
call fcn.00404420
mov eax, dword [esp + 0xc]
mov ebp, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40c266
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45eef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.0044fd47
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
push edx
mov edx, dword [esi + 4]
push 0x1000
push edx
push 0
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40c3af
inc eax
cmp eax, 0x1000
je 0x40c3af
mov esi, dword [esi + 4]
push ebx
push ebp
push 0x7c
push esi
call fcn.0043bb10
mov ebp, dword [esp + 0x28]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c345
push edi
test esi, esi
mov byte [ebx], 0
jne 0x40c2e0
xor eax, eax
jmp 0x40c2ee
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c2e5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401640
lea ecx, [esp + 0x10]
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.00403d00
push 1
mov ecx, ebp
mov edi, eax
call fcn.004041a0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [ebx + 1]
push 0x7c
push esi
mov dword [eax], edi
call fcn.0043bb10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c2d5
pop edi
cmp byte [esi], 0
je 0x40c370
push esi
lea ecx, [esp + 0x10]
call fcn.00401880
lea ecx, [esp + 0xc]
call fcn.0040a4a0
mov ecx, eax
call fcn.0040a310
lea edx, [esp + 0xc]
push edx
mov ecx, ebp
call fcn.00404420
mov eax, dword [esp + 0xc]
mov ebp, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40d990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x47c5d0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x60]
push 0x21
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
push 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 0x1c]
push 0x1036
push edx
call ebx
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0x8c
push 0
push str.Name
push 0
call fcn.0041b4d0
mov ecx, dword [esi + 0xc]
push 1
push 0
call fcn.0041b900
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0x78
push 0
push str.Offset
push 1
call fcn.0041b4d0
mov ecx, dword [esi + 0xc]
push 1
push 1
call fcn.0041b900
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0x41
push 1
push str.Default
push 2
call fcn.0041b4d0
mov ecx, dword [esi + 0xc]
push 1
push 2
call fcn.0041b900
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0x46
push 1
push str.Value
push 3
call fcn.0041b4d0
push str.0123456789ABCDEFabcdef
lea ecx, [esp + 0x60]
call fcn.004018c0
mov ecx, dword [esi + 0xc]
push 3
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x5c], 0
call fcn.0041c1a0
mov edx, dword [0x464888]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [str.Courier_New]
mov dword [esp + 0xc], 0xfffffff4
mov dword [esp + 0x1c], 0x190
mov byte [esp + 0x24], 3
mov byte [esp + 0x25], 2
mov byte [esp + 0x26], 1
mov byte [esp + 0x27], 0x31
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [0x46488c]
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.00452fda
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, esi
call fcn.00452f83
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x1c]
push 1
push ecx
push 0x30
push edx
call ebx
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x1c]
push 1
push esi
push 0x30
push eax
call ebx
mov ecx, dword [0x47d600]
mov al, byte [0x47d604]
pop edi
pop esi
pop ebx
add ecx, 0x124
test al, al
push 0
je 0x40db4a
call fcn.0044f152
mov ecx, dword [0x47d600]
push 0
add ecx, 0x1dc
call fcn.0044f152
mov ecx, dword [0x47d600]
push 0
add ecx, 0x294
call fcn.0044f152
jmp 0x40db75
call fcn.0044f18e
mov ecx, dword [0x47d600]
push 0
add ecx, 0x1dc
call fcn.0044f18e
mov ecx, dword [0x47d600]
push 0
add ecx, 0x294
call fcn.0044f18e
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
call fcn.0043a7a4
add esp, 0x4c
ret 8
Function at 0x40ff30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x40ff73
mov eax, dword [edi]
jmp 0x40ff75
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push esi
call dword [ecx + 0x74]
test eax, eax
jge 0x40ff96
push 0x464a48
push esi
push eax
call fcn.00447b50
test edi, edi
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov word [esp + 0xc], 0
je 0x40ffc9
mov ecx, edi
call fcn.0040f940
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x410d30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x410e5d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x410e56
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x410e56
push 0
lea edx, [ebp - 0x18]
push edx
push edi
push ebx
push esi
mov dword [ebp - 0x18], 0
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410e4f
mov edi, dword [ebp - 0x14]
cmp dword [edi], 0
mov dword [ebp - 4], 0
je 0x410e2b
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040f5e0
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040f7f0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040f5c0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040fec0
mov ecx, edi
call fcn.00410ad0
lea ecx, [ebp - 0x14]
mov byte [ebp + 0xb], 1
call fcn.0040faa0
jmp 0x410e2b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4112e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edx, ecx
mov dword [esp + 0x10], edx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], ecx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x34], ecx
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], ecx
jle 0x4113c2
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x18]
sub eax, edi
lea esi, [edx + 0x14]
mov dword [esp + 0x7c], eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
inc eax
cmp eax, 0x40
jle 0x411399
mov ecx, dword [esi]
push ecx
call fcn.0044ffe1
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
inc eax
push eax
call fcn.0044ffe6
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esp + eax*4 + 0x44], ebp
inc eax
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [esi]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4113a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x7c]
mov dword [ecx + edi], eax
inc ebp
add edi, 4
add esi, 4
cmp ebp, ebx
jl 0x411368
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x10]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x74]
mov dword [esp + ebx*4 + 0x18], eax
mov eax, dword [ecx]
mov cl, byte [edx + 0xc]
test cl, cl
je 0x4113f9
lea edx, [esp + 0x18]
push edx
push ebx
push eax
call sub.mtcc.dll_RunFunction
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
jmp 0x4113fb
xor ebx, ebx
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x41142a
mov esi, dword [edx + 0x10]
test esi, esi
jne 0x411411
xor eax, eax
jmp 0x41141f
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411416
sub eax, edi
push eax
push esi
call fcn.00401640
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x411467
jmp 0x411440
mov edx, dword [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [esp + esi*4 + 0x44]
mov ecx, dword [edx + eax*4 + 0x14]
lea edi, [edx + eax*4 + 0x14]
push ecx
call fcn.0044ffe1
push 0x40
call fcn.0044ffe6
add esp, 8
mov dword [edi], eax
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x411436
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x60
ret 0x10