joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008370
Capabilities:
Initialize winsock library

Disassembly:
lea ecx, [esi + 0x10]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push ebx
mov dword [ecx + 0x10], eax
xor ebx, ebx
mov dword [ecx + 0x14], eax
call fcn.1000e2f0
cmp eax, ebx
jge 0x10008398
push eax
call fcn.10003510
lea ecx, [esi + 0x28]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.1000e2f0
cmp eax, ebx
jge 0x100083bd
push eax
call fcn.10003510
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], 0xffffffff
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x10054208], ebx
je 0x100083fa
push 0x10054078
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x10054208], eax
mov eax, esi
pop ebx
ret

Function at 0x10008550
Capabilities:
Connect socket

Disassembly:
sub esp, 0x2c
cmp byte [esi + 0x44], 0
je 0x1000855f
mov al, 1
add esp, 0x2c
ret
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
push ebx
mov bl, 1
jne 0x10008571
xor al, al
pop ebx
add esp, 0x2c
ret
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x100085d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100085ce
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100085d1
push 0x2c
push eax
lea edx, [esp + 0xc]
push edx
call fcn.1002fe50
mov ecx, dword [esi + 0x40]
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100085d3
mov dword [esi + 0x48], eax
xor bl, bl
mov byte [esi + 0x44], bl
mov al, bl
pop ebx
add esp, 0x2c
ret
Function at 0x100085e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push ecx
call ebx
test eax, eax
je 0x10008608
mov dword [esi + 0x48], 0x2749
xor al, al
pop ebx
add esp, 0x14
ret 8
mov edx, dword [esi + 8]
push 0
push edx
call ebx
cmp eax, 0x102
jne 0x10008627
mov dword [esi + 0x48], 0x2734
xor al, al
pop ebx
add esp, 0x14
ret 8
push ebp
lea ebp, [esi + 0x28]
push ebp
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x40]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x10008675
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x100086bb
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call ebx
test eax, eax
jne 0x100086be
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0
push edi
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x100086b5
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
Function at 0x100086e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push eax
push ecx
call ebx
test eax, eax
je 0x1000870a
mov dword [esi + 0x48], 0x2749
xor al, al
pop ebp
pop ebx
add esp, 0x20
ret 4
mov edx, dword [esi + 4]
push 0
push edx
call ebx
cmp eax, 0x80
jne 0x1000872a
mov dword [esi + 0x48], 0x2734
xor al, al
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
xor eax, eax
lea ebp, [esi + 0x10]
push ebp
mov dword [esp + 0x10], ecx
mov dword [edi], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
push edi
push 1
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x100087a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x100087e9
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call ebx
test eax, eax
jne 0x100087ec
mov ecx, dword [esi + 0x40]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x100087e3
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret 4
Function at 0x1000e0f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000e107
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000e138
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1000e134
cmp esi, eax
jae 0x1000e138
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x1000e124
cmp esi, eax
jb 0x1000e13e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x1000f300
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10046702
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10052084]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x1004a72c
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.1000f620
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.1000fd80
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x10067cb4]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x2c]
push 0x22
mov byte [esp + 0x24], 2
call fcn.1000f6f0
test eax, eax
jne 0x1000f3f8
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x1000f3f1
or eax, 4
push ebx
push eax
call fcn.10010ce0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x1000fd80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10045c6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10052084]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1001c2d8
push 4
mov dword [esp + 0x20], 0
call fcn.1002b565
mov edi, eax
add esp, 4
test edi, edi
je 0x1000fe00
call fcn.10019505
mov dword [edi], eax
call fcn.100193db
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.1001c2a5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1000fdf5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.1001c2c6
jmp 0x1000fe02
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x10011160
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1001122a
push 0x94
mov edi, 1
call fcn.1002b70b
mov esi, eax
add esp, 4
test esi, esi
je 0x1001129d
push 0x94
push 0
push esi
call fcn.1002fe50
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x100111c5
push esi
lea edi, [eax + 1]
call fcn.1002ba62
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x1001120a
cmp dword [esi + 8], 0
jne 0x100111e1
push esi
lea edi, [eax + 1]
call fcn.1002ba62
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x1001120a
cmp dword [esi + 8], edi
jne 0x100111fc
push esi
lea edi, [eax + 2]
call fcn.1002ba62
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x1001120a
cmp dword [esi + 8], 2
jne 0x1001120a
lea edi, [eax + 3]
cmp eax, 6
jne 0x10011294
cmp dword [esi + 8], 0
jne 0x10011294
push esi
lea edi, [eax + 3]
call fcn.1002ba62
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x10011233
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.1002b70b
mov esi, eax
add esp, 4
test esi, esi
je 0x1001129d
push 0x94
push 0
push esi
call fcn.1002fe50
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x10011294
cmp dword [esi + 8], 0xa
jne 0x10011287
push esi
lea edi, [eax - 1]
call fcn.1002ba62
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x10011294
cmp dword [esi + 8], 0x5a
jne 0x10011294
mov edi, eax
push esi
call fcn.1002ba62
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x10012b10
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x24]
push ebx
push ebp
mov ebp, dword [esi + 0x268]
push edi
mov edi, dword [esi + 0x44]
cmp edi, 0x2710
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], ecx
jge 0x10012b4c
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebp
push edi
push edx
push eax
mov eax, ecx
jmp 0x10012c18
lea ecx, [edi + 0x22]
test cl, 1
je 0x10012b57
add ecx, 1
add ecx, edx
cmp eax, 1
jge 0x10012b65
mov eax, 1
jmp 0x10012b6f
cmp eax, 0x64
jle 0x10012b6f
mov eax, 0x64
lea edx, [eax - 1]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
imul ebx, edi
push ebp
push edi
push edx
mov edx, dword [esi + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.10012410
add esp, 0x14
cmp ebp, 3
jl 0x10012be8
test edi, edi
mov dword [esp + 0x10], 1
je 0x10012bba
mov dword [esp + 0x10], edi
sub ebx, dword [esp + 0xc]
sub esp, 8
mov dword [esp + 0x24], ebx
fild dword [esp + 0x24]
fidiv dword [esp + 0x18]
fstp qword [esp]
push edi
push ebx
push str._______d_work___d_block__ratio__5.2f_n
call fcn.1002f561
add eax, 0x40
push eax
call fcn.1002f702
add esp, 0x18
cmp dword [esp + 0xc], 0
jge 0x10012c20
cmp ebp, 2
jl 0x10012c0a
push str.____too_repetitive__using_fallback_sorting_algorithm_n
call fcn.1002f561
add eax, 0x40
push eax
call fcn.1002f702
add esp, 8
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
push ebp
push edi
push ecx
push edx
call fcn.10011630
add esp, 0x10
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x44], eax
mov dword [esi + 0x1c], ecx
jle 0x10012c44
mov edx, dword [esp + 0x18]
cmp dword [edx + eax*4], 0
je 0x10012c41
add eax, 1
cmp eax, dword [esi + 0x44]
jl 0x10012c31
jmp 0x10012c44
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], ecx
jne 0x10012c70
push str.1.0.4__20_Dec_2006
push 0x3eb
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__15_February_2005._n_n
call fcn.1002f561
add eax, 0x40
push eax
call fcn.1002f702
add esp, 0x10
push 3
call fcn.1002fae1
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10012ec0
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [eax + 0x34]
push ebx
push esi
xor esi, esi
cmp dword [eax + 0x38], esi
lea ebx, [esi + 1]
jle 0x10012efa
push ebp
push edi
movzx edi, dl
mov ecx, dword [eax + 0x260]
mov ebp, ecx
shr ebp, 0x18
xor ebp, edi
shl ecx, 8
xor ecx, dword [ebp*4 + 0x100537c0]
add esi, ebx
mov dword [eax + 0x260], ecx
cmp esi, dword [eax + 0x38]
jl 0x10012ed4
pop edi
pop ebp
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x10012f82
sub ecx, ebx
je 0x10012f67
sub ecx, ebx
je 0x10012f5b
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
ret
Function at 0x1002b34a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10052084]
jne 0x1002b354
repz ret
jmp fcn.10035fb6

