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

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10022a9b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10022ab9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10022b17
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10022afe
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10022b07
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10022b11
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10022af3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10022a7d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10022b64
dec eax
je 0x10022b5b
sub eax, 3
je 0x10022b52
mov dword [ebp - 4], 0x40
jmp 0x10022b81
mov dword [ebp - 4], 4
jmp 0x10022b67
mov dword [ebp - 4], 0x20
jmp 0x10022b67
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10022bb3
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10022b33
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100223c4
pop ds
adc dl, dl
cmpsd dword [esi], dword es:[edi]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10022bbf
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100231eb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x698], eax
call fcn.100223c4
jg 0x10023189
mov byte [eax], dh
push dword [ebp - 0x698]
lea eax, [ebp - 0x6c0]
push eax
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100225a0
add esp, 0x14
call fcn.100223c4
xchg esp, eax
jg 0x10023254
enter 0xffffffffffffb5ff, 0x68
stc
invalid
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.100223c4
pop ss
push ss
xchg ebp, eax
inc edi
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.100223a2
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
Function at 0x10024573
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10024588
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.100223c4
aad 0xec
int3

Function at 0x10027904
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10027ae2
push 0x3d
push edi
call fcn.1001fbf9
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x10027ae2
cmp edi, ebx
je 0x10027ae2
cmp word [ebx + 2], 1
sbb eax, eax
mov ecx, dword [0x10030a74]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x10030a70], ecx
jne 0x10027962
mov eax, dword [0x10030a70]
push eax
call fcn.10027b50
add esp, 4
mov dword [0x10030a70], eax
cmp dword [0x10030a70], 0
jne 0x100279f1
cmp dword [esp + 0x1c], 0
je 0x1002798d
cmp dword [0x10030a68], 0
je 0x1002798d
call fcn.10023f51
test eax, eax
je 0x100279f1
jmp 0x10027ae2
cmp dword [esp + 0x10], 0
je 0x1002799b
xor eax, eax
jmp 0x10027ae7
cmp dword [0x10030a68], 0
jne 0x100279c6
push 4
call fcn.1001f4f3
add esp, 4
mov dword [0x10030a68], eax
test eax, eax
je 0x10027ae2
mov eax, dword [0x10030a68]
mov dword [eax], 0
cmp dword [0x10030a70], 0
jne 0x100279f1
push 4
call fcn.1001f4f3
add esp, 4
mov dword [0x10030a70], eax
test eax, eax
je 0x10027ae2
mov eax, dword [0x10030a70]
mov dword [eax], 0
mov esi, dword [0x10030a70]
sub ebx, edi
mov eax, ebx
sar eax, 1
push eax
push edi
call fcn.10027aef
add esp, 8
mov ebp, eax
test ebp, ebp
jl 0x10027a4b
cmp dword [esi], 0
je 0x10027a4b
cmp dword [esp + 0x10], 0
je 0x10027a46
lea eax, [esi + ebp*4]
cmp dword [eax], 0
je 0x10027a2f
mov ecx, dword [eax + 4]
inc ebp
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x10027a21
lea eax, [ebp*4]
push eax
push esi
call fcn.1002038d
add esp, 8
test eax, eax
je 0x10027a82
jmp 0x10027a7d
mov dword [esi + ebp*4], edi
jmp 0x10027a82
cmp dword [esp + 0x10], 0
jne 0x10027ade
test ebp, ebp
jge 0x10027a5c
neg ebp
lea eax, [ebp*4 + 8]
push eax
push esi
call fcn.1002038d
add esp, 8
test eax, eax
je 0x10027ae2
lea ecx, [eax + ebp*4]
mov dword [ecx], edi
mov dword [ecx + 4], 0
mov dword [0x10030a70], eax
cmp dword [esp + 0x1c], 0
je 0x10027ada
push edi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 4]
push eax
call fcn.1001f4f3
add esp, 4
mov esi, eax
test esi, esi
je 0x10027ada
push edi
and bl, 0xfe
push esi
call fcn.1001ef83
add esp, 8
lea ecx, [ebx + esi]
cmp dword [esp + 0x10], 1
mov word [ecx], 0
lea ecx, [ecx + 2]
sbb eax, eax
and eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.1001f43e
add esp, 4
xor eax, eax
jmp 0x10027ae7
xor eax, eax
jmp 0x10027ae7
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x1002842b
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
test esi, esi
je 0x1002861b
push 0x3d
push esi
call fcn.10028b76
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x1002861b
cmp ebp, esi
je 0x1002861b
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x10030a6c]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x10030a68], ecx
jne 0x10028488
mov eax, dword [0x10030a68]
push eax
call fcn.10028685
add esp, 4
mov dword [0x10030a68], eax
cmp dword [0x10030a68], 0
jne 0x10028517
cmp dword [esp + 0x1c], 0
je 0x100284b3
cmp dword [0x10030a70], 0
je 0x100284b3
call fcn.100267c3
test eax, eax
je 0x10028517
jmp 0x1002861b
cmp dword [esp + 0x10], 0
je 0x100284c1
xor eax, eax
jmp 0x10028620
cmp dword [0x10030a68], 0
jne 0x100284ec
push 4
call fcn.1001f4f3
add esp, 4
mov dword [0x10030a68], eax
test eax, eax
je 0x1002861b
mov eax, dword [0x10030a68]
mov dword [eax], 0
cmp dword [0x10030a70], 0
jne 0x10028517
push 4
call fcn.1001f4f3
add esp, 4
mov dword [0x10030a70], eax
test eax, eax
je 0x1002861b
mov eax, dword [0x10030a70]
mov dword [eax], 0
mov edi, dword [0x10030a68]
sub ebp, esi
push ebp
push esi
call fcn.10028628
add esp, 8
mov ebx, eax
test ebx, ebx
jl 0x1002856d
cmp dword [edi], 0
je 0x1002856d
cmp dword [esp + 0x10], 0
je 0x10028568
lea eax, [edi + ebx*4]
cmp dword [eax], 0
je 0x10028551
mov ecx, dword [eax + 4]
inc ebx
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x10028543
lea eax, [ebx*4]
push eax
push edi
call fcn.1002038d
add esp, 8
test eax, eax
je 0x100285a8
jmp 0x100285a3
mov dword [edi + ebx*4], esi
jmp 0x100285a8
cmp dword [esp + 0x10], 0
jne 0x10028617
test ebx, ebx
jge 0x1002857e
neg ebx
lea eax, [ebx*4 + 8]
push eax
push edi
call fcn.1002038d
add esp, 8
test eax, eax
je 0x1002861b
lea ecx, [eax + ebx*4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [0x10030a68], eax
cmp dword [esp + 0x1c], 0
je 0x10028613
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.1001f4f3
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x10028613
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call ebp
push ebx
call fcn.1001f43e
add esp, 4
xor eax, eax
jmp 0x10028620
xor eax, eax
jmp 0x10028620
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x40ed7e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x40eae0
mov edx, edx
sub edx, ecx
call fcn.0040edaa
push 0x1cdc3c40
pop edx
dec edx
xor dword [esi], edi
inc esi
sub ecx, edx
cmp esi, eax
jne fcn.0040ed7e
push edx
pop ecx
sub edx, 0x8978380e
ret
Function at 0x1000a483
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000a4c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000a4c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000a4c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000a4c2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000a4c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000d13f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000d1dc
push ebx
push esi
call fcn.1000d108
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000d09c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d189
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d1db
push edi
push eax
call fcn.1000e0fa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d1a9
call fcn.1000bbe4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d1da
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d09c
add esp, 0x20
test eax, eax
jne 0x1000d1c8
push edi
call fcn.1000bbe4
jmp 0x1000d1d0
push ebx
call fcn.1000bbe4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000d449
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014678
push 0x10014670
push str.FlsAlloc
push 0x1f
call fcn.1000d365
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d47d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013158]
call esi
jmp 0x1000d483
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d4c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014688
push 0x10014680
push str.FlsGetValue
push 0x21
call fcn.1000d365
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d4fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000d506
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014690
push 0x10014688
push str.FlsSetValue
push 0x22
call fcn.1000d365
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d540
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10013158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012bed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012bed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x17c6580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x17c65a3
mov eax, 1
jmp 0x17c66ae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x17c65b9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x17c65c3
mov eax, 2
jmp 0x17c66ae
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x17c65ee
mov eax, 1
jmp 0x17c66ae
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x17c6614
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x17c6614
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x17c661e
mov eax, 2
jmp 0x17c66ae
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.017d8ba0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x17c665f
mov eax, 3
jmp 0x17c66ae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x17c66ac
mov eax, 1
jmp 0x17c66ae
xor eax, eax
pop ebp
ret

