joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00418116

Function at 0x40dbbf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40dc06
call fcn.0041d342
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dc06
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40dc22
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d737
mov esi, eax
test edi, edi
je 0x40dc20
test ebx, ebx
je 0x40dc20
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f658
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44f968
call fcn.0043dae9
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f67d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40f6c3
lea ecx, [ebp - 0x10]
call fcn.0040682f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e04f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004044f9
mov eax, esi
call fcn.0043dbc1
ret 8

Function at 0x412f68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041d342
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x412f95
xor eax, eax
jmp 0x41303b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x412f8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x412f8e
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040355f
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x412fec
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x412fdb
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00411c7a
push edi
mov ebx, eax
call fcn.00403599
pop ecx
test ebx, ebx
je 0x41302e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0041231b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004123cf
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x416685
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4166cd
call fcn.0041d342
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4166cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x416710
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4166f9
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4166f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41670d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41807f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041d342
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4180b8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00417ccb
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x418116
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41813a
cmp dword [edi + 0x54], 0
jne 0x41813a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041d342
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004180d7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4378f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x450f0b
call fcn.0043dae9
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d561
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x437953
call fcn.0041cc1c
cmp eax, 1
jne 0x437953
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00415ab1
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ec8c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004044f9
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004044f9
mov eax, esi
call fcn.0043dbc1
ret 0x10

Function at 0x43797c
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x450f0b
call fcn.0043dae9
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d561
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4379de
call fcn.0041cc1c
cmp eax, 1
jne 0x4379de
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00415ab1
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040ec8c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004044f9
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004044f9
mov eax, esi
call fcn.0043dbc1
ret 0x14

Function at 0x43b25c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469bb0]
jne 0x43b266
repz ret
jmp fcn.00440873
Function at 0x449122
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00440282
and dword [ebp - 4], 0
cmp dword [0x46fd38], 0
mov ebx, eax
jne 0x4491d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x449284
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x449284
push eax
call fcn.00440210
mov dword [esp], 0x45a8f4
push edi
mov dword [0x46fd38], eax
call esi
push eax
call fcn.00440210
mov dword [esp], 0x45a8e0
push edi
mov dword [0x46fd3c], eax
call esi
push eax
call fcn.00440210
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46fd40], eax
call esi
push eax
call fcn.00440210
pop ecx
mov dword [0x46fd48], eax
test eax, eax
je 0x4491d3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440210
pop ecx
mov dword [0x46fd44], eax
mov eax, dword [0x46fd44]
cmp eax, ebx
je 0x44922b
cmp dword [0x46fd48], ebx
je 0x44922b
push eax
call fcn.0044028b
push dword [0x46fd48]
mov esi, eax
call fcn.0044028b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44922b
test edi, edi
je 0x44922b
call esi
test eax, eax
je 0x449222
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x449222
test byte [ebp - 0xc], 1
jne 0x44922b
or dword [ebp + 0x10], 0x200000
jmp 0x449264
mov eax, dword [0x46fd3c]
cmp eax, ebx
je 0x449264
push eax
call fcn.0044028b
pop ecx
test eax, eax
je 0x449264
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x449264
mov eax, dword [0x46fd40]
cmp eax, ebx
je 0x449264
push eax
call fcn.0044028b
pop ecx
test eax, eax
je 0x449264
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46fd38]
call fcn.0044028b
pop ecx
test eax, eax
je 0x449284
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x449286
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401889
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4018c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4018c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4018c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4018b0
cmp esi, eax
jb 0x4018ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4035c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041a5f3

