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

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000bb8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000bb9a
pop dword [ebp - 0x10]
mov eax, 0x243c4916
add eax, 0xebc47284
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x350be
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xe3bfe68c
add ecx, 0x1c405823
xor edx, edx
add edx, eax
mov ebx, 0x4e5ebc1c
add ebx, 0xc1a357e4
add ebx, dword [ebp - 0x10]
mov edi, 0xecde3183
sub edi, 0x836fab74
add dword [ebp - 8], 0x4dbc5f45
mov esi, dword [ebx]
xor dword [ebp - 0xc], 0xc94286ed
add esi, edi
mov dword [ebp - 4], 0x9c2fcd63
mov dword [edx], esi
add dword [ebp - 8], edx
add edx, 0xedf0e99b
sub edx, 0xedf0e997
add ebx, 0x21bb5d0f
add ebx, 0xde44a2f5
loop 0x1000bbf6
add eax, 0xed8f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5c3c5216
add ecx, 0xb3c3adea
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40b468
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406147
mov dword [ebp - 0x14], eax
cmp dword [0x4323b4], esi
jne 0x40b55b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b4e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b63b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40b63b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b63b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4323b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4323b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4323bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4323c4], eax
test eax, eax
je 0x40b558
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4323c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b580
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b573
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40b595
push 4
pop eax
jmp 0x40b63d
cmp dword [ebp - 0x14], esi
je 0x40b595
push dword [0x4323b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b57a
mov eax, dword [0x4323c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40b5f3
cmp dword [0x4323c4], edi
je 0x40b5f3
push eax
call ebx
push dword [0x4323c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b5f3
test eax, eax
je 0x40b5f3
call ecx
test eax, eax
je 0x40b5e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40b5e8
test byte [ebp - 8], 1
jne 0x40b5f3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40b623
mov eax, dword [0x4323b8]
cmp eax, edi
je 0x40b620
push eax
call ebx
test eax, eax
je 0x40b620
call eax
mov esi, eax
test esi, esi
je 0x40b620
mov eax, dword [0x4323bc]
cmp eax, edi
je 0x40b620
push eax
call ebx
test eax, eax
je 0x40b620
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4323b4]
call ebx
test eax, eax
je 0x40b63b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40b63d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ac6
mov esp, ebp
pop ebp
ret
Function at 0x100193bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100193cb
pop dword [ebp - 0xc]
mov eax, 0xb5237d13
sub eax, 0xa521e948
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x9f56378f
add dword [ebp - 0x1c], 0xaefc0dbc
mov dword [ebp - 0x18], 0x93c0affa
sub dword [ebp - 0x18], 0x618d63b5
mov dword [ebp - 0x14], 0xd1e9e253
add dword [ebp - 0x14], 0x7a6261db
mov dword [ebp - 0x10], 0x7a964014
add dword [ebp - 0x10], 0x8569bfec
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xedcfd843
add eax, 0x22324801
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x5befe6c3
add dword [ebp - 0x1c], 0x18828293
mov dword [ebp - 0x18], 0x58427b5f
sub dword [ebp - 0x18], 0x16d619ea
mov dword [ebp - 0x14], 0xa2785c7c
sub dword [ebp - 0x14], 0x3f08f010
mov dword [ebp - 0x10], 0x93011af6
add dword [ebp - 0x10], 0x6cfee50a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x34c4e
push 0
call eax
mov ecx, 0xb69f25e7
add ecx, 0x496114bd
xor esi, esi
add esi, eax
mov edi, 0xcb9a4c6b
sub edi, 0xbb97306b
add edi, dword [ebp - 0xc]
mov ebx, 0x37645f16
add dword [ebp - 8], 0xb353c927
mov edx, dword [edi]
add dword [ebp - 4], esi
xor edx, ebx
mov dword [ebp - 8], 0x117e6a15
mov dword [esi], edx
xor dword [ebp - 8], 0x5cec3888
add esi, 0xab817b1b
add esi, 0x547e84e9
add edi, 0xb9e8075e
sub edi, 0xb9e8075a
loop 0x100194e4
add eax, 0x74e0b46d
sub eax, 0x74dfd70a
mov ebx, eax
add eax, 0x55184dc2
sub eax, 0x55184dbd
mov ecx, 0x7c296f91
add ecx, 0x93d6906f
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4b3e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
jmp 0x4b3e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3e70
mov eax, 1
add ebx, ebx
jne 0x4b3e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b3ea4
jne 0x4b3ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ec3
dec eax
add ebx, ebx
jne 0x4b3eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3e88
add ebx, ebx
jne 0x4b3ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b3f15
xor ecx, ecx
sub eax, 3
jb 0x4b3edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3f4a
sar eax, 1
mov ebp, eax
jmp 0x4b3ee6
add ebx, ebx
jne 0x4b3ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3eb4
inc ecx
add ebx, ebx
jne 0x4b3ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3eb4
add ebx, ebx
jne 0x4b3f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b3ef6
jne 0x4b3f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b3ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b3f26
jmp 0x4b3e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3f34
add edi, ecx
jmp 0x4b3e76
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3f52
cmp byte [edi], 0x13
jne 0x4b3f52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3f57
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b3fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb6bc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb6d18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3f84
mov ecx, edi
jns 0x4b3fb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb6d1c]
or eax, eax
je 0x4b3fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3fa1
call dword [esi + 0xb6d2c]
mov ebp, dword [esi + 0xb6d20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b4003
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403024
pop dword [ebp - 0xc]
mov eax, 0xc6590c40
add eax, 0x39e723e4
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xccee6ef9
add dword [ebp - 0x1c], 0x8163d652
mov dword [ebp - 0x18], 0xf080885a
add dword [ebp - 0x18], 0x41b2c3eb
mov dword [ebp - 0x14], 0x1eaf1714
add dword [ebp - 0x14], 0x2d9d2d1a
mov dword [ebp - 0x10], 0x456c76da
sub dword [ebp - 0x10], 0x456c76da
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xd62ee0fc
add eax, 0x2a119f7c
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc88acec6
add dword [ebp - 0x1c], 0xabe79a90
mov dword [ebp - 0x18], 0xa9be63f5
sub dword [ebp - 0x18], 0x68520280
mov dword [ebp - 0x14], 0xe8327c5
add dword [ebp - 0x14], 0x54ec44a7
mov dword [ebp - 0x10], 0x7e2536d2
add dword [ebp - 0x10], 0x81dac92e
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x61926a37
sub eax, 0x6151e9bb
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x385ec
push 0
call eax
mov ecx, 0x6aedd961
add ecx, 0x951273f3
xor esi, esi
add esi, eax
mov edx, 0x84306421
add edx, 0x7c152ddf
add edx, dword [ebp - 0xc]
mov ebx, 0xd18f6bda
sub ebx, 0xe15c30d4
xor dword [ebp - 8], ebx
mov edi, dword [edx]
xor edi, ebx
sub dword [ebp - 4], eax
mov dword [esi], edi
add esi, 0x1a912ff7
add esi, 0xe56ed00d
add edx, 0xa3a03147
sub edx, 0xa3a03143
loop 0x403148
add eax, 0xd4b11077
sub eax, 0xd4afe854
xor ebx, ebx
add ebx, eax
add eax, 0x49ba7be1
add eax, 0xb6458424
mov ecx, 0xfed0eab
sub ecx, 0xfad0eab
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x10053619
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10053628
pop dword [ebp - 0x30]
mov eax, 0x800d495c
sub eax, 0x70081334
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x7afb5cc9
sub dword [ebp - 0x40], 0x2ca9177e
mov dword [ebp - 0x3c], 0x4026b935
sub dword [ebp - 0x3c], 0xdf36cf0
mov dword [ebp - 0x38], 0x1b18ed8c
add dword [ebp - 0x38], 0x313356a2
mov dword [ebp - 0x34], 0x68cc00b3
sub dword [ebp - 0x34], 0x68cc00b3
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x93db59d2
add dword [ebp - 0x40], 0xe0970f84
mov dword [ebp - 0x3c], 0xf391bbeb
sub dword [ebp - 0x3c], 0xb2255a76
mov dword [ebp - 0x38], 0xaac21303
add dword [ebp - 0x38], 0xb8ad5969
mov dword [ebp - 0x34], 0x594e653e
sub dword [ebp - 0x34], 0x594e653e
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x60c36
push 0
call eax
mov ecx, 0xaa96d329
sub ecx, 0xaa967e37
xor edx, edx
add edx, eax
mov ebx, 0x19a082f5
sub ebx, 0x999eef5
add ebx, dword [ebp - 0x30]
mov edi, 0x1bfcf744
sub edi, 0xc9b62ef1
xor dword [ebp - 8], 0x2d92fb6a
mov esi, dword [ebx]
mov dword [ebp - 0x18], 0x4a7daead
sub esi, edi
add dword [ebp - 0x2c], 0x8fb93892
mov dword [edx], esi
add edx, 4
add ebx, 0x5b4da466
add ebx, 0xa4b25b9e
loop 0x10053742
add eax, 0x154976f1
sub eax, 0x15483056
mov ebx, eax
add eax, 0x2d3e62fc
add eax, 0xd2c19d09
mov ecx, 0xf2c06bc
add ecx, 0xd3f944
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10010330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1001033f
pop dword [ebp - 0x40]
mov eax, 0x1001033f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4f92b93f
sub dword [ebp - 0x50], 0x14073f4
mov dword [ebp - 0x4c], 0xf9ca8020
add dword [ebp - 0x4c], 0x3868cc25
mov dword [ebp - 0x48], 0x14b0c618
add dword [ebp - 0x48], 0x379b7e16
mov dword [ebp - 0x44], 0x8488e1a4
add dword [ebp - 0x44], 0x7b771e5c
lea eax, [ebp - 0x50]
push eax
mov eax, 0x6d4ebc04
sub eax, 0x5d4c6b80
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xc005e894
sub dword [ebp - 0x50], 0x4b937f3e
mov dword [ebp - 0x4c], 0x283bf363
add dword [ebp - 0x4c], 0x19306e12
mov dword [ebp - 0x48], 0xd5bc29a8
sub dword [ebp - 0x48], 0x724cbd3c
mov dword [ebp - 0x44], 0x67ac4fc7
sub dword [ebp - 0x44], 0x67ac4fc7
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x397e5
push 0
call eax
mov ecx, 0xc3ed72d7
add ecx, 0x3c12cd44
xor edx, edx
add edx, eax
mov ebx, 0x10030c00
add ebx, dword [ebp - 0x40]
mov edi, 0xf997df4
add edi, 0x347c89cf
xor dword [ebp - 0x38], eax
mov esi, dword [ebx]
add esi, edi
add dword [ebp - 0x34], ebx
mov dword [edx], esi
sub dword [ebp - 0x18], edi
add edx, 0x6d1e3eeb
sub edx, 0x6d1e3ee7
add ebx, 4
loop 0x10010453
add eax, 0xf33f
mov ebx, eax
add eax, 5
mov ecx, 0x1bd66402
add ecx, 0xf4299bfe
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x415fa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x415fb2
pop dword [ebp - 0x18]
mov eax, 0x302b5841
add eax, 0xd0160771
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3e64c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x4a3f
mov esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x18]
mov edi, 0xf3a7fab1
mov dword [ebp - 4], 0xabc5d3fc
mov ebx, dword [edx]
xor dword [ebp - 0x10], 0xb66d5543
xor ebx, edi
sub dword [ebp - 0x14], ebx
mov dword [esi], ebx
mov dword [ebp - 0x10], 0x516dad7b
add esi, 0x917b2f29
sub esi, 0x917b2f25
add edx, 4
loop 0x415ffa
add eax, 0xa9f9d160
sub eax, 0xa9f8b591
xor ebx, ebx
add ebx, eax
add eax, 0xefc20e5f
sub eax, 0xefc20e5a
mov ecx, 0x7d1a3b5a
sub ecx, 0x7cda3b5a
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x402690
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x1034
push str.grapflas
push 0x415e08
push 0
call esi
cmp eax, 6
jne 0x402726
push 0x24
push str.grapflas
push 0x415f98
push 0
call esi
cmp eax, 6
jne 0x402726
push edi
push 0
call fcn.00405904
push eax
call fcn.004058f2
add esp, 8
push 0
push 0
push 0
push 0x402680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtTestAlert
push str.ntdll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
push 0x402480
mov esi, eax
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
call esi
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret

Function at 0x402dff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402e3e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402e3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e3e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402e3e
cmp dword [ecx + 0x74], 0xe
jbe 0x402e3e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4077f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412570
push 0x412568
push str.FlsAlloc
push 0x1f
call fcn.004076b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407828
push dword [ebp + 8]
mov ecx, esi
call dword [0x4111a0]
call esi
jmp 0x40782e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407872
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412580
push 0x412578
push str.FlsGetValue
push 0x21
call fcn.004076b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4078a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4111a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4078b1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412588
push 0x412580
push str.FlsSetValue
push 0x22
call fcn.004076b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4078eb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4111a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x409003
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4090a0
push ebx
push esi
call fcn.00408fcc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408f60
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40904d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40909f
push edi
push eax
call fcn.00407a16
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40906d
call fcn.00407ac1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40909e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408f60
add esp, 0x20
test eax, eax
jne 0x40908c
push edi
call fcn.00407ac1
jmp 0x409094
push ebx
call fcn.00407ac1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40f350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f37d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f37d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x834370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x83438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x85d074
push ecx
mov edi, eax
call fcn.00848198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8343cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0084802e
push esi
call fcn.00847fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret