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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x425f7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x425f9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x425fba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42b02f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42b071
call fcn.0042fedf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42b071
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42b068
xor eax, eax
jmp 0x42b079
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042b07f
pop edi
pop esi
pop ebx
ret 4

Function at 0x43069e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4306cc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4306ea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00430604
jmp 0x4306ea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4306ea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00430604
test edi, edi
mov eax, edi
jne 0x4306d4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40d04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40d05a
pop dword [ebp - 0x14]
mov eax, 0xafe8e0dc
sub eax, 0xafa81082
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x5fea49cc
add dword [ebp - 0x24], 0xee67fb7f
mov dword [ebp - 0x20], 0xaa39758f
add dword [ebp - 0x20], 0x87f9d6b6
mov dword [ebp - 0x1c], 0xfc56ffc
sub dword [ebp - 0x1c], 0xc3792bce
mov dword [ebp - 0x18], 0x2803dffc
add dword [ebp - 0x18], 0xd7fc2004
lea eax, [ebp - 0x24]
push eax
mov eax, 0xdd3f1101
add eax, 0x2301cffb
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x1401ef52
sub dword [ebp - 0x24], 0x9f8f85fc
mov dword [ebp - 0x20], 0xbf658a90
sub dword [ebp - 0x20], 0x7df9291b
mov dword [ebp - 0x1c], 0x7e76eeba
sub dword [ebp - 0x1c], 0x1b07824e
mov dword [ebp - 0x18], 0xd606a3ae
add dword [ebp - 0x18], 0x29f95c52
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x441634cf
add eax, 0xbc2aabb9
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x380ac
push 0
call eax
mov ecx, 0x15b16045
add ecx, 0xea4ee915
mov esi, eax
mov edi, 0x41f000
add edi, dword [ebp - 0x14]
mov edx, 0x73bc1468
mov dword [ebp - 8], 0xecc1d15a
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0xfe0a02c1
sub ebx, edx
xor dword [ebp - 0xc], edx
mov dword [esi], ebx
mov dword [ebp - 4], 0x178010d6
add esi, 4
add edi, 0xd5472eb3
add edi, 0x2ab8d151
loop 0x40d170
add eax, 0x1183b
mov ebx, eax
add eax, 0xeb5211ae
sub eax, 0xeb5211a9
mov ecx, 0xfd7eee1f
add ecx, 0x2c111e1
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x1e7533dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1e7533e6
pushal
call 0x1e7533ec
pop ebp
sub ebp, 0x10
sub ebp, 0x3a33dc
mov al, byte [esp + 0x28]
cmp al, 1
je 0x1e753410
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1e753419
mov eax, 0x3a33dc
add eax, ebp
add eax, 0x63
mov ecx, 0x61d
mov edx, 0x16ec6046
xor byte [eax], dl
inc eax
dec ecx
jne 0x1e753430
jmp 0x1e753443
int 0x8b
int 0xcf
jp 0x1e75348f
inc esi
inc esi
mov dword [edi + 0x464646be], 0x41fe8b45
inc esi
inc esi
inc esi
cld
outsb dx, byte [esi]
inc esi
inc esi
inc esi
mov cl, 0xa4
inc ebp
mov cs, ebp
invalid
sbb ecx, ebp
ret
Function at 0xb18790
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b188e0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb187b6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb187a2
add dl, dl
jne 0xb187c1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb18814
xor eax, eax
add dl, dl
jne 0xb187ce
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb188b5
add dl, dl
jne 0xb187dd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb187e8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb187f3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb187fe
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb1880a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb187ad
mov eax, 1
add dl, dl
jne 0xb18822
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb1882d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb18819
sub eax, ebx
mov ebx, 1
jne 0xb18860
mov ecx, 1
add dl, dl
jne 0xb18846
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb18851
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1883d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb187ad
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb18877
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb18882
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb1886e
cmp eax, 0x7d00
jae 0xb188a5
cmp eax, 0x500
jb 0xb188a0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb187ad
cmp eax, 0x7f
ja 0xb188a8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb187ad
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb188d6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb187ad
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7a8b4782
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x642f0131
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001000
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 4], eax
mov dword [esp], eax
xor ecx, ecx
mov eax, 0x1f4
mov edx, 2
mul edx
seto cl
push esi
push edi
neg ecx
or ecx, eax
push ecx
call fcn.10004643
push 0x3e8
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x18]
add esp, 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x18]
push edx
push 1
push ebx
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x100010f3
push ebp
mov ebp, 0x3e8
mov edi, 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x100010f2
cmp eax, 0x7a
jne 0x100010e7
test esi, esi
je 0x1000108f
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
add edi, 0x1f4
xor ecx, ecx
mov eax, edi
mov edx, 2
add ebp, 0x3e8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10004643
push ebp
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x1c]
push edx
push 1
push ebx
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x10001072
jmp 0x100010f2
push str.Unknown_Failure._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebp
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.10002930
test esi, esi
je 0x1000110c
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x10001120
Capabilities:
Print debug messages

