joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4345f0
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 0x43468d
push ebx
push esi
call fcn.004345ac
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.0042dda1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43463a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43468c
push edi
push eax
call fcn.0042f5dd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43465a
call fcn.0042f5a3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43468b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042dda1
add esp, 0x20
test eax, eax
jne 0x434679
push edi
call fcn.0042f5a3
jmp 0x434681
push ebx
call fcn.0042f5a3
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 0x434690
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4346a1
pop esi
ret
push ebx
push edi
push esi
call fcn.004345ac
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042f5dd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4346c9
push ebx
push esi
push edi
call fcn.0040ad00
add esp, 0xc
push 0
call fcn.0042f5a3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x434fae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043493e

Function at 0x437ee8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042f12f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437f57
cmp esi, dword [ebp - 4]
je 0x437f52
cmp dword [ebp + 0xc], 0
je 0x437f52
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x437f2f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00437a3a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x437f59
xor eax, eax
inc eax
jmp 0x437f59
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x437fbe
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x457004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042f12f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042f12f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x438035
cmp word [ecx], dx
je 0x438035
mov eax, dword [0x44fbb4]
push edi
dec eax
push eax
push 0x44faa0
call fcn.00437f5d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4380a8
cmp word [eax], dx
je 0x4380a8
mov eax, dword [edi]
test eax, eax
je 0x438059
cmp word [eax], dx
je 0x438059
lea eax, [ebp - 0x10]
push eax
call fcn.00437940
jmp 0x438062
lea eax, [ebp - 0x10]
push eax
call fcn.004379db
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4380d2
mov eax, dword [0x44fa9c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44f790
call fcn.00437f5d
add esp, 0xc
test al, al
je 0x4380d2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43809d
cmp word [eax], di
je 0x43809d
lea eax, [ebp - 0x10]
push eax
call fcn.00437940
pop ecx
jmp 0x4380d4
lea eax, [ebp - 0x10]
push eax
call fcn.004379db
jmp 0x43809a
mov eax, dword [edi]
test eax, eax
je 0x4380bf
cmp word [eax], dx
je 0x4380bf
lea eax, [ebp - 0x10]
push eax
call fcn.004378d7
pop ecx
jmp 0x4380d2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43819d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00437de2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43819d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43819d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43819d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43812a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00438eab
test ebx, ebx
je 0x438198
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00438eab
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43819d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43819d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004418f5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43819f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040140b
leave
ret
Function at 0x438b1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450ddc
push 0x450dd4
push str.FlsAlloc
push 0x1f
call fcn.004387eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438b51
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d168]
call esi
jmp 0x438b57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x438b9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450dec
push 0x450de4
push str.FlsGetValue
push 0x21
call fcn.004387eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438bd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x438bda
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x450df4
push 0x450dec
push str.FlsSetValue
push 0x22
call fcn.004387eb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438c14
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44d168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x444e6a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x458900]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444eaa
cmp byte [ebx], 0xa
jne 0x444eaa
or byte [edi + eax + 0x28], 4
jmp 0x444eaf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x444fae
mov dl, byte [eax]
cmp dl, 0x1a
je 0x444f91
inc eax
cmp dl, 0xd
je 0x444edb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x444f01
cmp eax, ecx
jae 0x444f0f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x444ec3
jmp 0x444fae
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444f8c
cmp dword [ebp - 0x10], 0
je 0x444f8c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x458900]
test byte [eax + edi + 0x28], 0x48
je 0x444f66
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x444f51
mov byte [esi], dl
jmp 0x444f62
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x444fae
cmp byte [ebp - 1], 0xa
jne 0x444f75
cmp esi, ebx
jne 0x444f75
mov byte [esi], 0xa
jmp 0x444fad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044476a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x444fae
mov byte [esi], 0xd
jmp 0x444fad
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x458900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x444fab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x444fae
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444fb7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x458900]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444ffd
cmp word [ebx], dx
jne 0x444ffd
or byte [eax + edi + 0x28], 4
jmp 0x445002
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x445165
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x445145
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x445043
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x445079
cmp eax, edx
jae 0x445087
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44501e
jmp 0x445165
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445140
cmp dword [ebp - 0x18], 0
je 0x445140
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x458900]
test byte [eax + edi + 0x28], 0x48
je 0x445116
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4450da
mov word [esi], cx
jmp 0x445111
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x458900]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x458900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x458900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x445165
pop eax
cmp word [ebp - 4], ax
jne 0x445126
cmp esi, ebx
jne 0x445126
mov word [esi], ax
jmp 0x445162
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044476a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x445165
push 0xd
pop eax
jmp 0x445121
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x458900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44515f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x445165
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4484a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4484cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4484cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x4019af
cmp dword [ebp - 0x118], 0
je 0x4019af
jmp 0x401a13
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401a13
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x440934], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x440950], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x44094c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.00401300
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x4019af
mov esp, ebp
pop ebp
ret

