joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f17
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x414f26
mov eax, dword [eax + 4]
jmp 0x414f29
add eax, 4
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb al, al
inc al
ret 4

Function at 0x414f3b
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x414f4a
mov eax, dword [eax + 4]
jmp 0x414f4d
add eax, 4
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb al, al
inc al
ret 4

Function at 0x416b1e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [eax + 0x18], 8
push esi
mov esi, ecx
mov byte [ebp - 1], bl
jb 0x416b3a
mov eax, dword [eax + 4]
jmp 0x416b3d
add eax, 4
push ebx
push 0x2000000
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x416bf0
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x416bd8
cmp dword [ebp - 8], ebx
jne 0x416bd8
push edi
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00415809
cmp dword [esi + 0x20], ebx
je 0x416b9a
cmp dword [edi + 0x18], 8
jb 0x416b95
mov edi, dword [edi + 4]
jmp 0x416b9c
add edi, 4
jmp 0x416b9c
xor edi, edi
push edi
push ebx
push ebx
push 2
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [ebp + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
or dword [ebp + 8], 0xffffffff
pop edi
cmp eax, ebx
je 0x416bf0
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x416bf0
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x416be7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
je 0x416bf0
mov al, 1
jmp 0x416bf9
mov ecx, esi
call fcn.00416545
xor al, al
pop esi
pop ebx
leave
ret 4

Function at 0x4192e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4566c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
call fcn.00417b8d
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x419319
lea eax, [ebp - 0x1c]
cmp dword [esi + 0x18], 8
jb 0x419324
mov esi, dword [esi + 4]
jmp 0x419327
add esi, 4
push dword [ebp - 0xc]
push eax
push 7
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x20]
inc bl
call fcn.00401b4d
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042090d
leave
ret 8
Function at 0x41bcef
Capabilities:
Delete registry key

Disassembly:
push 0x4c
mov eax, 0x43e8b7
call fcn.004212a4
mov edi, ecx
mov esi, dword [ebp + 8]
push esi
call fcn.00414f17
test al, al
je 0x41bd14
mov al, 1
call fcn.0042137c
ret 4
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
push esi
push dword [edi]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00414ee6
test al, al
jne 0x41bd3f
lea ecx, [ebp - 0x14]
call fcn.00413bc5
mov al, bl
jmp 0x41bd0c
lea ecx, [ebp - 0x3c]
call fcn.00419459
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041baaf
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
call fcn.0041514a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x41bdba
lea ecx, [ebp - 0x1c]
call fcn.00413caa
cmp dword [eax + 0x18], 8
jb 0x41bd87
mov eax, dword [eax + 4]
jmp 0x41bd8a
add eax, 4
push eax
lea ecx, [ebp - 0x58]
call fcn.00405457
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0041bcef
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00403f19
lea ecx, [ebp - 0x1c]
call fcn.00414503
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.0041514a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041464f
test al, al
je 0x41bd74
lea ecx, [ebp - 0x14]
call fcn.00413bc5
cmp dword [esi + 0x18], 8
jb 0x41bdec
mov eax, dword [esi + 4]
jmp 0x41bdef
lea eax, [esi + 4]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x3c]
inc bl
call fcn.0041968a
push dword [ebp - 0x3c]
call fcn.004205ee
pop ecx
jmp 0x41bd33
Function at 0x41c2ff
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x41c4e1
push 0x14
push 0x451960
call fcn.00423090
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x41c5d1
cmp edi, ebx
je 0x41c5d1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x41c546
push str.DwLib_DwVerifyFileDrWebSign:
call fcn.0041c496
push str.cant_get_file_size_n
jmp 0x41c5e0
push ebx
push esi
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x41c56b
push str.DwLib_DwVerifyFileDrWebSign:
call fcn.0041c496
push str.cant_create_section_n
jmp 0x41c5e0
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x41c58f
push str.DwLib_DwVerifyFileDrWebSign:
call fcn.0041c496
push str.cant_map_section_n
jmp 0x41c5e0
mov dword [ebp - 4], ebx
push esi
push eax
call fcn.0041cd7d
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xfffffffe
jmp 0x41c5e8
push str.DwLib_DwVerifyFileDrWebSign:
call fcn.0041c496
push str.cant_open_file_n
call fcn.0041c496
mov byte [ebp - 0x19], bl
cmp dword [ebp - 0x20], ebx
je 0x41c5f6
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x24], ebx
je 0x41c604
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x41c610
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x19]
call fcn.004230d5
ret 4

Function at 0x41c853
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x41c87f
cmp ecx, 0xffffffff
je 0x41c87f
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x41c87f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x41c87f
xor eax, eax
pop ebp
ret 4
Function at 0x41ce6d
Capabilities:
Hash data using murmur3

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
xor edx, edx
lea ecx, [eax + 0x2f]
push edi
movzx esi, byte [ecx - 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 2]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4 - 0x120], esi
inc edx
add ecx, 4
cmp edx, 0x10
jl 0x41ce80
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0x30
mov edx, dword [ecx - 0x34]
mov esi, dword [ecx]
mov edi, edx
rol edi, 0xe
mov ebx, edx
shr edx, 3
ror ebx, 7
xor edi, ebx
xor edi, edx
mov edx, esi
rol edx, 0xf
mov ebx, esi
rol ebx, 0xd
xor edx, ebx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [ecx - 0x38]
add ecx, 4
add edi, dword [ecx - 0x18]
dec dword [ebp - 4]
mov dword [ecx + 4], edi
jne 0x41cebb
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov ebx, dword [eax + 0x18]
mov esi, dword [eax + 0x10]
and dword [ebp - 0x14], 0
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov ecx, esi
ror ecx, 0xb
mov edx, esi
rol edx, 7
xor ecx, edx
mov edx, esi
ror edx, 6
xor ecx, edx
mov edx, esi
not edx
and edx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, esi
xor edx, ebx
add ecx, edx
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x448e80]
mov ebx, edi
add ecx, dword [ebp + edx - 0x120]
mov edx, edi
add ecx, dword [ebp - 4]
ror edx, 0xd
rol ebx, 0xa
xor edx, ebx
mov ebx, edi
add dword [ebp - 0x14], 4
ror ebx, 2
xor edx, ebx
mov ebx, dword [ebp - 8]
xor ebx, edi
and ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
and edi, dword [ebp - 0x18]
xor ebx, edi
mov edi, dword [ebp - 0x20]
add edx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 8], edi
add esi, ecx
cmp dword [ebp - 0x14], 0x100
lea edi, [edx + ecx]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], edi
jl 0x41cf25
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, edi
mov dword [eax], ecx
mov ecx, dword [eax + 4]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
add ecx, esi
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x14]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
add ecx, ebx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edx
pop edi
mov dword [eax + 0x1c], ecx
xor ecx, ecx
pop esi
mov word [eax + 0x2c], cx
pop ebx
leave
ret
Function at 0x41d113
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
movzx ecx, word [eax + 0x2c]
cmp cx, 0x38
movsx ecx, cx
mov byte [ecx + eax + 0x2e], dl
jl 0x41d159
inc word [eax + 0x2c]
movzx ecx, word [eax + 0x2c]
cmp cx, 0x40
jge 0x41d149
movsx ecx, cx
mov byte [ecx + eax + 0x2e], 0
inc word [eax + 0x2c]
cmp word [eax + 0x2c], 0x40
movzx ecx, word [eax + 0x2c]
jl 0x41d132
call fcn.0041ce6d
jmp 0x41d15d
movsx ecx, word [eax + 0x2c]
mov byte [ecx + eax + 0x2e], 0
inc word [eax + 0x2c]
cmp word [eax + 0x2c], 0x38
jl 0x41d150
mov ecx, dword [eax + 0x24]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x66], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x68], cl
mov cl, byte [eax + 0x24]
shr edx, 0x10
mov byte [eax + 0x69], cl
mov ecx, dword [eax + 0x20]
mov byte [eax + 0x67], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x6a], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x6c], cl
mov cl, byte [eax + 0x20]
mov byte [eax + 0x6b], dl
mov byte [eax + 0x6d], cl
jmp fcn.0041ce6d

