joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 0xc]
leave
ret

Function at 0x4018b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
mov eax, 0
cmovne eax, dword [ebp - 0xc]
leave
ret

Function at 0x401a80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401ab0
test al, 0x10
je 0x401ab0
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401a9e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
mov ebx, dword [ebp - 4]
leave
sete al
movzx eax, al
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
xor ebx, ebx
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
test eax, eax
je 0x401b14
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
sub esp, 4
test eax, eax
jne 0x401b20
xor ebx, ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x401b3a
mov ebx, 1
test al, 0x10
jne 0x401b0b
movzx eax, word [esi]
mov ebx, esi
test ax, ax
jne 0x401b5c
jmp 0x401b86
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401b86
cmp ax, 0x5c
jne 0x401b50
xor edx, edx
mov eax, esi
mov word [ebx], dx
call sym._create_directory
test eax, eax
je 0x401b09
mov eax, 0x5c
add ebx, 2
mov word [ebx - 2], ax
movzx eax, word [ebx]
test ax, ax
jne 0x401b5c
mov eax, esi
call sym._create_directory
mov ebx, eax
jmp 0x401b0b
Function at 0x401ba0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x220]
push ebx
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x401c68
mov dword [esp], 0xc
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
call edi
mov ebx, eax
test eax, eax
je 0x401c68
mov dword [esp], 0x230
call edi
mov dword [ebx + 8], eax
mov edx, eax
test eax, eax
je 0x401c9b
mov edi, dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x401c2e
mov eax, dword [ebx + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401c78
mov edx, dword [ebx + 8]
mov eax, dword [0x40a060]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x40b000
inc eax
mov dword [esp], esi
mov dword [0x40a060], eax
mov dword [esp + 8], eax
call edi
sub esp, 0x10
test eax, eax
jne 0x401c10
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x22c]
lea eax, [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov edx, dword [ebx + 8]
mov dword [ecx + 0xc], ebx
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x22c], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x22c]
jmp 0x401c6a
Function at 0x401cc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
test eax, eax
je 0x401de0
push ebp
mov edx, 0x40b06e
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x27c
call sym._path_combine.part.0
mov edi, eax
test eax, eax
je 0x401daf
lea eax, [ebp - 0x268]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], edi
mov dword [ebp - 0x26c], eax
call eax
cmp esi, 0xffffffff
je 0x401da3
lea edi, [ebp - 0x23c]
mov dword [esp + 4], 0x40b072
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401d7d
mov dword [esp + 4], 0x40b076
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401d7d
mov edx, edi
mov eax, ebx
call sym._path_combine.part.0
test eax, eax
je 0x401d7d
test byte [ebp - 0x268], 0x10
je 0x401dc0
mov dword [ebp - 0x270], eax
call sym._delete_directory.isra.0
mov edx, dword [ebp - 0x270]
mov dword [esp], edx
mov eax, dword [ebp - 0x26c]
call eax
lea eax, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401d21
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [ebp - 0x270], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x270]
sub esp, 4
jmp 0x401d72
ret
Function at 0x401fd0
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x24]
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], sym._cabinet_seek
mov dword [esp + 0x14], sym._cabinet_close
mov dword [esp + 0x10], sym._cabinet_write
mov dword [esp + 0xc], sym._cabinet_read
mov dword [esp + 8], sym._cabinet_open
mov dword [esp + 4], sym._cabinet_free
mov dword [esp], sym._cabinet_alloc
call sym._FDICreate
test eax, eax
je 0x402130
mov ebx, eax
test esi, esi
je 0x402140
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x34], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x402140
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov eax, dword [ebp - 0x2c]
sub esp, 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], sym._cabinet_notify
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sym._FDIDestroy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x402116
Function at 0x402930
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 0x402988
cmp byte [esi + ebx - 1], 0xa
je 0x40295c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40a118], 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 0x406310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], ecx
call sym._expand_expression.isra.0
mov ecx, dword [edi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x406378
test eax, eax
je 0x406430
cmp word [ebx], 0
mov eax, ebx
je 0x406440
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406348
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x406385
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jne 0x406339
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
jne 0x40635d
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x40635d
xor esi, esi
test byte [0x40a030], 2
je 0x406362
mov esi, dword [edi + 8]
test esi, esi
je 0x40645f
mov eax, esi
shr eax, 0x10
je 0x40644a
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40b015
test edx, edx
jne 0x4063fb
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x40a030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x406362
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x406356
movzx esi, si
mov dword [esp], 0x40b008
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4063fb
mov eax, 0x40b00e
jmp 0x4063fb
Function at 0x408040
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x260]
lea esi, [ebp - 0x264]
push ebx
mov edi, edx
lea ebx, [ebp - 0x220]
sub esp, 0x2ac
mov dword [ebp - 0x27c], 1
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x264], 0x44
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.wusa.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x278]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x274]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x408190
test byte [0x40a030], 8
jne 0x4081da
mov eax, dword [ebp - 0x274]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x27c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x274]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x270]
push ecx
mov dword [esp], eax
call ebx
push ebx
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp - 0x27c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [0x40a030], 2
je 0x40816f
mov eax, dword fs:[0x18]
or edx, 0xffffffff
mov esi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a030
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40816f
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a030
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40811d
Function at 0x4095d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
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 0x46da40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
or ebp, 0xffffffff
jmp 0x46da62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46da69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46da58
mov eax, 1
add ebx, ebx
jne 0x46da7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46da8c
jne 0x46daab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46daab
dec eax
add ebx, ebx
jne 0x46da98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46da70
add ebx, ebx
jne 0x46daa7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46dafd
xor ecx, ecx
sub eax, 3
jb 0x46dac3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46db32
sar eax, 1
mov ebp, eax
jmp 0x46dace
add ebx, ebx
jne 0x46dace
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46da9c
inc ecx
add ebx, ebx
jne 0x46dadc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46da9c
add ebx, ebx
jne 0x46dae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46dade
jne 0x46dafa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46dade
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46db1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46db0e
jmp 0x46da5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46db1c
add edi, ecx
jmp 0x46da5e
pop esi
mov edi, esi
mov ecx, 0x575
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46db3a
cmp byte [edi], 5
jne 0x46db3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46db3f
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x46dbb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6d694]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6d6d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46db6c
mov ecx, edi
jns 0x46db9b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6d6d4]
or eax, eax
je 0x46dbb1
mov dword [ebx], eax
add ebx, 4
jmp 0x46db89
call dword [esi + 0x6d6dc]
mov ebp, dword [esi + 0x6d6d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46dbeb
sub esp, 0xffffff80
jmp 0x4026f8
Function at 0x402d70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x402db6
push str.getsockname___failed
call fcn.00420273
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413b45
mov esp, ebp
pop ebp
ret
push 0x16
push 0x4500ac
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
push 0x4500ac
push str.Local_IP_address_is:__s_n
push 2
call fcn.0041c1d3
add esp, 4
push eax
call fcn.004010a0
add esp, 0xc
push dword [ebp - 0x16]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push str.Local_port_is:__d_n
push 2
call fcn.0041c1d3
add esp, 4
push eax
call fcn.004010a0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.00413b45
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x44e040]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [0x44fde8]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov dword [esp + 0xc], ecx
lea eax, [esi - 4]
mov dword [ebx], eax
cmp dword [0x12ab21c], 2
jne 0x403ae4
xor edi, edi
nop dword [eax]
push 0
push esi
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x403ad0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x403b86
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403ad6
jle 0x403ad6
add edi, eax
sub esi, eax
test esi, esi
jle 0x403b71
mov ecx, dword [esp + 0xc]
jmp 0x403aa0
push 0
push esi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x403b71
push 0
call fcn.0041c257
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov edi, eax
mov esi, edx
call ebx
push eax
push dword [0x44fde8]
push esi
push edi
push str.THDATA:__u__Dispatch_to_server_failed_sock__d__connection_error__ld__n
push 2
call fcn.0041c1d3
add esp, 4
push eax
call fcn.004010a0
add esp, 0x18
mov byte [esp + 0x90], 0
call ebx
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x98]
push str.Send_failed_on_sock__d___err__ld_
push 0x80
push eax
call fcn.00401160
add esp, 0x14
lea ecx, [esp + 0x90]
call fcn.004020c0
mov eax, dword [0x12aa16c]
test eax, eax
je 0x403bfb
jmp 0x403bf2
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413b45
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041c257
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov edi, eax
mov esi, edx
call ebx
push eax
push dword [0x44fde8]
push esi
push edi
push str.THDATA:__u___NB_Dispatch_to_server_failed_sock__d__connection_error__ld__n
push 2
call fcn.0041c1d3
add esp, 4
push eax
call fcn.004010a0
add esp, 0x18
mov byte [esp + 0x10], 0
call ebx
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push str._NB_Send_failed_on_sock__d___err__ld_
push 0x80
push eax
call fcn.00401160
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.004020c0
mov eax, dword [0x12aa16c]
test eax, eax
je 0x403bfb
push eax
call fcn.00420137
add esp, 4
push dword [0x44fde8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
call fcn.0041c620
int3
Function at 0x40a770
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x80
mov esi, ecx
push 0
push esi
call fcn.00416780
lea eax, [esi + 8]
mov ecx, 1
add esp, 0xc
mov word [eax], cx
cmp word [0x44fdfc], 0
mov byte [esi + 6], 5
jbe 0x40a7ba
cmp dword [0x6947e0], 0
jbe 0x40a7ba
mov byte [esi + 6], 0xf
mov ebx, dword [ebp + 8]
push ebx
push 0x44fd68
push eax
mov byte [esi + 7], bl
call fcn.004168e0
add esp, 0xc
lea eax, [ebp - 8]
cmp dword [0x12ae2b8], 0
push eax
je 0x40a7e3
push 0x12b0e58
jmp 0x40a7e8
push 0x4500ac
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov eax, dword [ebp - 8]
mov dword [esi + ebx + 8], eax
mov ax, word [0x44fdfc]
test ax, ax
je 0x40a823
cmp dword [0x6947e0], 0
jbe 0x40a823
mov word [esi + ebx + 0xc], ax
lea eax, [ebx + 0xe]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413b45
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
lea eax, [ebx + 0xc]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b45
mov esp, ebp
pop ebp
ret
Function at 0x40e500
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d304
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov dword [edi], 0x44aa8c
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov byte [edi + 0xa0], 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, edi
mov ecx, ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.00401f00
push 8
call fcn.00413e0a
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.00414be6
mov dword [esi + 4], eax
add esp, 4
lea eax, [edi + 0x10]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
call fcn.0040eca0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov byte [ebp - 0x11], al
je 0x40e6c3
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40e6c3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [ebx + 0x38], 0
mov al, byte [ebp - 0x11]
mov byte [ebx + 0x40], al
jne 0x40e6df
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.00401f00
mov dword [ebp - 4], 4
mov eax, dword [edi]
push ecx
push dword [ebp + 8]
lea ecx, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x60]
mov dword [edx + edi - 4], eax
call fcn.0040eaa0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc