joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434d08
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jbe 0x434de5
mov edi, dword [esp + 0x138]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x434dd6
mov ebx, dword [esp + 0x134]
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x18]
push eax
push ebx
push 0x10004
push 0x10003
push ebp
push ecx
call fcn.0043b977
push eax
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004354f0
test eax, eax
je 0x434dc4
mov eax, dword [ebx]
test eax, eax
je 0x434dc4
push eax
push ebp
push edi
mov ecx, esi
call fcn.00434e00
mov edi, eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x434daf
mov eax, dword [edi + 0x24]
test eax, eax
je 0x434daf
cmp dword [edi + 0x28], 1
jne 0x434daf
lea ebx, [eax + edi]
lea edx, [esp + 0x2c]
push ebx
push str.Name_of_device_is:__s_n
push edx
call fcn.0043ef3e
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
lea ecx, [esp + 0x18]
cmp ebx, ecx
je 0x434dc4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x434dc4
mov dword [esi + 4], ebp
mov dword [esp + 0x10], 1
jmp 0x434dcb
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi]
inc ebp
cmp ebp, eax
jb 0x434d23
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 8
mov eax, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 8

Function at 0x434e80
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.Kernel32.dll_OutputDebugStringA]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test esi, esi
je 0x434eb5
push esi
call dword [sym.imp.Kernel32.dll_LocalSize]
mov ebx, eax
test ebx, ebx
je 0x434ed6
cmp ebx, edi
jae 0x434eea
push str.Reallocating_structure_n
call ebp
push esi
call dword [sym.imp.Kernel32.dll_LocalFree]
push edi
push pe_nt_image_headers32
mov ebx, edi
call dword [sym.imp.Kernel32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x434eea
push str.LocalAlloc_failed_in_CheckAndReAllocBuffer._n
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push str.LocalSize_returned_0_in_CheckAndReAllocBuffer_n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x434f93
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 4]
push eax
push 0
push ecx
push 0
mov ecx, esi
call fcn.00434f10
test eax, eax
mov dword [esp + 0x10], eax
je 0x43504a
mov ebp, dword [esp + 0x1c]
mov ecx, esi
push ebp
push 0
call fcn.00435060
mov ebx, eax
test ebx, ebx
je 0x43504a
mov edx, dword [esi + 0x30]
push ebx
push 0
lea eax, [esi + 0x2c]
push ebp
push eax
push edx
call fcn.0043b80e
push eax
mov ecx, esi
call fcn.00435100
mov edi, eax
cmp edi, 1
je 0x434ffe
push edi
mov ecx, esi
call fcn.004354f0
test eax, eax
je 0x435022
test edi, edi
je 0x435005
jmp 0x434fcc
push str.While_Dialing__WaitForReply_aborted._n
jmp 0x435027
mov esi, dword [sym.imp.Kernel32.dll_LocalFree]
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
push str.lineMakeCall_unhandled_error_n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.Kernel32.dll_LocalFree]
push ebx
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push str.Dial_failed.
call fcn.0043f7f3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x435100
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [0x4aa4f4], 0
jle 0x4351b8
mov edi, dword [sym.imp.Kernel32.dll_GetTickCount]
mov dword [esi + 0x1c], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x80000048
call edi
mov ebx, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x43518f
push 1
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x43516d
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4351a5
mov eax, dword [0x4aa4f4]
test eax, eax
jne 0x4351a5
call edi
sub eax, ebx
cmp eax, 0x4e20
ja 0x4351a5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x435140
mov dword [0x4aa4f4], 1
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, 1
pop edi
pop esi
mov dword [0x4aa4f4], eax
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
mov dword [0x4aa4f4], 1
pop ebx
add esp, 0x1c
ret 4
Function at 0x4354f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
test eax, eax
jle 0x435501
xor eax, eax
pop esi
ret 4
cmp eax, 0x80000048
jg 0x43556b
je 0x43555a
add eax, 0x7ffffff2
cmp eax, 0x36
ja case.0x435520.2147483631
xor ecx, ecx
mov cl, byte [eax + 0x4355d0]
jmp dword [ecx*4 + 0x4355c0]
push str.The_values_in_the_INI_file_are_invalid._n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret 4
push str.There_is_a_problem_with_your_Telephony_device_driver._n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret 4
push str.Out_of_memory._Cancelling_action._n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret 4
push str.The_TAPI_operation_failed._n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret 4
cmp eax, 0x80000056
jg 0x4355af
je 0x43559e
cmp eax, 0x8000004b
je 0x43558d
cmp eax, 0x80000052
jne case.0x435520.2147483631
call fcn.00435710
mov eax, esi
pop esi
ret 4
push str.A_TAPI_resource_is_unavailable_at_this_time._n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret 4
push str.Remove_one_of_your_copies_of_your_Telephony_driver._n
call dword [sym.imp.Kernel32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret 4
test eax, eax
jne case.0x435520.2147483631
mov esi, 1
mov eax, esi
pop esi
ret 4

Function at 0x435610
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x14]
xor ebp, ebp
cmp eax, edi
jne 0x435706
cmp dword [esi + 0x20], edi
je 0x435706
mov ebx, dword [sym.imp.Kernel32.dll_OutputDebugStringA]
push str.Stopping_Call_in_progress_n
mov dword [esi + 0x14], 1
call ebx
cmp dword [esi + 0x2c], edi
je 0x4356bf
push 0x38
call fcn.004405ff
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x435668
mov ecx, esi
call fcn.00435710
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x2c]
push ebp
push eax
call fcn.0043aad2
test byte [ebp + 0xc], 1
jne 0x435692
mov ecx, dword [esi + 0x2c]
push edi
push edi
push ecx
call fcn.00439fdb
push eax
mov ecx, esi
call fcn.00435100
push str.Call_Dropped._n
call ebx
mov edx, dword [esi + 0x2c]
push edx
call fcn.00439e2e
mov edi, eax
mov ecx, esi
push edi
call fcn.004354f0
test eax, eax
je 0x4356af
test edi, edi
jne 0x435692
jmp 0x4356b6
push str.lineDeallocateCall_unhandled_error_n
call ebx
push str.Call_Deallocated._n
call ebx
xor edi, edi
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4356e6
push eax
call fcn.00439a16
push eax
mov ecx, esi
call fcn.004354f0
test eax, eax
jne 0x4356df
push str.lineClose_unhandled_error_n
call ebx
push str.Line_Closed._n
call ebx
cmp ebp, edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x14], edi
je 0x4356ff
push ebp
call fcn.004405b7
add esp, 4
push str.Call_stopped_n
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x436140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov edi, ecx
mov ebx, dword [edi + 8]
cmp ebx, eax
jae 0x436155
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00435b80
xor esi, esi
test ebx, ebx
jbe 0x436189
push ebp
mov ecx, dword [esp + 0x14]
push esi
call fcn.00435b20
push esi
mov ecx, edi
mov ebp, eax
call fcn.00435b20
xor ebp, eax
mov ecx, edi
push ebp
push esi
call fcn.00435be0
inc esi
cmp esi, ebx
jb 0x436164
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x436b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4856c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.00436700
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call fcn.00436310
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x10]
mov byte [esp + 0x28], 1
mov ecx, dword [esi]
mov edx, dword [edi]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push edx
call fcn.00436370
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x30]
xor eax, ecx
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push ecx
mov ecx, esi
call fcn.00436740
lea ecx, [esp + 0x10]
call fcn.00435b60
lea ecx, [esp + 8]
call fcn.004367b0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x436c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4856e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor esi, esi
push esi
lea ecx, [esp + 8]
mov dword [esp + 8], esi
call fcn.00436700
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], esi
call fcn.00436310
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x30]
push eax
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x30], 1
call fcn.00436370
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 4]
mov dword [esp + 8], ecx
push edx
mov ecx, esi
call fcn.00436740
lea ecx, [esp + 0xc]
call fcn.00435b60
lea ecx, [esp + 4]
call fcn.004367b0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4372f0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48584f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
call fcn.00436700
lea ebp, [esi + 8]
push 0
mov ecx, ebp
mov dword [esp + 0x30], 0
call fcn.00436700
push 0
lea ecx, [esi + 0x10]
mov byte [esp + 0x30], 1
call fcn.00436700
push 0
lea ecx, [esi + 0x18]
mov byte [esp + 0x30], 2
call fcn.00436700
lea edi, [esi + 0x24]
push 0
mov ecx, edi
mov byte [esp + 0x30], 3
call fcn.00436700
lea ebx, [esi + 0x2c]
push 0
mov ecx, ebx
mov byte [esp + 0x30], 4
call fcn.00436700
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
mov byte [esp + 0x30], 5
call fcn.00436760
push 1
lea ecx, [esp + 0x18]
mov dword [esi + 0x20], 0
call fcn.00436700
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00436760
lea ecx, [esp + 0x14]
call fcn.004367b0
mov edx, dword [esp + 0x34]
push edx
push edi
call fcn.00436550
add esp, 8
test eax, eax
je 0x4373d8
push edi
mov ecx, edi
call fcn.004368d0
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x34]
inc edx
push eax
push edi
mov dword [esi + 0x20], edx
call fcn.00436550
add esp, 8
test eax, eax
jne 0x4373b7
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00436aa0
push esi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x44], 6
call fcn.00437050
add esp, 0x18
mov ecx, ebx
push eax
call fcn.00436760
lea ecx, [esp + 0x14]
call fcn.004367b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 5
call fcn.004367b0
push edi
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00437050
push eax
lea ecx, [esp + 0x2c]
push edi
push ecx
mov byte [esp + 0x44], 7
call fcn.00436aa0
add esp, 0x18
mov ecx, ebp
push eax
call fcn.00436760
lea ecx, [esp + 0x1c]
call fcn.004367b0
lea ecx, [esp + 0x14]
call fcn.004367b0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x438b40
Capabilities:
Check os version
Get disk information

Disassembly:
sub esp, 0x374
push esi
call dword [sym.imp.Kernel32.dll_GetVersion]
cmp al, 6
jne 0x438b9c
push 0x4a69a0
push str.tmp_res_tmp.txt
call fcn.0043fb06
mov esi, eax
push str.rescan_nexit_n
push esi
call fcn.0043f0fe
push esi
call fcn.0043f91f
push str.diskpart.exe__tmp_res_tmp.txt__tmp_res_tmp_o_2_1
call fcn.0044068b
push str.tmp_res_tmp_o
call fcn.00456815
push str.tmp_res_tmp.txt
call fcn.00456815
add esp, 0x20
pop esi
add esp, 0x374
ret
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call fcn.0040f870
mov ebx, dword [sym.imp.Kernel32.dll_DeviceIoControl]
mov ebp, dword [sym.imp.Kernel32.dll_CloseHandle]
push edi
lea eax, [esp + 0x7c]
push str.Scsi_d:
push eax
call fcn.0043ef3e
lea ecx, [esp + 0x84]
lea edx, [esp + 0x188]
push ecx
push 0x4a692c
push edx
call fcn.0043ef3e
lea eax, [esp + 0x194]
push eax
call fcn.00438aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x438c1a
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x4101c
push esi
call ebx
push edi
push esi
call fcn.00438ae0
add esp, 8
push esi
call ebp
lea edx, [esp + 0x280]
push 0x104
lea eax, [esp + 0x7c]
push edx
push eax
inc edi
call dword [sym.imp.Kernel32.dll_QueryDosDeviceA]
test eax, eax
jne 0x438bb6
xor edi, edi
push edi
lea ecx, [esp + 0x18]
push str.DeviceHarddisk_dPartition0
push ecx
call fcn.0043ef3e
lea edx, [esp + 0x20]
push edx
call fcn.0040f990
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x438c98
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x70000
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x74818
push esi
call ebx
push esi
call fcn.0040fa30
add esp, 4
inc edi
cmp edi, 0x40
jl 0x438c3d
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x374
ret
Function at 0x438cb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3e8
mov dl, byte [0x4a94ac]
push ebx
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], dl
mov byte [esp + 0x68], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x69]
mov ebx, dword [esp + 0x400]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
jne 0x438cfd
lea ebx, [esp + 0x14]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.Kernel32.dll_GetStartupInfoA]
mov edx, dword [esp + 0x3fc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [esp + 0x50], 1
mov word [esp + 0x54], 6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x130]
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x4a494c
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x6c]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0043f630
add esp, 8
test eax, eax
je 0x438d92
lea ecx, [esp + 0x68]
push 0x4a494c
push ecx
call fcn.0043f630
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0x10]
lea eax, [esp + 0x1f8]
push edx
push eax
lea ecx, [esp + 0x70]
push 0x200
push ecx
call dword [sym.imp.Kernel32.dll_GetFullPathNameA]
lea edx, [esp + 0x1f8]
push 0x5c
push edx
call fcn.00440590
add esp, 8
test eax, eax
je 0x438dda
lea eax, [esp + 0x1f8]
push 0x5c
push eax
call fcn.00440590
add esp, 8
mov byte [eax], 0
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x1fc]
push ecx
push edx
push 0
push 0x200
push 1
push 0
lea eax, [esp + 0x14c]
push 0
push eax
push 0
call dword [sym.imp.Kernel32.dll_CreateProcessA]
mov ebp, eax
test ebp, ebp
jne 0x438e22
mov ecx, dword [esp + 0x3fc]
push ecx
push str.err:_s_n
call fcn.0043f7f3
add esp, 8
jmp 0x438e88
mov edx, dword [ebx]
mov esi, dword [sym.imp.Kernel32.dll_GetPriorityClass]
push edx
call esi
mov edi, dword [sym.imp.Kernel32.dll_Sleep]
test eax, eax
jne 0x438e47
push 0x3e8
call edi
mov eax, dword [ebx]
push eax
call esi
test eax, eax
je 0x438e37
push 0x1770
call edi
push str.kill_windisk
call fcn.0044068b
push str.kill_windisk
call fcn.0044068b
push str.kill_windisk
call fcn.0044068b
lea ecx, [esp + 0x20]
add esp, 0xc
cmp ebx, ecx
jne 0x438e88
mov edx, dword [ebx + 4]
mov esi, dword [sym.imp.Kernel32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebx]
push eax
call esi
lea ecx, [esp + 0x3fc]
call fcn.00462276
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x3e8
ret
Function at 0x448848
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.Kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x448868
call dword [sym.imp.Kernel32.dll_GetLastError]
push eax
call fcn.00442f22
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x44888b
test byte [esp + 8], 2
je 0x44888b
call fcn.00442f95
mov dword [eax], 0xd
call fcn.00442f9e
mov dword [eax], 5
jmp 0x448864
xor eax, eax
ret

