joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
mov eax, dword [0x55d09c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
add esp, 0x1c
ret
Function at 0x408410
Capabilities:
Get common file path

Disassembly:
push ebp
xor eax, eax
push edi
push esi
mov esi, ecx
mov ecx, 0x103
push ebx
sub esp, 0x87c
lea edi, [esp + 0x464]
mov ebx, dword [esp + 0x890]
mov dword [esp + 0x45e], 0
mov dword [esp + 0x462], 0
mov dword [esp + 0x86c], 0
rep stosd dword es:[edi], eax
mov dword [esp + 4], str.http:__
mov dword [esp], ebx
call sym._wcsstr
test eax, eax
je 0x408610
lea edi, [esp + 0x45e]
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._lstrcpyW_8
sub esp, 8
lea ebx, [esp + 0x4c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._lstrcpyW_8
sub esp, 8
lea eax, [esp + 0x40]
mov dword [esp + 0x10], 0x508eac
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._OleLoadPicturePath_24
sub esp, 0x18
test eax, eax
js 0x408660
mov dword [esp], 0
mov edi, dword [esp + 0x40]
call sym._GetDC_4
mov ebx, eax
sub esp, 4
mov eax, dword [edi]
lea ecx, [esp + 0x44]
mov dword [esp], edi
mov dword [esp + 4], ecx
call dword [eax + 0x18]
mov eax, dword [edi]
sub esp, 8
lea ecx, [esp + 0x48]
mov dword [esp], edi
mov dword [esp + 4], ecx
call dword [eax + 0x1c]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], 0x58
call sym._GetDeviceCaps_8
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], 0x9ec
mov dword [esp], eax
call sym._MulDiv_12
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], 0x5a
mov dword [esp + 0x3c], eax
call sym._GetDeviceCaps_8
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0x9ec
mov dword [esp], eax
call sym._MulDiv_12
sub esp, 0xc
mov ebp, eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._ReleaseDC_8
mov ecx, esi
sub esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call method.ege::IMAGE.resize_f_int__int_
mov ecx, dword [edi]
sub esp, 8
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [esp + 0x3c]
neg ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [ecx + 0x20]
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
xor eax, eax
sub esp, 4
add esp, 0x87c
pop ebx
pop esi
pop edi
pop ebp
ret 4
cmp word [ebx + 2], 0x3a
je 0x40846c
lea edi, [esp + 0x45e]
mov dword [esp], 0x208
mov dword [esp + 4], edi
call sym._GetCurrentDirectoryW_8
sub esp, 8
mov dword [esp + 4], 0x5022ac
mov dword [esp], edi
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._lstrcatW_8
sub esp, 8
jmp 0x408482
mov eax, 0xfffffff4
jmp 0x4085fc
Function at 0x408f60
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, 0xfffffff4
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
lea esi, [esp + 0x20]
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebp
mov dword [esp], esi
call sym._fread
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._png_sig_cmp
test eax, eax
jne 0x409048
mov dword [esp + 8], 0
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym._fseek
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x50235e
call sym._png_create_read_struct
mov dword [esp + 0x1c], eax
test eax, eax
je 0x409054
mov dword [esp], eax
call sym._png_create_info_struct
mov dword [esp + 0x20], eax
test eax, eax
je 0x40905b
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym._png_init_io
mov eax, dword [esp + 0x20]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call method.ege.getimage_from_png_struct_ege::IMAGE__void__void_
lea eax, [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._png_destroy_read_struct
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ebx, 0x15
jmp 0x409048
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov ebx, 0x15
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._png_destroy_read_struct
jmp 0x409048
Function at 0x4213d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [0x55d52c]
or eax, dword [0x55d528]
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x2c], 0
jne 0x4214e0
call sym._GetCurrentThread_0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._SetThreadAffinityMask_8
sub esp, 8
mov dword [esp], 0x55d528
call sym._QueryPerformanceCounter_4
sub esp, 4
mov dword [esp], 0x565630
call sym._QueryPerformanceFrequency_4
sub esp, 4
fldz
cmp ebx, 0x100
je 0x421523
cmp ebx, 0xffffff00
je 0x421530
fld qword [0x565610]
fsubr st(1)
fld dword [0x502608]
fxch st(1)
fcom st(1)
fnstsw ax
fstp st(1)
sahf
jb 0x4214b8
fld dword [0x565604]
mov eax, dword [0x56561c]
sub eax, dword [0x565618]
mov dword [0x565618], 0
mov dword [esp + 0x18], eax
fstp dword [0x565608]
fild dword [0x56561c]
mov dword [0x56561c], 0
fdiv st(1)
fstp dword [0x565604]
fild dword [esp + 0x18]
fdivrp st(1)
fstp dword [0x565600]
fstp qword [0x565610]
jmp 0x4214bc
fstp st(0)
fstp st(0)
fld dword [0x565600]
test ebx, ebx
jle 0x4214da
fstp st(0)
fld dword [0x565604]
fadd dword [0x565608]
fmul dword [0x502608]
add esp, 0x38
pop ebx
ret
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym._QueryPerformanceCounter_4
sub esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, dword [0x55d528]
sbb edx, dword [0x55d52c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
fild qword [0x565630]
fdivp st(1)
cmp ebx, 0x100
jne 0x42143d
add dword [0x56561c], 1
jmp 0x421449
add dword [0x56561c], 1
add dword [0x565618], 1
jmp 0x421449
Function at 0x42dec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
movzx eax, byte [esi + 9]
cmp al, 7
ja 0x42defa
mov edi, dword [esi]
cmp al, 2
je 0x42df00
cmp al, 4
je 0x42dfa8
cmp al, 1
je 0x42df58
movzx eax, byte [esi + 0xa]
mov byte [esi + 9], 8
imul edi, eax
lea edx, [eax*8]
mov byte [esi + 0xb], dl
mov dword [esi + 4], edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [edi - 1]
lea ecx, [edi + edi + 6]
mov ebp, edx
xor ecx, 0xfffffffe
add edx, dword [esp + 0x18]
shr ebp, 2
and ecx, 6
add ebp, dword [esp + 0x18]
test edi, edi
je 0x42dee2
mov eax, dword [esp + 0x18]
lea ebx, [eax - 1]
jmp 0x42df3a
add ecx, 2
sub edx, 1
cmp ebx, edx
je 0x42dee2
movzx eax, byte [ebp]
sar eax, cl
and eax, 3
mov byte [edx], al
cmp ecx, 6
jne 0x42df30
sub ebp, 1
xor ecx, ecx
jmp 0x42df33
lea edx, [edi - 1]
mov eax, dword [esp + 0x18]
lea ecx, [edi + 7]
mov ebp, edx
not ecx
add edx, dword [esp + 0x18]
shr ebp, 3
and ecx, 7
lea ebx, [eax - 1]
add ebp, dword [esp + 0x18]
test edi, edi
jne 0x42df8e
jmp 0x42dee2
add ecx, 1
sub edx, 1
cmp edx, ebx
je 0x42dee2
movzx eax, byte [ebp]
sar eax, cl
and eax, 1
mov byte [edx], al
cmp ecx, 7
jne 0x42df80
sub ebp, 1
xor ecx, ecx
jmp 0x42df83
lea ebx, [edi - 1]
mov ecx, edi
mov ebp, ebx
and ecx, 1
add ebx, dword [esp + 0x18]
shr ebp, 1
shl ecx, 2
add ebp, dword [esp + 0x18]
test edi, edi
je 0x42dee2
mov eax, dword [esp + 0x18]
lea edx, [eax - 1]
jmp 0x42dfe0
mov ecx, 4
sub ebx, 1
cmp edx, ebx
je 0x42dee2
movzx eax, byte [ebp]
sar eax, cl
and eax, 0xf
mov byte [ebx], al
cmp ecx, 4
jne 0x42dfd0
sub ebp, 1
xor ecx, ecx
jmp 0x42dfd5
Function at 0x455270
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x5656c8
call sym._EnterCriticalSection_4
mov ebx, dword [0x5656c0]
sub esp, 4
test ebx, ebx
je 0x4552bb
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 0x4552b4
test esi, esi
je 0x4552b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x455290
mov dword [esp], 0x5656c8
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4554a0
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
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
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 0x4554f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4555c4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x45552e
cmp eax, 4
jne 0x455550
test esi, esi
je 0x455542
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x455534
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x45558f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x455581
cmp ecx, 0x40
je 0x455542
cmp ecx, 4
je 0x455542
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
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.004554a0
lea esi, [esi]
Function at 0x45ef40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x45f014
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00460e90
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x50ce64
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x45f020
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x45f010
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x45f010
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x45f060
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x45efd2
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x45efd2
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x45efd2
mov eax, esi
jmp 0x45efd2
mov esp, ebx
jmp 0x45f014

Function at 0x461210
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x461240
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 sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x461268
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x465450
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x5660e4], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x5660e8], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x4654b8
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x5660e0], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x4654a8
Function at 0x4654c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x5656ac]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x4654e8
mov eax, dword [esi + 8]
test eax, eax
je 0x465540
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x465550
mov ebx, dword [0x5660e0]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x4655e0
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x465630
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x4654dc
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x4654dc
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x4654dc
mov edi, dword [0x5656ac]
test edi, edi
je 0x4656b8
mov ebx, dword [0x4ffd84]
test ebx, ebx
je 0x465688
mov dword [esp], 0x5660e4
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x4656fb
mov edi, dword [esi + 8]
test edi, edi
je 0x4656c3
mov eax, dword [0x5656ac]
test eax, eax
je 0x4654ef
mov dword [esp], 0x5660e4
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x4654ef
mov eax, dword [0x5660e8]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x4654ef
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x5660e0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x465526
call sym._GetLastError_0
jmp 0x465526
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x46563b
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym.___mingw_realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x465602
mov dword [esp], 0x4ffd88
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x4656ef
call sym._emutls_init
mov dword [0x4ffd84], 1
mov edx, dword [0x5656ac]
test edx, edx
jne 0x46556c
mov edi, dword [esi + 8]
test edi, edi
jne 0x4654ef
mov eax, dword [0x5660dc]
lea edi, [eax + 1]
mov dword [0x5660dc], edi
mov dword [esi + 8], edi
jmp 0x46558e
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x4ffd84]
test ecx, ecx
je 0x4656e0
jmp 0x4656aa
mov eax, dword [0x5660e8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x465583
mov dword [esp], 0x5660e4
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x465583
Function at 0x465ef0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, eax
push ebx
sub esp, 0x2e4
mov dword [esp], eax
call sym._SuspendThread_4
sub esp, 4
mov ebx, eax
cmp eax, 0xffffffff
je 0x465f3b
lea eax, [esp + 0x14]
mov dword [esp], esi
mov ebx, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 0x14], 0x10003
call sym._GetThreadContext_8
sub esp, 8
test eax, eax
jne 0x465f50
mov dword [esp], esi
call sym._ResumeThread_4
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
mov ebx, dword [esp + 0xcc]
jmp 0x465f30

