joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ed0
Capabilities:
Check if file exists
Delete directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
lea eax, [esp + 0x10c]
push eax
push 0x104
mov dword [esp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412f04
mov cx, word [0x460d20]
mov word [edi], cx
call fcn.00412610
cmp eax, 2
je 0x41301e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
jne 0x412f7c
lea esp, [esp]
mov cl, byte [eax + 0x4777c8]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x412f40
lea edx, [esp + 0x10]
push str.Mu.exe
push edx
call fcn.00456f21
add esp, 8
test eax, eax
jne 0x41300e
mov eax, dword [esp + 0xc]
mov dword [eax + 0x32c], 1
jmp 0x41300e
cmp eax, 0x3c
jne 0x41300e
call fcn.00412610
test eax, eax
jne 0x412fd1
push 0x4777c8
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call edi
cmp eax, 0xffffffff
je 0x41300e
push 0x80
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call fcn.00441869
add esp, 4
jmp 0x41300e
cmp eax, 1
jne 0x41300e
call fcn.00412610
push 0x4777c8
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call edi
cmp eax, 0xffffffff
je 0x41300e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.00412610
cmp eax, 2
jne 0x412f38
pop esi
pop ebp
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
call fcn.0043efc3
add esp, 0x210
ret
Function at 0x413040
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
push 0x117
lea eax, [esp + 0x21]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x28], 0
call fcn.0043f280
add esp, 0xc
lea esi, [edi + 0x5254]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x1c]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x413090
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4130a0
sub eax, edx
cmp byte [eax + edi + 0x5253], 0x5c
lea eax, [esp + 0x1c]
jne 0x4130e7
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4130b8
mov ecx, dword [0x4609a0]
mov edx, dword [0x4609a4]
mov dword [eax], ecx
mov cx, word [0x4609a8]
mov dword [eax + 4], edx
mov dl, byte [0x4609aa]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
jmp 0x41310a
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4130e8
mov ecx, dword [str.config.ini]
mov edx, dword [0x460d10]
mov dword [eax], ecx
mov ecx, dword [0x460d14]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea edx, [esp + 0x1c]
push edx
push 0xa
lea eax, [esp + 0x18]
push eax
push str.0.0.0
push str.Version
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
push 0x460d24
push ecx
call fcn.00441899
add esp, 8
test eax, eax
jne 0x413147
mov byte [esp + 0xf], al
jmp 0x413154
push eax
call fcn.004416b4
add esp, 4
mov byte [esp + 0xf], al
push 0x460d24
push 0
call fcn.00441899
add esp, 8
test eax, eax
jne 0x41316b
xor bl, bl
jmp 0x413176
push eax
call fcn.004416b4
add esp, 4
mov bl, al
push 0x460d24
push 0
call fcn.00441899
add esp, 8
test eax, eax
jne 0x41318d
xor al, al
jmp 0x413196
push eax
call fcn.004416b4
add esp, 4
mov dl, byte [esp + 0xf]
mov ecx, dword [esp + 0x134]
mov byte [edi + 0x329], bl
mov byte [edi + 0x328], dl
mov byte [edi + 0x32a], al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043efc3
add esp, 0x12c
ret

Function at 0x4131d0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x128
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x124], eax
push 0
lea eax, [esp + 0x24]
push str..Temp._c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
mov dword [esp + 0xc], eax
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0x20]
mov edx, 0x414
push eax
mov dword [esp + 8], 3
mov dword [esp + 0xc], ecx
mov word [esp + 0x14], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push str..Temp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0043efc3
add esp, 0x128
ret
Function at 0x413940
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0xff
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x1c], 0
call fcn.0043f280
mov al, 0x65
add esp, 0xc
mov byte [esp + 9], al
mov byte [esp + 0xb], al
mov byte [esp + 4], 0x6d
mov byte [esp + 5], 0x61
mov byte [esp + 6], 0x69
mov byte [esp + 7], 0x6e
mov byte [esp + 8], 0x2e
mov byte [esp + 0xa], 0x78
mov byte [esp + 0xc], 0
xor eax, eax
nop
mov cl, byte [esp + eax + 4]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x4139a0
mov ecx, 0x477848
call fcn.00417320
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0x4775a8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x118]
push str.connect__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 5
push 0
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0xb
ja case.0x413a09.279
movzx edx, byte [eax + 0x413a78]
jmp dword [edx*4 + 0x413a68]
push 0
push 0x10
push 0x83
jmp 0x413a2f
push 0
push 0x10
push 0x84
jmp 0x413a2f
push 0
push 0x10
push 0x85
mov ecx, 0x4838c0
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
call fcn.0042b436
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.0043efc3
add esp, 0x210
ret
Function at 0x417130
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x41715f
push esi
mov esi, dword [esp + 0xc]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ecx
sub edx, eax
mov al, byte [edx + 0x473728]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x417140
pop esi
pop edi
ret