Function at 0x44904d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4a83d8
cmp edx, dword [eax]
je 0x44906f
add eax, 8
inc ecx
cmp eax, 0x4a8468
jl 0x449060
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4a83d8]
jne 0x44919d
mov eax, dword [0x4ac9ac]
cmp eax, 1
je 0x449177
test eax, eax
jne 0x4490a0
cmp dword [0x4a7b54], 1
je 0x449177
cmp edx, 0xfc
je 0x44919d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.Kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4490d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00449a50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004458c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44911a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004458c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x492d78
push edi
call fcn.0044acb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00449a50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00449a60
lea eax, [ebp - 0xa0]
push 0x492d58
push eax
call fcn.00449a60
push dword [esi + 0x4a83dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00449a60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044c7ff
add esp, 0x2c
pop edi
jmp 0x44919d
lea eax, [ebp + 8]
lea esi, [esi + 0x4a83dc]
push 0
push eax
push dword [esi]
call fcn.004458c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.Kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.Kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4559d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00440560
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x455a9b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x455a9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x455a4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x455a59
or bh, 8
and edi, 0x8000000
je 0x455a74
mov eax, dword [0x4ae5fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x455a9b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.Kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x455e9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.Kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.Kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x455ebf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push pe_nt_image_headers32
call dword [sym.imp.Kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x455eda
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.Kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20