Function at 0x401ab0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x440940], 0x24e1
mov eax, dword [0x440940]
sub eax, 0x24e1
mov dword [0x440940], eax
mov ecx, 1
test ecx, ecx
je 0x401b5b
mov edx, dword [0x440940]
cmp edx, dword [ebp + 0xc]
jb 0x401ae7
jmp 0x401b5b
cmp dword [0x440940], 0
jne 0x401b05
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401b05
xor eax, eax
jmp 0x401b5b
mov eax, dword [ebp + 8]
add eax, dword [0x440940]
mov ecx, dword [eax]
add ecx, dword [0x440940]
mov edx, dword [ebp + 8]
add edx, dword [0x440940]
mov dword [edx], ecx
mov dword [ebp - 4], 0xdaa90
mov eax, dword [0x440940]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x440940]
push eax
call fcn.004011c0
add esp, 8
mov ecx, dword [0x440940]
add ecx, 4
mov dword [0x440940], ecx
jmp 0x401acd
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x48
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4f
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x66
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc1
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbb
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd3
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xda
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x47
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf8
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x58
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc8
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 9
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x94
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9b
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x404e9a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
lea eax, [ebp - 0xf0]
lea ebx, [ebp + 8]
mov edx, 0x2a
mov edi, eax
mov esi, ebx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x41], 0x52424e50
mov dword [ebp - 0x3d], 0x6e704b51
mov dword [ebp - 0x39], 0x6b717262
mov byte [ebp - 0x35], 0
mov dword [esp], 0xa
call sym._putchar
mov dword [ebp - 0x1c], 0
jmp 0x405005
mov dword [ebp - 0x20], 0
jmp 0x404feb
mov eax, dword [ebp - 0x1c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x20]
add eax, edx
mov edx, 0x3f
sub edx, eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x28], 0
jmp 0x404fba
mov eax, dword [ebp - 0x28]
lea edx, [eax*8]
lea eax, [ebp - 0xf0]
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax*8 + 0x410084]
mov eax, dword [eax*8 + 0x410080]
mov esi, ecx
and esi, eax
mov dword [ebp - 0xf8], esi
and ebx, edx
mov dword [ebp - 0xf4], ebx
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xf4]
mov edi, eax
xor edi, 0
mov dword [ebp - 0x100], edi
mov eax, edx
xor ah, 0
mov dword [ebp - 0xfc], eax
mov esi, dword [ebp - 0x100]
mov edi, dword [ebp - 0xfc]
mov eax, edi
or eax, esi
test eax, eax
je 0x404fb6
lea edx, [ebp - 0x41]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
call sym._putchar
mov byte [ebp - 0x21], 1
jmp 0x404fc4
add dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0xb
jle 0x404f24
movzx eax, byte [ebp - 0x21]
xor eax, 1
test al, al
je 0x404fdb
mov dword [esp], 0x2e
call sym._putchar
mov dword [esp], 0x20
call sym._putchar
add dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 7
jle 0x404ef9
mov dword [esp], 0xa
call sym._putchar
add dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 7
jle 0x404eed
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x405020
mov eax, str.White
jmp 0x405025
mov eax, str.Black
mov dword [esp + 4], eax
mov dword [esp], str.Turn:__s_n
call sym._printf
mov dword [esp], str.Castling:
call sym._printf
mov dword [ebp - 0x2c], 0
jmp 0x405087
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x2c]
mov ebx, 1
mov ecx, eax
shl ebx, cl
mov eax, ebx
and edx, eax
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sar edx, cl
mov eax, edx
test eax, eax
je 0x405083
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + eax + 0x40c740]
movsx eax, al
mov dword [esp], eax
call sym._putchar
add dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 3
jle 0x40504a
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
je 0x4050ab
mov edx, dword [ebp - 0x88]
mov eax, edx
add eax, eax
add eax, edx
add eax, 0x40c680
jmp 0x4050b0
mov eax, str.None
mov dword [esp + 4], eax
mov dword [esp], str._nEp_square:__s_n
call sym._printf
mov dword [esp], 0xa
call sym._putchar
nop
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409cf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x41004c
call sym._EnterCriticalSection_4
mov ebx, dword [0x410044]
sub esp, 4
test ebx, ebx
je 0x409d3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x409d34
test esi, esi
je 0x409d34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x409d10
mov dword [esp], 0x41004c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x409f20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x409f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40a048
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x409fae
cmp eax, 4
jne 0x409fd0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x409fbe
cmp edx, 4
je 0x409fbe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00409f20