joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18361b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x116a000]
push edi
or ebp, 0xffffffff
jmp 0x18361d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x18361d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18361c8
mov eax, 1
add ebx, ebx
jne 0x18361eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x18361fc
jne 0x183621b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x183621b
dec eax
add ebx, ebx
jne 0x1836208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x18361e0
add ebx, ebx
jne 0x1836217
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x183626d
xor ecx, ecx
sub eax, 3
jb 0x1836233
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x18362a2
sar eax, 1
mov ebp, eax
jmp 0x183623e
add ebx, ebx
jne 0x183623e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x183620c
inc ecx
add ebx, ebx
jne 0x183624c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x183620c
add ebx, ebx
jne 0x1836259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x183624e
jne 0x183626a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x183624e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x183628c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x183627e
jmp 0x18361ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x183628c
add edi, ecx
jmp 0x18361ce
pop esi
mov edi, esi
mov ecx, 0xdc23
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x18362aa
cmp byte [edi], 0x2d
jne 0x18362aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x18362af
lea edi, [esi + 0x1432000]
mov eax, dword [edi]
or eax, eax
je 0x183631e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14391d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1439318]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x18362dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1439320]
or eax, eax
je 0x1836318
mov dword [ebx], eax
add ebx, 4
jmp 0x18362f9
call dword [esi + 0x143931c]
mov ebp, dword [esi + 0x1439324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1836352
sub esp, 0xffffff80
jmp 0x5acc40
Function at 0x401a00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4198eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov eax, dword [0x422538]
push ebx
mov dword [esp + 0x40c], eax
mov eax, dword [0x4776f8]
push esi
mov ecx, 0x4776f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov edx, dword [esp + 0x424]
lea ecx, [esp + 0x428]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x400
push eax
mov dword [esp + 0x42c], 0
call dword [sym.imp.MSLUR71.dll__vsnprintf]
add esp, 0x10
test eax, eax
jle 0x401aa1
lea ecx, [esp + 0x10]
push ecx
push str.ConMgr
lea edx, [esp + 0x10]
push 0x41b3d0
push edx
call fcn.004019e0
add esp, 0x10
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
jmp 0x401acb
cmp byte [eax], 0xa
jne 0x401ae8
xor bl, bl
jmp 0x401aea
mov eax, dword [esp + 0x424]
push eax
push str.ConMgr
lea ecx, [esp + 0x10]
push 0x41b3d0
push ecx
call fcn.004019e0
add esp, 0x10
push 1
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00401870
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x401ae8
test ecx, ecx
jge 0x401a98
push 0x80070057
call fcn.00401100
mov bl, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x401b17
lea ecx, [esp + 8]
push 0xa
call fcn.00401900
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
mov dword [esp + 0x41c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x414]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40c]
pop ebx
call fcn.0041937d
add esp, 0x418
ret

Function at 0x4024b0
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 0x4024c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4024dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4024fe
cmp esi, eax
jae 0x4024d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4024f0
cmp esi, eax
jae 0x4024d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402680
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_RegSetValueExA]
ret 8
Function at 0x4026a0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x4026d0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4026e2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x403180
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x422538]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x4031ea
test ecx, ecx
je 0x4031dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x4031f8
test ecx, ecx
je 0x40329b
push ecx
jmp 0x403295
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x403262
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00403180
mov edi, eax
test edi, edi
jne 0x4032b4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x403224
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x403279
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40329b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.0041937d
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4032c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.0041937d
add esp, 0x11c
ret 4
Function at 0x4038d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x419978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x422538]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x403a6d
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x403a6d
push edi
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
cmp eax, 0x64
jge 0x403926
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x403940
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x403959
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x403a72
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x4039b3
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x403984
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x4039cb
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.00402720
test eax, eax
je 0x403a54
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x403970
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x403a72
push 0x25
push edi
call fcn.004028c0
mov edi, eax
add esp, 8
test edi, edi
je 0x403a3b
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x403a22
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.00403890
test eax, eax
je 0x403a3b
push eax
lea ecx, [esp + 0x14]
call fcn.00403720
test eax, eax
je 0x403a54
cmp dword [esi], edi
je 0x40399b
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x403a12
jmp 0x40399b
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x403a72
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x403a72
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x403a72
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.0041937d
add esp, 0x3c
ret 8
Function at 0x4055f0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x419a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
mov eax, dword [0x422538]
push ebx
mov dword [esp + 0x80c], eax
mov eax, dword [0x4776f8]
push esi
mov ecx, 0x4776f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov edx, dword [esp + 0x824]
lea ecx, [esp + 0x828]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x400
push eax
mov dword [esp + 0x82c], 0
call dword [sym.imp.MSLUR71.dll__vsnwprintf]
add esp, 0x10
test eax, eax
jle 0x405692
lea ecx, [esp + 0x10]
push ecx
push str.ConMgr
lea edx, [esp + 0x10]
push str.__s__s
push edx
call fcn.004055d0
add esp, 0x10
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
jmp 0x4056bc
cmp word [eax], 0xa
jne 0x4056d9
xor bl, bl
jmp 0x4056db
mov eax, dword [esp + 0x824]
push eax
push str.ConMgr
lea ecx, [esp + 0x10]
push str.__s__s
push ecx
call fcn.004055d0
add esp, 0x10
push 1
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00404a90
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x4056d9
test ecx, ecx
jge 0x405688
push 0x80070057
call fcn.00401100
mov bl, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x405708
lea ecx, [esp + 8]
push 0xa
call fcn.00404db0
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x81c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405738
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x814]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x80c]
pop ebx
call fcn.0041937d
add esp, 0x818
ret

Function at 0x407ec0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 1
push 4
push 0x477750
mov esi, ecx
call fcn.004074c0
mov edi, eax
test edi, edi
jne 0x407f14
mov al, byte [esi + 0x3c]
test al, al
je 0x407f18
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x30], eax
je 0x407f09
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4075c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x407f18
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
mov byte [esi + 0x3c], 0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4

Function at 0x408330
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov al, byte [0x42257c]
test al, al
push esi
mov esi, ecx
je 0x408347
mov eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.00408200
cmp al, 1
jne 0x408377
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00408170
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
Function at 0x408380
Capabilities:
Check mutex on windows
Initialize winsock library
Query or enumerate registry value

Disassembly:
sub esp, 0x19c
mov eax, dword [0x422538]
push ebp
push str.73188BA3_5E28_4039_8CA5_796E01212F62
push 0
push 0
mov dword [esp + 0x1a8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4083c9
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x198]
call fcn.0041937d
add esp, 0x19c
ret 0x10
push esi
lea eax, [esp + 8]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SoftwareSamsungSamsung_PC_Studio_3ConMgrDebug
push closesocket
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408419
mov esi, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push 0x4228e8
lea edx, [esp + 0x14]
push edx
push eax
push str.level
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x408423
mov dword [0x4228e8], 0
mov eax, dword [0x4228e8]
push edi
push eax
push str.Debuglevel_d
call fcn.00401a00
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 0x202
mov byte [0x427c9c], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
jne 0x408496
mov edx, dword [esp + 0x1ac]
mov ecx, 0x4228f0
mov dword [0x4228ec], edx
call fcn.00411140
mov ecx, 0x422e28
call fcn.00401290
mov eax, dword [esp + 0x1b8]
push eax
mov ecx, 0x427c60
call fcn.00408330
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4084a1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1a4]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0041937d
add esp, 0x19c
ret 0x10

Function at 0x4084c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jbe 0x4084f4
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov dl, byte [ecx + edi]
xor edx, eax
and edx, 0xff
mov ebx, dword [edx*4 + 0x422098]
shr eax, 8
xor eax, ebx
inc ecx
cmp ecx, esi
jb 0x4084d4
pop edi
pop ebx
not eax
pop esi
ret

