joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x44c42c], 1
mov dword [0x44c430], 1
mov dword [0x44c434], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401c80
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x148
lea ebx, [esp + 0x2c]
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], str.GC_LOG_FILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
sub esp, 0xc
cmp eax, 0x103
ja 0x401d50
cmp dword [0x42d760], 2
mov edx, 0x80000080
mov eax, pe_nt_image_headers32
mov dword [esp], ebx
cmovne eax, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
jne 0x401d18
add esp, 0x148
mov eax, ebx
pop ebx
ret
lea eax, [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebx
sub esp, 0x10
add esp, 0x148
pop ebx
ret
mov dword [esp + 8], 0x105
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
cmp eax, 4
jle 0x401d7c
lea edx, [eax - 4]
cmp byte [esp + eax + 0x28], 0x2e
cmove eax, edx
add eax, ebx
mov edx, 0x80000080
cmp dword [0x42d760], 2
mov dword [eax], 0x2e63672e
mov dword [eax + 4], 0x676f6c
mov eax, pe_nt_image_headers32
cmovne eax, edx
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
add esp, 0x148
mov eax, ebx
pop ebx
ret
Function at 0x401df0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44a1a4]
test eax, eax
je 0x401e00
ret
push ebx
sub esp, 0x78
mov dword [esp], str.GC_USE_GETWRITEWATCH
call sub.msvcrt.dll_getenv
test eax, eax
je 0x401e1d
cmp byte [eax], 0x30
je 0x401f00
mov dword [esp], 0x4250a5
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
test eax, eax
je 0x401ef0
mov dword [esp + 4], str.GetWriteWatch
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [0x42d754], eax
test eax, eax
je 0x401ef0
mov eax, dword [0x44a2f8]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x202000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x401f20
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [0x44a2f8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [0x42d754]
sub esp, 0x18
test eax, eax
jne 0x401f10
mov dword [0x42d758], 0x200000
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
sub esp, 0xc
mov dword [0x44a1a4], 1
add esp, 0x78
pop ebx
ret
cmp byte [eax + 1], 0
jne 0x401e1d
jmp 0x401ef0
mov dword [0x42d754], 0
jmp 0x401ed4
mov dword [0x42d754], 0
jmp 0x401ef0

Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
mov ecx, dword [0x42d53c]
test ecx, ecx
jne 0x402090
mov eax, dword [0x44a174]
test eax, eax
je 0x4020a9
cmp eax, 0xffffffff
je 0x4020ca
lea edx, [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov eax, dword [0x42d53c]
sub esp, 0x14
test eax, eax
jne 0x4020b8
test ebx, ebx
je 0x4020d4
mov eax, dword [esp + 0x2c]
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp], 0x44a2e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44a174]
sub esp, 4
test eax, eax
jne 0x40204c
call fcn.00401c80
mov dword [0x44a174], eax
jmp 0x40204c
mov dword [esp], 0x44a2e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402080
mov edx, dword [0x42d53c]
test edx, edx
jne 0x4020db
mov eax, 0xffffffff
jmp 0x402088
mov dword [esp], 0x44a2e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4020d4
Function at 0x4020f0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [0x44a1ac], 1
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x402152
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Fatal_error_in_GC
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, eax
test eax, eax
je 0x402143
mov eax, ebx
call fcn.00402030
test eax, eax
js 0x402152
mov edx, 1
mov eax, 0x4250d2
call fcn.00402030
mov dword [esp], str.GC_LOOP_ON_ABORT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x402168
jmp 0x402162
add esp, 0x18
pop ebx
ret
Function at 0x402ad0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov ebx, dword [0x42d53c]
test ebx, ebx
jne 0x402b00
mov eax, dword [0x44a264]
test eax, eax
je 0x402b1e
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x44a264]
sub esp, 4
test ecx, ecx
jne 0x402ba5
mov eax, dword [0x42d0a8]
mov ebp, dword [0x44a260]
mov dword [0x44a264], 1
mov ebx, dword [0x42d53c]
test ebp, ebp
jne 0x402bd0
test ebx, ebx
jne 0x402cb8
mov dword [0x44a264], 0
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.GC_ABORT_ON_LEAK
call sub.msvcrt.dll_getenv
test eax, eax
je 0x402b82
mov dword [esp], str.Leaked_or_smashed_objects_encountered
call fcn.004020f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [0x42d53c]
test eax, eax
je 0x402b49
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov dword [0x44a264], 0
mov edx, dword [0x42d53c]
test edx, edx
je 0x402aed
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp*4]
lea edi, [esp + 0x20]
mov dword [esp + 4], 0x44a1c0
mov dword [esp + 8], esi
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0x44a1c0
mov dword [0x44a260], 0
call sub.msvcrt.dll_memset
test ebx, ebx
jne 0x402cd8
mov dword [esp + 4], ebp
xor esi, esi
mov dword [esp], str.Found__u_leaked_objects:_n
call fcn.004029f0
jmp 0x402c53
mov ecx, dword [eax + 0x10]
movzx edx, byte [eax + 0xc]
mov eax, ebx
call fcn.00419c20
mov ecx, dword [0x42d53c]
test ecx, ecx
jne 0x402ca0
add esi, 1
cmp ebp, esi
je 0x402b60
mov ebx, dword [edi + esi*4]
mov dword [esp], ebx
call fcn.00402a60
test ebx, ebx
je 0x402c48
mov eax, ebx
shr eax, 0x16
mov edx, dword [eax*4 + 0x449174]
mov eax, ebx
shr eax, 0xc
and eax, 0x3ff
mov eax, dword [edx + eax*4]
mov edx, dword [0x42d53c]
test edx, edx
je 0x402c30
mov dword [esp + 0x1c], eax
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x402c30
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402c48
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x42d53c]
sub esp, 4
jmp 0x402b87
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402c19
Function at 0x402f30
Capabilities:
Execute shellcode via indirect call