Disassembly:
push ecx
xor eax, eax
mov dword [esp], eax
mov dword [esp], eax
xor ecx, ecx
mov eax, 0x64
mov edx, 2
mul edx
seto cl
push esi
push edi
neg ecx
or ecx, eax
push ecx
call fcn.10004643
push 0xc8
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x100011f9
push ebp
mov ebp, 0xc8
lea edi, [eax + 0x64]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x100011f8
cmp eax, 0x7a
jne 0x100011ed
test esi, esi
je 0x1000119f
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
add edi, 0x64
xor ecx, ecx
mov eax, edi
mov edx, 2
add ebp, 0xc8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10004643
push ebp
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [edx]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x10001182
jmp 0x100011f8
push str.Unknown_Failure._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ebp
mov edi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.10002930
test esi, esi
je 0x10001212
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x10002540
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x1000801c]
xor eax, esp
mov dword [esp + 0x210], eax
lea eax, [esp]
push eax
push 8
push 0
push str.SYSTEMCurrentControlSetControlClass
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002591
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10004654
add esp, 0x214
ret
push esi
push edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
xor esi, esi
mov word [esp + 0x1c], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push eax
mov dword [esp + 0x2c], 0x208
call edi
test eax, eax
jne 0x10002646
jmp 0x100025e0
mov ecx, str.3F966BD9_FA04_4EC5_991C_D326973B5128
lea eax, [esp + 0x10]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10002616
test dx, dx
je 0x10002612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10002616
add eax, 4
add ecx, 4
test dx, dx
jne 0x100025f0
xor eax, eax
jmp 0x1000261b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000266a
mov eax, dword [esp + 8]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x2c], 0x104
call edi
test eax, eax
je 0x100025e0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.10004654
add esp, 0x214
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.10004654
add esp, 0x214
ret

Function at 0x100040a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100040b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100040e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100040e4
cmp esi, eax
jae 0x100040e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100040d4
cmp esi, eax
jb 0x100040ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10004654
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000801c]
jne 0x1000465e
repz ret
jmp fcn.10004bbe
Function at 0x4017c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41fd41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push 0x42d3f8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x138], 0
call fcn.0041f07a
lea eax, [esp + 0x2c]
push 0x104
push eax
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call sub.MFC42.DLL_operatornew
mov ebp, eax
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], esp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HCLog_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, esp
push ebp
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebx + 0x40]
call fcn.00406b70
test eax, eax
jne 0x4018a9
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebx + 0x40]
call fcn.00406c40
mov edi, dword [esp + 0x140]
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041f074
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x10]
push eax
push 0x42b0b0
push ecx
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0
push 0x1001
push ebp
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40194c
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], ebx
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4019ac
push ebp
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x14]
mov ecx, ebx
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], ebx
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 8
Function at 0x406bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x28], 0
call fcn.0041f0f8
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x406c40
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x406e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0x57c8]
lea ebx, [esi + 0x57b8]
push str.WatchData_Cryptographic_Provider_v1.0
mov dword [esi + 0x57b4], edi
mov dword [esi + 0x57b0], edi
mov dword [esi + 0x57ac], edi
mov dword [ebp], edi
mov dword [esi + 0x57c4], edi
mov dword [esi + 0x57c0], edi
mov dword [esi + 0x57bc], edi
mov dword [ebx], edi
mov dword [esp + 0x18], 4
call fcn.00407650
lea eax, [esp + 0x10]
push eax
push str.SoftwareWatchDataWatchData_CRWParameter
push reloc.HTCSPApi.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x406f25
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.AutoRegC
push eax
call edi
cmp dword [ebx], 0
je 0x406f18
lea ecx, [esp + 0x14]
lea eax, [esi + 0x57bc]
push ecx
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
push str.InsKeyLoadCert
push eax
call edi
lea ecx, [esp + 0x14]
lea eax, [esi + 0x57c0]
push ecx
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
push str.PlugKeyCloseIE
push eax
call edi
lea ecx, [esp + 0x14]
lea eax, [esi + 0x57c4]
push ecx
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
push str.PlugKeyUnloadCert
push eax
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push 0
push str.InsKeyRunIE
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
push str.GAKeyRWCard
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.usb1
mov ecx, esi
mov dword [esi + 0x1794], eax
call fcn.00407270
cmp eax, 0xffffffff
mov ebp, 1
je 0x406fbb
push eax
mov ecx, esi
call fcn.004072f0
cmp dword [esi + 0x57ac], edi
jne 0x406fbb
mov edx, dword [esi + 0x1794]
mov ecx, esi
push edx
call fcn.004071f0
test eax, eax
je 0x406fbb
push edi
push ebp
push str.usb1
call sub.WDCRWV.dll_CT_open
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406fad
cmp dword [esi + 0x57bc], edi
je 0x406f9b
push ebx
mov ecx, esi
call fcn.00407e90
test eax, eax
je 0x407035
mov dword [esi + 0x57d0], edi
mov dword [esi + 0x57cc], ebx
mov dword [esi + 0x57ac], ebp
mov eax, dword [esi + 0x1794]
mov ecx, esi
push eax
call fcn.00407210
push str.usb2
mov ecx, esi
call fcn.00407270
cmp eax, 0xffffffff
je 0x407035
push eax
mov ecx, esi
call fcn.004072f0
cmp dword [esi + 0x57b0], edi
jne 0x407035
mov ecx, dword [esi + 0x1794]
push ecx
mov ecx, esi
call fcn.004071f0
test eax, eax
je 0x407035
push edi
push ebp
push str.usb2
call sub.WDCRWV.dll_CT_open
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407027
cmp dword [esi + 0x57bc], edi
je 0x407015
push ebx
mov ecx, esi
call fcn.00407e90
test eax, eax
je 0x407035
mov dword [esi + 0x57d0], edi
mov dword [esi + 0x57cc], ebx
mov dword [esi + 0x57b0], ebp
mov edx, dword [esi + 0x1794]
mov ecx, esi
push edx
call fcn.00407210
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret