joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movzx eax, al
push eax
movzx eax, byte [ebp + 0x11]
push eax
movzx eax, byte [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x1001b20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x18
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
leave
ret 0xc

Function at 0x1003d1d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push dword [ebp + 0xc]
xor ebx, ebx
call fcn.01003cd3
mov esi, dword [ebp + 0x10]
cmp esi, ebx
jne 0x1003d40
imul eax, eax, 0x5c
add eax, 0x1001f58
jmp 0x1003d7e
push 0x1001e5c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003d7c
push edi
push 0x17
pop ecx
lea eax, [ebp - 0x5c]
lea edi, [ebp - 0x5c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.01003cfc
push 0x20
push 0x1001f30
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x5c]
pop edi
jmp 0x1003d7e
xor eax, eax
cmp eax, ebx
je 0x1003d96
push 0x5c
push eax
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x1003d9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
lea eax, [ebp + 8]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x1001dd0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1003e0e
push ebx
push edi
mov edi, dword [esi + 0x1001f40]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 0x5c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003df8
cmp dword [ebp - 8], 3
jne 0x1003df8
lea ebx, [ebp - 0x64]
push ebx
push edi
push dword [ebp + 8]
call fcn.01003d1d
add esi, 4
cmp esi, 0x18
jb 0x1003dc5
pop edi
pop ebx
jmp 0x1003e15
cmp eax, 2
jne 0x1003e15
xor eax, eax
pop esi
leave
ret 4
Function at 0x1003e1a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
mov esi, 0x2c8
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1003f25
push 3
pop ecx
cmp dword [ebp - 0xc], ecx
jne 0x1003f25
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
push ebx
mov eax, dword [ebp - 4]
mov edi, dword [ebp + eax*8 - 0x38]
push 0x1001e5c
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003ee9
push edi
jmp loc.01010000
inc dword [ebp - 4]
cmp dword [ebp - 4], 6
jb 0x1003ebb
cmp dword [ebp - 8], esi
pop ebx
jae 0x1003f0d
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], eax
push esi
lea eax, [ebp - 0x304]
push eax
push 3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
leave
ret 8

Function at 0x1003f2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push 0x1001d88
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1003f9f
push ebx
xor ebx, ebx
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc ebx
test esi, esi
jne 0x1003f95
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.01003e1a
jmp 0x1003f57
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
cmp esi, 2
jne 0x1003fa6
xor esi, esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x402360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4044ae
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_char____thiscall_QByteArray::begin_void_]
movzx edi, byte [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], eax
shl edi, 2
mov ecx, esi
mov eax, esi
shr ecx, 2
and eax, 3
add ecx, edi
imul ecx, dword [ebx + 8]
add ecx, eax
push ecx
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
mov ecx, dword [ebp - 0x10]
xor byte [esi + ecx], al
inc esi
cmp esi, 0x10
jl 0x4023a4
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4026dc
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
pushal
call 0x4026e2
pop ebp
sub ebp, 0x702d1082
jmp 0x40279c
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
and eax, 0xff
je 0x4027b4
mov eax, 1
int3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ebx, [ebp + 0x702d1d67]
mov cx, word [eax + 0x1c]
cmp cx, 0x18
je 0x4027e0
cmp cx, 0x1c
jne 0x402807
lea ebx, [ebp + 0x702d1d85]
push eax
mov al, byte [edx]
xor al, byte [ebx]
sub al, 0x55
jne 0x4027eb
jmp 0x4027f8
mov al, byte [edx]
add al, 0x20
xor al, byte [ebx]
sub al, 0x55
je 0x4027f8
pop eax
jmp 0x402807
sub cx, 2
je 0x402804
add edx, 2
inc ebx
jmp 0x4027e1
pop eax
jmp 0x40280b
mov esi, dword [eax]
jmp 0x4027c0
mov eax, dword [eax + 8]
mov dword [ebp + 0x702d1da3], eax
lea ebx, [ebp + 0x702d1dab]
push ebx
push dword [ebp + 0x702d1da3]
call fcn.004026ee
mov dword [ebp + 0x702d1e74], eax
cmp eax, 0
jne 0x402878
lea ebx, [ebp + 0x702d1db8]
push ebx
push dword [ebp + 0x702d1da3]
call fcn.004026ee
mov dword [ebp + 0x702d1e78], eax
xor ebx, ebx
push ebx
push ebx
lea ebx, [ebp + 0x702d1d76]
push ebx
call dword [ebp + 0x702d1e78]
mov dword [ebp + 0x702d1da3], eax
lea ebx, [ebp + 0x702d1dab]
push ebx
push dword [ebp + 0x702d1da3]
call fcn.004026ee
mov dword [ebp + 0x702d1e74], eax
lea ebx, [ebp + 0x702d1dc7]
push ebx
push dword [ebp + 0x702d1da3]
call fcn.004026ee
mov dword [ebp + 0x702d1e80], eax
lea ebx, [ebp + 0x702d1dd3]
push ebx
push dword [ebp + 0x702d1da3]
call fcn.004026ee
mov dword [ebp + 0x702d1e84], eax
mov ebx, esp
sub esp, 4
push ebx
mov ebx, 0x40
push ebx
mov ebx, 0x702d1f62
sub ebx, 0x702d1265
push ebx
call 0x4028c5
call eax
add esp, 4
jmp 0x4028dc
lea eax, [ebp + 0x702d1296]
push eax
push dword fs:[0]
mov dword fs:[0], esp
jmp 0x402a4e
mov eax, 0xffff
int3
Function at 0x4026ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
jne 0x402783
mov edi, dword [ebp + 0xc]
mov ecx, 0x96
mov al, 0x55
repne scasb al, byte es:[edi]
invalid

Function at 0x4030a0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp eax, edx
mov dword [ebp + 8], edx
jae 0x403125
mov edi, dword [eax + 4]
test edi, edi
jbe 0x403125
mov ecx, dword [eax]
add ecx, dword [ebp - 4]
and dword [ebp + 0xc], 0
add edi, 0xfffffff8
shr edi, 1
test edi, edi
lea ebx, [eax + 8]
jbe 0x403117
movzx edx, word [ebx]
and edx, 0xfff
movsx eax, dx
movzx edx, word [ebx]
movzx edx, dx
shr edx, 0xc
add eax, ecx
sub edx, 0
je 0x403107
dec edx
je 0x4030f8
dec edx
je 0x4030ef
dec edx
jne 0x403114
mov edx, dword [ebp - 0x10]
add dword [eax], edx
jmp 0x403107
mov dx, word [ebp - 0x10]
add word [eax], dx
jmp 0x403107
movzx edx, word [eax]
shl edx, 0x10
add edx, dword [ebp - 0x10]
invalid
shr edx, 0x10
mov word [eax], dx
inc ebx
inc ebx
inc dword [ebp + 0xc]
movzx eax, word [ebp + 0xc]
cmp eax, edi
jb 0x4030c3
mov edx, dword [ebp + 8]
test ebx, ebx
mov eax, ebx
je 0x403225
invalid
cmp ebx, edx
jb 0x4030a7
mov ebx, dword [esi + 0x80]
mov edi, dword [ebp - 4]
add ebx, edi
jmp 0x40317d
add eax, edi
push eax
call dword [ebp + 0x18]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x403225
cmp dword [ebx + 4], 0
jne 0x40314e
mov edi, dword [ebx + 0x10]
jmp 0x403150
mov edi, dword [ebx]
add edi, dword [ebp - 4]
jmp 0x403172
mov eax, dword [edi]
test eax, eax
jns 0x40315f
push 1
jmp 0x403167
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 2]
push eax
push dword [ebp + 0xc]
call dword [ebp + 0x1c]
mov dword [edi], eax
add edi, 4
cmp dword [edi], 0
jne 0x403155
mov edi, dword [ebp - 4]
add ebx, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x403132
and dword [ebp + 0xc], eax
cmp word [esi + 6], ax
jbe 0x403215
mov ebx, dword [ebp - 0x18]
add ebx, 8
mov eax, dword [ebx + 0x1c]
xor ecx, ecx
test eax, 0x4000000
je 0x4031a8
mov ecx, 0x200
test eax, 0x20000000
je 0x4031d5
test eax, 0x40000000
je 0x4031c4
test eax, eax
jns 0x4031bf
or ecx, 0x40
jmp 0x4031f6
or ecx, 0x20
jmp 0x4031f6
test eax, eax
jns 0x4031d0
or ecx, 0x80
jmp 0x4031f6
or ecx, 0x10
jmp 0x4031f6
test eax, 0x40000000
je 0x4031ea
test eax, eax
jns 0x4031e5
or ecx, 4
jmp 0x4031f6
or ecx, 2
jmp 0x4031f6
test eax, eax
js 0x4031f3
or ecx, 8
jmp 0x4031f6
or ecx, 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 4]
push ecx
push dword [ebx]
add eax, edi
push eax
call dword [ebp + 0x10]
movzx eax, word [esi + 6]
inc dword [ebp + 0xc]
add ebx, 0x28
cmp dword [ebp + 0xc], eax
jl 0x403197
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x20]
push 1
push edi
add eax, edi
call eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x401040
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push edi
push 0
push 0xa
push 0x4032b0
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fwprintf]
add eax, 0x40
push eax
call edi
add esp, 0x10
test ebx, ebx
je 0x401099
push str.makehm:_error:
call esi
add eax, 0x40
push eax
call edi
mov eax, dword [esp + 0x14]
add esp, 8
push eax
push ebx
call esi
add eax, 0x40
push eax
call edi
add esp, 0xc
push 0x4033c0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push str.makehm_usage:_n_n__makehm___h___a__file.h____I__path______from___to___add_...__resource.h___output.hm__n_n_____h_______generates_an_include_file__.h__for_HTML_help_instead_of_n_____________a_normal__.hm__WinHelp_map_file._n_____a_______copies_the_contents_of_the_specified__file.h__file_to_the_n_____________output._n_____I_______additional_path_to_search_for_the_file.h_file.__The_program_will_n_____________first_look_in_the_current_directory__then_the_path_specified_by_the_n______________I_option_and_then_in_the_path_specified_by_the_INCLUDE_n_____________environment_variable._n_n_____from___to___add__fields_must_appear_as_one_argument_and_n_______are_separated_by_commas.__A_set_of_these_arguments_may_n_______appear_more_than_once._n_____from____identifies_the_symbol_prefix_to_map_from__e.g.__ID___n_____to______identifies_the_symbol_prefix_to_map_to__e.g.__HID___n_____add_____identifies_a_numeric_offset_to_be_used__e.g.__0x10000__n_n_____resource.h____identifies_the_input_header_file__e.g.__resource.h_._n_____output.hm____identifies_the_output_help_map_file.__If_not_n_______supplied__output_is_written_to_stdout._n
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
pop esi
int3
Function at 0x40269d
Capabilities:
Encode data using xor

Disassembly:
pushal
lea ecx, [0xf2dfe0a8]
mov eax, 0x200b924d
xadd dl, bh
mov ch, dh
xadd ah, bl
mov al, bl
shld eax, ebp, 0xba
test ah, bh
movzx eax, bh
not edx
shld esi, ebx, 0x4a
test dh, ah
call 0x402661
shrd edx, eax, cl
mov ecx, 0x6503cb87
btc ebp, ebp
mov ecx, 0xb1353625
bswap edx
rcr dl, 0x60
cmp esi, eax
rcl edx, 0xc1
dec edx
bsf esi, ebx
test bh, 0xa8
inc bl
mov edx, ecx
mov ebx, edx
mov dh, bh
mov eax, 0x539b
imul esi, ebp, 0xa87d74d0
and dh, ch
mov bl, dl
xor eax, 0x4b5f
dec ebx
add byte [eax], al
test ecx, 0x1ce4b73c
sub eax, 0x6e0
neg bh
mov ecx, 0
mov dh, 0x80
add ecx, eax
inc dl
add al, bh
lea edx, [0xca71ca7e]
xchg ecx, edi
cmp esi, 0x9aaa
jae 0x4026cc
add dh, dl
sub edi, 0x13d
Function at 0x1000201d
Capabilities:
Terminate process

Disassembly:
jmp 0x10052092
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x100520a3
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10001410
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x10003049
Capabilities:
Query environment variable

Disassembly:
jmp 0x1005c81c
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005c830
xor edi, edi
jmp 0x1005c867
push ebx
push esi
call fcn.1005c724
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100023e7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005c857
push ebx
push esi
push edi
call fcn.10003143
add esp, 0xc
push 0
call fcn.100014d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x403850
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x34], 0
je 0x403873
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
call fcn.00549ff0
add esp, 0xc
pop esi
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
jbe 0x403951
push ebp
mov ebp, dword [esp + 0x14]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push edi
lea esp, [esp]
cmp dword [esi + 8], 0
jne 0x4038cc
mov eax, dword [esi + 0x30]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x20]
push edx
push 0x10000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403956
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403972
mov edx, dword [esi + 0x30]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
cmp dword [esi + 0x38], 0
je 0x403904
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 8]
cmp edi, eax
jbe 0x4038de
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x14]
push edi
push eax
push ecx
call fcn.00549c80
add dword [esi + 4], edi
add dword [esi + 0x14], edi
sub dword [esi + 8], edi
add esp, 0xc
sub dword [esi + 0x18], edi
jne 0x403890
pop edi
pop ebp
pop ebx
pop esi
ret 0xc
lea edx, [esi + 4]
push edx
call fcn.0052aa80
test eax, eax
je 0x403916
cmp eax, 4
jne 0x403992
cmp dword [esi + 0x18], 0
je 0x40394f
cmp eax, 4
jne 0x403890
push eax
push str.BZ2_bzDecompress__:__d:_Unexpected_EOF_in_decompression_stream._n
call fcn.0048f080
add esp, 8
lea eax, [esi + 4]
push eax
call fcn.0052ab70
push ebx
push 0
push ebp
mov dword [esi + 0x34], 1
call fcn.00549ff0
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile__:__d:_Failed_to_read._n
call fcn.0048f080
add esp, 8
cmp dword [esi + 0x38], 0
jne 0x40393c
jmp 0x403933
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile__:__d:_Failed_to_read._n
call fcn.0048f080
add esp, 8
cmp dword [esi + 0x38], 0
jne 0x40393c
lea ecx, [esi + 4]
push ecx
jmp 0x403937
push eax
push str.BZ2_bzDecompress__:__d:_Failed_to_decompress._n
call fcn.0048f080
add esp, 8
lea edx, [esi + 4]
push edx
jmp 0x403937
Function at 0x496320
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
jmp 0x496330
mov eax, dword [esi + 0x160]
cmp eax, dword [esi + 0x164]
jne 0x496389
push 0x10000
call fcn.004a47b0
cmp dword [esi + 0x158], 0
je 0x49635b
mov ecx, dword [esi + 0x15c]
mov dword [ecx], eax
jmp 0x496361
mov dword [esi + 0x158], eax
mov dword [eax], 0
add dword [esi + 0x168], 1
lea edx, [eax + 0x10000]
mov dword [esi + 0x15c], eax
add eax, 4
mov dword [esi + 0x164], edx
mov dword [esi + 0x160], eax
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
mov edx, dword [esi + 8]
push 0
sub ecx, eax
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x496511
test eax, eax
je 0x49652a
mov ebx, dword [esi + 0x160]
xor edi, edi
mov dword [esp + 0xc], eax
add eax, ebx
mov dword [esi + 0x160], eax
lea ebx, [ebx]
cmp byte [ebx], 0xa
jne 0x4964c9
test edi, edi
mov byte [ebx], 0
je 0x4963f2
push esi
mov ecx, edi
call fcn.00495b90
add ebx, 1
mov edi, ebx
jmp 0x4964cc
mov eax, dword [esi + 0x168]
cmp eax, 1
jne 0x496416
mov ecx, dword [esi + 0x15c]
add ecx, 4
push esi
call fcn.00495b90
add ebx, 1
mov edi, ebx
jmp 0x4964cc
add eax, 0xffffffff
imul eax, eax, 0xfffc
sub eax, dword [esi + 0x15c]
lea ecx, [eax + ebx - 3]
push ecx
call fcn.004a47b0
mov ebp, dword [esi + 0x158]
cmp ebp, dword [esi + 0x15c]
mov dword [esp + 0x14], eax
mov edi, eax
je 0x496474
mov edx, dword [ebp]
push 0xfffc
lea eax, [ebp + 4]
push eax
push edi
mov dword [esp + 0x1c], edx
call fcn.00549c80
add esp, 0xc
push ebp
add edi, 0xfffc
call fcn.004a4810
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esi + 0x15c]
jne 0x496443
mov eax, dword [esi + 0x15c]
mov ecx, ebx
sub ecx, eax
sub ecx, 4
push ecx
add eax, 4
push eax
push edi
call fcn.00549c80
sub edi, dword [esi + 0x15c]
add esp, 0xc
mov byte [edi + ebx - 4], 0
mov edx, dword [esi + 0x15c]
mov edi, dword [esp + 0x14]
push esi
mov ecx, edi
mov dword [esi + 0x168], 1
mov dword [esi + 0x158], edx
call fcn.00495b90
push edi
call fcn.004a4810
add ebx, 1
mov edi, ebx
jmp 0x4964cc
add ebx, 1
sub dword [esp + 0xc], 1
jne 0x4963d0
test edi, edi
je 0x496330
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0x15c]
sub eax, edi
push eax
add ecx, 4
push edi
push ecx
call fcn.00549910
mov edx, dword [esi + 0x15c]
sub edx, edi
add edx, 4
add esp, 0xc
add dword [esi + 0x160], edx
jmp 0x496330
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
sete cl
pop edi
pop ebp
pop ebx
mov eax, ecx
add esp, 0xc
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4ba970
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
sub esp, 0x428
mov eax, dword [0x597fa8]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [esp + 0x430]
mov ecx, dword [esp + 0x434]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call ebx
mov esi, eax
test esi, esi
je 0x4ba9f8
lea edx, [esp + 0x230]
push edx
call fcn.004ba2e0
push 0
call fcn.004ba670
push 0x10000
lea eax, [esp + 0x234]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4ba9f1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push str.InstallService
call fcn.004fdf70
push str.install_service..._n
mov dword [esp + 0x14], 0x1e
call fcn.0048f080
add esp, 4
push 2
push 0
push 0
call ebx
mov ebx, dword [esp + 0x43c]
mov esi, eax
test esi, esi
je 0x4bab2f
mov ebp, dword [sym.imp.ADVAPI32.dll_CreateServiceW]
jmp 0x4baa40
lea ecx, [esp + 0x1c]
push ecx
call fcn.00523650
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
xor edi, edi
call fcn.004ba1e0
lea edx, [esp + 0x230]
push edx
call fcn.004ba2e0
mov eax, dword [esp + 0x24]
push edi
push edi
push edi
push edi
push edi
push eax
push edi
push 2
push 0x10
push 2
lea ecx, [esp + 0x258]
push ecx
mov edx, ecx
push edx
push esi
call ebp
test eax, eax
je 0x4baa9f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call fcn.004ba500
jmp 0x4baaf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4baab4
push ebx
call fcn.004ba500
jmp 0x4baaf4
cmp dword [esp + 0x10], 0
je 0x4baad4
cmp eax, 0x430
jne 0x4baad4
sub dword [esp + 0x10], 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4baaf9
test ebx, ebx
je 0x4baaf4
push eax
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esp + 0x1c]
push eax
call fcn.00401210
test edi, edi
jne 0x4bab55
push str.install_service..._n
call fcn.0048f080
add esp, 4
push 2
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4baa40
test ebx, ebx
je 0x4bab55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
invalid
Function at 0x4c0a00
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
cmp eax, 0x203
push esi
jg 0x4c0aad
je 0x4c0a8d
cmp eax, 0x7b
je 0x4c0ab8
cmp eax, 0x201
jne 0x4c0c59
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x5992d6], 0
mov esi, eax
je 0x4c0a60
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov ecx, esi
sub ecx, dword [0x5992b4]
cmp ecx, eax
ja 0x4c0a60
call fcn.004c0950
mov dword [0x5992b4], esi
xor eax, eax
pop esi
add esp, 8
ret 4
cmp byte [0x598ee0], 0
jne 0x4c0a72
cmp byte [0x5992d4], 0
je 0x4c0a77
call fcn.004c0950
mov dword [0x5992b4], esi
mov byte [0x5992d6], 1
xor eax, eax
pop esi
add esp, 8
ret 4
call fcn.004c0950
mov byte [0x5992d6], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5992b4], eax
xor eax, eax
pop esi
add esp, 8
ret 4
cmp eax, 0x205
jne 0x4c0c59
push ebx
push edi
push 0x10
call fcn.004ae120
test eax, eax
je 0x4c0ad4
xor edx, edx
cmp byte [0x598edf], dl
sete dl
mov edi, edx
jmp 0x4c0adb
movsx edi, byte [0x598edf]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [sym.imp.USER32.dll_CreateMenu]
call esi
mov ebx, eax
call esi
test edi, edi
mov esi, eax
je 0x4c0b25
mov ecx, dword [0x58eedc]
mov edx, dword [ecx + 0x1cc]
push edx
push 0x9c41
push 0
push esi
call fcn.004aa7e0
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0xd34]
push ecx
push 0x9c47
jmp 0x4c0b51
mov edx, dword [0x58eedc]
mov eax, dword [edx + 0xd34]
push eax
push 0x9c47
push 0
push esi
call fcn.004aa7e0
mov ecx, dword [0x58eedc]
mov edx, dword [ecx + 0x1cc]
push edx
push 0x9c41
push 0
push esi
call fcn.004aa7e0
push esi
call fcn.004aa870
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0x260]
push ecx
push 0x9c44
push 0
push esi
call fcn.004b1af0
mov edx, dword [0x58eedc]
mov eax, dword [edx + 0xd24]
push eax
push 0xa2e5
push 0
push esi
call fcn.004b1af0
mov ecx, dword [0x58eedc]
mov edx, dword [ecx + 0xb54]
push edx
push 0xa2e4
push 0
push esi
call fcn.004b1af0
push esi
call fcn.004aa870
mov eax, dword [0x58eedc]
mov ecx, dword [eax + 0x1dc]
push ecx
push 0x9c45
push 0
push esi
call fcn.004aa7e0
push esi
call fcn.004aa870
mov edx, dword [0x58eedc]
mov eax, dword [edx + 0x1e0]
push eax
push 0x9c46
push 0
push esi
call fcn.004aa7e0
push 0x551656
push esi
push 0x10
push ebx
call fcn.004aa7e0
test edi, edi
push 0
je 0x4c0c06
push 0x9c41
jmp 0x4c0c0b
push 0x9c47
push esi
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov ecx, dword [0x5992d8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x5992d8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push edx
push 0
push eax
push ecx
push 2
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov edx, dword [0x5992d8]
push 0
push 0
push 0
push edx
call dword [0x598e0c]
push ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 8
ret 4