Function at 0x1003855a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10052248]
je 0x10038575
inc edi
cmp edi, 0x17
jb 0x10038566
cmp edi, 0x17
jae 0x100386f5
push ebp
push 3
call fcn.1003fe8c
cmp eax, 1
pop ecx
je 0x100386c1
push 3
call fcn.1003fe8c
test eax, eax
pop ecx
jne 0x100385a9
cmp dword [0x10054680], 1
je 0x100386c1
cmp ebx, 0xfc
je 0x100386f4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10054b48
push ebp
call fcn.1002dbee
add esp, 0xc
test eax, eax
je 0x100385df
push esi
push esi
push esi
push esi
push esi
call fcn.1002e518
add esp, 0x14
push 0x104
mov esi, 0x10054b61
push esi
push 0
mov byte [0x10054c65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10038623
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1002dbee
add esp, 0xc
test eax, eax
je 0x10038623
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1002e518
add esp, 0x14
push esi
call fcn.100300d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10038668
push esi
call fcn.100300d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10054e5c
push 0x10048ec4
sub ecx, eax
push ecx
push eax
call fcn.1002dc53
add esp, 0x14
test eax, eax
je 0x10038668
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1002e518
add esp, 0x14
jmp 0x1003866a
xor esi, esi
push 0x10048ec0
push ebx
push ebp
call fcn.1002eb6a
add esp, 0xc
test eax, eax
je 0x1003868a
push esi
push esi
push esi
push esi
push esi
call fcn.1002e518
add esp, 0x14
push dword [edi*8 + 0x1005224c]
push ebx
push ebp
call fcn.1002eb6a
add esp, 0xc
test eax, eax
je 0x100386ac
push esi
push esi
push esi
push esi
push esi
call fcn.1002e518
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1003fccf
add esp, 0xc
jmp 0x100386f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100386f4
cmp ebp, 0xffffffff
je 0x100386f4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1005224c]
push dword [esi]
call fcn.100300d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1003fccf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10036194
xor ebx, ebx
cmp dword [0x100550dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1003fda5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003fe85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10049fb8
push edi
call esi
cmp eax, ebx
je 0x1003fe85
push eax
call fcn.10036126
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100550dc], eax
call esi
push eax
call fcn.10036126
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100550e0], eax
call esi
push eax
call fcn.10036126
mov dword [0x100550e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002f8fa
test eax, eax
pop ecx
pop ecx
je 0x1003fd73
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002e518
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1003fda5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10036126
cmp eax, ebx
pop ecx
mov dword [0x100550ec], eax
je 0x1003fda5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10036126
pop ecx
mov dword [0x100550e8], eax
mov eax, dword [0x100550e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1003fe2a
cmp dword [0x100550ec], ecx
je 0x1003fe2a
push eax
call fcn.1003619d
push dword [0x100550ec]
mov esi, eax
call fcn.1003619d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1003fe2a
cmp edi, ebx
je 0x1003fe2a
call esi
cmp eax, ebx
je 0x1003fdf7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1003fdf7
test byte [ebp - 0x18], 1
jne 0x1003fe2a
lea eax, [ebp - 0x10]
push eax
call fcn.1002f931
test eax, eax
pop ecx
je 0x1003fe12
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002e518
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1003fe21
or dword [ebp + 0x10], 0x200000
jmp 0x1003fe65
or dword [ebp + 0x10], 0x40000
jmp 0x1003fe65
mov eax, dword [0x100550e0]
cmp eax, dword [ebp - 8]
je 0x1003fe65
push eax
call fcn.1003619d
cmp eax, ebx
pop ecx
je 0x1003fe65
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1003fe65
mov eax, dword [0x100550e4]
cmp eax, dword [ebp - 8]
je 0x1003fe65
push eax
call fcn.1003619d
cmp eax, ebx
pop ecx
je 0x1003fe65
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100550dc]
call fcn.1003619d
cmp eax, ebx
pop ecx
je 0x1003fe85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1003fe87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [str.V_we], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.tascraft
push str.bamed
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401e98
xor eax, eax
jmp 0x401eb3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0xb8], eax
push 0x4040a4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401000
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401e50
add esp, 8
test eax, eax
jne 0x402638
xor eax, eax
jmp 0x402696
push 0
push 0
push 0
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40268a
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x402688
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402638
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp - 0xa8]
mov esp, ebp
pop ebp
ret 0x10