joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429c60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a482
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xdc], ebx
push ebx
mov edi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x483b30
mov ecx, esi
mov dword [ebp - 0xe0], esi
mov word [esi], ax
call fcn.004042f0
push 0xc6
lea edx, [ebp - 0xd6]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xdc], 1
mov word [ebp - 0xd8], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x429cef
mov edi, dword [edi]
push edi
push 0x63
lea eax, [ebp - 0xd8]
push eax
push 0x4875a8
push 0x4875ac
push str.root
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429d17
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, esi
call fcn.004042f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret

Function at 0x429d60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a482
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xdc], ebx
push ebx
mov edi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x483b30
mov ecx, esi
mov dword [ebp - 0xe0], esi
mov word [esi], ax
call fcn.004042f0
push 0xc6
lea edx, [ebp - 0xd6]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xdc], 1
mov word [ebp - 0xd8], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x429def
mov edi, dword [edi]
push edi
push 0x63
lea eax, [ebp - 0xd8]
push eax
push str.2000_01_01
push str.setupdate
push str.root
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429e17
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, esi
call fcn.004042f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
Function at 0x429e60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a482
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xdc], ebx
push ebx
mov edi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x483b30
mov ecx, esi
mov dword [ebp - 0xe0], esi
mov word [esi], ax
call fcn.004042f0
push 0xc6
lea edx, [ebp - 0xd6]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xdc], 1
mov word [ebp - 0xd8], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x429eef
mov edi, dword [edi]
push edi
push 0x63
lea eax, [ebp - 0xd8]
push eax
push 0x48519c
push str.cpaid
push str.root
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429f17
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, esi
call fcn.004042f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret

Function at 0x429f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
push 0x20006
push 0
push str.Software
push SysReAllocStringLen
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42a026
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push str.SoftwareSta
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x42a026
call fcn.0040c170
push eax
lea ecx, [ebp - 0x20]
call fcn.00424e30
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x429ff6
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x24]
push 1
push 0
push str.data
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0xc], 8
mov esi, eax
jb 0x42a026
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
test esi, esi
je 0x42a038
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00456bde
mov esp, ebp
pop ebp
ret
Function at 0x42a050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a432
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 0x224], 0
push ecx
mov dword [ebp - 0x22c], esi
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0xc
mov word [esi], dx
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push edx
push str.SoftwareSta
mov dword [ebp - 4], edx
push SysReAllocStringLen
mov dword [ebp - 0x224], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a152
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x228]
push eax
push 0
push str.data
push ecx
mov dword [ebp - 0x220], 0xff
mov dword [ebp - 0x228], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a152
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a134
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.004042f0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
Function at 0x42b7f0
Capabilities:
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x42b839
cmp dword [esi + 0x14], 8
jb 0x42b81a
mov eax, dword [esi]
jmp 0x42b81c
mov eax, esi
push 0
push 2
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x42b841
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x20000005
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 8]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx], edx
mov dword [ebx + 4], 0
call esi
push edi
call esi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ca00
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4793a8
mov eax, dword fs:[0]
push eax
mov eax, 0x61f0
call fcn.00457150
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ebx, 8
cmp dword [ebp + 0x1c], ebx
jae 0x42ca48
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x42ca6c
cmp dword [ebp + 0x1c], ebx
jb 0x42ca65
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x42cb8f
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x61e0], eax
lea eax, [ebp - 0x30e8]
lea ecx, [ebp - 0x20a0]
lea edx, [ebp - 0x5178]
mov dword [ebp - 0x61c8], eax
mov eax, 0x824
mov dword [ebp - 0x61f8], ecx
mov dword [ebp - 0x61ec], edx
lea ecx, [ebp - 0x4130]
lea edx, [ebp - 0x61c0]
mov dword [ebp - 0x61f4], eax
mov dword [ebp - 0x61e8], eax
mov dword [ebp - 0x61dc], eax
mov dword [ebp - 0x61d4], eax
mov dword [ebp - 0x61cc], eax
mov dword [ebp - 0x61c4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x61fc], 0x3c
mov dword [ebp - 0x61d8], ecx
mov dword [ebp - 0x61d0], edx
cmp dword [ebp + 0x1c], ebx
jae 0x42caf2
lea eax, [ebp + 8]
lea ecx, [ebp - 0x61fc]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edx, dword [ebp - 0x61ec]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cb10
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.004042f0
mov edx, dword [ebp - 0x61d0]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cb33
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.004042f0
mov edx, dword [ebp - 0x61c8]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cb57
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x3c]
call fcn.004042f0
mov dx, word [ebp - 0x61e4]
mov word [esi + 0x1c], dx
cmp dword [ebp + 0x1c], ebx
jb 0x42cb8d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42dea0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42dee0
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42df18
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp ebx, dword [ebp - 0x228]
je 0x42df2b
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x42df02
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00456bde
mov esp, ebp
pop ebp
ret