Function at 0x41d4e5
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [eax + 0x20]
cmp cx, 0x38
movsx ecx, cx
mov byte [ecx + eax + 0x22], dl
jl 0x41d52b
inc word [eax + 0x20]
movzx ecx, word [eax + 0x20]
cmp cx, 0x40
jge 0x41d51b
movsx ecx, cx
mov byte [ecx + eax + 0x22], 0
inc word [eax + 0x20]
cmp word [eax + 0x20], 0x40
movzx ecx, word [eax + 0x20]
jl 0x41d504
call fcn.0041d290
jmp 0x41d52f
movsx ecx, word [eax + 0x20]
mov byte [ecx + eax + 0x22], 0
inc word [eax + 0x20]
cmp word [eax + 0x20], 0x38
jl 0x41d522
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5a], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5c], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5d], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x5b], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5e], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x60], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5f], dl
mov byte [eax + 0x61], cl
jmp fcn.0041d290

Function at 0x42090d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4566c8]
jne 0x420917
repz ret
jmp fcn.00428880
Function at 0x434ccd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00428355
and dword [ebp - 4], 0
cmp dword [0x45a638], 0
mov ebx, eax
jne 0x434d7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x434e2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x434e2f
push eax
call fcn.004282e3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45a638], eax
call esi
push eax
call fcn.004282e3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45a63c], eax
call esi
push eax
call fcn.004282e3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45a640], eax
call esi
push eax
call fcn.004282e3
pop ecx
mov dword [0x45a648], eax
test eax, eax
je 0x434d7e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004282e3
pop ecx
mov dword [0x45a644], eax
mov eax, dword [0x45a644]
cmp eax, ebx
je 0x434dd6
cmp dword [0x45a648], ebx
je 0x434dd6
push eax
call fcn.0042835e
push dword [0x45a648]
mov esi, eax
call fcn.0042835e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x434dd6
test edi, edi
je 0x434dd6
call esi
test eax, eax
je 0x434dcd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x434dcd
test byte [ebp - 0xc], 1
jne 0x434dd6
or dword [ebp + 0x10], 0x200000
jmp 0x434e0f
mov eax, dword [0x45a63c]
cmp eax, ebx
je 0x434e0f
push eax
call fcn.0042835e
pop ecx
test eax, eax
je 0x434e0f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x434e0f
mov eax, dword [0x45a640]
cmp eax, ebx
je 0x434e0f
push eax
call fcn.0042835e
pop ecx
test eax, eax
je 0x434e0f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a638]
call fcn.0042835e
pop ecx
test eax, eax
je 0x434e2f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x434e31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4371c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4371f1
call fcn.00424b33
mov dword [eax], esi
call fcn.00424b20
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00420dbc
add esp, 0x14
push 0x16
pop eax
jmp 0x437246
test dword [ebp + 0xc], 0xfffffff9
jne 0x4371cd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43721e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424b46
pop ecx
call fcn.00424b20
mov eax, dword [eax]
jmp 0x437246
test al, 0x10
jne 0x437244
test al, 1
je 0x437244
test byte [ebp + 0xc], 2
je 0x437244
call fcn.00424b33
mov dword [eax], 5
call fcn.00424b20
mov dword [eax], 0xd
jmp 0x437215
xor eax, eax
pop esi
pop ebp
ret
Function at 0x103cafc0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103cafca
pushal
call 0x103cafd0
pop ebp
sub ebp, 0x10
sub ebp, 0x3cafc0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103caff4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103caffd
mov eax, 0x3cafc0
add eax, ebp
add eax, 0x63
mov ecx, 0x60c
or al, 6
add byte [eax], al
mov edx, 0x9ccaf6de
xor byte [eax], dl
inc eax
dec ecx
jne 0x103cb014
jmp 0x103cb027
push ebp
adc edx, dword [ebp + 0x57]
loop 0x103cb00b
invalid
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10023d80
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x1354177
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edx
mov dh, 0x76
push edi
push ebp
movsx edi, ax
cwd
xchg di, dx
push esi
push ebx
push ecx
jmp 0x2219ee3
pushfd
bsr cx, dx
shrd esi, ecx, 0xf4
push eax
rol ebx, 0
rdtsc
mov ecx, 0
push ecx
rdtsc
add al, 7
mov edi, dword [esp + 0x28]
stc
neg edi
not edi
sub edi, 0x63356cea
ror edi, 3
xadd ebp, esi
lea edi, [edi + ecx]
cbw
mov ebp, esp
sbb al, ah
btr bx, 0xe6
lea esp, [esp - 0xc0]
shrd dx, si, 0x86
mov ebx, edi
sar dl, 7
lahf
bswap eax
mov edx, 0
test ch, 0x2c
bswap eax
sal si, 0xf4
sub ebx, edx
setp ah
lea esi, [0x2219f46]
rcl ah, cl
sar al, 0xe2
mov ax, cx
mov eax, dword [edi]
clc
add edi, 4
cmp cx, 0x45ae
test esp, 0x6dc270a5
xor eax, ebx
cmc
ror eax, 1
dec eax
stc
xor eax, 0x46063098
not eax
ror eax, 1
lea eax, [eax - 0x624610d7]
cmp esi, 0x7d24058f
stc
xor eax, 0x9177fed
xor ebx, eax
test esp, 0x11a47e83
add esi, eax
jmp esi

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x79dc48
Capabilities:
Encode data using xor