Function at 0x417270
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x84
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4172ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x8f
mov ecx, 0x4838c0
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Error
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0043efc3
add esp, 0x84
ret 4
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
mov dword [esi], edx
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043efc3
add esp, 0x84
ret 4
Function at 0x417340
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x417390
push eax
push str.Error
push 0x90
mov ecx, 0x4838c0
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043efc3
add esp, 0x14
ret 0xc
cmp dword [esi + 8], 0xffffffff
jne 0x41739c
push eax
call fcn.00417270
mov ecx, dword [esp + 0x24]
mov eax, 2
push ecx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x417401
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4173e9
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043efc3
add esp, 0x14
ret 0xc
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0043f8e0
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push 0x10
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x417439
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043efc3
add esp, 0x14
ret 0xc
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41745c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41741a
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043efc3
add esp, 0x14
ret 0xc
Function at 0x417570
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
xor edi, edi
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
jne 0x41758f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
push ebp
mov ebp, dword [esp + 0x14]
push 0
push ebx
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4175d6
test eax, eax
je 0x41763a
mov ecx, dword [esp + 0x18]
sub ecx, eax
add edi, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x41763a
mov edx, dword [esi + 8]
push 0
mov eax, ebx
sub eax, edi
push eax
lea ecx, [edi + ebp]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4175a4
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x417607
push ebx
call edi
push eax
push str.send__
push esi
call fcn.00417490
add esp, 0x10
mov ecx, esi
call fcn.00417320
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov eax, dword [esi + 0x100c]
lea ecx, [eax + ebx]
cmp ecx, 0x1000
jg 0x4175f7
mov edi, dword [esp + 0x18]
push edi
lea edx, [eax + esi + 0xc]
push ebp
push edx
call fcn.0043f8e0
add dword [esi + 0x100c], edi
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 8

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

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x100c], edi
jle 0x417695
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi + 0x100c]
mov edx, dword [esi + 8]
push 0
sub eax, edi
push eax
lea ecx, [esi + edi + 0xc]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x41769e
test eax, eax
jle 0x4176be
sub dword [esi + 0x100c], eax
add edi, eax
cmp dword [esi + 0x100c], 0
jg 0x417665
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x417695
call edi
push eax
push str.FD_WRITE_send__
push esi
call fcn.00417490
add esp, 0xc
mov ecx, esi
call fcn.00417320
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4176d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2010]
push 0
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x1010]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [esi + 0x2014], 0
je 0x41770d
push eax
lea ecx, [esi + 0x1010]
push ecx
mov ecx, esi
call fcn.00417480
test eax, eax
jne 0x417718
mov eax, 1
pop esi
ret
push edi
cmp eax, 0xffffffff
jne 0x417746
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x41773e
call edi
push eax
push str.recv__
push esi
call fcn.00417490
add esp, 0xc
pop edi
mov eax, 1
pop esi
ret
add dword [esi + 0x2010], eax
mov eax, dword [esi + 0x2010]
cmp eax, 3
jge 0x41775f
pop edi
mov eax, 3
pop esi
ret
push ebx
push ebp
xor ebx, ebx
lea ebp, [esi + 0x1010]
lea esp, [esp]
mov cl, byte [ebx + ebp]
lea eax, [ebx + ebp]
cmp cl, 0xc1
jne 0x417785
movzx edi, byte [ebx + esi + 0x1011]
jmp 0x41779b
cmp cl, 0xc2
jne 0x41781b
movzx edi, byte [eax + 1]
movzx edx, byte [eax + 2]
shl edi, 8
add edi, edx
test edi, edi
jle 0x4177c8
cmp edi, dword [esi + 0x2010]
jg 0x4177de
push edi
push eax
mov ecx, esi
call fcn.004174b0
sub dword [esi + 0x2010], edi
add ebx, edi
cmp dword [esi + 0x2010], 0
jg 0x417770
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
push edi
push str.size
push esi
call fcn.00417490
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
test ebx, ebx
jle 0x417825
mov eax, dword [esi + 0x2010]
cmp eax, 1
jge 0x417802
push str.m_nRecvBufLen
push esi
call fcn.00417490
add esp, 8
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
push eax
lea eax, [ebx + esi + 0x1010]
push eax
push ebp
call fcn.0043f8e0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
mov dword [esi + 0x2010], 0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret

Function at 0x4191b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c860
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4760f4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042a359
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 8]
push 0x2000
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
jne 0x41920c
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0042ae95
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004252c6
push eax
lea ecx, [esp + 0x14]
call fcn.0042ac5b
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00418e00
lea ecx, [esp + 8]
mov esi, eax
call fcn.0042aeed
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0042acaf
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 8], vtable.CBitmap.0
call fcn.004101f0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
Function at 0x41a230
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45c93b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push edi
mov eax, dword [0x4760f4]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, dword [esp + 0x150]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov edi, dword [esp + 0x154]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x148], ebx
call edx
push ebx
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
mov dword [esp + 0x2c], ebx
call fcn.00442366
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x38]
add esp, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push edx
push eax
mov byte [esp + 0x3c], bl
mov dword [esp + 0x28], ecx
call fcn.00430b27
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x148], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a324
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0043efc3
add esp, 0x13c
ret 8

Function at 0x41ab80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
cmp dword [ecx + 0x1c], 0x10
mov eax, 4
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
jb 0x41aba2
mov eax, dword [ecx + 8]
jmp 0x41aba5
lea eax, [ecx + 8]
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41ac07
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x41abd9
mov eax, dword [eax + 4]
jmp 0x41abdc
add eax, 4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push ecx
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41ac0f
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x10
ret 8
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0x10
ret 8
Function at 0x41ac30
Capabilities:
Set registry value

Disassembly:
sub esp, 8
cmp dword [ecx + 0x1c], 0x10
mov dword [esp], 0
jb 0x41ac45
mov eax, dword [ecx + 8]
jmp 0x41ac48
lea eax, [ecx + 8]
lea edx, [esp + 4]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41ac75
xor al, al
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x41ac84
mov eax, dword [eax + 4]
jmp 0x41ac87
add eax, 4
mov edx, dword [esp]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret 8

Function at 0x41acb0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [ecx + 0x1c], 0x10
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi + 0x14]
mov dword [esp + 8], 0
jb 0x41accd
mov eax, dword [ecx + 8]
jmp 0x41acd0
lea eax, [ecx + 8]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41acfd
pop edi
xor al, al
pop esi
pop ecx
ret 8
cmp dword [esi + 0x18], 0x10
jb 0x41ad08
mov esi, dword [esi + 4]
jmp 0x41ad0b
add esi, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x41ad1a
mov eax, dword [eax + 4]
jmp 0x41ad1d
add eax, 4
mov ecx, dword [esp + 8]
push edi
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ecx
ret 8

Function at 0x41aec0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x45cac0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4760f4]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov eax, dword [0x4760f4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
push 0x22
push str.SOFTWAREWebzenMu_BlueConnection
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.004046f0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x30], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404610
cmp dword [esp + 0x20], 0x10
jb 0x41af54
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0042172b
add esp, 4
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x41af63
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [esp + 0x40], 0x10
jb 0x41af83
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042172b
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0043efc3
add esp, 0x4c
ret
Function at 0x41b3a0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41b3d8
xor al, al
pop esi
add esp, 8
ret
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b3e0
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
mov edx, dword [esp + 0xc]
push eax
push esi
push 1
push 0
push str.UserID
push edx
call edi
lea ecx, [esi + 0xb]
mov eax, ecx
lea ebp, [eax + 1]
jmp 0x41b410
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41b410
sub eax, ebp
push eax
mov eax, dword [esp + 0x10]
push ecx
push 1
push 0
push str.DisplayDeviceName
push eax
call edi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esi + 0x8c]
push ecx
push 4
push 0
push str.DisplayDeviceModeIndex
push edx
call edi
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esi + 0x90]
push eax
push 4
push 0
push str.FullScreenMode
push ecx
call edi
mov eax, dword [esp + 0xc]
push 4
lea edx, [esi + 0x94]
push edx
push 4
push 0
push str.DisplayColorBit
push eax
call edi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esi + 0x98]
push ecx
push 4
push 0
push str.MusicOn
push edx
call edi
mov eax, dword [esp + 0xc]
push 4
add esi, 0x9c
push esi
push 4
push 0
push str.SoundOn
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov al, 1
pop esi
add esp, 8
ret
Function at 0x41b4c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41b500
xor al, al
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
push esi
push 0
push 0
push str.UserID
push eax
mov dword [esp + 0x24], 0xb
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0xb]
push edx
push 0
push 0
push str.DisplayDeviceName
push eax
mov dword [esp + 0x24], 0x80
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0x8c]
push edx
push 0
push 0
push str.DisplayDeviceModeIndex
mov ebx, 4
push eax
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0x90]
push edx
push 0
push 0
push str.FullScreenMode
push eax
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0x94]
push edx
push 0
push 0
push str.DisplayColorBit
push eax
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esi + 0x98]
push edx
push 0
push 0
push str.MusicOn
push eax
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
add esi, 0x9c
push esi
push 0
push 0
push str.SoundOn
push edx
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0xc
ret