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

Disassembly:
push 0xffffffffffffffff
push 0x438e38
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4509cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x450b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x450b58
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
push eax
push str.SOFTWARESamsungKiesDeviceDB
lea ecx, [esp + 0x18]
push str._s_li
push ecx
mov dword [esp + 0x2c], 0
call fcn.00404330
mov edi, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x410d9a
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410d60
mov ecx, dword [esp + 0x28]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [esp + 0x14]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x410dd4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410e03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x416140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439500
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4509cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 4]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x10]
push str.DoReloadDB___n
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], eax
mov dword [eax + 0x10], edx
mov dword [ebp - 4], 0
call ebx
cmp dword [esi], 6
je 0x4161d4
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
push 0x447eb4
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], vtable._com_error.0
mov dword [ebp - 0x6c], 0x80004001
call sub.MSVCR90.dll__CxxThrowException
mov dword [ebp - 0x54], 0
push str.DoReloadDB_1__n
mov byte [ebp - 4], 1
call ebx
mov edi, dword [edi + 0xec]
test edi, edi
jne 0x4161fa
push 0x80004003
call fcn.00436bb0
mov ecx, dword [esi]
push ecx
call fcn.0040e490
add esp, 4
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, edi
call fcn.0040f3d0
mov eax, dword [eax]
test eax, eax
je 0x416226
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov esi, eax
push eax
mov dword [ebp - 0x54], esi
call edx
jmp 0x416229
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x416238
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.DoReloadDB_2__n
call ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.DevInf
call fcn.00401130
mov byte [ebp - 4], 2
test esi, esi
jne 0x416261
push 0x80004003
call fcn.00436bb0
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004122f0
push str.DoReloadDB_3__n
mov byte [ebp - 4], 3
call ebx
push str.DevInf
lea ecx, [ebp - 0x50]
call fcn.00401130
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x5c]
push ecx
add edi, 0xf4
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004312f0
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402910
test esi, esi
jge 0x4162b9
push esi
call fcn.00436bb0
mov ecx, edi
call fcn.004319d0
lea ecx, [ebp - 0x5c]
call fcn.00402910
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
mov byte [ebp - 4], 0
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043707e
mov esp, ebp
pop ebp
ret 8
Function at 0x41d010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439f93
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4509cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], bl
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.00428ec0
mov dword [esi], vtable.CDeviceThread.1.0
mov dword [edi], vtable.CDeviceThread.0
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x54]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [esp + 0x1c], 2
mov dword [ecx + 0x14], eax
call fcn.00401040
cmp eax, ebx
jge 0x41d09d
push eax
call fcn.00401000
mov dword [esi + 0x7c], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
lea ecx, [esi + 0xf4]
mov byte [esp + 0x1c], 6
call fcn.0041cf50
lea eax, [esi + 0x1a8]
push eax
mov dword [esi + 0x198], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esi + 0x1c4], ebx
push 4
mov byte [esp + 0x20], 9
lea edi, [esi + 0x1cc]
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41d0fe
mov dword [eax], edi
jmp 0x41d100
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x40d300
push 0x40d520
push 0x1a
push 0x38
lea eax, [esi + 0x1ec]
push eax
mov byte [esp + 0x30], 0xa
call fcn.00437094
push str.CDeviceThread::Construct
mov byte [esp + 0x20], 0xb
call fcn.00404530
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 4
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0xe4], ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x1c0], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x1c4], eax
mov byte [esi + 0x1c8], bl
mov dword [esi + 0xe8], ebx
mov dword [esi + 0x79c], 0xffffffff
mov dword [esi + 0x188], ebx
mov dword [esi + 0x1bc], ebx
mov byte [esi + 0x1b8], bl
push ebx
mov byte [esi + 0x1ba], 1
call edi
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x427770
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x42778c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4276e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4277b4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x428060
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push edi
lea eax, [esp + 0x14]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareSamsungKies2.0
push SysReAllocStringLen
mov dword [0x450b00], 0
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4280dc
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x450b00
lea ecx, [esp + 0x18]
push ecx
push 0
push str.LogLevel
mov edi, 4
push eax
mov esi, eax
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4280d2
cmp dword [esp + 0x10], edi
je 0x4280dc
mov dword [0x450b00], 3
cmp byte [0x450ab0], 0
je 0x4280ea
or edi, 0xffffffff
jmp 0x428123
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, 0x450ac0
call fcn.00427ee0
cmp al, 1
jne 0x42811d
mov eax, dword [esp + 0x28]
push eax
mov ecx, 0x450ac0
call fcn.00427d90
jmp 0x428121
mov eax, dword [esp + 0xc]
mov edi, eax
test esi, esi
je 0x42812e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x428f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x44c1f8
push 0x436f84
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4509cc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov byte [ebp - 0x19], bl
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00428d90
test al, al
jne 0x42900e
lea edi, [esi + 8]
mov ecx, edi
call fcn.00403440
push ebx
push ebx
push esi
push 0x428e40
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
cmp eax, ebx
je 0x42900e
cmp eax, 0xffffffff
je 0x42900e
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00429032
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43af40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4509cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x450b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x450b58
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x30]
push 8
push 0
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x38], 1
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jge 0x42b965
push eax
call fcn.00401000
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x42b971
xor eax, eax
jmp 0x42b985
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b976
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00404220
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x42bcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43afd0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4509cc]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x1f40
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov edx, dword [0x450b58]
mov eax, dword [edx + 0xc]
mov ecx, 0x450b58
mov dword [esp + 0x64], ebx
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x78]
push ecx
push edx
push eax
mov byte [esp + 0x70], 1
mov dword [ebp], ebx
call fcn.00406020
add esp, 8
push eax
lea ecx, [esp + 0x1c]
push str.select_suid_from__s_WHERE_ID___d
push ecx
call fcn.00404330
mov edi, dword [esp + 0x24]
add esp, 0x10
push 0x4449d0
push edi
add esi, 8
push esi
lea ecx, [esp + 0x60]
call fcn.00406e70
cmp eax, ebx
jl 0x42bde7
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x7c]
push ecx
push ebx
push 0x43ca88
push ebx
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x42bde7
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x42bdd3
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push 0x43cad8
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x42bdd7
mov eax, esi
jmp 0x42bde7
push eax
lea ecx, [esp + 0x1c]
call fcn.0042ad60
cmp eax, ebx
jl 0x42bde7
xor eax, eax
mov esi, eax
cmp esi, ebx
jl 0x42be37
lea ecx, [esp + 0x40]
call fcn.0042b710
mov esi, eax
cmp esi, ebx
jl 0x42be21
cmp esi, 0x40ec6
je 0x42be29
lea ecx, [esp + 0x78]
push ecx
push 1
lea ecx, [esp + 0x20]
call fcn.0042a250
test al, al
je 0x42be29
mov edx, dword [esp + 0x78]
mov dword [ebp], edx
jmp 0x42be2e
cmp esi, 0x40ec6
jne 0x42be2e
mov esi, 0x80070006
lea ecx, [esp + 0x18]
call fcn.0042b6a0
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x64], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42be57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], 0xffffffff
call fcn.0042b9b0
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10
Function at 0x433360
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43b86c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4509cc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor eax, eax
mov dword [esp + 0x1c], 3
mov dword [esi + 0x30], 0
cmp dword [esi + 4], eax
je 0x4333c0
cmp dword [esi + 8], eax
jbe 0x4333be
mov edx, dword [esi]
mov ecx, edx
lea esp, [esp]
cmp dword [ecx], 0
jne 0x4333de
inc eax
add ecx, 4
cmp eax, dword [esi + 8]
jb 0x4333b0
xor eax, eax
mov dword [esi + 0x94], eax
test eax, eax
je 0x433438
lea ebx, [ebx]
mov ebx, dword [esi + 0x94]
test ebx, ebx
jne 0x4333e3
xor ecx, ecx
jmp 0x43340b
mov eax, dword [edx + eax*4]
jmp 0x4333c0
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x43340b
mov edi, dword [esi + 8]
mov eax, dword [ebx + 0xc]
xor edx, edx
div edi
inc edx
cmp edx, edi
jae 0x43340b
mov eax, dword [esi]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x433406
mov ecx, dword [eax]
inc edx
test ecx, ecx
je 0x4333f5
mov dword [esi + 0x94], ecx
mov edi, dword [ebx + 4]
test edi, edi
je 0x433428
mov ecx, edi
call fcn.004322e0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esi + 0x94], 0
jne 0x4333d0
mov ecx, esi
call fcn.0040fa70
lea ecx, [esi + 0xa0]
call fcn.00432330
lea ecx, [esi + 0x64]
call fcn.004102f0
lea ecx, [esi + 0x34]
call fcn.004102f0
mov ecx, esi
call fcn.004102f0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x435320
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x43bbc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4509cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x450b0c], 0
jne 0x435443
mov eax, dword [0x450b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x450b58
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x435394
push 0x400
lea ecx, [esp + 0x10]
call fcn.00403a20
mov esi, dword [esp + 0xc]
push 0x400
push esi
push 0x21
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x43545a
cmp eax, dword [esi - 8]
jg 0x43545a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jle 0x43541f
lea edx, [esp + 0xc]
push 0x43dd14
push edx
mov dword [0x450b0c], 1
call fcn.0040e900
add esp, 8
test al, al
je 0x4353ff
mov dword [0x450b08], 1
lea eax, [esp + 0xc]
push 0x4446d0
push eax
call fcn.0040e900
add esp, 8
test al, al
je 0x43541f
mov dword [0x450b08], 2
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x450b08]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x43707e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4509cc]
jne 0x437088
repz ret
jmp fcn.00437676

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001433
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000149c
cmp dword [ebp + 0x10], 1
je 0x10001474
cmp dword [ebp + 0x10], 2
je 0x10001474
push 0xd
pop eax
jmp 0x1000149c
mov eax, dword [ebp - 4]
test edi, edi
je 0x10001496
test eax, eax
je 0x10001491
test al, 1
jne 0x1000146f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10001496
jmp 0x1000146f
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x10001a70
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
call fcn.100017cf
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor esi, esi
lea eax, [ebp - 0x72]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x10001ae1
xor eax, eax
jmp 0x10001b93
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10013188
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x10001b04
xor eax, eax
jmp 0x10001b92
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x1002b680
test eax, eax
je 0x10001b7e
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x1001b988
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10001b7e
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
movzx ecx, word [eax + 0xc]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push esi
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x4c
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
movzx eax, word [0x1002b680]
neg eax
sbb eax, eax
pop ecx
and eax, esi
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.10018dd2
add ebp, 0x198
leave
ret
Function at 0x10001eb5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
mov ebx, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x10001ef6
xor eax, eax
jmp 0x10001f4c
push esi
push edi
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
je 0x10001f47
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x10001f3f
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp + esi - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10001f2f
test al, 0x10
jne 0x10001f3f
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10001f64
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x10001f05
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.10018dd2
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x10001f4a

Function at 0x10001f68
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov dword [ebp - 0x80], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jne 0x10001fad
xor eax, eax
jmp 0x1000201b
push ebx
push edi
lea edi, [esi + 2]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x10002016
mov ebx, edi
sub ebx, esi
push 0x5c
pop ecx
cmp cx, ax
jne 0x10002008
mov esi, ebx
sar esi, 1
add esi, esi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCR90.dll_memcpy
xor eax, eax
mov word [ebp + esi - 0x7c], ax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001ff8
test al, 0x10
jne 0x10002008
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10002033
inc edi
inc edi
movzx eax, word [edi]
inc ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x10001fc0
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.10018dd2
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x10002019