Function at 0x40e100
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0xc
mov edi, ecx
call sub.MSLUR71.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x40e141
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ecx
push eax
mov ecx, 0x422e28
mov dword [esi], eax
mov dword [esi + 4], edi
call fcn.004016a0
test eax, eax
jne 0x40e149
push eax
push 0xe0000050
mov ecx, edi
call fcn.0040a320
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov edx, dword [eax + 0x24]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x40db80
mov dword [edi + 0xd2920], edx
mov eax, dword [eax + 0x28]
push 0
push 0
mov dword [edi + 0xd2924], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret 8
Function at 0x40e680
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e6e1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40e6c3
cmp eax, 2
jne 0x40e6d3
test esi, esi
mov eax, dword [esp + 0x14]
je 0x40e6dd
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x40e6dd
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x410c00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x419ec8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x42c]
cmp eax, 3
push edi
ja case.default.0x410c2b
jmp dword [eax*4 + 0x410d28]
push 1
mov ecx, esi
call fcn.00410320
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x20
ret
mov eax, dword [0x4776f8]
push ecx
mov ecx, 0x4776f8
mov dword [esp + 0x18], esp
mov edi, esp
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00403400
push 1
push ecx
lea edx, [esi + 0x430]
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [esp + 0x30], 1
push edx
jmp 0x410d03
mov eax, dword [0x4776f8]
push ecx
mov ecx, 0x4776f8
mov dword [esp + 0x1c], esp
mov edi, esp
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00403400
push 2
push 0
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.0040fea0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x20
ret
mov edx, dword [0x4776f8]
push ecx
mov ecx, 0x4776f8
mov dword [esp + 0x1c], esp
mov edi, esp
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00403400
push 3
push ecx
lea eax, [esi + 0x430]
mov ecx, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x30], 4
push eax
call fcn.00406d10
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.00410130
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
Function at 0x410d40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push str.SoftwareSamsungSamsung_PC_Studio_3ConMgrDevice
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
call fcn.00406d10
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
xor eax, eax
push eax
lea ebx, [esi + 0x430]
mov ecx, 0x41
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push closesocket
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
lea edi, [esi + 0x42c]
push edi
push 0
push 0
push str.DEVICETYPE
push eax
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410df8
mov ecx, dword [ebp - 0x18]
push 4
push edi
push 4
push 0
push str.DEVICETYPE
push ecx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x410e2d
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push ebx
push 0
push 0
push str.PORTNUM
push eax
mov dword [ebp - 0x14], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410e22
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi + 0x430], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi], 0
jne 0x410e6c
push 0
push str.Start_FindDevice___Type__d_
call fcn.00401a00
add esp, 8
call fcn.00413640
push 0
push 0x412850
call fcn.00413530
add esp, 8
push str.End_FindDefice
call fcn.00401a00
add esp, 4
mov ecx, esi
call fcn.00410c00
mov esi, dword [0x4776d8]
push str.While___LoadDeviceList_Start_r_n
call fcn.00401a00
mov eax, dword [0x4776d8]
add esp, 4
xor edx, edx
test eax, eax
je 0x410ea2
test eax, eax
je 0x410ea2
mov ecx, eax
cmp dword [ecx], 0
mov eax, dword [eax + 8]
je 0x410ea2
inc edx
jmp 0x410e91
test esi, esi
je 0x410eb8
mov eax, esi
mov eax, dword [eax]
mov esi, dword [esi + 8]
push eax
call sub.MSLUR71.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x410ea2
push str.While___LoadDeviceList_End_r_n
call fcn.00401a00
add esp, 4
mov ecx, 0x4776d8
call fcn.0040eb60
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412620
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push edi
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.MSLUR71.dll_free]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSLUR71.dll_malloc]
add esp, 8
test eax, eax
mov dword [esi], eax
je 0x412698
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esp, [esp]
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
push 0
push 0
push edi
push ebx
call ebp
test eax, eax
je 0x4126a3
cmp eax, 0xea
jne 0x4126a5
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSLUR71.dll_free]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSLUR71.dll_malloc]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x412660
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret