joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405740
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x4144a8]
push esi
and eax, 0xff
push edi
dec eax
je 0x4057bb
dec eax
jne 0x4057a9
push 0
push 0x8000020
push 3
push 0
push 1
push connect
push 0x4144a9
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x414ac4], eax
jne 0x40579b
call fcn.00402c20
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4144a9
push str.Error_opening_file__s_for_reading_nreturn_code_is__d___s_
call fcn.004055b0
add esp, 0x10
pop edi
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x414adc], eax
mov eax, dword [0x414ac4]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x8000020
push 1
push 0
push 0
push 0x40000000
push 0x4144a9
call esi
cmp eax, 0xffffffff
mov dword [0x414ac4], eax
jne 0x4057ae
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
jne 0x4057a9
mov eax, dword [0x415740]
push 3
push str.Tftpd32
push str.File_exists__overwrite_it__
push eax
call fcn.00402ba0
add esp, 0x10
cmp eax, 6
jne 0x4057a9
push 0
push 0x8000020
push 2
push 0
push 0
push 0x40000000
push 0x4144a9
call esi
cmp eax, 0xffffffff
mov dword [0x414ac4], eax
jne 0x4057ae
call fcn.00402c20
push eax
call edi
push eax
push 0x4144a9
push str.Error_opening_file__s_for_writing_nreturn_code_is__d___s_
call fcn.004055b0
add esp, 0x10
pop edi
pop esi
ret
Function at 0x4066f0
Capabilities:
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
push esi
mov dword [esp + 8], eax
mov esi, 2
mov dword [esp + 0xc], eax
mov word [esp + 8], si
mov dword [esp + 0x10], eax
push eax
push esi
push esi
mov dword [esp + 0x20], eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x414abc], eax
je 0x40689d
lea ecx, [esp + 8]
push 0x10
push ecx
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x40689d
movzx dx, byte [0x4144a8]
push edx
call sub.WSOCK32.dll_htons
mov dword [0x414ab4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4144a9
push 0x4146ab
mov word [0x4146a9], ax
call esi
push 0x4144a9
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x414ab4]
push str.octet
lea eax, [ecx + eax + 1]
mov dword [0x414ab4], eax
lea edx, [eax + 0x4146a9]
push edx
call esi
mov eax, dword [0x414ab4]
push str.tsize
add eax, 6
mov dword [0x414ab4], eax
lea eax, [eax + 0x4146a9]
push eax
call esi
mov eax, dword [0x414ab4]
mov ecx, dword [0x414adc]
add eax, 6
push ecx
push 0x411930
mov dword [0x414ab4], eax
lea edx, [eax + 0x4146a9]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x414ab4]
add esp, 0xc
lea edx, [ecx + eax + 1]
push 0x4145a9
mov dword [0x414ab4], edx
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
jne 0x406828
push 0x4145a9
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x406828
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
push edi
lea edi, [esp + 8]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 8]
pop edi
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x406843
push str.Host_is_unknown_or_invalid
call fcn.004055b0
add esp, 4
pop esi
add esp, 0x14
ret
push 0x45
call sub.WSOCK32.dll_htons
mov ecx, dword [0x414ab4]
mov edx, dword [0x414abc]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push 0
push ecx
push 0x4146a9
push edx
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x406893
call fcn.00402c20
push eax
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.can_not_send_data_packet._nError_code__d___s_
call fcn.004055b0
add esp, 0xc
pop esi
add esp, 0x14
ret
mov eax, 1
pop esi
add esp, 0x14
ret
call fcn.00402c20
push eax
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Cant_create_client_socket._nError_code__d___s_
call fcn.004055b0
add esp, 0xc
pop esi
add esp, 0x14
ret
Function at 0x4068c0
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
mov eax, dword [0x414ae8]
sub esp, 0x270
mov ecx, eax
inc eax
test ecx, ecx
push esi
mov dword [0x414ae8], eax
je 0x4068e2
xor eax, eax
pop esi
add esp, 0x270
ret
push 0
push 0x8000020
push 2
push 0
push 1
push 0x40000000
push str.dir.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406910
xor eax, eax
pop esi
add esp, 0x270
ret
lea edx, [esp + 0x34]
push edx
push 0x4122c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x4069f6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esp + 0x40], 0x10
jne 0x4069d7
lea eax, [esp + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
call ebp
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
call ebx
lea ecx, [esp + 0x30]
push 0x10
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x18c]
push str._s_t_s_t_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x180]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x18c]
push eax
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x4122b0
push esi
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406942
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x414ae8], 0
mov eax, 1
pop esi
add esp, 0x270
ret
Function at 0x407910
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push str._Tftpd32__by_Ph._Jounin_MutEx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x407982
call esi
cmp eax, 0xb7
jne 0x407982
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tftpd32_by_Ph._Jounin
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x407967
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0x10
push str.Tftpd32
push str.Tftpd32_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
ret 0x10
push str.TFTP_LOG
call fcn.00409e07
add esp, 4
test eax, eax
je 0x4079ad
push str.TFTP_LOG
call fcn.00409e07
push eax
call fcn.00409cf5
add esp, 8
mov dword [0x412618], eax
jmp 0x4079b7
mov dword [0x412618], 8
push 0x104
push 0x415620
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4079d6
call esi
push 0x5c
push 0x415620
call fcn.00409de0
add esp, 8
test eax, eax
jne 0x4079f0
mov eax, 0x415620
jmp 0x4079f1
inc eax
push edi
push str.Tftpd32.hlp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x10]
push esi
push 0
push 0x406ec0
push 0x65
push 0
call fcn.00409160
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
push esi
push str.TftpAddIpBackGround
call edi
push esi
push str.SyslogBackGround
call edi
push esi
push str.DhcpBackGround
call edi
push esi
push str.Ttftpd32BackGround
call edi
push esi
push str.Ttftpd32ClientBackGround
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x408720
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push ebx
push esi
push edi
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
neg edi
sbb edi, edi
push 0x412518
inc edi
call ebx
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push 0x412518
push 1
push 0
push str.BaseDirectory
push edx
call esi
test eax, eax
jne 0x408975
push 4
push 0x41262c
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.TftpPort
push eax
call esi
test eax, eax
jne 0x408975
mov ecx, dword [esp + 0xc]
push 4
push 0x412630
push 4
push eax
push str.Hide
push ecx
call esi
test eax, eax
jne 0x408975
mov edx, dword [esp + 0xc]
push 4
push 0x412624
push 4
push eax
push str.WinSize
push edx
call esi
test eax, eax
jne 0x408975
push 4
push 0x412634
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.Negociate
push eax
call esi
test eax, eax
jne 0x408975
mov ecx, dword [esp + 0xc]
push 4
push 0x41263c
push 4
push eax
push str.DirText
push ecx
call esi
test eax, eax
jne 0x408975
mov edx, dword [esp + 0xc]
push 4
push 0x412638
push 4
push eax
push str.ShowProgressBar
push edx
call esi
test eax, eax
jne 0x408975
push 4
push 0x41261c
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.Timeout
push eax
call esi
test eax, eax
jne 0x408975
mov ecx, dword [esp + 0xc]
push 4
push 0x412620
push 4
push eax
push str.MaxRetransmit
push ecx
call esi
test eax, eax
jne 0x408975
mov edx, dword [esp + 0xc]
push 4
push 0x412628
push 4
push eax
push str.SecurityLevel
push edx
call esi
test eax, eax
jne 0x408975
push 4
push 0x412640
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.UnixStrings
push eax
call esi
test eax, eax
jne 0x408975
mov ecx, dword [esp + 0xc]
push 4
push 0x412644
push 4
push eax
push str.Beep
push ecx
call esi
test eax, eax
jne 0x408975
mov edx, dword [esp + 0xc]
push 4
push 0x412648
push 4
push eax
push str.VirtualRoot
push edx
call esi
test eax, eax
jne 0x408975
push 0x41264c
call ebx
inc eax
push eax
mov eax, dword [esp + 0x10]
push 0x41264c
push 1
push 0
push str.LocalIP
push eax
call esi
test eax, eax
jne 0x408975
mov ecx, dword [esp + 0xc]
push 4
push 0x41265c
push 4
push eax
push str.Services
push ecx
call esi
test eax, eax
jne 0x408975
push 0x412660
call ebx
mov edx, dword [esp + 0xc]
inc eax
push eax
push 0x412660
push 1
push 0
push str.TftpLogFile
push edx
call esi
test eax, eax
jne 0x408975
push 0x412760
call ebx
inc eax
push eax
mov eax, dword [esp + 0x10]
push 0x412760
push 1
push 0
push str.SaveSyslogFile
push eax
call esi
test eax, eax
jne 0x408975
mov eax, 1
jmp 0x408977
xor eax, eax
mov ecx, dword [esp + 0xc]
and edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40899b
push 0x30
push str.Tftpd32
push str.Error_during_registry_access
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x408a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
mov ebx, dword [esp + 0x130]
push esi
push 0x412b1c
push ebx
call fcn.0040a320
add esp, 8
test eax, eax
jne 0x408a4a
push 0x412b18
push ebx
call fcn.0040a320
add esp, 8
test eax, eax
jne 0x408a4a
mov esi, 1
jmp 0x408a4c
xor esi, esi
mov al, byte [ebx]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 0x5c
push edi
je 0x408a5e
cmp al, 0x2f
jne 0x408a99
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x36]
push ecx
call ebp
mov ecx, eax
lea edi, [esp + 0x36]
mov esi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408a97
lea eax, [esp + 0x36]
push eax
call ebp
cmp byte [eax + ebx], 0x5c
jne 0x408a97
mov esi, 1
jmp 0x408a99
xor esi, esi
cmp byte [ebx + 1], 0x3a
jne 0x408ada
lea ecx, [esp + 0x34]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x34]
push edx
call ebp
mov ecx, eax
lea edi, [esp + 0x34]
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408ad8
lea ecx, [esp + 0x34]
push ecx
call ebp
cmp byte [eax + ebx], 0x5c
jne 0x408ad8
mov esi, 1
jmp 0x408ada
xor esi, esi
mov eax, dword [0x412628]
pop edi
cmp eax, 3
pop ebp
ja case.default.0x408aea
jmp dword [eax*4 + 0x408b94]
pop esi
mov eax, 1
pop ebx
add esp, 0x128
ret
test esi, esi
jne 0x408b0e
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebx
add esp, 0x128
ret
test esi, esi
je 0x408b7c
mov eax, dword [esp + 0x138]
mov dword [esp + 0x1c], 0
cmp eax, 2
jne 0x408b54
lea edx, [esp + 8]
push edx
push ebx
call fcn.0040e3ee
add esp, 8
cmp eax, 0xffffffff
je case.default.0x408aea
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408b54
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
pop esi
pop ebx
sete al
add esp, 0x128
ret
test esi, esi
je 0x408b7c
mov ecx, dword [esp + 0x138]
mov eax, 1
cmp ecx, eax
je 0x408b89
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x4091a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x58
mov ecx, dword [str.Ark]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x18]
push 0x40
push ecx
push eax
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x1c], 0x806f
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x60]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x58
ret
Function at 0x409310
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c0
push ebx
push ebp
mov ebp, dword [esp + 0x4d0]
push esi
mov esi, dword [esp + 0x4dc]
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x40938a
lea eax, [esp + 0x1c]
push eax
call fcn.004096e6
lea ecx, [esp + 0x20]
push ecx
call fcn.0040a492
add esp, 8
push ebp
push eax
call fcn.0040a3a0
add esp, 4
lea edx, [esp + 0x24]
push eax
push str._24.24s:__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x28]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x4d4]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x18b
push esi
call edi
mov ebx, dword [esp + 0x4dc]
cmp eax, ebx
jbe 0x4093c8
push 0
push 0
push 0x182
push esi
call edi
push 0
push 0
push 0x18b
push esi
call edi
cmp eax, ebx
ja 0x4093ac
push ebp
push 0
push 0x180
push esi
call edi
push esi
mov dword [esp + 0x14], eax
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDC]
push ebp
push ebp
push 0x18b
push esi
mov ebx, eax
call edi
test eax, eax
mov dword [esp + 0x10], eax
jl 0x409443
lea ecx, [esp + 0x20]
dec eax
push ecx
push eax
push 0x189
push esi
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x14]
push 1
push edx
push ebx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jle 0x409438
mov ebp, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jns 0x4093f4
lea ebp, [ebp + ebp*8]
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
push edx
push 0x194
push esi
call edi
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret
Function at 0x40d179
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4139b8
cmp edx, dword [eax]
je 0x40d19b
add eax, 8
inc ecx
cmp eax, 0x413a48
jl 0x40d18c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4139b8]
jne 0x40d2c9
mov eax, dword [0x4152ac]
cmp eax, 1
je 0x40d2a3
test eax, eax
jne 0x40d1cc
cmp dword [0x413434], 1
je 0x40d2a3
cmp edx, 0xfc
je 0x40d2c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d203
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bfc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c0f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d246
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c0f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fd28
push edi
call fcn.0040dc50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bfc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bfd0
lea eax, [ebp - 0xa0]
push 0x40fd08
push eax
call fcn.0040bfd0
push dword [esi + 0x4139bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bfd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040de4c
add esp, 0x2c
pop edi
jmp 0x40d2c9
lea eax, [ebp + 8]
lea esi, [esi + 0x4139bc]
push 0
push eax
push dword [esi]
call fcn.0040c0f0
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 0x407180
Capabilities:
Enumerate pe sections

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

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x7246b5
Capabilities:
Encode data using xor

Disassembly:
in eax, dx
cwde
jb 0x724687
invalid
mov ebp, 0xd029c41d
xor al, cl
xchg byte [ebp + edx*8 + 0xeb957cb], bl
push 0x6d34ed57
adc ebx, esp
pop ebx
in eax, dx
jl 0x724689
les ebp, [ecx]
sal byte [eax], 1
stosd dword es:[edi], eax
dec esi
cwde
or ebx, ebx
dec ebx
lea edi, [esi]
lock sub byte [esp + esi - 0x54], bh
jns 0x7246bc
cmp dword [eax + ecx*8 - 0x46c3b674], ebx
fisubr word [eax + ebx*8]
std
mov ecx, 0xfdd82cde
pop ebx
leave
imul ecx, dword [eax - 0x32], 0x7d
mov cs, word [esi - 0x64]
push ebp
cmpsb byte [esi], byte es:[edi]
jl 0x72467f
mov bh, 0xcc
sub byte [ecx - 0x17cf5492], dl
sbb al, 0x68
rcl dword [0x48d71edf]
aam 0x7e
movsd dword es:[edi], dword [esi]
mov edx, 0x8c8fb8ec
xchg dword [edx - 0x23a10bb7], edx
jg 0x72470b
invalid
pushal
nop
imul edi, dword [eax - 0x3a300f1f], 0xffffffdd
or bh, bh
jge 0x724776
pop edx
inc ebx
mov bh, 0x21
and byte [esp + eax + 0x68], dh
mov ah, 0x9e
inc esi
loopne 0x7246c5
wait
mov bp, 0x159d
pop edx
cmp dword [edi], ebp
std
add byte [ecx - 0x7c], bh
adc eax, 0x294ae132
das
movsd dword es:[edi], dword [esi]
retf 0x9935
cmp eax, 0xaadf7aef
or dword [eax + 0x2d], ecx
or cl, bh
invalid

Function at 0x770315
Capabilities:
Encode data using xor

Disassembly:
outsb dx, byte [esi]
cmp ch, al
dec ecx
mov ebx, ecx
lahf
dec edi
push esp
push esp
mov gs, word [ebp - 0x38]
push cs
xchg esp, eax
invalid
js 0x770241
dec eax
and al, 0x59
push ss
jg 0x7702b4
pop ecx
push es
mov byte [ecx - 0x78], cl
xor al, 0xe8
adc byte [ecx - 0x36da71f8], dl
invalid
nop
movsb byte es:[edi], byte [esi]
sub cl, dl
and cl, bl
and eax, 0x15b133c2
frstor dword [ecx + 0x7b]
aam 0x1c
mov bh, 0xc
loopne 0x770340
pop edx
pop ecx
cmpsd dword [esi], dword es:[edi]
int 0x83
pop ebp
push 0x55
and byte [edx + 0x4c], ah
mov ecx, 0xda74895c
je 0x7702f1
je 0x7702f1
cmpsb byte [esi], byte es:[edi]
xor al, cl
test eax, 0xf301dac0
xor byte [eax], ah
rcr dl, 1
xor byte [eax], ah
loope 0x77031b
adc dword [ecx + eax*8], eax
mov dword [eax], esi
jne 0x7702aa
fst qword [eax + 0x44]
mov ebx, 0x1c689fec
movsd dword es:[edi], dword [esi]
adc dword [esi], eax
push ebp
pop eax
mov cl, 0xa8
sbb eax, edi
out dx, al
mov eax, 0x29f1893e
mov esi, 0x7cc813fc
sub dword [esi + 0x7cc813fc], edi
ret 0x3dec
Function at 0x401e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401e88
cmp byte [esi + ebx - 1], 0xa
je 0x401e5c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x403158], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402170
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x12c3441c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12c34426
pushal
call 0x12c3442c
pop ebp
sub ebp, 0x10
sub ebp, 0x2c3441c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x12c34450
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x12c34459
mov eax, 0x2c3441c
add eax, ebp
add eax, 0x63
mov ecx, 0x5d5
mov edx, 0xcf61bf9f
xor byte [eax], dl
inc eax
dec ecx
jne 0x12c34470
jmp 0x12c34483
int 0x55
mov byte [edi + 0x16145214], bh
adc al, 0x52
adc al, 0x16
mov dword [0x1e9f9f9f], eax
pop esi
lahf
lahf
lahf
pushfd
push edx
daa
cdq
lahf
lahf
lahf
and eax, 0x9f9f9fb7
push 0x14579c7d
push ds
xchg ebx, eax
lahf
lahf
lahf
pushfd
pop edx
adc bh, bl
mov ebx, 0xbb9b1663
adc bh, bl
mov ebx, 0xbb9b1663
imul dword [edi]
adc ecx, ebx
lahf
div esp
sub cl, dh
popfd
sahf
mov bl, 0xbb
not dword [eax - 0x7c]
mov esi, 0x9f9a7790
lahf
lahf
jbe 0x12c3447f
lahf
lahf
lahf
retf 0xf312