Function at 0x465fb0
Capabilities:
Create thread
Terminate thread

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x40]
cmp esi, 0x10000
ja 0x466148
mov eax, dword [ebx + 4]
test eax, eax
je 0x465ff2
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateThread_8
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x466003
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
xor eax, eax
test esi, esi
jne 0x466010
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x48]
mov dword [esp + 4], 0
xor edi, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sym._memset
lea ecx, [ebx + 4]
mov edx, ebx
mov dword [ebx], 0
and ecx, 0xfffffffc
mov dword [ebx + 0x14], 0
xor eax, eax
sub edx, ecx
add edx, 0x18
and edx, 0xfffffffc
mov dword [ecx + eax], edi
add eax, 4
cmp eax, edx
jb 0x46604d
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [0x5660f8], eax
mov eax, dword [esp + 0x4c]
mov dword [0x5660fc], eax
mov eax, dword [esp + 0x48]
shr eax, 1
shld edx, eax, 0x10
shl eax, 0x10
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.__udivdi3
mov edi, dword [esp + 0x4c]
mov dword [0x566104], esi
lea eax, [edi + eax*2]
mov dword [0x566100], eax
call sym._GetCurrentProcess_0
mov edi, eax
call sym._GetCurrentThread_0
mov esi, eax
call sym._GetCurrentProcess_0
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._DuplicateHandle_28
sub esp, 0x1c
test eax, eax
je 0x46615d
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x465f60
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebx + 4], eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call sym._SetThreadPriority_8
mov edx, dword [ebx + 4]
sub esp, 8
test edx, edx
je 0x466172
add esp, 0x30
xor eax, eax
pop ebx
pop esi
pop edi
ret
call sym.__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x466009
call sym.__errno
mov dword [eax], 3
mov eax, 0xffffffff
jmp 0x466009
mov eax, dword [ebx]
mov dword [esp], eax
call sym._CloseHandle_4
push eax
mov dword [ebx], 0
call sym.__errno
mov dword [eax], 0xb
or eax, 0xffffffff
jmp 0x466009
Function at 0x46b0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x50183c], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x50183c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4f4556
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x46b1a8
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x50a6cd
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4f4551
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x4f4551
mov dword [esp], ebx
call sym._fputs
jmp 0x46b16c
Function at 0x401560
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.Stack_now
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp ebx, esi
ja 0x4015bb
movsx eax, word [ebx]
add ebx, 2
mov dword [esp + 4], 0x4c104a
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp esi, ebx
jae 0x401595
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x417920
Capabilities:
Write file on windows

Disassembly:
push edi
xor eax, eax
push esi
mov esi, 0x4be0c0
push ebx
sub esp, 0x10
mov ebx, dword [0x4be0c0]
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x417980
nop
lea esi, [esi]
mov edx, dword [ebx + 0x54]
test edx, edx
je 0x41796b
mov eax, dword [ebx + 0x28]
mov dword [esp + 4], str._s:__n
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx + 0x54]
mov dword [esp], edi
call eax
mov eax, 1
add esi, 4
mov ebx, dword [esi]
test ebx, ebx
jne 0x417940
test eax, eax
je 0x417980
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp], str.__no_emulation_specific_options._n
call sub.msvcrt.dll_fwrite
add esp, 0x10
pop ebx
pop esi
pop edi
ret