Disassembly:
jmp 0x79dc52
pushal
call 0x79dc58
pop ebp
sub ebp, 0x10
sub ebp, 0x39dc48
mov al, byte [esp + 0x28]
cmp al, 1
je 0x79dc7c
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x79dc85
mov eax, 0x39dc48
add eax, ebp
add eax, 0x63
mov ecx, 0x605
mov edx, 0xba9ce441
xor byte [eax], dl
inc eax
dec ecx
jne 0x79dc9c
jmp 0x79dcaf
retf 0xca8c
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40b900
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x410050]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x410050]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [esp + 0x14], ebx
push 0x206
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
mov dword [esp + 0x23c], 1
push ecx
mov word [esp + 0x2c], ax
call fcn.00404d90
mov eax, dword [esp + 0x24c]
mov ebp, 8
add esp, 0xc
mov dword [esp + 0x1c], 0x208
cmp dword [esp + 0x254], ebp
jae 0x40108e
lea eax, [esp + 0x240]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40110c
xor eax, eax
mov edi, 7
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov word [esi + 4], ax
push ebx
mov eax, 0x40daa8
call fcn.00402aa0
cmp dword [esp + 0x254], ebp
jb 0x4010da
mov ecx, dword [esp + 0x240]
push ecx
call fcn.00404353
add esp, 4
xor edx, edx
mov dword [esp + 0x254], edi
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], dx
cmp dword [esp + 0x270], ebp
jb 0x4011e3
mov eax, dword [esp + 0x25c]
push eax
jmp 0x4011db
mov eax, dword [esp + 0x25c]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x270], ebp
jae 0x401127
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40115a
push 0x208
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00404d90
add esp, 0xc
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 7
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
lea eax, [esp + 0x20]
mov word [esi + 4], dx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401180
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
call fcn.00402aa0
cmp dword [esp + 0x254], ebp
jb 0x4011b2
mov eax, dword [esp + 0x240]
push eax
call fcn.00404353
add esp, 4
xor ecx, ecx
mov dword [esp + 0x254], edi
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], cx
cmp dword [esp + 0x270], ebp
jb 0x4011e3
mov edx, dword [esp + 0x25c]
push edx
call fcn.00404353
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040415a
add esp, 0x224
ret