joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x47c894]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], 0
push 0x9c
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00412d20
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x402657
push 0
push str.bOsVersionInfoEx___0
push 0x28d
push 0x4768d8
push str.ODR_GetOSVersion
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x402630
cmp dword [ebp - 0x90], 2
jne 0x4027a3
cmp dword [ebp - 0x9c], 4
jbe 0x4027a3
cmp dword [ebp - 0x9c], 0xa
jne 0x40269a
cmp dword [ebp - 0x98], 0
jne 0x40269a
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x40269a
mov dword [ebp - 0xa4], 0x10
cmp dword [ebp - 0x9c], 6
jne case.default.0x4026c6
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], ecx
cmp dword [ebp - 0xa8], 3
ja case.default.0x4026c6
mov edx, dword [ebp - 0xa8]
jmp dword [edx*4 + 0x4027b8]
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x4026e2
mov dword [ebp - 0xa4], 0xb
jmp 0x4026ec
mov dword [ebp - 0xa4], 0xa
jmp case.default.0x4026c6
movzx ecx, byte [ebp - 6]
cmp ecx, 1
jne 0x402703
mov dword [ebp - 0xa4], 9
jmp 0x40270d
mov dword [ebp - 0xa4], 8
jmp case.default.0x4026c6
movzx edx, byte [ebp - 6]
cmp edx, 1
jne 0x402724
mov dword [ebp - 0xa4], 0xc
jmp 0x40272e
mov dword [ebp - 0xa4], 0xe
jmp case.default.0x4026c6
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x402745
mov dword [ebp - 0xa4], 0xd
jmp case.default.0x4026c6
mov dword [ebp - 0xa4], 0xf
cmp dword [ebp - 0x9c], 5
jne 0x40276b
cmp dword [ebp - 0x98], 2
jne 0x40276b
mov dword [ebp - 0xa4], 3
cmp dword [ebp - 0x9c], 5
jne 0x402787
cmp dword [ebp - 0x98], 1
jne 0x402787
mov dword [ebp - 0xa4], 2
cmp dword [ebp - 0x9c], 5
jne 0x4027a3
cmp dword [ebp - 0x98], 0
jne 0x4027a3
mov dword [ebp - 0xa4], 1
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee13
mov esp, ebp
pop ebp
ret
Function at 0x402950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x47c894]
xor eax, ebp
mov dword [ebp - 4], eax
push str.DBGHELP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x402995
call fcn.00402930
push eax
push str.LoadLibrary___failed_to_look_up_DBGHELP.DLL:__s
call fcn.004019f0
add esp, 8
jmp 0x402b3c
push str.MiniDumpWriteDump
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4029ce
call fcn.00402930
push eax
push str._ERROR__GetProcAddress___failed:__s
call fcn.004019f0
add esp, 8
jmp 0x402b3c
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x402a07
call fcn.00402930
push eax
push str._ERROR__GetTempPath___failed:__s
call fcn.004019f0
add esp, 8
jmp 0x402b3c
cmp dword [ebp - 0x10c], 0x104
jb 0x402a31
push 0
push str.len___MAX_PATH
push 0x308
push 0x476a00
push str.ODR_doMiniDump
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x402a07
mov eax, dword [ebp + 0xc]
push eax
push 0
push str.mud_5.11.1_
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x402a74
call fcn.00402930
push eax
push str._ERROR__GetTempFileName___failed:__s
call fcn.004019f0
add esp, 8
jmp 0x402b3c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x402ab7
call fcn.00402930
push eax
push str._ERROR__CreateFile___failed:__s
call fcn.004019f0
add esp, 8
jmp 0x402b3c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], 0
push 0
push 0
lea ecx, [ebp - 0x128]
push ecx
push 0x40
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x402b2f
call fcn.00402930
push eax
push str._ERROR__MiniDumpWriteDump___failed:__s
call fcn.004019f0
add esp, 8
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402b3c
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee13
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402b99
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push eax
push str.send_error:_sent__d_error__ld_n
push 2
call fcn.0041e0b2
add esp, 4
push eax
call fcn.00404240
add esp, 0x10
or eax, 0xffffffff
jmp 0x402be8
cmp dword [ebp - 4], 0xffffffff
jne 0x402bba
push 0
push 0x4761dc
push 0x5e
push 0x4761f4
push 0x476218
call fcn.0040e320
add esp, 0x14
xor ecx, ecx
jne 0x402b99
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
je 0x402be1
push 0
push str.sent__nbytes
push 0x5f
push 0x476234
push str.ODR_write
call fcn.0040e320
add esp, 0x14
xor eax, eax
jne 0x402bbe
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402c15
xor eax, eax
jmp 0x402c7e
cmp dword [ebp - 4], 0xffffffff
jne 0x402c56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x402c33
call fcn.004312db
mov dword [eax], 0x6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push eax
push str.MUDEC_00586:_recv_2__error:_read__d_error__ld
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c000
add esp, 0x14
mov eax, dword [ebp - 4]
jmp 0x402c7e
cmp dword [ebp - 4], 0
jg 0x402c77
push 0
push str.read___0
push 0x73
push 0x4762a0
push str.ODR_read
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x402c56
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403250
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x47c894]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x4032a2
push 0
push 0x476ddc
push 0x3c5
push 0x476de8
push 0x476e0c
call fcn.0040e320
add esp, 0x14
xor ecx, ecx
jne 0x40327b
call fcn.00405470
push 0
call fcn.00401a80
add esp, 4
push eax
call fcn.00432c75
add esp, 4
push 0
push 0x476e18
call fcn.0040bf30
add esp, 8
mov dword [0x47f5a4], eax
cmp dword [0x47f5a4], 0
jne 0x4032f9
push 0
push str.odr_vl___NULL
push 0x3cb
push 0x476e2c
push str.ODR_libinit
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x4032d2
call fcn.004025e0
mov dword [0x47d408], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee13
mov esp, ebp
pop ebp
ret
Function at 0x404330
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp eax, dword [0x47d878]
je 0x404372
call fcn.00404530
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x404370
push 0x2cd
push 0x477430
push str.self.p___NULL
call fcn.0041de99
add esp, 0xc
jmp 0x4043c6
mov edx, dword [0x47d878]
push edx
call fcn.004044e0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4043b7
cmp dword [ebp + 0xc], 0
jne 0x4043a7
push 0x2d9
push 0x4774a8
push str.value___NULL
call fcn.0041de99
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
jmp 0x4043c6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x404439
cmp dword [ebp - 0x10], 0
je 0x404403
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x404403
cmp dword [ebp + 0xc], 0
je 0x404403
xor edx, edx
jne 0x404403
push 0x30e
push 0x477520
push 0x477578
call fcn.0041de99
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x404439
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x404439
xor ecx, ecx
jne 0x404439
push 0x317
push 0x477588
push 0x4775e0
call fcn.0041de99
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404440
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0x14
push 1
call fcn.0042f886
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404479
push 0x344
push 0x4775f0
push str.newkey___NULL
call fcn.0041de99
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0xffffffff
jne 0x4044a5
push 0x346
push 0x477668
push str.newkey__key___TLS_OUT_OF_INDEXES
call fcn.0041de99
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4044c2
push 0x347
push 0x477708
push str.destructor__NULL
call fcn.0041de99
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4044e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4044f5
mov dword [ebp - 4], 0
jmp 0x404529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
push eax
call sub.WS2_32.dll_WSASetLastError
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40695e
jmp 0x406abc
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 0x1c
push edx
call fcn.00404ba0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.00404d10
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
call fcn.00404ba0
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4069d2
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
call fcn.00404d10
add esp, 4
jmp 0x406ab2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
add eax, 0xc
push eax
call fcn.00404e00
add esp, 4
cmp eax, 0x2718
jne 0x406a04
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
call fcn.00404d10
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40699b
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edx + 0x80], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [ebp - 0x18], 0
je 0x406a83
cmp dword [ebp - 0x10], 4
jg 0x406a83
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
call fcn.00404d10
add esp, 4
mov edx, dword [ebp - 0xc]
add edx, 0xc
push edx
call fcn.00404d10
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 0x1c]
add esp, 4
jmp 0x406aad
mov edx, dword [ebp - 8]
push edx
call fcn.00405860
add esp, 4
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.00404d10
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
push ecx
call fcn.00404d10
add esp, 4
jmp 0x40699b
cmp dword [ebp - 0x14], 0
jne 0x40695e
mov esp, ebp
pop ebp
ret
Function at 0x406ac0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x47d888], 0
je 0x406b51
mov eax, dword [0x47d878]
push eax
call fcn.004044e0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406b51
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00406940
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x30
push ecx
call fcn.00404ba0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 6
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call fcn.00404d10
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 1
jne 0x406b51
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
call fcn.004068a0
add esp, 8
push 0
mov edx, dword [0x47d878]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40b980
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40b9bb
push 0x47b21c
call fcn.00446071
add esp, 4
or eax, 0xffffffff
jmp 0x40ba34
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40b9f9
push str.setsockopt_SO_REUSEADDR__1_
call fcn.00446071
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x40ba34
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40ba31
push str.bind__
call fcn.00446071
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x40ba34
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40ba90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40bafc
call fcn.004312db
cmp dword [eax], 0x87
je 0x40bad3
push str.socket__
call fcn.00446071
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x40bae2
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
cmp dword [ebp + 0x14], 0
je 0x40baf4
call fcn.004312db
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov dword [ecx], edx
or eax, 0xffffffff
jmp 0x40bbae
cmp dword [ebp + 0xc], 0
je 0x40bb3b
mov eax, dword [ebp - 4]
push eax
call fcn.0040c850
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40bb3b
cmp dword [ebp + 0x10], 0
je 0x40bb26
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 7
cmp dword [ebp + 0x14], 0
je 0x40bb36
call fcn.00403850
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
or eax, 0xffffffff
jmp 0x40bbae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bb6f
cmp dword [ebp + 0xc], 0
je 0x40bb80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40bb80
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040c7f0
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x40bbae
cmp dword [ebp + 0x10], 0
je 0x40bb8f
mov edx, dword [ebp + 0x10]
mov dword [edx], 4
cmp dword [ebp + 0x14], 0
je 0x40bba1
call fcn.004312db
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40c850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c87e
or eax, 0xffffffff
jmp 0x40c880
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40c8c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xa
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c937
mov eax, dword [ebp - 4]
push eax
call fcn.0040cb30
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.getnameinfo___d__s_n
call fcn.004019f0
add esp, 0xc
push str.Conversion
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004040d0
add esp, 0xc
push str.Failed
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.004040d0
add esp, 0xc
jmp 0x40c98a
push 7
push str.::ffff:
mov eax, dword [ebp + 0x10]
push eax
call fcn.00434c90
add esp, 0xc
test eax, eax
jne 0x40c98a
mov dword [ebp - 4], 0
jmp 0x40c960
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
movsx eax, byte [edx + 7]
test eax, eax
je 0x40c981
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 4]
mov al, byte [edx + 7]
mov byte [ecx], al
jmp 0x40c957
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
mov byte [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x40d0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d112
or eax, 0xffffffff
jmp 0x40d1df
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.ProgId
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d144
cmp dword [ebp - 0x10], 1
je 0x40d156
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40d1df
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 4
je 0x40d16f
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
push str.Firefox
mov eax, dword [ebp + 8]
push eax
call fcn.00413050
add esp, 8
test eax, eax
je 0x40d188
xor eax, eax
jmp 0x40d1df
push str.Chrome
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413050
add esp, 8
test eax, eax
je 0x40d1a4
mov eax, 1
jmp 0x40d1df
push 0x47bb48
mov edx, dword [ebp + 8]
push edx
call fcn.00413050
add esp, 8
test eax, eax
je 0x40d1c0
mov eax, 2
jmp 0x40d1df
push 0x47bb4c
mov eax, dword [ebp + 8]
push eax
call fcn.00413050
add esp, 8
test eax, eax
je 0x40d1dc
mov eax, 3
jmp 0x40d1df
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40d253
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x47c894]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x604]
push eax
call fcn.0040d0e0
add esp, 8
mov dword [ebp - 0x61c], eax
cmp dword [ebp - 0x61c], 0xffffffff
jne 0x40d22d
xor eax, eax
jmp 0x40d47f
mov ecx, dword [ebp - 0x61c]
mov dword [ebp - 0x620], ecx
cmp dword [ebp - 0x620], 3
ja case.default.0x40d24c
mov edx, dword [ebp - 0x620]
jmp dword [edx*4 + 0x40d490]
mov dword [ebp - 0x610], str.FIREFOX.EXE
jmp 0x40d2d5
mov dword [ebp - 0x610], str.Google_Chrome
jmp 0x40d2d5
mov dword [ebp - 0x610], 0x47bb6c
jmp 0x40d2d5
mov eax, dword [ebp + 8]
push eax
push str.__WINDIR___system32cmd.exe__c__start_microsoft_edge:_s_
push 0x200
lea ecx, [ebp - 0x204]
push ecx
call fcn.004040d0
add esp, 0x10
push 0x200
push 0x47d8b8
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x614], eax
cmp dword [ebp - 0x614], 0x200
jb 0x40d2c4
xor eax, eax
jmp 0x40d47f
mov eax, 0x47d8b8
jmp 0x40d47f
xor eax, eax
jmp 0x40d47f
lea eax, [ebp - 0x604]
push eax
push str._s_shellopencommand
push 0x200
lea ecx, [ebp - 0x404]
push ecx
call fcn.004040d0
add esp, 0x10
lea edx, [ebp - 0x60c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
je 0x40d37a
mov ecx, dword [ebp - 0x610]
push ecx
push str.SOFTWAREWow6432NodeClientsStartMenuInternet_s_shellopencommand
push 0x200
lea edx, [ebp - 0x404]
push edx
call fcn.004040d0
add esp, 0x10
lea eax, [ebp - 0x60c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
je 0x40d37a
xor eax, eax
jmp 0x40d47f
mov dword [ebp - 0x614], 0x200
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x624]
push ecx
push 0
push 0x47d8b1
mov edx, dword [ebp - 0x60c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
jne 0x40d3c5
cmp dword [ebp - 0x624], 1
je 0x40d3d9
mov eax, dword [ebp - 0x60c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40d47f
mov ecx, dword [ebp - 0x60c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x47bc18
lea edx, [ebp - 0x204]
push edx
call fcn.00413050
add esp, 8
test eax, eax
je 0x40d458
mov eax, dword [ebp + 8]
push eax
push 0x47bc1c
lea ecx, [ebp - 0x204]
push ecx
call fcn.0040cf90
add esp, 0xc
mov dword [ebp - 0x618], eax
cmp dword [ebp - 0x618], 0
jne 0x40d429
xor eax, eax
jmp 0x40d47f
mov edx, dword [ebp - 0x618]
push edx
push 0x47bc20
push 0x200
push 0x47d8b8
call fcn.004040d0
add esp, 0x10
mov eax, dword [ebp - 0x618]
push eax
call fcn.0042f891
add esp, 4
jmp 0x40d47a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0x47bc24
push 0x200
push 0x47d8b8
call fcn.004040d0
add esp, 0x14
mov eax, 0x47d8b8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee13
mov esp, ebp
pop ebp
ret