joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c44
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40a370
call fcn.00409f08
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409ca4
cmp eax, 0xffffffff
je 0x409ca4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x409c9d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x409c9d
cmp edx, 0x10000000
jae 0x409c9d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x409c9a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409d10
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 0x409d4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409d46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409d50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409d36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409e20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x409e51
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409e51
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x409e51
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405450
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4053f7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x405415
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x405473
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40545a
dec ebp
sbb byte [ebx], bh
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x405463
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40546d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40544f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4053d9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4054c0
dec eax
je 0x4054b7
sub eax, 3
je 0x4054ae
mov dword [ebp - 4], 0x40
jmp 0x4054dd
mov dword [ebp - 4], 4
jmp 0x4054c3
mov dword [ebp - 4], 0x20
jmp 0x4054c3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40550f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40548f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00404d20
xchg ecx, eax
fisubr word [edx - 0x1c]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40551b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4059d1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x4059cf
call fcn.00404ce5
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00404d20
and byte [edi], 0xb3
daa
mov bl, 0x46
inc esi
Function at 0x10005800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000580f
pop dword [ebp - 0x34]
mov eax, 0x1000580f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x2b4b42b
add dword [ebp - 0x44], 0x4b9d9120
mov dword [ebp - 0x40], 0x6aedca7f
sub dword [ebp - 0x40], 0x38ba7e3a
mov dword [ebp - 0x3c], 0xa06de2d8
sub dword [ebp - 0x3c], 0x54219eaa
mov dword [ebp - 0x38], 0x23e9ca3
add dword [ebp - 0x38], 0xfdc1635d
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x6c301ebb
add dword [ebp - 0x44], 0x8424a9b
mov dword [ebp - 0x40], 0x98412d70
add dword [ebp - 0x40], 0xa92b3405
mov dword [ebp - 0x3c], 0x9323638b
sub dword [ebp - 0x3c], 0x2fb3f71f
mov dword [ebp - 0x38], 0x761990d8
add dword [ebp - 0x38], 0x89e66f28
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3fa11
push 0
call eax
mov ecx, 0x4d8a
mov ebx, eax
mov edx, 0x2d593e9c
add edx, 0xe2a97164
add edx, dword [ebp - 0x34]
mov edi, 0xdf403d1d
xor dword [ebp - 0x20], 0xc4d7e32e
mov esi, dword [edx]
xor dword [ebp - 0x2c], edx
sub esi, edi
xor dword [ebp - 0x14], 0xdf038e4d
mov dword [ebx], esi
add dword [ebp - 4], 0x2357b2de
add ebx, 4
add edx, 0xcf061cca
sub edx, 0xcf061cc6
loop 0x10005916
add eax, 0x20a94f10
add eax, 0xdf57d9eb
xor ebx, ebx
add ebx, eax
add eax, 0xfa1991b3
sub eax, 0xfa1991ae
mov ecx, 0xbc909bd8
sub ecx, 0xac909bd8
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4020d0
Capabilities:
Enumerate process modules
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e10
call fcn.00437550
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push 0x45f138
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push esi
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xffc
lea eax, [ebp - 0x1e0c]
push esi
push eax
mov dword [ebp - 0x1e10], esi
call fcn.00431310
add esp, 0xc
lea ecx, [ebp - 0xe10]
push ecx
push 0x1000
lea edx, [ebp - 0x1e10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push 0x451678
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0xe14], esi
call fcn.0042e7d4
mov ecx, dword [ebp - 0x1e10]
add esp, 0xc
xor edx, edx
cmp ecx, esi
je 0x4021c9
mov esi, dword [ebx + 0xc]
xor eax, eax
lea ecx, [ecx]
cmp esi, ecx
jbe 0x402193
mov eax, dword [ebp + eax - 0x1e0c]
cmp esi, eax
jb 0x4021a8
test eax, eax
je 0x4021a8
inc edx
lea eax, [edx*4]
mov ecx, dword [ebp + eax - 0x1e10]
test ecx, ecx
jne 0x402180
jmp 0x4021c9
mov edx, dword [ebp + edx*4 - 0x1e10]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push 0x100
lea eax, [ebp - 0x40c]
push eax
push 0
push 0
push 2
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x100
lea ecx, [ebp - 0x60c]
push ecx
push 0
push 0
push 8
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
cmp byte [ebp + 8], 0
mov eax, str.NonContinuable
jne 0x402213
mov eax, 0x451920
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx + 0xc]
push eax
push ecx
lea edx, [ebp - 0x60c]
push edx
lea eax, [ebp - 0x40c]
push eax
push str.__s__s__r_nException:__x_at__p__Thread:__d__Module:__s__s_r_n_r_n
lea ecx, [ebp - 0xe0c]
push 0x400
push ecx
call fcn.0042e435
add esp, 0x28
push 0
lea edx, [ebp - 0xe10]
push edx
lea eax, [ebp - 0xe0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea ecx, [ebp - 0xe0c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042decf
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403378
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4033aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4033a6
cmp esi, eax
jae 0x4033aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403398
cmp esi, eax
jb 0x4033b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4041d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40425c
cmp word [ebx + 8], 2
push edi
jne 0x40422e
cmp word [ebx + 0xa], 4
jne 0x40422e
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40422e
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00404160
mov dword [esi], eax
test eax, eax
je 0x404250
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x404208
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x14]
push 0x400
push eax
push 0x401
push ecx
call fcn.0042f5b5
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 8
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40426c.11001
jmp dword [eax*4 + 0x404294]
pop esi
mov eax, 0x2af9
pop ebx
pop ebp
ret 0x10
pop esi
mov eax, 0x2afa
pop ebx
pop ebp
ret 0x10
pop esi
mov eax, 0x2afb
pop ebx
pop ebp
ret 0x10
Function at 0x404a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x460264], 0
push ebx
push esi
push edi
mov dword [ebp - 0x238], str.getaddrinfo
mov dword [ebp - 0x234], 0x404530
mov dword [ebp - 0x230], str.getnameinfo
mov dword [ebp - 0x22c], 0x4047e0
mov dword [ebp - 0x228], str.freeaddrinfo
mov dword [ebp - 0x224], fcn.004044e0
je 0x404ad9
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x45d5ac]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x404bef
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x118]
push 0x10c
push eax
call fcn.0042f556
push str.ws2_32
lea ecx, [ebp - 0x118]
push 0x10c
push ecx
call fcn.0042f9de
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x404b52
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x404ba7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x118]
push 0x10c
push ecx
call fcn.0042f556
push str.wship6
lea edx, [ebp - 0x118]
push 0x10c
push edx
call fcn.0042f9de
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call edi
mov esi, eax
test esi, esi
je 0x404bef
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x404ba7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x404bef
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp + edi*8 - 0x238]
push ecx
push esi
call ebx
mov dword [ebp + edi*8 - 0x234], eax
test eax, eax
je 0x404b9e
inc edi
cmp edi, 3
jl 0x404bb0
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x224]
mov dword [0x45d5ac], edx
mov dword [0x45d5b4], eax
mov dword [fcn.004044e0], ecx
movzx edx, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x45d5ac]
pop edi
pop esi
xor ecx, ebp
mov dword [0x460264], 1
pop ebx
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4
Function at 0x404e60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x405053
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e86
sub eax, edx
je 0x405053
mov ecx, str.127.0.0.1
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404ec0
test dl, dl
je 0x404ebc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404ec0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404ea0
xor eax, eax
jmp 0x404ec5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405053
push 0x451bf0
push esi
call fcn.0042fbeb
add esp, 8
test eax, eax
je 0x405053
push str.localhost
push esi
call fcn.0042fbeb
add esp, 8
test eax, eax
je 0x405053
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x18], 0x10
xor ebx, ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x404f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404f5d
and eax, 0xffff
or eax, 0x80070000
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, str.GetComputerNameA__szLocalHost__dwSize_
call fcn.00404c60
push 0x456ac8
lea eax, [esp + 0x38]
push eax
call fcn.00434818
lea ecx, [esp + 0x44]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404fa2
test dl, dl
je 0x404f9e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404fa2
add eax, 2
add ecx, 2
test dl, dl
jne 0x404f82
xor eax, eax
jmp 0x404fa7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405053
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404c20
test eax, eax
je 0x404ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404fdb
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, str.0__WspiapiGetAddrInfo_szLocalHost__0__hints__res_
call fcn.00404c60
push 0x456ac8
lea edx, [esp + 0x38]
push edx
call fcn.00434818
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
mov edi, dword [ecx + 4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00404c20
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x405022
mov ecx, dword [esi + 0x18]
mov ebx, dword [ecx + 4]
mov eax, dword [0x46026c]
test eax, eax
jne 0x405037
push 2
call fcn.00404a60
mov dword [0x46026c], eax
push esi
call eax
xor eax, eax
cmp ebx, edi
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042decf
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042decf
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
xor eax, eax
push ebx
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov eax, dword [esp + 8]
mov esi, eax
cmp eax, ebx
je 0x4050e2
cmp dword [esi + 4], 2
je 0x4050ef
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x4050d5
push eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ebx, 0x30
mov dword [esp + 0xc], ebx
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, ebx
or ecx, edx
jge 0x405114
mov ecx, ebx
mov eax, edi
call fcn.00403650
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jl 0x405177
mov dword [eax - 0xc], ebx
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + 0x60], dx
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
mov edx, dword [edi]
test edx, edx
jne 0x405145
xor eax, eax
jmp 0x405161
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405150
sub eax, esi
sar eax, 1
js 0x405177
cmp eax, dword [edx - 8]
jg 0x405177
mov dword [edx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
pop esi
mov word [ecx + eax*2], dx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036a0
int3
Function at 0x405640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4489b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
push 8
mov dword [esp + 0x2c], edi
call fcn.0042e837
add esp, 4
cmp eax, edi
je 0x40568f
mov dword [eax], reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax + 4], edi
jmp 0x405691
xor eax, eax
push edi
lea ecx, [eax + 4]
push ecx
push edi
push 3
push edi
push edi
push edi
mov dword [esp + 0x2c], eax
mov edx, dword [eax]
push str.SOFTWARETCtrlTime_control_value
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x40571c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x45f3ec]
cmp dword [eax - 0xc], edi
je 0x4056e2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1d
push str.AGENT_PROPERTIES::LoadFromRegistry
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b40
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ebx, eax
cmp eax, edi
je 0x405707
lea esi, [eax + 4]
mov eax, dword [esi]
cmp eax, edi
je 0x4056fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], edi
push ebx
call fcn.0042dffd
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx + 4]
push 0x45f414
lea ecx, [esp + 0x20]
push ecx
push edi
push 0x45146c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x405791
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
mov ebx, eax
cmp eax, edi
je 0x405707
lea esi, [eax + 4]
mov eax, dword [esi]
cmp eax, edi
je 0x405773
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], edi
push ebx
call fcn.0042dffd
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x45f3ec
lea eax, [esp + 0x10]
push ecx
mov esi, eax
mov ebx, eax
push eax
mov eax, 0x4601e4
mov edi, ecx
call fcn.00407830
push edi
push esi
mov eax, 0x4601f4
call fcn.00407990
mov eax, edi
push eax
push ebx
mov eax, 0x460204
call fcn.00407b00
mov eax, edi
push eax
mov eax, ebx
push eax
mov eax, 0x460214
call fcn.00407c70
mov esi, 0x45fd48
call fcn.00405830
mov esi, 0x45fd50
call fcn.00405830
mov eax, dword [esp + 0x10]
mov edi, eax
test eax, eax
je 0x405813
lea esi, [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x40580a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
push edi
call fcn.0042dffd
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446908
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0
push 0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
push 0
push 0
push ecx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4066c3
mov ecx, edi
lea eax, [ebp - 0x10]
call fcn.004075c0
mov esi, dword [ebp - 0x10]
test edi, edi
js 0x406792
cmp edi, dword [esi - 8]
jg 0x406792
push 0
push 0
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
mov ebx, dword [ebp + 8]
push edi
push esi
push ecx
push eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406700
sub eax, edx
js 0x406792
cmp eax, dword [esi - 8]
jg 0x406792
push 2
lea edx, [ebp - 0x10]
mov dword [esi - 0xc], eax
push edx
mov byte [eax + esi], cl
call fcn.004071f0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x40673e
push edi
lea ecx, [ebp - 0x10]
push ecx
call fcn.00407280
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0
lea edx, [ebp + 8]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40675b
call fcn.00409020
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40677e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004036a0
int3