Function at 0x403830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x587770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, esi
push edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403850
sub eax, edx
test esi, esi
je 0x403898
test eax, eax
jle 0x403898
mov ecx, dword [0x5893c4]
cmp ecx, 0xffffffff
je 0x403898
push 0
lea edx, [ebp - 8]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403898
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_buffer_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [edx]
push 0x7f
push ecx
push eax
mov eax, 0x1388
call fcn.0040af10
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038c0
sub eax, edx
inc eax
call fcn.005106b0
mov ebx, esp
mov edi, ebx
call fcn.00403730
mov esi, dword [ebp + 0xc]
mov edi, esi
call fcn.00403730
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038e7
sub eax, edx
mov esi, eax
push esi
push ebx
push edi
call fcn.0050abb0
add esp, 0xc
test eax, eax
jne 0x403940
mov ecx, 0x564448
lea eax, [esi + edi]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403930
test dl, dl
je 0x40392c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403930
add eax, 2
add ecx, 2
test dl, dl
jne 0x403910
xor eax, eax
jmp 0x403935
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403940
mov eax, 1
jmp 0x403942
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050a0dc
mov esp, ebp
pop ebp
ret 8
Function at 0x404090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x587770]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov eax, 0x5645cc
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4040b0
xor ecx, ecx
sub eax, edx
cmp ecx, 0x5645cc
je 0x404103
test eax, eax
jle 0x404103
mov ecx, dword [0x5893c4]
cmp ecx, 0xffffffff
je 0x404103
push 0
lea edx, [esp + 0x10]
push edx
push eax
push 0x5645cc
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_buffer_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 8
mov edx, dword [esi]
push 4
lea eax, [esp + 0x10]
push eax
push 0x7f
lea ecx, [esp + 0x1c]
push ecx
push edx
mov eax, 0x1388
call fcn.0040af10
lea edi, [esp + 0x90]
mov esi, 0x5645cc
call fcn.00403730
lea edi, [esp + 0x10]
mov esi, edi
call fcn.00403730
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404144
sub eax, edx
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0050abb0
add esp, 0xc
test eax, eax
je 0x404193
push str.no_answer_on_Read_Boot_Code_Version_n
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0050a0dc
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0050a0dc
add esp, 0x114
ret

