joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024fb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.00402594
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x40258c
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 8], eax
je 0x402587
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, edi
mov dword [esi + 0xc], edx
je 0x40257e
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40257e
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x40258e
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402594
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x4025ec
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x4025f3
xor al, al
ret
cmp word [ecx], 0x5a4d
jne 0x4025f0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4025f0
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402616
lea edx, [eax + ecx]
jmp 0x402618
xor edx, edx
test edx, edx
je 0x4025f0
lea eax, [edx + 8]
test eax, eax
je 0x4025f0
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402647
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402647
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402649
xor eax, eax
test eax, eax
je 0x4025f0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x4026fe
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402721
test esi, esi
jl 0x402735
cmp esi, dword [edi + 0x10]
jge 0x402735
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x402706
lea esi, [edi + 0xc]
call fcn.00402046
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004011ca
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x402747
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40224
call fcn.00404440
mov eax, dword [0x406138]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x4021c], eax
lea eax, [ebp - 0x40220]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [ebx]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40285e
cmp dword [ebp - 0x40220], esi
jne 0x40285e
push 4
mov esi, 0x4051b0
lea eax, [ebp - 0x4010b]
pop edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4027bb
inc eax
inc esi
dec edi
jne 0x4027b0
movzx eax, byte [eax]
movzx ecx, byte [esi]
sub eax, ecx
jne 0x4027d5
mov eax, dword [ebp - 0x4021c]
mov byte [eax], 1
mov al, 1
jmp 0x402860
push 4
mov esi, str.ustar
lea eax, [ebp - 0x4010b]
pop edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4027ee
inc eax
inc esi
dec edi
jne 0x4027e3
movzx eax, byte [eax]
movzx ecx, byte [esi]
sub eax, ecx
jne 0x40285e
mov esi, dword [ebx + 4]
sub esi, 0x10
call fcn.0040229b
add eax, 0x10
mov dword [ebp - 0x40214], eax
mov eax, 0x4051c0
lea ecx, [ebp - 0x40214]
call fcn.00402974
lea eax, [ebp - 0x4020c]
lea ecx, [ebp - 0x40214]
call fcn.00402974
mov esi, dword [ebp - 0x40214]
xor eax, eax
push eax
push pe_nt_image_headers32
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4021c], eax
jne 0x402870
lea eax, [esi - 0x10]
call fcn.004011ca
xor al, al
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004010cd
leave
ret 4
lea edx, [ebp - 0x40190]
call fcn.00402b62
push 1
push 0
push 0
push dword [ebx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, edi
neg esi
and esi, 0x1ff
add eax, edi
add esi, eax
test edi, edi
jbe 0x40290b
mov eax, 0x40000
cmp edi, eax
mov dword [ebp - 0x40218], eax
jae 0x4028b2
mov dword [ebp - 0x40218], edi
push 0
lea eax, [ebp - 0x40220]
push eax
push dword [ebp - 0x40218]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402904
push 0
lea eax, [ebp - 0x40220]
push eax
push dword [ebp - 0x40218]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x4021c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402904
sub edi, dword [ebp - 0x40218]
jne 0x40289d
jmp 0x40290b
mov byte [ebp - 0x4020d], 0
push dword [ebp - 0x4021c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], 0
je 0x402949
cmp byte [ebx + 8], 0
je 0x402935
lea eax, [ebp - 0x40214]
push eax
lea edi, [ebx + 0xc]
call fcn.00401fc4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x402949
push dword [ebp - 0x40214]
push dword [ebx + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x40295b
push 0
push 0
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004011ca
mov al, byte [ebp - 0x4020d]
jmp 0x402860
Function at 0x4029cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [eax]
push edi
sub esi, 0x10
call fcn.0040229b
mov esi, eax
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x5c], ebx
call fcn.00402b1b
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x30], 0x81
mov word [ebp - 0x2c], 1
cmp dword [esi - 4], 1
jle 0x402a31
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0040233f
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004011ca
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], 1
je 0x402a8f
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x402a5a

