joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4960f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004971fc
test byte [ebp + 0xd], 0xc0
jne 0x49611c
mov eax, dword [0x4ac164]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x496129
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x496156
je 0x496168
sub ecx, 0x100
je 0x496176
sub ecx, 0x100
je 0x49617d
sub ecx, 0x100
je 0x49616f
jmp 0x496184
sub ecx, 0x600
je 0x49617d
sub ecx, 0x100
je 0x496168
jmp 0x496184
mov edi, 1
jmp 0x496189
mov edi, 2
jmp 0x496189
mov edi, 4
jmp 0x496189
mov edi, 5
jmp 0x496189
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4961b0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4abbdc]
test al, 0x80
je 0x4961a9
mov ebx, 0x80
jmp 0x4961c2
mov ebx, 1
jmp 0x4961c2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4961c2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4961d4
je 0x4961dd
dec eax
je 0x4961e6
jmp 0x4961ef
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4961fe
mov dword [ebp - 4], 0x40000000
jmp 0x4961fe
mov dword [ebp - 4], 0xc0000000
jmp 0x4961fe
push 1
call fcn.004975d4
pop ecx
mov ebx, eax
jmp 0x4962ee
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x49621a
sub eax, 0x10
je 0x496221
sub eax, 0x10
je 0x49622a
sub eax, 0x10
je 0x496233
jmp 0x496233
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x49623a
mov dword [ebp - 8], 1
jmp 0x49623a
mov dword [ebp - 8], 2
jmp 0x49623a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4962a7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x49629c
test byte [ebp + 0xd], 1
je 0x496297
mov ebx, 0x50
jmp 0x49629c
mov ebx, 2
push ebx
call fcn.004975d4
pop ecx
mov ebx, eax
jmp 0x4962ee
mov edi, esi
push edi
call fcn.0049605c
pop ecx
test eax, eax
je 0x4962bb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4962c7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004972fc
add esp, 8
mov ebx, eax
inc eax
jne 0x4962ee
push 4
call fcn.004975d4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00497230
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4967f8
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x496814
call fcn.00497640
jmp 0x496883
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x496830
call fcn.00497640
jmp 0x496883
cmp dword [0x4e72c4], 1
je 0x496881
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0049b5f8
pop ecx
cmp al, 0x41
jl 0x496881
cmp al, 0x5a
jg 0x496881
cmp byte [ebp - 0x107], 0x3a
jne 0x496881
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x496881
call fcn.00497640
jmp 0x496883
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x49b6bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x49b71e
call fcn.0049b66c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00494e94
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00494e94
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x49b79c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4ad0bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x49b876
cmp dword [0x4ad0b8], 0
jne 0x49b876
cmp dword [0x4ad2e4], 0
je 0x49b830
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0049b5a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49b816
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0049b5a0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49b816
lea ebx, [ebp - 0x84]
jmp 0x49b817
inc ebx
call fcn.0049b758
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x49b8b1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4ad0c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00494e94
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4ad0c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x49b8b1
cmp dword [0x4ad0b8], 0
je 0x49b890
cmp dword [0x4ad0b8], 0xffffffff
je 0x49b8b1
push esi
call dword [0x4ad0b8]
pop ecx
mov eax, dword [0x4ad0bc]
test eax, eax
je 0x49b8b1
cmp dword [0x4ad0bc], 0xffffffff
je 0x49b8b1
cmp byte [eax], 0
je 0x49b8b1
push esi
push eax
call fcn.0049b6bc
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x49d066
test esi, esi
je 0x49d066
call fcn.0049b724
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x49d0d8
call fcn.0049cd58
mov ebx, eax
test eax, eax
jne 0x49d081
call fcn.0049b724
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x49d0d8
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x49cf9c
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x49d0cc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x49d0c5
push 0x59
call fcn.004975d4
pop ecx
jmp 0x49d0d8
call fcn.00497640
jmp 0x49d0d8
mov dword [ebx + 8], eax
test edi, edi
je 0x49d0d8
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4017a0
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46b4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4811f4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor edi, edi
mov ecx, eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4017f7
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.004014c0
lea eax, [esp + 0x18]
mov dword [esp + 0x80], edi
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
jg 0x401872
cmp dword [esp + 0x70], 0x10
jb 0x40184a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004472f6
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00447258
add esp, 0x70
ret
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
xor eax, eax
mov word [esp + 0x24], ax
mov eax, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x401895
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401c30
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 1
call fcn.00405700
mov edi, dword [ebp + 0x14]
mov ebx, 0x10
cmp dword [ebp + 0x18], ebx
jb 0x4018d6
mov edx, dword [ebp + 4]
jmp 0x4018d9
lea edx, [ebp + 4]
mov esi, dword [eax + 0x14]
mov ecx, esi
cmp ecx, esi
jae 0x4018e2
mov ecx, esi
cmp esi, edi
jb 0x4018ea
mov ecx, edi
cmp dword [eax + 0x18], ebx
jb 0x4018f4
mov eax, dword [eax + 4]
jmp 0x4018f7
add eax, 4
push ecx
push edx
push eax
call fcn.00402520
add esp, 0xc
test eax, eax
jne 0x401918
cmp esi, edi
jae 0x40190f
or eax, 0xffffffff
jmp 0x401916
xor eax, eax
cmp esi, edi
setne al
test eax, eax
mov esi, 0x10
sete bl
cmp dword [esp + 0x54], esi
jb 0x401933
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004472f6
add esp, 4
mov byte [esp + 0x80], 0
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x401964
mov edx, dword [esp + 0x24]
push edx
call fcn.004472f6
add esp, 4
test bl, bl
jne 0x401980
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x401870
jmp 0x401836
cmp dword [esp + 0x70], esi
jb 0x401993
mov eax, dword [esp + 0x5c]
push eax
call fcn.004472f6
add esp, 4
mov al, 1
jmp 0x40184c
Function at 0x4019a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b4b0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4811f4]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
push 1
push 0x104
push str.Path
push str.SoftwareKuaiZipInstall
lea eax, [esp + 0x60]
push reloc.WS2_32.dll_accept
push eax
call fcn.00466b10
xor ebx, ebx
push eax
mov edi, str.X86KZReport.exe
lea esi, [esp + 0xc0]
mov dword [esp + 0xe8], ebx
call fcn.004020e0
add esp, 0x1c
mov ebp, 0x10
cmp dword [esp + 0x68], ebp
jb 0x401a31
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004472f6
add esp, 4
push 0x38
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.0044ae50
add esp, 0xc
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x440
cmp dword [esp + 0xbc], ebp
jb 0x401a67
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x24], eax
jmp 0x401a72
lea ecx, [esp + 0xa8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
mov byte [esp + 0xcc], 3
cmp dword [0x4827e0], ebx
je 0x401b04
push 0x4827cc
mov edi, str._source
lea esi, [esp + 0x70]
call fcn.00402190
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0xd8], 4
call fcn.004010f0
cmp dword [esp + 0x84], ebp
jb 0x401ae3
mov edx, dword [esp + 0x70]
push edx
call fcn.004472f6
add esp, 4
cmp dword [esp + 0xa0], ebp
jb 0x401af9
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
jmp 0x401b04
lea ecx, [esp + 0x8c]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0xa0], ebp
jb 0x401b35
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004472f6
add esp, 4
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0xbc], ebp
jb 0x401b67
mov edx, dword [esp + 0xa8]
push edx
call fcn.004472f6
add esp, 4
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00447258
add esp, 0xbc
ret
Function at 0x407040
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46b8db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp]
mov edi, dword [edx + 4]
add edi, ebp
mov ecx, edi
call fcn.00407b00
lea esi, [ebp + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ebx
call fcn.004074b0
mov byte [edi + 0x30], al
cmp dword [edi + 0x28], ebx
jne 0x4070b9
mov eax, dword [edi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.00402950
mov dword [edi + 4], ebx
mov dword [esp + 0x24], 2
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.004073b0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x483d3c]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4073b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46a56b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00446921
push 4
mov dword [esp + 0x24], 0
call fcn.004473cf
mov edi, eax
add esp, 4
test edi, edi
je 0x407432
call fcn.00446cca
mov dword [edi], eax
call fcn.00446b9f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00446ac3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407427
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00446aeb
jmp 0x407434
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x407630
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46a8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffffffffffffffff
push ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.00401d20
mov eax, str..exe
mov dword [esp + 0x34], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407687
sub eax, edx
sar eax, 1
push eax
lea esi, [esp + 0x14]
call fcn.00407890
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov word [edi + 4], dx
call fcn.00401d20
cmp dword [esp + 0x28], 8
jb 0x4076cf
mov eax, dword [esp + 0x14]
push eax
call fcn.004472f6
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x4079d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46a5f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00446bcf
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x407a21
mov eax, dword [esi + 0x1c]
push eax
call fcn.004472f6
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x407db0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x46abc1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4811f4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x1c], esi
mov word [esi + 4], ax
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov dword [esp + 0x64], ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call ebp
test eax, eax
jne 0x407e44
push ebx
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea edx, [esp + 0x20]
push edx
call ebp
test eax, eax
je 0x407f02
cmp edi, ebx
je 0x407ef6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0xc]
push ebx
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
mov byte [esp + 0x57], al
mov eax, dword [esp + 0x18]
push 2
push eax
mov dword [esp + 0x28], 0x10
mov byte [esp + 0x50], bl
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x40]
call fcn.00407cd0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x64], 1
call fcn.00401d20
cmp dword [esp + 0x38], 8
jb 0x407ef4
mov eax, dword [esp + 0x24]
push eax
call fcn.004472f6
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00447258
add esp, 0x50
ret
Function at 0x413d90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4811f4]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x413de5
mov eax, dword [esp]
cmp al, 2
jne 0x413ddf
shr eax, 8
cmp al, 2
jne 0x413ddf
call fcn.004154f0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00447258
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00447258
add esp, 0x194
ret
Function at 0x420090
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4200c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x420200
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x42021b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x42024f
cmp eax, 2
jg 0x42024f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x46faa8]
push 2
push edx
call fcn.00447aae
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00447aae
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4205dd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4205b4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004135e0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004203e0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8624], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422330
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x480], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x42236e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00420350
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x484]
push edx
mov dword [esp + 0xc], 1
call fcn.00423720
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x488]
push eax
call fcn.00423720
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4223e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00420350
add esp, 0x10
add esp, 0x14
ret