joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4179be
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x426040]
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.0040ec40
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.0040ec40
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 0x417a35
cmp word [ecx], dx
je 0x417a35
mov eax, dword [0x41f964]
push edi
dec eax
push eax
push 0x41f850
call fcn.0041795d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x417aa8
cmp word [eax], dx
je 0x417aa8
mov eax, dword [edi]
test eax, eax
je 0x417a59
cmp word [eax], dx
je 0x417a59
lea eax, [ebp - 0x10]
push eax
call fcn.00417340
jmp 0x417a62
lea eax, [ebp - 0x10]
push eax
call fcn.004173db
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x417ad2
mov eax, dword [0x41f84c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x41f540
call fcn.0041795d
add esp, 0xc
test al, al
je 0x417ad2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x417a9d
cmp word [eax], di
je 0x417a9d
lea eax, [ebp - 0x10]
push eax
call fcn.00417340
pop ecx
jmp 0x417ad4
lea eax, [ebp - 0x10]
push eax
call fcn.004173db
jmp 0x417a9a
mov eax, dword [edi]
test eax, eax
je 0x417abf
cmp word [eax], dx
je 0x417abf
lea eax, [ebp - 0x10]
push eax
call fcn.004172f5
pop ecx
jmp 0x417ad2
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 0x417b9d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004177e2
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x417b9d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x417b9d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x417b9d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x417b2a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040f5f9
test ebx, ebx
je 0x417b98
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040f5f9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417b9d
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 0x417b9d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00419237
add esp, 0x10
xor eax, eax
inc eax
jmp 0x417b9f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040488e
leave
ret
Function at 0x41ae60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ae8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ae8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10009a80
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0xb8935c2d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
sub eax, 0x8f5086ea
je 0x10009cc5
jmp 0x10009ab3
mov eax, dword [ebp - 0x18]
nop word cs:[eax + eax]
sub eax, 0x98a5eb5b
je 0x10009c6f
jmp 0x10009ad0
mov eax, dword [ebp - 0x18]
sub eax, 0xaf02a5c1
je 0x10009be6
nop
jmp 0x10009ae5
mov eax, dword [ebp - 0x18]
sub eax, 0xb0f7dca6
je 0x10009c85
jmp 0x10009af8
mov eax, dword [ebp - 0x18]
nop dword [eax + eax]
sub eax, 0xb8935c2d
je 0x10009baa
jmp 0x10009b10
mov eax, dword [ebp - 0x18]
sub eax, 0xc8d848e4
je 0x10009c48
nop
jmp 0x10009b25
mov eax, dword [ebp - 0x18]
sub eax, 0xd7f75a66
je 0x10009c2d
jmp 0x10009b38
mov eax, dword [ebp - 0x18]
nop dword [eax + eax]
sub eax, 0xeb209c94
je 0x10009c1a
jmp 0x10009b50
mov eax, dword [ebp - 0x18]
sub eax, 0xc8e7233
je 0x10009bc5
nop
jmp 0x10009b65
mov eax, dword [ebp - 0x18]
sub eax, 0x3bd11b16
je 0x10009c91
jmp 0x10009b78
mov eax, dword [ebp - 0x18]
nop dword [eax + eax]
sub eax, 0x56d012c0
je 0x10009c07
jmp 0x10009b90
mov eax, dword [ebp - 0x18]
sub eax, 0x6cda1d04
je 0x10009cb0
nop
jmp 0x10009ba5
jmp 0x10009cce
mov edx, dword [ebp - 8]
mov eax, 0xeb209c94
mov ecx, 0xc8e7233
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10009cce
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, 0xeb209c94
mov ecx, 0xaf02a5c1
cmp edx, 0x90
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10009cce
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov eax, 0xeb209c94
mov ecx, 0x56d012c0
cmp edx, 0xcc
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10009cce
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x8f5086ea
jmp 0x10009cce
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0xd7f75a66
jmp 0x10009cce
mov edx, dword [ebp - 0x10]
mov eax, 0x6cda1d04
mov ecx, 0xc8d848e4
cmp edx, dword [ebp + 0xc]
cmovb eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10009cce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [eax + ecx]
mov eax, dword [ebp + 8]
movzx esi, byte [eax]
mov eax, 0xb0f7dca6
mov ecx, 0x98a5eb5b
cmp edx, esi
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x10009cce
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x8f5086ea
nop dword [eax]
jmp 0x10009cce
mov dword [ebp - 0x14], 0x3bd11b16
jmp 0x10009cce
mov eax, dword [ebp - 0x10]
sub eax, 0xd7d6e8d0
add eax, 1
add eax, 0xd7d6e8d0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xd7f75a66
jmp 0x10009cce
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0x8f5086ea
nop
jmp 0x10009cce
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop esi
pop ebp
ret
jmp 0x10009a9d
Function at 0x10027320
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x1505
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x4a6cfcc2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
sub eax, 0xe5721a25
je 0x1002740d
jmp 0x1002735e
mov eax, dword [ebp - 0x14]
sub eax, 0xe5878a8c
je 0x100273e5
jmp 0x10027371
mov eax, dword [ebp - 0x14]
sub eax, 0xe5dd826f
je 0x10027419
nop
jmp 0x10027385
mov eax, dword [ebp - 0x14]
sub eax, 0xf77bb9f9
je 0x10027466
jmp 0x10027398
mov eax, dword [ebp - 0x14]
nop dword [eax + eax]
sub eax, 0x45c1fc98
je 0x1002744d
jmp 0x100273b0
mov eax, dword [ebp - 0x14]
sub eax, 0x4a6cfcc2
je 0x100273ca
nop
jmp 0x100273c5
jmp 0x1002746e
mov edx, dword [ebp - 0xc]
mov eax, 0xf77bb9f9
mov ecx, 0xe5878a8c
cmp edx, dword [ebp + 0xc]
cmovb eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x1002746e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax + ecx]
mov byte [ebp - 5], al
movzx edx, byte [ebp - 5]
mov eax, 0xe5dd826f
mov ecx, 0xe5721a25
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x1002746e
mov dword [ebp - 0x10], 0xf77bb9f9
jmp 0x1002746e
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp - 4]
sub eax, 0x94bffab6
add eax, ecx
add eax, 0x94bffab6
movzx ecx, byte [ebp - 5]
add eax, 0xf1bfa2cb
add eax, ecx
sub eax, 0xf1bfa2cb
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x45c1fc98
jmp 0x1002746e
mov eax, dword [ebp - 0xc]
xor ecx, ecx
sub ecx, 1
sub eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0x4a6cfcc2
jmp 0x1002746e
mov eax, dword [ebp - 4]
add esp, 0x14
pop ebp
ret
jmp 0x10027348
Function at 0x100478cc
Capabilities:
Parse pe header

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

Function at 0x1004bcb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004bcdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004bcdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1004c000
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005cd30
push 0x1005cd28
push str.FlsAlloc
push 0x1f
call fcn.1004c2e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c034
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1004c03a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004c07e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005cd40
push 0x1005cd38
push str.FlsGetValue
push 0x21
call fcn.1004c2e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c0b5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004c0bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005cd48
push 0x1005cd40
push str.FlsSetValue
push 0x22
call fcn.1004c2e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c0f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100504a0
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 0x1005053d
push ebx
push esi
call fcn.10050540
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.100503a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100504ea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005053c
push edi
push eax
call fcn.1004dfd2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005050a
call fcn.1004d4ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005053b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100503a4
add esp, 0x20
test eax, eax
jne 0x10050529
push edi
call fcn.1004d4ad
jmp 0x10050531
push ebx
call fcn.1004d4ad
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x51393164
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x1dc43201
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10001100
Capabilities:
Create process on windows
Set console window title
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10015004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call esi
mov edi, eax
test edi, edi
jne 0x1000120f
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call esi
mov edi, eax
test edi, edi
jne 0x1000120f
mov word [ebp - 0xe], ax
xorps xmm0, xmm0
mov eax, 1
mov dword [ebp - 0xc], 0x2e646d63
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 8], 0x657865
push eax
push edi
push edi
push 0x10
push edi
push edi
push edi
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x4c], xmm0
push eax
push edi
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0x44
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x1e], xmm0
movlpd qword [ebp - 0x16], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100011e9
push 0x3e8
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_AttachConsole]
call esi
push 0
push dword [ebp - 0x60]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x5c]
call esi
test edi, edi
jne 0x1000120f
push 0
push str.Error
push str.Unable_to_attach_console
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100016d6
mov esp, ebp
pop ebp
ret
push str.PyShell
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100016d6
mov esp, ebp
pop ebp
ret

Function at 0x10001260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001286
push 0
push 0
push dword [ebp + 8]
push 0x10001240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10001290
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d32d
mov eax, dword fs:[0]
push eax
mov eax, 0x10224
call fcn.1000d270
mov eax, dword [0x10015004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10220], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x10220]
push eax
push 0x10000
lea eax, [ebp - 0x1021c]
mov dword [ebp - 0x10230], edi
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x100013dd
xor esi, esi
test dword [ebp - 0x10220], 0xfffffffc
jbe 0x100013dd
nop word [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x1021c]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov edx, eax
lea edi, [edx + edx]
cmp edi, 0x20a
jae 0x10001411
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp + edi - 0x21c], ax
test edx, edx
je 0x10001380
lea eax, [ebp - 0x21a]
nop word [eax + eax]
cmp word [eax - 2], 0x5c
cmove ecx, eax
add eax, 2
sub edx, 1
jne 0x10001370
sub edi, ecx
mov dword [ebp - 0x10228], ecx
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp - 0x21c]
add eax, edi
mov dword [ebp - 0x1022c], ebx
sar eax, 1
mov dword [ebp - 0x10224], eax
test ecx, ecx
je 0x10001416
mov eax, dword [ecx]
lea edx, [ebp - 0x10224]
push edx
lea edx, [ebp - 0x10228]
push edx
mov eax, dword [eax + 8]
lea edx, [ebp - 0x1022c]
push edx
call eax
test al, al
je 0x100013dd
mov eax, dword [ebp - 0x10220]
inc esi
mov edi, dword [ebp - 0x10230]
shr eax, 2
cmp esi, eax
jb 0x10001320
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x100013f5
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100016d6
mov esp, ebp
pop ebp
ret
call fcn.10001806
call fcn.100016a6
int3

Function at 0x10004e22
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004e61
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004e61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004e61
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004e61
cmp dword [ecx + 0x74], 0xe
jbe 0x10004e61
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100077ab
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 0x10007848
push ebx
push esi
call fcn.10007774
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.10007708
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100077f5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007847
push edi
push eax
call fcn.10008766
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007815
call fcn.10006057
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007846
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10007708
add esp, 0x20
test eax, eax
jne 0x10007834
push edi
call fcn.10006057
jmp 0x1000783c
push ebx
call fcn.10006057
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 0x10007ab5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa00
push 0x1000f9f8
push str.FlsAlloc
push 0x1f
call fcn.100079d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007ae9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e148]
call esi
jmp 0x10007aef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007b33
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa10
push 0x1000fa08
push str.FlsGetValue
push 0x21
call fcn.100079d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007b6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007b72
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa18
push 0x1000fa10
push str.FlsSetValue
push 0x22
call fcn.100079d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007bac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]