joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ed0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41fd28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea eax, [esp + 0x114]
push 0x104
push eax
push 0
mov dword [esp + 0x638], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.004095d0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x640]
add esp, 8
test eax, eax
je 0x405f3c
push 0x78
mov ecx, esi
call fcn.00405980
lea edx, [esp + 0x21c]
mov ecx, esi
push edx
call fcn.00405b80
test eax, eax
je 0x40609f
push ebx
push ebp
push edi
lea eax, [esp + 0x22c]
push 0x428358
push eax
call fcn.00409bb5
push 0x428358
push 0
mov ebp, eax
call fcn.00409bb5
push 0x428358
push 0
mov ebx, eax
call fcn.00409bb5
push eax
call fcn.00409baa
mov dword [esp + 0x30], eax
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x429ee8
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x660]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409c59
add esp, 0x24
test eax, eax
jne 0x406006
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov edi, 0x4282bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x429ee8
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x644]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409c59
add esp, 8
test eax, eax
pop edi
pop ebp
pop ebx
je 0x406088
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x634]
push ecx
push edx
jmp 0x406092
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0xc]
call fcn.00405cd0
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x638]
test eax, eax
je 0x4060b1
mov ecx, esi
call fcn.00405920
lea ecx, [esp + 0x634]
mov dword [esp + 0x62c], 0xffffffff
call fcn.00417480
mov ecx, dword [esp + 0x624]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x62c
ret 8
Function at 0x4060f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x194]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004175bd
add esp, 0x14
ret 4

Function at 0x406130
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ebx, ecx
jle 0x406185
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, 0x200
jle 0x406165
mov eax, dword [ebx + 0x194]
push 0
push 0x200
push edi
push eax
jmp 0x406174
test esi, esi
jle 0x406189
mov ecx, dword [ebx + 0x194]
push 0
push esi
push edi
push ecx
call ebp
cmp eax, 1
jl 0x406189
sub esi, eax
add edi, eax
test esi, esi
jg 0x40614c
jmp 0x406189
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
jne 0x406197
or eax, eax
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x4061a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
test eax, eax
jle 0x4061f1
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebx + 0x194]
push 0
lea eax, [esi + ebp]
push 1
push eax
push ecx
call edi
test eax, eax
je 0x4061fa
cmp eax, 0xffffffff
je 0x406203
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4061ce
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
Function at 0x4066c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41fe43
push eax
mov eax, 0x1128
mov dword fs:[0], esp
call fcn.00409af0
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x18], ebp
push str.PSAPI.DLL
mov dword [esp + 0x113c], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x406723
lea ecx, [esp + 0x1140]
mov dword [esp + 0x1138], 0xffffffff
call fcn.00417480
jmp 0x4068ef
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleFileNameExA
push ebx
mov dword [esp + 0x2c], eax
call esi
push 0x429ee8
mov ecx, ebp
mov dword [esp + 0x30], eax
call fcn.004175bd
mov eax, dword [0x4285cc]
mov dword [esp + 0x10], eax
test edi, edi
mov byte [esp + 0x1140], 1
je 0x4068be
lea ecx, [esp + 0x14]
lea edx, [esp + 0x138]
push ecx
push 0x1000
push edx
call edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
shr eax, 2
mov dword [esp + 0x14], eax
je 0x4068be
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea ebp, [esp + 0x138]
mov eax, dword [ebp]
push eax
push 0
push 0x410
call ebx
mov edi, eax
test edi, edi
je 0x4068a2
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push 4
push edx
push edi
mov dword [esp + 0x40], 4
call dword [esp + 0x34]
test eax, eax
je 0x40689b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push 0x104
push eax
push ecx
push edi
call dword [esp + 0x3c]
test eax, eax
jne 0x406805
mov byte [esp + 0x34], al
jmp 0x40689b
mov edx, dword [esp + 0x1148]
push 0x429ee8
push edx
call fcn.00409c59
add esp, 8
test eax, eax
jne 0x406849
mov ecx, dword [ebp]
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x18]
push str.::_08X:_s_n
push edx
call fcn.00416c18
mov ecx, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call fcn.004177c3
jmp 0x40689b
mov ecx, dword [esp + 0x1148]
push 0x429ee8
push ecx
call fcn.00409c59
add esp, 8
test eax, eax
je 0x40689b
mov edx, dword [esp + 0x1148]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00409550
add esp, 8
test eax, eax
je 0x40689b
mov eax, dword [ebp]
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40689b
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x4067ac
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1140], 0
call fcn.00417480
lea ecx, [esp + 0x1148]
mov dword [esp + 0x1140], 0xffffffff
call fcn.00417480
pop edi
pop esi
mov ecx, dword [esp + 0x1130]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1134
ret 4
Function at 0x4072f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x41ff6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov eax, dword [0x4285cc]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esi], eax
mov ecx, dword [0x4285cc]
lea edi, [esi + 4]
mov dword [edi], ecx
mov edx, dword [0x4285cc]
lea ebx, [esi + 8]
mov dword [ebx], edx
mov eax, dword [0x4285cc]
mov dword [esp + 0x10], eax
push 0x429ee8
mov ecx, esi
mov byte [esp + 0x28], 4
call fcn.004175bd
push 0x429ee8
mov ecx, ebx
call fcn.004175bd
push 0x429ee8
mov ecx, edi
call fcn.004175bd
mov dword [esi + 0xc], ebp
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov dword [esp + 0x14], eax
mov ebx, 1
mov edi, 0x41
mov ecx, dword [esp + 0x14]
test ecx, ebx
je 0x4073ca
push edi
lea edx, [esp + 0x14]
push str._c:_
push edx
call fcn.00416c18
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call ebp
push eax
push edi
push edi
lea ecx, [esp + 0x1c]
push str.::0:_c:_c:_u_n
push ecx
call fcn.00416c18
add esp, 0x14
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.004177c3
inc dword [esi + 0xc]
shl ebx, 1
inc edi
cmp edi, 0x5a
jle 0x407384
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00417213
mov ecx, esi
call fcn.00407420
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.00417480
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00417480
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x407420
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x41ffa9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push esi
push edi
mov esi, ecx
mov eax, dword [0x4285cc]
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push eax
push str._s.
push ecx
mov byte [esp + 0x168], 3
call fcn.00416c18
mov eax, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4074e1
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 2
call fcn.00417480
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
call fcn.00417480
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00417480
lea ecx, [esp + 0x164]
mov dword [esp + 0x15c], edi
call fcn.00417480
xor eax, eax
jmp 0x40760c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov bl, 0x2e
test byte [esp + 0x1c], 0x10
je 0x407566
cmp byte [esp + 0x48], bl
je 0x40752c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
sub ecx, eax
lea edx, [esp + 0x14c]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.::1:_s:_s:_ld_n
push ecx
call fcn.00416c18
add esp, 0x14
lea edx, [esp + 0x10]
lea ecx, [esi + 4]
push edx
jmp 0x407598
cmp byte [esp + 0x49], bl
jne 0x40759d
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
sub eax, edx
lea ecx, [esp + 0x14c]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.::1:_s:_s:_ld_n
push eax
call fcn.00416c18
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 4]
jmp 0x407598
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub edx, ecx
lea eax, [esp + 0x14c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.::2:_s:_s:_ld_n
push edx
call fcn.00416c18
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esi + 8]
push eax
call fcn.004177c3
mov ecx, dword [esi + 0xc]
inc ecx
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
test eax, eax
jne 0x4074eb
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov esi, dword [esi + 0xc]
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.00417480
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 1
call fcn.00417480
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00417480
lea ecx, [esp + 0x16c]
mov dword [esp + 0x164], 0xffffffff
call fcn.00417480
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret 4
Function at 0x4079a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x18]
push 0
test eax, eax
je 0x407a09
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret 4

Function at 0x4103a3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4103c3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0040b2d1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4103e6
test byte [esp + 8], 2
je 0x4103e6
call fcn.0040b344
mov dword [eax], 0xd
call fcn.0040b34d
mov dword [eax], 5
jmp 0x4103bf
xor eax, eax
ret

Function at 0x410ac8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4295e8
cmp edx, dword [eax]
je 0x410aea
add eax, 8
inc ecx
cmp eax, 0x429678
jl 0x410adb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4295e8]
jne 0x410c18
mov eax, dword [0x42bfb8]
cmp eax, 1
je 0x410bf2
test eax, eax
jne 0x410b1b
cmp dword [0x428ba4], 1
je 0x410bf2
cmp edx, 0xfc
je 0x410c18
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x410b52
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411150
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410b95
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x423864
push edi
call fcn.00414560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411150
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411160
lea eax, [ebp - 0xa0]
push 0x423844
push eax
call fcn.00411160
push dword [esi + 0x4295ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411160
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004144cf
add esp, 0x2c
pop edi
jmp 0x410c18
lea eax, [ebp + 8]
lea esi, [esi + 0x4295ec]
push 0
push eax
push dword [esi]
call fcn.0040f870
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 0x415d90
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420610
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jge 0x415dc9
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov dword [esp + 0x2c], ebx
push eax
push 0x423b20
push 1
push ebx
push 0x423b80
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
je 0x415e18
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x415e62
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov edx, dword [eax]
push 0x423b70
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
je 0x415e77
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2c], bl
cmp eax, ebx
je 0x415e4c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x415e62
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x415f36
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push 0x423ba0
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x415f0c
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push ebx
mov word [esp + 0x20], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x415f02
cmp esi, edi
jne 0x415ef7
mov eax, dword [esp + 0x14]
push ebp
push 0x423b10
push ebx
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x415ea7
pop ebp
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], bl
cmp eax, ebx
pop esi
je 0x415f49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
cmp eax, ebx
je 0x415f5f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x415f80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x420628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edi
mov ecx, dword [eax]
push edx
push eax
mov dword [esp + 0x3c], edi
call dword [ecx + 0x30]
test eax, eax
jl 0x416038
mov eax, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x18]
push edi
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x41602d
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov ecx, 4
mov edi, 0x423b60
xor edx, edx
lea esi, [eax + 0x2c]
repe cmpsd dword [esi], dword es:[edi]
jne 0x41600e
mov ecx, dword [eax + 0x44]
cmp dword [ecx + 0x34], ebp
jne 0x416006
mov edx, dword [esp + 0x48]
mov esi, dword [ecx + 0x38]
cmp esi, edx
je 0x416027
push eax
mov ecx, ebx
call fcn.004162c0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x415fdc
jmp 0x41602b
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebp
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x423af0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x41609e
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x41606d
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, ebx
push eax
call fcn.004162c0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jl 0x41609e
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0x34]
mov dword [ebx + 0x20], edx
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0x38]
mov ecx, ebx
mov dword [ebx + 0x24], edx
call fcn.004162c0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x34], 0xffffffff
je 0x4160d5
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x416180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
call fcn.00416310
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
call fcn.00416420
mov ecx, dword [esp + 0x4c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4161c6
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4
push esi
mov esi, dword [ebp + 0x20]
xor edx, edx
push edi
lea ecx, [esi + esi*2]
mov dword [esp + 0x18], edx
shl ecx, 3
mov dword [esp + 0x1c], edx
mov edi, dword [ebp + 0x24]
lea eax, [ecx + 0x1f]
mov dword [esp + 0x20], edx
and al, 0xe0
mov word [esp + 0x24], dx
cdq
and edx, 7
push 0
add edx, eax
mov eax, ecx
sar edx, 3
mov ecx, edx
mov word [esp + 0x1c], 0x4d42
mov dword [esp + 0x26], 0x36
cdq
and edx, 7
add eax, edx
lea edx, [esi + esi*2]
sar eax, 3
sub ecx, eax
xor eax, eax
add ecx, edx
mov word [esp + 0x22], ax
imul ecx, edi
add ecx, 0x36
lea edi, [esp + 0x2c]
mov dword [esp + 0x1e], ecx
mov ecx, 0xa
mov word [esp + 0x24], ax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 0xe
mov dword [esp + 0x38], esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push ecx
push ebx
mov dword [esp + 0x3c], 0x28
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 0x18
mov dword [esp + 0x4c], 0
call esi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x30]
push 0x28
push eax
push ebx
call esi
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4