Function at 0x42df50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.0042dea0
push 0
push 2
mov ebx, eax
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42df99
pop esi
or eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42dfc8
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp ebx, dword [ebp - 0x228]
je 0x42dfdb
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x42dfb2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456bde
mov esp, ebp
pop ebp
ret
Function at 0x42e0a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a398
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push ebx
mov dword [ebp - 4], ebx
push 2
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e12f
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00410c10
cmp dword [ebp - 0x18], 8
jb 0x42e1cc
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x42e1c3
lea ecx, [ebp - 0x258]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42e198
lea edx, [ebp - 0x258]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x42e198
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x250], eax
jne 0x42e186
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42e167
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004042f0
lea edx, [ebp - 0x258]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42e153
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.00410c10
cmp dword [ebp - 0x18], 8
jb 0x42e1cc
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret 4
Function at 0x42e1f0
Capabilities:
Check mutex on windows
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0xf
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e24d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret 4
push ebx
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42e290
mov ebx, dword [sym.imp.MSVCR100.dll__wcsicmp]
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.004042e0
push eax
call ebx
add esp, 8
test eax, eax
je 0x42e2ac
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42e266
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret 4
push str.enumPorc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x228]
lea edx, [ebp - 0x234]
push edx
push 0x42e030
mov dword [0x52b81c], eax
mov dword [ebp - 0x234], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x52b81c]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x234]
mov eax, ecx
sub eax, dword [ebp - 0x228]
pop ebx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00456bde
mov esp, ebp
pop ebp
ret 4
Function at 0x430e70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b421
mov eax, dword fs:[0]
push eax
mov eax, 0xff54
call fcn.00457150
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
xor ebx, ebx
lea eax, [ebp - 0xff50]
push ebx
push eax
mov edi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xff50]
push ecx
mov dword [ebp - 0xff50], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x431072
mov dword [ebp - method.CHDSerial.virtual_0], vtable.CHDSerial.0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xff4c], 6
jb 0x430fca
push 0xfe
lea eax, [ebp - 0xfe0e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0xfe10], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xfd00
lea ecx, [ebp - 0xfd10]
push ebx
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0xff48]
add esp, 0xc
push edx
lea eax, [ebp - 0xfe10]
push eax
call fcn.00430b90
cmp eax, ebx
jle 0x43106d
lea esi, [ebp - 0xfe10]
mov dword [ebp - 0xff54], eax
mov edi, edi
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0xfe18], 7
mov dword [ebp - 0xfe1c], ebx
mov word [ebp - 0xfe2c], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x430f70
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0xfe2c]
call fcn.004042f0
lea ecx, [ebp - 0xfe2c]
mov byte [ebp - 4], 1
call fcn.00431090
mov byte [ebp - 4], bl
cmp dword [ebp - 0xfe18], 8
jb 0x430fb7
mov edx, dword [ebp - 0xfe2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x100
dec dword [ebp - 0xff54]
jne 0x430f50
jmp 0x43106d
mov dword [ebp - 0xff54], ebx
mov ecx, dword [ebp - 0xff54]
call fcn.00430290
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x430fe0
sub ecx, esi
sar ecx, 1
je 0x431057
xor ecx, ecx
mov word [ebp - 0xfe2c], cx
mov ecx, eax
mov dword [ebp - 0xfe18], 7
mov dword [ebp - 0xfe1c], ebx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x431010
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xfe2c]
call fcn.004042f0
lea ecx, [ebp - 0xfe2c]
mov byte [ebp - 4], 2
call fcn.00431090
mov byte [ebp - 4], bl
cmp dword [ebp - 0xfe18], 8
jb 0x431057
mov edx, dword [ebp - 0xfe2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xff54]
inc eax
mov dword [ebp - 0xff54], eax
cmp eax, 4
jl 0x430fd0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456bde
mov esp, ebp
pop ebp
ret
Function at 0x431330
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
mov dword [esi], vtable.ThreadBase.0
je 0x431370
cmp byte [esi + 0xd], 0
jne 0x431370
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0xd], 1
mov dword [esi + 8], 0
mov dword [esi + 4], 0
test byte [ebp + 8], 1
je 0x431380
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4313d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xc], bl
je 0x4313ff
cmp byte [esi + 0xd], bl
jne 0x4313ff
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call edi
mov byte [esi + 0xd], 1
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
lea edx, [esi + 4]
push edx
push ebx
push esi
push 0x431310
push ebx
push ebx
mov word [esi + 0xc], bx
mov dword [esi + 0x10], ebx
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, ebx
je 0x43142f
cmp byte [esi + 0xd], bl
je 0x43142b
push eax
call edi
mov byte [esi + 0xc], 1
movzx eax, byte [esi + 0xc]
pop edi
pop ebx
ret
Function at 0x432420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push 0
push ecx
push 0x432cf0
push 0
push 0
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x432450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x80
mov dword [ebp - 4], ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4324a2
mov dword [eax + 0x10], ebx
mov ecx, 7
mov dword [eax + 0x14], ecx
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ebx
mov word [eax + 0x24], dx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x50], ebx
mov word [eax + 0x40], dx
mov dword [eax + 0x74], ecx
xor ecx, ecx
mov dword [eax + 0x70], ebx
mov word [eax + 0x60], cx
mov esi, eax
jmp 0x4324a4
xor esi, esi
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00401390
mov edx, dword [edi + 0x1c]
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x24]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
push ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], eax
call fcn.00401390
push 0xffffffffffffffff
push ebx
lea edx, [edi + 0x40]
push edx
lea ecx, [esi + 0x40]
call fcn.00401390
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esi + 0x60]
mov dword [esi + 0x5c], eax
call fcn.00401390
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push ebx
push ebx
push esi
push 0x432670
push ebx
push ebx
mov dword [esi + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4325a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x80
mov dword [ebp - 4], ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4325f2
mov dword [eax + 0x10], ebx
mov ecx, 7
mov dword [eax + 0x14], ecx
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ebx
mov word [eax + 0x24], dx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x50], ebx
mov word [eax + 0x40], dx
mov dword [eax + 0x74], ecx
xor ecx, ecx
mov dword [eax + 0x70], ebx
mov word [eax + 0x60], cx
mov esi, eax
jmp 0x4325f4
xor esi, esi
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00401390
mov edx, dword [edi + 0x1c]
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x24]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
push ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], eax
call fcn.00401390
push 0xffffffffffffffff
push ebx
lea edx, [edi + 0x40]
push edx
lea ecx, [esi + 0x40]
call fcn.00401390
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esi + 0x60]
mov dword [esi + 0x5c], eax
call fcn.00401390
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push ebx
push ebx
push esi
push 0x432990
push ebx
push ebx
mov dword [esi + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4334d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
sub eax, 0x8000
je 0x4334e3
dec eax
je 0x4334e3
sub eax, 3
jne 0x433522
push 0
push 0
push 0
push 0x433530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x433522
mov eax, dword [0x52bdcc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
call fcn.00435260
mov ecx, dword [0x52bdcc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov esp, ebp
pop ebp
ret