Disassembly:
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x10
mov edi, dword [0x42d75c]
test edi, edi
je 0x402fd0
mov eax, 0xffffefff
mov dword [esp], 0
cmp esi, eax
cmovbe eax, esi
add eax, 0x1000
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42d80c], 0x1ff
jbe 0x402f93
mov dword [esp], 0x425225
call fcn.004020f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x402fbf
mov eax, dword [0x42d80c]
add dword [0x42d7a0], esi
lea edx, [eax + 1]
cmp dword [0x42d760], 2
mov dword [0x42d80c], edx
mov dword [eax*4 + 0x441974], ebx
je 0x403070
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, dword [0x422180]
mov ebx, dword [0x42d754]
mov ecx, 4
mov dword [esp], 0
mov edx, dword [0x42d758]
test eax, eax
mov eax, 0x40
cmovne ecx, eax
or dh, 0x30
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], edx
mov ebx, eax
add eax, esi
mov dword [esp + 0xc], ecx
not ebx
cmp esi, ebx
mov ebx, 0xffffffff
cmovae eax, ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x402f75
mov dword [esp], 0x42520d
call fcn.004020f0
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
call edi
mov eax, dword [0x42d80c]
cmp eax, 0x1ff
jbe 0x402f9c
mov dword [esp], 0x425225
call fcn.004020f0
call edi
mov eax, dword [0x42d80c]
jmp 0x402f9c
mov dword [esp + 4], esi
mov dword [esp], 0x42523c
call fcn.00402d00
jmp 0x402fbf
Function at 0x403090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [0x42d7c0]
mov edx, dword [0x42d7c8]
sub edx, esi
cmp eax, 0xfffffff7
ja 0x403228
lea ebx, [eax + 7]
and ebx, 0xfffffff8
cmp edx, ebx
jae 0x403152
cmp ebx, 0xffff
ja 0x403179
mov ecx, dword [0x42d75c]
test ecx, ecx
je 0x403190
mov dword [esp + 4], 0x11000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea esi, [eax + 0xfff]
sub esp, 8
and esi, 0xfffff000
cmp dword [0x42d80c], 0x1ff
jbe 0x403117
mov dword [esp], 0x425225
call fcn.004020f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test esi, esi
je 0x403168
mov eax, dword [0x42d80c]
add dword [0x42d7a0], 0x10000
lea edx, [eax + 1]
cmp dword [0x42d760], 2
mov dword [0x42d80c], edx
mov dword [eax*4 + 0x441974], esi
je 0x40323b
lea eax, [esi + 0x10000]
mov dword [0x42d7c8], eax
add ebx, esi
mov eax, esi
mov dword [0x42d7c0], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], 0x425254
call dword [0x422184]
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.00402f30
mov edx, dword [0x422180]
mov eax, 4
mov dword [esp], 0
test edx, edx
mov edx, 0x40
cmovne eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [0x42d758]
or ah, 0x30
cmp dword [0x42d754], 1
mov dword [esp + 8], eax
mov eax, 0x10000
adc eax, 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov esi, eax
test eax, 0xfff
je 0x4030f9
mov dword [esp], 0x42520d
call fcn.004020f0
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
call edi
mov eax, dword [0x42d80c]
cmp eax, 0x1ff
jbe 0x403120
mov dword [esp], 0x425225
call fcn.004020f0
call edi
mov eax, dword [0x42d80c]
jmp 0x403120
mov ebx, 0xfffffff8
cmp edx, 0xfffffff7
jbe 0x403179
jmp 0x403152
mov dword [esp + 4], 0x10000
mov dword [esp], 0x42523c
call fcn.00402d00
jmp 0x403147
Function at 0x4078b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [0x44a1a0]
test ebx, ebx
jne 0x407a28
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov edx, dword [edx*4 + 0x42d120]
test edx, edx
je 0x421b07
cmp eax, dword [edx + 8]
jne 0x407a48
mov edi, dword [edx + 4]
mov edx, dword [0x42d53c]
movzx ecx, byte [edi + 0x10]
test cl, cl
je 0x40791c
movzx eax, word [edi + 0x12]
add eax, 1
mov word [edi + 0x12], ax
movzx eax, ax
shr eax, cl
test eax, eax
je 0x407a60
xor eax, eax
mov word [edi + 0x12], ax
add ecx, 1
mov byte [edi + 0x10], cl
test edx, edx
jne 0x4079b8
xor esi, esi
jmp 0x40797b
mov ebp, dword [0x42d830]
test ebx, ebx
cmove esi, dword [0x42d7b0]
test ebp, ebp
je 0x4079d0
mov edx, dword [ebp + 4]
mov dword [0x42d830], edx
mov ecx, dword [0x42d53c]
test ecx, ecx
jne 0x4079a0
mov edx, dword [ebp + 0xc]
mov dword [ebp + 4], 0
add ebx, 1
mov dword [esp + 4], edx
mov edx, dword [ebp]
mov dword [esp], edx
call dword [ebp + 8]
mov dword [ebp + 0xc], 0
mov eax, dword [0x42d830]
test eax, eax
je 0x4079da
mov eax, dword [0x42d53c]
test eax, eax
je 0x407930
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
jmp 0x407930
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40795a
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x40792a
mov ebp, dword [0x42d53c]
test ebp, ebp
jne 0x407a10
test ebx, ebx
je 0x4079fe
mov eax, dword [0x42d7b0]
cmp eax, esi
je 0x4079fe
mov edx, dword [0x42d53c]
test edx, edx
jne 0x407a70
add eax, dword [0x42d7b4]
sub eax, esi
mov dword [0x42d7b4], eax
mov byte [edi + 0x10], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4079da
mov eax, dword [0x42d53c]
test eax, eax
je 0x407a02
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x407a02
mov edx, dword [edx]
test edx, edx
jne 0x4078e4
jmp 0x421b07
test edx, edx
je 0x407a02
jmp 0x407a31
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42d7b4]
sub esp, 4
sub eax, esi
add eax, dword [0x42d7b0]
mov dword [0x42d7b4], eax
mov eax, dword [0x42d53c]
test eax, eax
je 0x4079fe
mov dword [esp], 0x42d08c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4079fe
mov eax, dword [4]
ud2
Function at 0x407ac0
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
shl edx, 0xc
push edi
mov edi, ecx
push esi
mov esi, eax
xor edi, 1
push ebx
lea ebp, [esi + edx]
mov ecx, esi
sub esp, 0x2c
mov ebx, dword [0x44a2f8]
mov eax, ebx
lea ebx, [ebx + ebp - 1]
neg eax
and ecx, eax
and ebx, eax
mov eax, edi
and eax, 1
mov byte [esp + 0x1b], al
cmp ecx, ebx
jae 0x407b50
mov dword [esp + 0x1c], ecx
mov eax, ecx
mov edi, 1
mov dword [esp + 0x14], esi
lea esi, [esi]
mov esi, dword [esp + 0x14]
cmp eax, esi
setb cl
cmp eax, ebp
setae dl
or dl, cl
jne 0x407b21
cmp byte [esp + 0x1b], 0
je 0x407b43
mov edx, eax
mov ecx, eax
mov esi, edi
shr edx, 0x11
shr ecx, 0xc
and edx, 0x1fff
shl esi, cl
add edx, 0x307c
lock or dword [edx*4 + 0x42d780], esi
add eax, 0x1000
cmp eax, ebx
jb 0x407b08
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x422180]
mov eax, 4
mov dword [esp + 0xc], 0x44a2fc
mov dword [esp], ecx
test edx, edx
mov edx, 0x40
cmovne eax, edx
sub ebx, ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x407b90
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.un_VirtualProtect_failed:_errcode_0x_X_n
mov dword [esp + 4], eax
call fcn.00402d00
mov dword [esp], str.un_VirtualProtect_failed
call fcn.004020f0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_DebugBreak]