Function at 0x17c7050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x17c7066
xor eax, eax
jmp 0x17c70a6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x17c708b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x17c708f
xor eax, eax
jmp 0x17c70a6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.017c70b0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x17d9aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x17d9ad0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x17d9ae3
xor eax, eax
jmp 0x17d9ba1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x17d9afe
xor eax, eax
jmp 0x17d9ba1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x17d9b1c
xor eax, eax
jmp 0x17d9ba1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x17d9b5e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x17d9b9f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.017d8bc0
add esp, 8
test eax, eax
jne 0x17d9b9d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x17d9ba1
jmp 0x17d9b55
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4016f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4017fd
cmp byte [eax], 0
je 0x4017fd
push 0x4357bc
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.0042012c
add esp, 0xc
test eax, eax
jne 0x4017fd
mov eax, dword [ebp - 4]
test eax, eax
je 0x4017fd
push eax
push 4
lea eax, [ebp - 8]
push 1
push eax
call fcn.0042033f
add esp, 0x10
cmp eax, 4
je 0x401767
push dword [ebp - 4]
mov dword [esi], 0xffffffff
call fcn.0041d8bd
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x4357f4
lea ecx, [ebp - 8]
movzx eax, word [ecx]
cmp ax, word [edx]
jne 0x40178c
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40178c
push 0
mov dword [esi], 1
push 3
jmp 0x4017b6
mov ecx, 0x4357cc
lea eax, [ebp - 8]
mov ax, word [eax]
cmp ax, word [ecx]
je 0x4017dd
mov ecx, 0x4357d0
lea eax, [ebp - 8]
mov ax, word [eax]
cmp ax, word [ecx]
je 0x4017dd
push 0
mov dword [esi], 0
push 0
push dword [ebp - 4]
call fcn.0041dbf7
add esp, 0xc
mov ecx, esi
push dword [ebp - 4]
call fcn.00401810
push dword [ebp - 4]
call fcn.0041d8bd
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 2
push dword [ebp - 4]
mov dword [esi], 2
call fcn.0041dbf7
add esp, 0xc
push dword [ebp - 4]
call fcn.0041d8bd
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402db0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, ecx
cmp dword [0x4b2670], esi
jne 0x402e07
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x402df6
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4b265c], eax
mov dword [0x4b2670], 1
jmp 0x402e0c
mov eax, dword [0x4b265c]
mov dword [0x4b2670], 1
jmp 0x402e0c
mov eax, dword [0x4b265c]
test eax, eax
je 0x402e2a
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402e2a
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x402e55
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x402e45
push dword [edi + 0xc]
mov eax, dword [edi + 8]
jmp 0x402e4a
push dword [edi + 4]
mov eax, dword [edi]
call eax
test eax, eax
je 0x402e20
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b3e1
mov edi, eax
add esp, 4
test edi, edi
je 0x4036fc
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4036f3
push 0x4aaf1c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.004200e5
add esp, 0xc
mov esi, eax
push edi
call fcn.0041b39b
add esp, 4
test esi, esi
jne 0x4036fc
cmp dword [ebp + 8], esi
je 0x4036fc
push 0x10000
call fcn.0041b3e1
add esp, 4
mov edi, eax
push dword [ebp + 8]
test edi, edi
jne 0x403630
call fcn.0041d8bd
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x10000
push 1
push edi
xor esi, esi
call fcn.0042033f
add esp, 0x10
cmp eax, 0x10000
jne 0x403707
nop dword [eax]
push dword [ebp + 8]
add esi, eax
push 0x10000
push 1
push edi
call fcn.0042033f
add esp, 0x10
test eax, eax
jne 0x403650
push esi
call fcn.0041b3e1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4036e8
push 0x10000
push edi
push ebx
call fcn.0042f5c0
add esp, 0xc
push edi
call fcn.0041b39b
add esp, 4
mov edi, ebx
push 0
push 0
push dword [ebp + 8]
call fcn.0041dbf7
add esp, 0xc
push dword [ebp + 8]
push esi
push 1
push ebx
call fcn.0042033f
add esp, 0x10
cmp eax, esi
je 0x403709
push str.SMSettingsManager:_Pathological_error_when_reading_master_settings.sol_file._n
push 2
call fcn.004205fa
add esp, 4
push eax
call fcn.004015e0
push dword [ebp + 8]
call fcn.0041d8bd
add esp, 0xc
push ebx
call fcn.0041b39b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call fcn.0041d8bd
add esp, 4
push edi
call fcn.0041b39b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, eax
push dword [ebp + 8]
call fcn.0041d8bd
add esp, 4
test eax, eax
je 0x403730
push str.SMSettingsManager:_Unable_to_close_master_settings.sol_file._n
push 2
call fcn.004205fa
add esp, 4
push eax
call fcn.004015e0
add esp, 8
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0
call fcn.004078b0
push edi
mov esi, eax
call fcn.0041b39b
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8