joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5f50], 0
lea esi, [edi + 0x5f54]
je 0x10019bc2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10019b7c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001c0c0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10004680
mov edx, dword [esi]
mov ecx, 0x10040674
push dword [edi + 0x5f50]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5f5c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10004680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10019fd0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x10040678]
test bl, bl
je 0x1001a016
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10019ff7
cmp byte [esi], bl
jne 0x10019ff7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10039548]
test bl, bl
jne 0x10019fe8
mov edi, dword [0x10040678]
mov ecx, dword [edi + 0x5ef0]
not eax
mov edx, dword [edi + 0x5ef8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x1001a03d
cmp dword [edx + 4], eax
je 0x1001a040
add edx, 0x24
cmp edx, ecx
jne 0x1001a031
xor eax, eax
ret
mov eax, edx
ret

Function at 0x1001a270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x10040678]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x5ee0], 0
push edi
test esi, esi
je 0x1001a2cd
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.1001a2e0
mov edx, 0x100390f4
mov ecx, esi
mov edi, eax
call fcn.100040d0
mov esi, eax
test esi, esi
je 0x1001a2cd
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002d330
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10040040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10040678]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1002d4eb
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1002d4eb
push esi
push edi
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x10040678]
add esp, 4
mov edi, eax
test esi, esi
je 0x1002d3d4
movsx edx, word [esi + 0x6008]
lea eax, [esi + 0x600c]
mov ecx, dword [esi + 0x3f58]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x1002d3ca
lea eax, [edx + 1]
mov dword [ebp - 0x18], 6
cdq
idiv dword [ebp - 0x18]
movzx eax, dx
mov word [esi + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, esi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x6000]
test edi, edi
je 0x1002d3e7
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1002d3e9
xor edi, edi
or dword [ebx + 0xc], 6
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x70], str.imgui_impl_win32
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x1002d424
mov esi, dword [esi + 0x78]
jmp 0x1002d426
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1002d449
mov dword [esi], eax
mov eax, dword [0x10040678]
xor esi, esi
mov dword [ebp - 0x34], str.xinput1_4.dll
mov dword [ebp - 0x30], str.xinput1_3.dll
mov dword [ebp - 0x2c], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4ab4]
mov dword [ebp - 0x28], str.xinput1_2.dll
mov dword [ebp - 0x24], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x29], 1
nop word [eax + eax]
push dword [ebp + esi*4 - 0x34]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x1002d4b9
inc esi
cmp esi, 5
jl 0x1002d490
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035deb
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035deb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.10035deb
mov esp, ebp
pop ebp
ret
Function at 0x10034280
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10040040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10034393
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1003438c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1003434f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1003434f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1003434f
mov edx, dword [esi]
test edx, edx
jne 0x10034318
push 0x200
push edx
push dword [0x10040688]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10034374
lea edi, [esi + 8]
jmp 0x10034342
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10034342
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10040688]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100343a6
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100342d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1003438c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1003438c
push eax
push ebx
push dword [0x10040688]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10035deb
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10034374

Function at 0x100343b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10034280
test eax, eax
jne 0x100343e1
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10034432
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1003442a
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10034423
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10034110
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x100343f0
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10034440
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1003448c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1003447b
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10034474
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10034451
pop edi
push dword [ebx]
push 0
push dword [0x10040688]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x10034490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10040040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10040710]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100344f1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035deb
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10034512
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10034533
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10034533
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1003452d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10034533
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.10035deb
mov esp, ebp
pop ebp
ret
Function at 0x10034590
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10040718]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x100345c4
mov eax, dword [0x10040710]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x100345cc
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x100345b0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x10034682
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.100343b0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x10034682
mov ecx, dword [0x10040718]
push edi
cmp esi, ecx
jae 0x1003463a
imul edi, esi, 0x2c
mov eax, dword [0x10040710]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1003462f
mov edx, ebx
mov ecx, esi
call fcn.10034490
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003463a
mov ecx, dword [0x10040718]
jmp 0x10034632
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10034604
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10034681
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003466f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10034669
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10034648
push ebx
push 0
push dword [0x10040688]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10034ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10034ed3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x10034df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10034ed3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x566080], 1
mov dword [0x56607c], 1
mov dword [0x566078], 1
mov dword [0x566070], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x56600c], eax
mov eax, dword [0x56608c]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x5660a0]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x566088]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4f7730], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x422d76
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
leave
ret 8

Function at 0x4244be
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call method.PycFile.PycFile_char_const_
sub esp, 4
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycFile.isOpen___const
xor eax, 1
test al, al
je 0x42451b
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Error_opening_file__s_n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
mov ebx, 0
jmp 0x42466d
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycData.get32__
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], edx
mov ecx, eax
call method.PycModule.setVersion_unsigned_int_
sub esp, 4
mov eax, dword [ebp - 0x2c]
mov ecx, eax
call method.PycModule.isValid___const
xor eax, 1
test al, al
je 0x424580
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.Bad_MAGIC__n
call sym._fwrite
mov ebx, 0
jmp 0x42466d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 7
mov dword [esp], 3
mov ecx, eax
call method.PycModule.verCompare_int__int__const
sub esp, 8
not eax
shr eax, 0x1f
test al, al
je 0x4245b9
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycData.get32__
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 1
test eax, eax
je 0x4245d9
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycData.get32__
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycData.get32__
jmp 0x424612
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycData.get32__
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 3
mov dword [esp], 3
mov ecx, eax
call method.PycModule.verCompare_int__int__const
sub esp, 8
not eax
shr eax, 0x1f
test al, al
je 0x424612
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycData.get32__
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.LoadObject_PycData__PycModule_
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov dword [esp], edx
mov ecx, eax
call method.PycRef_PycCode__PycRef_PycObject_.cast_PycCode____const
sub esp, 4
mov eax, dword [ebp - 0x2c]
add eax, 0xc
lea edx, [ebp - 0x14]
mov dword [esp], edx
mov ecx, eax
call method.PycRef_PycCode_.operator_PycRef_PycCode__
sub esp, 4
lea eax, [ebp - 0x14]
mov ecx, eax
call method.PycRef_PycCode_.PycRef__
lea eax, [ebp - 0x10]
mov ecx, eax
call fcn.0044b0b8
mov ebx, 1
lea eax, [ebp - 0x1c]
mov ecx, eax
call method.PycFile.PycFile__
cmp ebx, 1
jmp 0x4246a0
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x436930
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x436990
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x566094]
test esi, esi
jle 0x436ab0
mov eax, dword [0x566098]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4369c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x436a47
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4369b0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x436ad7
mov eax, dword [0x566098]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x566098]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x436ab7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x436a40
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x436a50
add dword [0x566094], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x566098]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x436a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4369ce
mov eax, dword [0x566098]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x436f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5660b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5660a8]
sub esp, 4
test ebx, ebx
je 0x436fe5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x436fde
test esi, esi
je 0x436fde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x436fc0
mov dword [esp], 0x5660b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4378b0
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4378e0
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp dbg.__mingwthr_key_dtor
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x437920
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x437960
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x437988
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]