Function at 0x403c1c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x406138]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00403b5b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00402b1b
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x403c6b
cmp dword [ebp - 0x1c], 5
jb 0x403c83
jmp 0x403c7f
cmp dword [ebp - 0x10], 1
jne 0x403c83
cmp dword [ebp - 0x1c], 4
ja 0x403c7f
jne 0x403c83
cmp dword [ebp - 0x18], 0
jbe 0x403c83
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40511c
call fcn.00403a0e
test eax, eax
jge 0x403ca4
mov byte [0x4061dc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004010cd
add ebp, 0x78
leave
ret
Function at 0x402e70
Capabilities:
Log keystrokes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00420131
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, eax
test esi, esi
je 0x402eb4
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
push 1
push edi
push ebx
call ebp
jmp 0x402ebc
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test esi, esi
je 0x402ed4
push 0
push edi
push ebx
call ebp
mov ecx, dword [esp + 0x10]
call fcn.004229f8
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x407b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea ebx, [esi + 4]
mov dword [esi], 0x42dfe4
mov edi, ebx
lea ebp, [esi + 0x108]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [esi + 0x20c]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x102
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push str.brpcfx.ini
push ecx
push 0x438128
push ebx
call edi
lea edx, [esp + 0x24]
push str.brpfx04a.ini
push edx
push 0x438128
push ebp
call edi
add esp, 0x20
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00408e10
mov ecx, dword [eax]
push str.brpfx04a.ini
push ecx
lea eax, [esi + 0x20c]
push str._s_s
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.0041f829
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x407c60
Capabilities:
Read .ini file

Disassembly:
add ecx, 0x108
push ecx
push 0
push str.NC8100H
push str.FAXDRIVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret
Function at 0x407d20
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov ecx, 0x64
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [edx + 0x20c]
push edi
push 0x1a
push esi
push 0x43a360
push str.StationIdName
push str.FaxLine
call ebx
push edi
lea eax, [esi + 0x1a]
push 0x41
push eax
push 0x43a360
push str.StationIdCompName
push str.FaxLine
call ebx
push edi
lea ecx, [esi + 0x5b]
push 0x41
push ecx
push 0x43a360
push str.StationIdDepName
push str.FaxLine
call ebx
push edi
lea edx, [esi + 0x9c]
push 0x1a
push edx
push 0x43a360
push str.StationIdTelNum
push str.FaxLine
call ebx
push edi
lea eax, [esi + 0xb6]
push 0x1a
push eax
push 0x43a360
push str.StationIdFaxNum
push str.FaxLine
call ebx
push edi
lea ecx, [esi + 0xd0]
push 0x41
push ecx
push 0x43a360
push str.StationIdEmail
push str.FaxLine
call ebx
push edi
lea edx, [esi + 0x111]
push 0x41
push edx
push 0x43a360
push str.StationIdAddress1
push str.FaxLine
call ebx
push edi
add esi, 0x152
push 0x41
push esi
push 0x43a360
push str.StationIdAddress2
push str.FaxLine
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x408560
Capabilities:
Get geographical location
Read .ini file

Disassembly:
add ecx, 0x108
push ecx
push 0
push str.Country
push str.FAXDRIVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x408580
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ebx, [edi + 0x108]
push ebx
push 0
push str.SpDrawMode
push str.CVP_STYLE
call ebp
mov esi, dword [esp + 0x14]
mov ecx, edi
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push str.CvpFont
push str.CVP_STYLE
call fcn.00408840
neg eax
lea ecx, [esi + 0x48]
sbb eax, eax
push ecx
inc eax
push str.HeaderFont
push str.FAXDRIVER
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00408840
neg eax
lea edx, [esi + 0x88]
mov ecx, edi
sbb eax, eax
push edx
inc eax
push str.UIFont
push str.FAXDRIVER
mov dword [esi + 0x44], eax
call fcn.00408840
neg eax
sbb eax, eax
lea ecx, [esi + 0xc4]
inc eax
mov dword [esi + 0x84], eax
lea eax, [edi + 4]
push eax
push 0x105
push ecx
push 0x43a360
push str.BookFileName
push str.PhoneBook
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 1
push str.ChkOutlook
push str.PhoneBook
call ebp
mov ecx, edi
mov dword [esi + 0x1cc], eax
call fcn.00408560
sub eax, 8
push ebx
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
and eax, 0xffff
push eax
push str.UseTitle
push str.PhoneBook
call ebp
mov word [esi + 0x1d0], ax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x408d20
Capabilities:
Create directory

Disassembly:
sub esp, 0x250
mov al, byte [0x43a360]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov ebp, dword [esp + 0x264]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
xor esi, esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x408de7
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, edi
jge 0x408d8b
lea edx, [esp + 0x1c]
lea eax, [esi + ebp]
sub edx, ebp
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x408d82
test esi, esi
jle 0x408d8b
cmp byte [esp + esi + 0x1b], 0x3a
jne 0x408d8b
mov byte [edx + eax], cl
inc esi
inc eax
cmp esi, edi
jl 0x408d70
lea ecx, [esp + 0x120]
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + esi + 0x24], 0
call ebx
cmp eax, 0xffffffff
jne 0x408dcc
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x408df9
jmp 0x408ddd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x120], 0x10
je 0x408df9
mov byte [esp + esi + 0x1c], 0x5c
inc esi
cmp esi, edi
jl 0x408d67
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x250
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret 4

Function at 0x408e10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b6f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x4383a4]
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x120], 1
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x408efd
lea edx, [esp + 0xc]
push edx
push 0x1a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x408ef3
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x408ee4
lea edx, [esp + 0x14]
push edi
push edx
lea ecx, [esp + 0xc]
call fcn.0041f9b2
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp byte [esp + ecx + 0x13], 0x5c
je 0x408ebc
push 0x4382bc
lea ecx, [esp + 8]
call fcn.0041fab7
push str.PC_FAX_TX
lea ecx, [esp + 8]
call fcn.0041fab7
push 0x4382bc
lea ecx, [esp + 8]
call fcn.0041fab7
mov eax, dword [esp + 4]
mov ecx, esi
push eax
call fcn.00408d20
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esp + 0x128]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0041f59e
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x120], 0
call fcn.0041f829
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 4
Function at 0x409a1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409a77
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x43a360
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409a6a
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x409a79
xor eax, eax
pop esi
leave
ret 4

Function at 0x4158dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x439900
cmp edx, dword [eax]
je 0x4158ff
add eax, 8
inc ecx
cmp eax, 0x439990
jl 0x4158f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x439900]
jne 0x415a2d
mov eax, dword [0x43c4c4]
cmp eax, 1
je 0x415a07
test eax, eax
jne 0x415930
cmp dword [0x4391e8], 1
je 0x415a07
cmp edx, 0xfc
je 0x415a2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415967
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004177b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416990
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4159aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416990
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43839c
push edi
call fcn.00414d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004177b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004177c0
lea eax, [ebp - 0xa0]
push 0x4380c8
push eax
call fcn.004177c0
push dword [esi + 0x439904]
lea eax, [ebp - 0xa0]
push eax
call fcn.004177c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004188e7
add esp, 0x2c
pop edi
jmp 0x415a2d
lea eax, [ebp + 8]
lea esi, [esi + 0x439904]
push 0
push eax
push dword [esi]
call fcn.00416990
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 0x41d6f0
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.00412d20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41d7bb
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 0x41d7bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d76e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d779
or bh, 8
and edi, 0x8000000
je 0x41d794
mov eax, dword [0x43dc5c]
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 0x41d7bb
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 0x41db90
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 0x41dbbb
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 0x41dbdf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41dbfa
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

Function at 0x420ae0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420b18
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041fb6d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041fb45
jmp 0x420b24
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x422088
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4220ca
call fcn.004279ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4220ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4220c1
xor eax, eax
jmp 0x4220d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004220d8
pop edi
pop esi
pop ebx
ret 4