Function at 0x407bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edx, dword [0x42d534]
test edx, edx
je 0x407c00
mov ecx, dword [0x42d11c]
test ecx, ecx
jne 0x407c00
push ebx
mov ebx, eax
sub esp, 8
mov eax, dword [eax + 4]
cmp eax, 0x44c324
je 0x407bee
mov edx, dword [0x42d754]
test edx, edx
je 0x407c08
cmp ebx, 0x42d0e0
jne 0x407c38
add esp, 8
pop ebx
ret
ret
and eax, 0xfffff000
xor ecx, ecx
mov edx, 1
call fcn.00407ac0
cmp ebx, 0x42d0e0
je 0x407bf6
mov ecx, dword [0x42d534]
test ecx, ecx
je 0x407bf6
mov edx, dword [0x42d11c]
test edx, edx
jne 0x407bf6
lea esi, [esi]
mov eax, dword [0x42d754]
and ebx, 0xfffff000
test eax, eax
jne 0x407bf6
add esp, 8
mov eax, ebx
xor ecx, ecx
mov edx, 1
pop ebx
jmp fcn.00407ac0
Function at 0x407c60
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2ec
call fcn.00407bc0
lea edi, [esp + 0x10]
lea esi, cs:[esi]
nop
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
sub esp, 8
test eax, eax
je 0x407ca5
cmp dword [esp + 0x10], 0x103
jne 0x407d68
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
je 0x407d17
mov edx, dword [0x44a198]
mov eax, 0x10003
test edx, edx
mov edx, 0x40010007
cmovne eax, edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
jne 0x407d80
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x407d17
mov dword [esp], str.ResumeThread_failed_in_suspend_loop
call fcn.004020f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
lea esi, [ebx + 1]
cmp ebx, 1
jg 0x407d30
mov ebx, esi
jmp 0x407c80
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
cmp esi, 0xf423f
jle 0x407d1f
mov dword [esp], str.SuspendThread_loop_failed
mov ebx, esi
call fcn.004020f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x407c80
mov eax, ebp
call fcn.00401f30
add esp, 0x2ec
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x14]
or byte [ebp + 0x10], 0x40
mov dword [ebp + 0x18], edx
mov edx, dword [esp + 0xa4]
mov dword [ebp + 0x1c], edx
mov edx, dword [esp + 0xb0]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0xb4]
mov dword [ebp + 0x24], edx
mov edx, dword [esp + 0xb8]
mov dword [ebp + 0x28], edx
mov edx, dword [esp + 0xbc]
mov dword [ebp + 0x2c], edx
mov edx, dword [esp + 0xc0]
mov dword [ebp + 0x30], edx
mov edx, dword [esp + 0xc4]
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0xc8]
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0xd8]
mov dword [ebp + 0x14], edx
add esp, 0x2ec
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40bf20
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, str.double_string.free___detected_n
push esi
push ebx
mov ebx, 0x1e
sub esp, 0x10
mov dword [esp], 1
call dword [0x42489c]
mov esi, eax
nop
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub ebx, eax
add edi, eax
test ebx, ebx
jg 0x40bf40
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x411770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, str.V_panic:
push edi
mov edi, 9
push esi
push ebx
sub esp, 0x8c
mov esi, dword [fcn.00420f08]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp], 1
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 1
call esi
mov dword [esp], 2
call esi
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
sub edi, eax
add ebp, eax
test edi, edi
jg 0x4117cc
mov dword [esp], 2
lea edi, [esp + 0x5c]
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.0040bf70
xor eax, eax
mov ecx, 9
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x40], str.v_hash:
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0xfe10
mov dword [esp + 0x50], str.58f4e12
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], 1
mov dword [esp + 0x60], 0x4264d7
mov dword [esp + 0x68], 1
call fcn.00411640
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
call fcn.0040bf70
mov eax, str.print_backtrace_skipping_top_frames_is_not_implemented
mov edx, 0x36
mov ecx, 1
call fcn.0040bf70
mov dword [esp], 1
call sub.msvcrt.dll_exit
lea esi, cs:[esi]
lea esi, [esi]
Function at 0x419240
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [0x42d7c0]
mov eax, dword [0x42d7c8]
sub eax, ebx
cmp eax, 0x7fff
ja 0x4192ec
mov ecx, dword [0x42d75c]
test ecx, ecx
je 0x419300
mov dword [esp + 4], 0x11000
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebx, [eax + 0xfff]
sub esp, 8
and ebx, 0xfffff000
cmp dword [0x42d80c], 0x1ff
jbe 0x4192ad
mov dword [esp], str.Too_many_heap_sections
call fcn.004020f0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test ebx, ebx
je 0x419398
mov eax, dword [0x42d80c]
add dword [0x42d7a0], 0x10000
lea edx, [eax + 1]
cmp dword [0x42d760], 2
mov dword [0x42d80c], edx
mov dword [eax*4 + 0x441974], ebx
je 0x4193c0
lea eax, [ebx + 0x10000]
mov dword [0x42d7c8], eax
lea eax, [ebx + 0x8000]
mov dword [0x42d7c0], eax
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov edx, dword [0x422180]
mov eax, 4
mov dword [esp], 0
test edx, edx
mov edx, 0x40
cmovne eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [0x42d758]
or ah, 0x30
cmp dword [0x42d754], 1
mov dword [esp + 8], eax
mov eax, 0x10000
adc eax, 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
test eax, 0xfff
je 0x41928f
mov dword [esp], str.Bad_VirtualAlloc_result
call fcn.004020f0
mov esi, dword [sym.imp.KERNEL32.dll_DebugBreak]
call esi
mov eax, dword [0x42d80c]
cmp eax, 0x1ff
jbe 0x4192ba
mov dword [esp], str.Too_many_heap_sections
call fcn.004020f0
call esi
mov eax, dword [0x42d80c]
jmp 0x4192ba
mov dword [esp + 4], 0x8000
mov dword [esp], str.GC_Warning:_Out_of_memory___trying_to_allocate_requested_amount___lu_bytes_..._n
call dword [0x422184]
add esp, 0x14
mov eax, 0x8000
pop ebx
pop esi
jmp fcn.00402f30
mov dword [esp + 4], 0x10000
mov dword [esp], str.Got__lu_bytes_from_OS_n
call fcn.00402d00
jmp 0x4192e1