joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036d9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407160
cmp edx, dword [eax]
je 0x4036fb
add eax, 8
inc ecx
cmp eax, 0x4071f0
jl 0x4036ec
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407160]
jne 0x403829
mov eax, dword [0x4075d4]
cmp eax, 1
je 0x403803
test eax, eax
jne 0x40372c
cmp dword [0x4070b4], 1
je 0x403803
cmp edx, 0xfc
je 0x403829
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403763
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004044c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4037a6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406490
push edi
call fcn.00404970
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004044c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004044d0
lea eax, [ebp - 0xa0]
push 0x406470
push eax
call fcn.004044d0
push dword [esi + 0x407164]
lea eax, [ebp - 0xa0]
push eax
call fcn.004044d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004048e5
add esp, 0x2c
pop edi
jmp 0x403829
lea eax, [ebp + 8]
lea esi, [esi + 0x407164]
push 0
push eax
push dword [esi]
call fcn.00402900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10028460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10028473
mov dword [ebx], 0
mov edx, 0x100f10ec
call fcn.10028390
mov esi, eax
test esi, esi
je 0x10028550
push esi
call fcn.1006cfbc
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10028547
push 2
push 0
push esi
call fcn.1006d8d1
add esp, 0xc
test eax, eax
jne 0x10028547
push esi
call fcn.1006cfbc
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10028547
push 0
push dword [ebp + 8]
push esi
call fcn.1006d8d1
add esp, 0xc
test eax, eax
jne 0x10028547
mov eax, dword [0x10103fe8]
test eax, eax
je 0x100284e6
inc dword [eax + 0xb0]
push edi
call fcn.100756b7
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10028547
push esi
push edi
push 1
push eax
call fcn.10070b54
add esp, 0x10
push esi
cmp eax, edi
je 0x10028531
call fcn.1006d5c6
mov eax, dword [0x10103fe8]
add esp, 4
test eax, eax
je 0x1002851f
dec dword [eax + 0xb0]
push dword [ebp + 8]
call fcn.10070953
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.1006d5c6
add esp, 4
test ebx, ebx
je 0x1002853f
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.1006d5c6
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1002ae80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x14]
mov edi, 0x10
movss xmm1, dword [edx + 0xfc]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x100]
subss xmm0, xmm1
mov ecx, dword [edx + 0xe0]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xe8]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 8], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100ec040]
sub edi, 1
jne 0x1002aef0
not edx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10033910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10103fe8]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e38]
mov esi, 4
mov eax, dword [edi + 0xe0]
add edi, 0xe0
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100ec040]
sub esi, 1
jne 0x10033947
mov eax, dword [0x10103fe8]
not ebx
cmp dword [eax + 0x3e6c], ebx
jne 0x10033981
push ecx
push dword [ebp - 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.1003ce00
add esp, 8
mov esi, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, esi
jne 0x100339ae
inc ecx
test esi, esi
je 0x1003399a
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1003399f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1003d350
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100453b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100453e6
mov eax, dword [0x10103fe8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100453d6
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1004541a
mov eax, dword [0x10103fe8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1004540a
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1004544e
mov eax, dword [0x10103fe8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1004543e
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1004549e
mov eax, dword [0x10103fe8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1004548e
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100454d2
mov eax, dword [0x10103fe8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100454c2
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10045506
mov eax, dword [0x10103fe8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100454f6
dec dword [eax + 0xb0]
push ecx
call fcn.10070953
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10048190
Function at 0x1004daf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [0x10103fe8]
mov dword [esp + 0x24], ebx
push esi
push edi
test ebx, ebx
je 0x1004db0f
mov esi, dword [ebx + 0x78]
jmp 0x1004db11
xor esi, esi
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10048bc0
mov eax, dword [ebx + 0x48]
mov ebx, dword [esp + 0x18]
cmp byte [eax + 0x19], 0
je 0x1004dbbe
mov eax, ebx
imul eax, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 0x24], eax
imul ecx, dword [esp + 0x20]
mov eax, dword [0x10103fe8]
test eax, eax
je 0x1004db63
inc dword [eax + 0xb0]
push ecx
call fcn.100756b7
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x24]
mov esi, edi
mov dword [esp + 0x14], edi
lea eax, [edi + eax*4]
mov dword [esp + 0x28], eax
cmp edi, eax
jae 0x1004dbc6
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
sub eax, edi
mov edi, eax
nop
mov edx, dword [edi + esi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, dl
and edx, 0xff00ff00
shl eax, 0x10
or ecx, eax
or ecx, edx
mov dword [esi], ecx
add esi, 4
cmp esi, ebx
jb 0x1004db90
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x1004dbc6
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
push 0
lea esi, [eax + 0xc]
mov dword [esi], 0
mov eax, dword [eax]
push esi
push 0
push 0x15
mov ecx, dword [eax]
push 0x200
push 1
push dword [esp + 0x24]
push ebx
push eax
call dword [ecx + 0x5c]
test eax, eax
js 0x1004dc8e
mov eax, dword [esi]
lea edx, [esp + 0x30]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
jne 0x1004dc8e
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x1004dc3f
imul ebx, dword [esp + 0x20]
nop
mov eax, dword [esp + 0x30]
imul eax, esi
push ebx
push edi
add eax, dword [esp + 0x3c]
push eax
call fcn.1006bcf0
inc esi
add esp, 0xc
add edi, ebx
cmp esi, dword [esp + 0xc]
jl 0x1004dc20
mov esi, dword [esp + 0x10]
push 0
mov eax, dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x48]
cmp byte [eax + 0x19], 0
je 0x1004dc85
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004dc7c
mov ecx, dword [0x10103fe8]
test ecx, ecx
je 0x1004dc7c
dec dword [ecx + 0xb0]
push eax
call fcn.10070953
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005c100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
or eax, 2
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1005c230
Function at 0x1007c2f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007c163
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40897f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
inc eax
mov eax, ecx
call fcn.004089a9
mov eax, 0xe9e35884
sub eax, 0x31891e80
xor dword [ebx], esi
or ecx, ecx
inc ebx
or ecx, eax
cmp ebx, edi
jne fcn.0040897f
add ecx, 0xaa775f9f
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3f2345f4
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x554a2b83
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40aee0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40af11
push str.m_hKey___0
push 0x47f6ac
push 0
push 0x1679
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40af11
int3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40af27
push dword [ebp + 8]
push dword [esi]
call fcn.0040b960
pop esi
pop ebp
ret 4
cmp byte [0x4b28d8], 0
jne 0x40af67
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40af59
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b28d4], eax
mov byte [0x4b28d8], 1
jmp 0x40af6c
mov eax, dword [0x4b28d4]
mov byte [0x4b28d8], 1
jmp 0x40af6c
mov eax, dword [0x4b28d4]
test eax, eax
je 0x40af81
push 0
push dword [esi + 4]
push dword [ebp + 8]
push dword [esi]
call eax
pop esi
pop ebp
ret 4
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
ret 4

Function at 0x40b750
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ad3bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push ebx
push dword [ecx]
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
call fcn.0040b340
mov esi, eax
test esi, esi
je 0x40b7ed
cmp esi, 2
je 0x40b7e2
cmp esi, 3
je 0x40b7e2
push esi
push ebx
push str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__Ts_Error___d__n
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VC_atlmfcinclude_atlbase.h
push 2
push eax
mov dword [ebp - 0x218], 0x18c6
call fcn.004043d0
add esp, 0x18
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b8ac
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x214]
call edi
test eax, eax
jne 0x40b877
nop word [eax + eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040b750
mov esi, eax
test esi, esi
jne 0x40b7e2
lea eax, [ebp - 0x224]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x40b830
mov eax, dword [ebp - 0x214]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40b894
push eax
call edi
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp - 0x218]
push ebx
mov dword [ebp - 0x210], 0
call fcn.0040aee0
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40b8b9
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e140
mov esp, ebp
pop ebp
ret 4
Function at 0x40b960
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40b9ce
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40b9a9
push str.hAdvAPI32___0
push 0x47f6ac
push eax
push 0x29c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VC_atlmfcinclude_atltransactionmanager.h
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40b99f
int3
mov eax, 1
pop esi
pop ebp
ret 8
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b99f
push 0
push dword [esi]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop esi
pop ebp
ret 8
cmp dword [esi + 4], 0
je 0x40b99f
pop esi
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x40c880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40c8b1
push str.m_hKey___0
push 0x47f6ac
push 0
push 0x1863
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40c8b1
int3
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 8

Function at 0x40c8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [eax], 0
jne 0x40c904
push str.m_hKey___0
push 0x47f6ac
push 0
push 0x1883
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40c904
int3
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
setne al
test eax, eax
jne 0x40c944
push str.__atl_condVal
push 0x47f6ac
push eax
push 0x1884
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40c938
int3
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop word [eax + eax]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c955
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40c950
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40c990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push edi
cmp dword [ebx], 0
jne 0x40c9c2
push str.m_hKey___0
push 0x47f6ac
push 0
push 0x1874
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40c9c2
int3
mov edi, dword [ebp + 0xc]
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x40ca00
push str.__atl_condVal
push 0x47f6ac
push eax
push 0x1875
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40c9f5
int3
pop edi
mov eax, 0xd
pop ebx
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 1
je 0x40ca34
cmp esi, 2
je 0x40ca34
push str._dwType____1______dwType____2___
push 0x47f6ac
push 0
push 0x1876
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x40ca34
int3
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ca40
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push esi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x40d170
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
push str.CBHelper.dll
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40d28c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CallTimerCallback
push eax
call esi
push str.CreateLogFile
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.CloseLogFile
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.SetMainTitle
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.SetDebugPath
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.ActivateLogFile
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.DeactivateLogFile
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.WriteToLogFile
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.WriteToLogFileEx
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.TimeToSystemTime
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.TimeZoneSub
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.GetDaylightBias
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.getKoef
push dword [edi]
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
pop esi
mov eax, edi
pop edi
ret

Function at 0x419b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d396
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ad3bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x4a
push 0x47fee8
push 2
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004475f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x419b5a
call fcn.0043b570
push 1
mov dword [ebp - 4], 0
call fcn.0043c1c0
mov dword [edi + 4], eax
lea ecx, [esi + 8]
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
add esp, 4
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41dc90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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 0x41dcb1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x41d760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41dcda
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dd70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x4b2850], 0
push edi
mov edi, ecx
je 0x41ddb0
push 0x47f6a8
push 0x47f6ac
push 0
push 0xdb7
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x41dda6
int3
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 4
push esi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jns 0x41de0b
cmp esi, 0x80010106
jne 0x41dddb
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x41de0f
push 0x47f6a8
push 0x47f6ac
push 0
push 0xdc5
push 0x47f790
push 2
call fcn.00448410
add esp, 0x18
cmp eax, 1
jne 0x41de52
int3
mov byte [edi + 0x3e], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, edi
call fcn.0041d7a0
cmp al, 1
jne 0x41de33
push dword [ebp + 8]
mov ecx, edi
call fcn.0041dbc0
mov esi, eax
jmp 0x41de36
mov esi, dword [ebp - 4]
push dword [0x4b2a2c]
push 0x4b287c
call fcn.00404880
cmp byte [edi + 0x3e], 0
je 0x41de52
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x41edb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
sub ebx, esi
add ebx, 3
mov dword [ebp - 4], 0
shr ebx, 2
cmp esi, dword [ebp + 0xc]
cmova ebx, ecx
test ebx, ebx
je 0x41ee3a
push edi
mov eax, dword [ebp + 0x10]
push 0x18
mov edi, dword [eax]
call fcn.0043d890
lea ecx, [ebp + 8]
mov dword [ebp + 0xc], eax
push ecx
push 0
push eax
push 0x41e7d0
push 0
push 0
mov dword [eax], edi
mov dword [eax + 8], 0x42d780
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
call fcn.004555e0
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x41ee29
push 0x18
push dword [ebp + 0xc]
call fcn.0043d8e0
add esp, 8
mov eax, dword [ebp - 4]
inc eax
mov dword [esi], edi
add esi, 4
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x41edd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret