joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406e09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406e44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406e40
lea ebx, [ebx]
cmp esi, eax
jae 0x406e44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406e30
cmp esi, eax
jb 0x406e4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4083a0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x445edb
mov eax, dword fs:[0]
push eax
mov eax, 0x1404
call fcn.0041ca80
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x1400], eax
push ebp
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x1414]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1430]
lea ecx, [esp + 0x10]
xor ebp, ebp
call fcn.0040e3c0
push str.tureal
push str.gacon
push str.root
push str.192.168.1.14
lea ecx, [esp + 0x20]
mov dword [esp + 0x142c], ebp
call fcn.0040e420
test al, al
je 0x408529
push 0xfff
lea eax, [esp + 0x415]
push ebp
push eax
mov byte [esp + 0x41c], 0
call fcn.0041ca00
mov eax, dword [esp + 0x1438]
add esp, 0xc
cmp eax, 0xffffffff
je 0x408466
mov ecx, dword [esp + 0x1424]
push ecx
push eax
lea edx, [esp + 0x418]
push str.select_userid_from_tureal_coursemember_where_groupid___d_and_hostuserid___d
push edx
call fcn.0041cacc
add esp, 0x10
jmp 0x40848c
mov eax, dword [esp + 0x1424]
push eax
mov eax, dword [esp + 0x142c]
push eax
push eax
lea ecx, [esp + 0x41c]
push str.SELECT_tureal_user4courseroom.userid_FROM_tureal_user4courseroom__tureal_user_WHERE_tureal_user4courseroom.userid__tureal_user.userid_AND_tureal_user.type__0_AND_tureal_user4courseroom.roomid___d__t_t_tAND_tureal_user4courseroom.userid_NOT_IN__t_t_t_SELECT_tureal_coursemember.userid_FROM_tureal_coursemember__tureal_coursegroup__t_t_tWHERE_tureal_coursemember.groupid__tureal_coursegroup.groupid_AND_tureal_coursegroup.roomid___d_AND_tureal_coursegroup.userid___d_
push ecx
call fcn.0041cacc
add esp, 0x14
lea edx, [esp + 0x410]
push edx
lea ecx, [esp + 0x14]
call fcn.0040e490
test al, al
je 0x408517
lea ecx, [esp + 0x10]
call fcn.0040e510
test eax, eax
jbe 0x408517
lea ecx, [esp + 0x10]
call fcn.0040e510
xor ecx, ecx
mov ebp, eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bc8e
add esp, 4
lea ecx, [esp + 0x10]
mov dword [edi], eax
call fcn.0040e530
mov dword [esp + 0x3e4], eax
test eax, eax
je 0x408517
xor esi, esi
lea ebx, [ebx]
mov eax, dword [eax]
push eax
call fcn.0041cac1
mov ecx, dword [edi]
mov dword [esi + ecx], eax
add esp, 4
lea ecx, [esp + 0x10]
add esi, 4
call fcn.0040e530
mov dword [esp + 0x3e4], eax
test eax, eax
jne 0x4084f0
lea ecx, [esp + 0x10]
call fcn.0040e4e0
lea ecx, [esp + 0x10]
call fcn.0040ec80
lea ecx, [esp + 0x10]
mov dword [esp + 0x141c], 0xffffffff
call fcn.0040e410
mov eax, ebp
mov ecx, dword [esp + 0x1414]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1400]
xor ecx, esp
call fcn.0041c2ed
add esp, 0x1410
ret
Function at 0x40db90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4462d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0043329a
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40dbd5
push 0x80004005
call fcn.00406dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esi + 4]
mov dword [esp + 0x18], edi
call fcn.0040d8d0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x40dc20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446313
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.0040d940
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40dc72
push eax
call fcn.0041d7cf
add esp, 4
mov dword [esi + 0x30], 0
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.0040da80
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40f410
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44643b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0041ca00
add esp, 0xc
call fcn.0043329a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f47d
push 0x80004005
call fcn.00406dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x22c]
push ecx
lea edx, [esp + 0x10]
push str.QuestionPool_x
push edx
mov dword [esp + 0x230], 0
call fcn.0040eff0
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x1c]
call fcn.0040ecc0
mov eax, edi
push eax
call fcn.0040f070
add esp, 0x10
push 0
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esi - 0x10]
mov dword [esp + 0x224], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f4f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041c2ed
add esp, 0x21c
ret 4

Function at 0x40f660
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4464d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00433eaa
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040f530
mov eax, dword [eax]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.00434322
mov esi, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40f711
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00433be0
lea ecx, [esp + 8]
call fcn.00433e44
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00433fb2
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0x14
Function at 0x40f740
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4464f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0043329a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f77f
push 0x80004005
call fcn.00406dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.0040f530
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc

Function at 0x40f820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4464d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00433eaa
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040f530
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.00434322
mov esi, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f8ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 8]
test esi, esi
je 0x40f910
call fcn.00433d95
mov esi, dword [esp + 0x38]
push eax
mov dword [esi], eax
call fcn.0041bc8e
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x40f8e1
mov edx, dword [esi]
push edx
push eax
lea ecx, [esp + 0x10]
call fcn.00433b9e
lea ecx, [esp + 8]
call fcn.00433e44
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00433fb2
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0x14
mov dword [esp + 0x20], 0xffffffff
call fcn.00433fb2
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0x14
Function at 0x40f940
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
push 0xff
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.0041ca00
add esp, 0xc
push 0x100
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x40fa3a
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40fa3a
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
mov ebp, dword [sym.imp.WSOCK32.dll_htons]
mov dword [esp + 0x10], 0
jmp 0x40f9c4
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax]
test eax, eax
je 0x40fa3a
mov edx, dword [eax]
push edx
call ebx
push 0
mov esi, eax
call ebp
push esi
call dword [sym.imp.WSOCK32.dll_htonl]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov ecx, edi
lea ecx, [ecx]
mov dl, byte [eax]
mov byte [ecx], dl
inc eax
inc ecx
test dl, dl
jne 0x40f9f0
mov ecx, str.127.0.0.1
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fa21
test dl, dl
je 0x40fa1d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fa21
add eax, 2
add ecx, 2
test dl, dl
jne 0x40fa01
xor eax, eax
jmp 0x40fa26
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40fa55
mov eax, dword [esp + 0x10]
add eax, 4
cmp eax, 0x28
mov dword [esp + 0x10], eax
jl 0x40f9c0
xor al, al
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c2ed
add esp, 0x10c
ret
mov al, 1
jmp 0x40fa3c

Function at 0x4109a0
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x4109b3
push 0x80004005
call fcn.00406dd0
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x410a1e
mov ecx, dword [edi]
test ecx, ecx
jbe 0x410a19
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x410a41
cmp edx, 2
jbe 0x410a23
cmp edx, 7
jne 0x410a41
test cl, 1
jne 0x410a14
shr ecx, 1
cmp ecx, 1
jb 0x410a14
cmp word [esi + ecx*2 - 2], 0
jne 0x410a14
cmp ecx, 1
jbe 0x410a1e
cmp word [esi + ecx*2 - 4], 0
je 0x410a1e
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
pop esi
pop edi
ret 0xc
test cl, 1
jne 0x410a32
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x410a1e
xor edx, edx
mov word [esi], dx
pop esi
mov eax, 0xd
pop edi
ret 0xc
xor eax, eax
mov word [esi], ax
pop esi
mov eax, 0xd
pop edi
ret 0xc
Function at 0x411200
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x411259
push 1
lea eax, [ebx + 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41124e
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x4112df
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x411283
push eax
add ebx, 0x34
push ebx
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4112e4
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 2
push 0x10
push 0xf01ff
lea esi, [ebx + 0x34]
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x4112d9
push edi
call ebp
push 0
push esi
push str.Couldnt_create_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4112e4
push eax
call ebp
push edi
call ebp
mov eax, 1
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c2ed
add esp, 0x20c
ret

Function at 0x411300
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x411344
push 1
add ebx, 0x34
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x41133d
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x411351
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41137e
push eax
push ebx
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4113ac
push edi
call ebp
push esi
push ebx
push str.Couldnt_open_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov dword [esp + 0x14], eax
call ebp
push edi
call ebp
cmp dword [esp + 0x10], 0
jne 0x411344
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x4113f0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0041eef4
add esp, 0xc
cmp dword [esi + 0x258], 0
lea eax, [esp + 8]
mov dword [esp + 4], eax
je 0x411483
add esi, 0x34
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x411490
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0041c2ed
add esp, 0x208
ret
lea edx, [esp + 8]
push edx
call fcn.0041f5a5
add esp, 4
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.0041c2ed
add esp, 0x208
ret

Function at 0x411ac0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x411ae0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x411af4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x411b20
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x411b36
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x411b43
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4121a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x41221f
xor eax, eax
cmp ecx, ebx
je 0x412207
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x412243
cmp ecx, ebx
je 0x41222a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0041c2ed
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4122aa
jmp 0x412270
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004121a0
mov edi, eax
cmp edi, ebx
jne 0x4122f9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x412270
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4122bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.004108b0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4122e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0041c2ed
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412308
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041c2ed
mov esp, ebp
pop ebp
ret 4
Function at 0x412f40
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4466cb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x1c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
push ebx
push ebx
mov dword [0x2268474], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 1
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1ec], ebx
call fcn.00412e90
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 1
push 0x14
mov ecx, 0x2268220
call fcn.004116a0
push 0x44c208
push esi
call fcn.004113f0
add esp, 8
cmp dword [esi + 0x258], ebx
je 0x41300c
mov ecx, dword [esi + 0x234]
lea eax, [esi + 0x238]
push eax
push ecx
mov dword [esi + 0x23c], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea edx, [esp + 0x48]
push edx
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, 0x2268188
mov byte [esp + 0x17], bl
mov dword [esi + 0x30], ebx
call fcn.00406ac0
test al, al
je 0x413042
mov ecx, 0x2268188
call fcn.00406b30
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], ebx
je 0x41308b
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
call edi
test eax, eax
je 0x413070
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x413086
cmp byte [esp + 0x17], bl
jne 0x41307f
call fcn.0040aba0
mov byte [esp + 0x17], al
push 0xc8
call ebp
cmp dword [esi + 0x30], ebx
jne 0x413053
call fcn.00407120
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ecx, 0x2268220
call fcn.00411730
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [esp + 0x18]
push edx
call fcn.0041c34d
mov eax, dword [esp + 0x20]
push eax
call fcn.0041f121
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041f121
mov edx, dword [esp + 0x30]
push edx
call fcn.0041f121
mov eax, dword [esp + 0x38]
push eax
call fcn.0041f121
add esp, 0x14
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.0041c2ed
add esp, 0x1d4
ret