Function at 0x404840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x587770]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
push ebp
mov ebp, dword [esp + 0xa0]
push edi
push eax
push ecx
push str.R__ld__ld_r_n
lea edx, [esp + 0x1c]
push 0x80
push edx
mov dword [esp + 0x1c], 0
call fcn.0050ac70
lea eax, [esp + 0x24]
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404890
lea ecx, [esp + 0x10]
sub eax, edx
test ecx, ecx
je 0x4048e1
test eax, eax
jle 0x4048e1
mov ecx, dword [0x5893c4]
cmp ecx, 0xffffffff
je 0x4048e1
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4048e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_buffer_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 8
mov edx, dword [esi]
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x270f
push ebx
push edx
mov eax, 0x1388
call fcn.0040af10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x94]
mov dword [ebp], eax
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0050a0dc
add esp, 0x94
ret 8
Function at 0x40acb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x44
mov eax, dword [0x587770]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [0x5893c4], 0xffffffff
push esi
push edi
mov esi, ecx
je 0x40ace1
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0050a0dc
add esp, 0x44
ret
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov eax, dword [esi]
cmp eax, 0xa
push eax
jge 0x40acfd
push str.COM_d
lea eax, [esp + 0x40]
push eax
jmp 0x40ad07
push str..COM_d
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x5893c4], eax
cmp eax, 0xffffffff
jne 0x40ad8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
lea eax, [esp + 0x3c]
push eax
push str.Cant_open_COM_Port__s_____Error:__ld_n
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 0xc
cmp esi, 2
jne 0x40ad6e
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0050a0dc
add esp, 0x44
ret
xor eax, eax
cmp esi, 5
setne al
lea eax, [eax + eax + 5]
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0050a0dc
add esp, 0x44
ret
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov edx, dword [esi + 4]
mov al, byte [esi + 8]
mov cl, byte [esi + 0x10]
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dl, byte [esi + 0xc]
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2f], dl
mov edx, dword [0x5893c4]
and eax, 0xffffc7c3
push ecx
or eax, 0x300
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x40ae0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
push eax
push str.Cant_set_baudrate__d_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0050a0dc
add esp, 0x44
ret
mov ecx, dword [0x5893c4]
push 0x7d00
push 0x7d00
push ecx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov edx, dword [0x5893c4]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [0x5893c4]
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov edx, dword [0x5893c4]
push 0xf
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0050a0dc
add esp, 0x44
ret
Function at 0x40ae90
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
test eax, eax
jne 0x40aea9
mov eax, esi
lea edx, [eax + 1]
jmp 0x40aea0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aea0
sub eax, edx
test esi, esi
je 0x40aefa
test eax, eax
jle 0x40aefa
mov ecx, dword [0x5893c4]
cmp ecx, 0xffffffff
jne 0x40aec1
or eax, ecx
pop edi
pop ecx
ret
push 0
lea edx, [esp + 8]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40aef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_buffer_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 8
xor eax, eax
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
pop edi
pop ecx
ret
mov eax, 0xfffffffe
pop edi
pop ecx
ret
Function at 0x40af10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [edi + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [ecx], esi
mov dword [esp + 0x10], esi
cmp byte [0x59e2d8], 0
jne 0x40afb1
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov ecx, dword [esp + 0x24]
mov eax, dword [0x5893c4]
sub ecx, edx
add edx, ebp
cmp eax, 0xffffffff
je 0x40afe3
push 0
lea edi, [esp + 0x24]
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40af8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_buffer_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x40afe3
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40afee
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
cmp ecx, 1
jg 0x40afa8
mov dword [edi + 0x14], eax
jmp 0x40b048
dec ecx
mov dword [edi + 0x14], ecx
jmp 0x40b048
mov eax, dword [esp + 0x24]
push 0x59e2d8
push eax
push ebp
call fcn.0050ce5d
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afd0
sub eax, edx
mov dword [esp + 0x20], eax
mov byte [0x59e2d8], cl
cmp dword [esp + 0x20], 0
je 0x40b048
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
lea edi, [edx + eax]
cmp edx, edi
jae 0x40b03e
mov ecx, dword [ecx]
add eax, ecx
nop
mov cl, byte [edx + ebp]
cmp cl, 0xa
je 0x40b024
cmp cl, 0xd
jne 0x40b014
mov esi, 1
jmp 0x40b039
test cl, cl
jge 0x40b024
mov dword [esp + 0x14], 1
xor esi, esi
jmp 0x40b039
test esi, esi
je 0x40b039
inc ebx
xor esi, esi
cmp ebx, dword [esp + 0x2c]
jb 0x40b039
lea ecx, [edx + ebp + 1]
mov dword [esp + 0x10], ecx
inc edx
cmp edx, eax
jb 0x40b000
mov edx, dword [esp + 0x28]
mov dword [edx], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmp dword [ecx], eax
jae 0x40b06b
cmp dword [edi + 0x14], 0
jle 0x40b06b
cmp ebx, dword [esp + 0x2c]
jae 0x40b06b
cmp dword [esp + 0x14], 0
je 0x40af34
mov esi, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [edx]
mov byte [eax + ebp], 0
test esi, esi
je 0x40b099
push esi
push 0x80
push 0x59e2d8
call fcn.0050ce5d
mov ecx, dword [esp + 0x34]
mov byte [esi], 0
add esp, 0xc
sub esi, ebp
mov dword [ecx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
Function at 0x40b0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebx + 0x14], 0x2710
mov eax, dword [0x5893c4]
cmp eax, 0xffffffff
je 0x40b120
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
mov edx, ebp
sub edx, esi
push edx
lea edx, [esi + ecx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b104
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Read_buffer_____Error:__ld
mov edi, 0x59e710
call fcn.0040b3d0
add esp, 8
jmp 0x40b120
cmp dword [esp + 0x14], 0
jne 0x40b120
mov eax, dword [ebx + 0x14]
cmp eax, 1
jg 0x40b11c
mov dword [ebx + 0x14], 0
jmp 0x40b120
dec eax
mov dword [ebx + 0x14], eax
add esi, dword [esp + 0x14]
cmp esi, ebp
jae 0x40b12e
cmp dword [ebx + 0x14], 0
jg 0x40b0c0
xor eax, eax
cmp esi, ebp
pop edi
pop esi
setne al
pop ebp
ret 8

Function at 0x41308c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4130d3
call fcn.0041c3be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4130d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4130ef
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00412c06
mov esi, eax
test edi, edi
je 0x4130ed
test ebx, ebx
je 0x4130ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41395b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52d66f
call fcn.0050e882
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413980
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4139c6
lea ecx, [ebp - 0x10]
call fcn.00401d40
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413122
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401d70
mov eax, esi
call fcn.0050e95a
ret 8