joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4592a8
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4b26c0], 0
push ebx
push esi
mov esi, 0x4b26c8
jne 0x4592d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4b26e0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4b26c0], 1
push dword [0x4b26e0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x459371
push 0x14
push 8
push dword [0x4b0774]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x45939b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4b26c4]
test eax, eax
je 0x459316
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4b26c4], 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 0x4593a0
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4b26e0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4b0774]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45939b
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 0x459930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45995d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45995d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x47095e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004597f0
mov eax, dword [0x4ae294]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041bed0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4709a0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x470afc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00459a40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b1808]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041eb32
mov ecx, dword [esi*4 + 0x4b1808]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x470af5
cmp eax, dword [ecx + edi + 0x24]
jne 0x470af5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470af5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041eb32
add esp, 0x14
test edx, edx
jl 0x470af5
jg 0x470a6b
test eax, eax
jb 0x470af5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x470af5
jl 0x470a85
cmp dword [ebp - 0x1008], eax
ja 0x470af5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x470aa3
test ebx, ebx
je 0x470adc
cmp ecx, edi
jae 0x470adc
mov al, byte [ecx]
cmp al, 0xd
jne 0x470abd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x470ac9
cmp byte [ecx + 1], 0xa
jne 0x470ac9
inc ecx
jmp 0x470ac9
movzx eax, al
movsx eax, byte [eax + 0x4ae9e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x470aa3
cmp edx, ebx
jne 0x470aa3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x470afa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409c3f
leave
ret
Function at 0x48027f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004800ee
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4803ee
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4803ee
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4803a3
jg 0x4802db
test eax, eax
je 0x480399
push 1
push 0x1000
call fcn.0040f2e1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4802fe
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x480390
push 0x8000
push ebx
call fcn.0040a388
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x480327
jg 0x480322
cmp ecx, 0x1000
jb 0x480327
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041cb51
add esp, 0x10
cmp eax, 0xffffffff
je 0x48036c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x480322
jl 0x480353
test ecx, ecx
jne 0x480314
push dword [ebp - 0xc]
push ebx
call fcn.0040a388
push esi
call fcn.0040dd60
add esp, 0xc
xor ebx, ebx
jmp 0x4803fc
cmp byte [edi + 0x24], 0
je 0x480383
cmp dword [edi + 0x20], 5
jne 0x480383
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x48038e
mov ebx, dword [edi + 0x18]
jmp 0x480390
xor ebx, ebx
push esi
call fcn.0040dd60
pop ecx
jmp 0x4803fc
test ecx, ecx
jg 0x480365
jl 0x4803a3
test eax, eax
jae 0x480365
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041eb50
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4803c3
cmp byte [edi + 0x1c], 0
je 0x480365
jmp 0x4803f4
push ebx
call fcn.00410bc7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x480365
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4803fc
cmp byte [edi + 0x1c], 0
je 0x4803f9
mov ebx, dword [edi + 0x18]
jmp 0x4803fc
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041eb50
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ded20
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov ecx, dword [ebp + 0x18]
push ebx
push esi
push edi
lea eax, [ebp - 0x148]
push eax
push 0x10
push ecx
lea ebx, [ebp - 0x10]
lea edi, [ebp - 0x40]
call fcn.004df150
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
xor eax, esi
lea edx, [ebp - 0x148]
mov dword [ebp - 0x10], eax
push edx
mov eax, ebx
push eax
mov ecx, ebx
push ecx
call fcn.004deeb0
xor dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x10]
cmp esi, 0x10
jae 0x4dedb0
test esi, esi
jbe 0x4dee9c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
sub edi, eax
lea ebx, [ebx]
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
sub esi, 1
mov byte [edi + eax - 1], dl
jne 0x4ded90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x30]
push ecx
push edi
mov dword [edi + 0xc], edx
mov dword [ebp + 0x18], 0x10
sub esi, 0x10
call fcn.004deeb0
lea edx, [esi - 1]
cmp edx, 0xe
ja 0x4dee5d
mov eax, dword [ebp + 8]
push esi
push eax
push edi
call fcn.004e06ec
add dword [ebp + 8], esi
mov edx, 0x10
sub edx, esi
push edx
lea ecx, [ebp + esi - 0x30]
lea eax, [esi + edi]
push ecx
push eax
call fcn.004e06ec
add esp, 0x18
xor ecx, ecx
test esi, esi
jbe 0x4dee44
mov edx, edi
lea eax, [ebp - 0x30]
sub edx, eax
mov dword [ebp + 0x18], edx
jmp 0x4dee33
mov edx, dword [ebp + 0x18]
lea eax, [ebp + ecx - 0x30]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc ecx
mov byte [eax + 0x10], dl
cmp ecx, esi
jb 0x4dee30
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x30]
push ecx
push edi
call fcn.004deeb0
add esi, 0x10
mov dword [ebp + 0x18], esi
xor esi, esi
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
xor dword [ebp - 0x30], edx
xor dword [ebp - 0x2c], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp + 0x18]
xor dword [ebp - 0x28], ecx
xor dword [ebp - 0x24], edx
mov edx, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
push edx
call fcn.004e06ec
mov eax, dword [ebp + 0x18]
add dword [ebp + 0xc], eax
mov eax, ebx
add esp, 0xc
mov ebx, edi
mov edi, eax
test esi, esi
ja 0x4dedb0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4df150
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x100c3e0], 0
jne 0x4df166
call fcn.004df4f0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ecx + 0x104], 0x12
push edi
mov edi, dword [eax]
mov dword [ecx], edi
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x100], 0xa
lea esi, [ecx + 0x14]
mov dword [ebp + 8], 0
lea esp, [esp]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x100aee0]
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x100aee0]
rol edx, 0x10
rol ebx, 8
xor edx, ebx
movzx ebx, al
mov ebx, dword [ebx*4 + 0x100aee0]
rol ebx, 0x18
xor edx, ebx
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x100aee0]
mov ebx, dword [ebp + 8]
xor edx, dword [ebx + 0x100ae68]
mov ebx, dword [ebp - 0x18]
xor edi, edx
mov edx, dword [ebp - 0x1c]
xor edx, edi
xor ebx, edx
mov dword [esi], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 8]
xor eax, ebx
add edx, 4
mov dword [esi - 4], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esi, 0x10
mov dword [ebp - 0x18], ebx
mov dword [ebp + 8], edx
cmp edx, 0x28
jb 0x4df1b0
mov edx, dword [ecx + 0x100]
add edx, edx
mov eax, 4
add edx, edx
mov dword [ebp + 8], eax
cmp edx, eax
jbe 0x4df2d0
mov edx, dword [ecx + eax*4]
mov eax, edx
shr eax, 7
and eax, 0x1010101
imul eax, eax, 0x1b
mov ecx, edx
and ecx, 0xff7f7f7f
add ecx, ecx
xor eax, ecx
mov ecx, eax
shr ecx, 7
and ecx, 0x1010101
imul ecx, ecx, 0x1b
mov esi, eax
and esi, 0xff7f7f7f
add esi, esi
xor ecx, esi
mov esi, ecx
shr esi, 7
and esi, 0x1010101
imul esi, esi, 0x1b
mov edi, ecx
and edi, 0xff7f7f7f
add edi, edi
xor esi, edi
xor edx, esi
mov edi, ecx
xor edi, edx
rol edi, 0x10
mov ebx, eax
xor ebx, edx
rol ebx, 0x18
xor edi, ebx
rol edx, 8
xor edi, edx
xor edi, esi
xor edi, ecx
mov ecx, dword [ebp + 0x10]
xor edi, eax
mov eax, dword [ebp + 8]
mov dword [ecx + eax*4], edi
mov edx, dword [ecx + 0x100]
add edx, edx
inc eax
add edx, edx
mov dword [ebp + 8], eax
cmp eax, edx
jb 0x4df244
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4df4f0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
xor ecx, ecx
mov eax, 1
push edi
mov edx, eax
and dl, 0x80
movzx edx, dl
mov byte [ebp + ecx - 0x300], al
mov byte [ebp + ecx - 0x201], al
mov byte [ebp + eax - 0x100], cl
inc ecx
neg edx
sbb edx, edx
and edx, 0x11b
lea esi, [eax + eax]
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x4df505
xor ecx, ecx
jmp 0x4df540
mov dword [ecx + 0x100ae68], eax
test eax, eax
je 0x4df55c
movzx eax, byte [ebp + eax - 0x100]
movzx eax, byte [ebp + eax - 0x2e7]
jmp 0x4df55e
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x4df540
xor eax, eax
test al, al
je 0x4df584
movzx ecx, al
movzx edx, byte [ebp + ecx - 0x100]
lea ecx, [ebp - 0x201]
sub ecx, edx
movzx ecx, byte [ecx]
jmp 0x4df586
xor ecx, ecx
lea edx, [ecx + ecx]
xor edx, ecx
add edx, edx
xor edx, ecx
add edx, edx
xor edx, ecx
add edx, edx
xor ecx, edx
mov edx, ecx
shr edx, 8
xor dl, cl
xor dl, 0x63
je 0x4df5c0
movzx ecx, dl
movzx esi, byte [ebp + ecx - 0x100]
movzx ecx, byte [ebp + esi - 0x2ff]
movzx edi, byte [ebp + esi - 0x2e7]
jmp 0x4df5c4
xor ecx, ecx
xor edi, edi
shl ecx, 8
movzx esi, dl
or ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, edi
mov byte [eax + 0x100b2e0], dl
mov edx, ecx
rol edx, 8
mov dword [eax*4 + 0x100a268], edx
mov edx, ecx
mov dword [eax*4 + 0x1009e68], ecx
rol edx, 0x10
rol ecx, 0x18
mov dword [eax*4 + 0x100aa68], ecx
mov dword [eax*4 + 0x100aee0], esi
movzx esi, al
lea ecx, [esi*8]
xor ecx, esi
add ecx, ecx
add ecx, ecx
xor ecx, esi
mov dword [eax*4 + 0x100a668], edx
add ecx, ecx
mov edx, ecx
shr edx, 8
xor dl, cl
xor dl, 5
je 0x4df690
lea ecx, [esi*8]
xor ecx, esi
add ecx, ecx
add ecx, ecx
xor ecx, esi
add ecx, ecx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx ecx, cl
xor edx, ecx
xor edx, 5
movzx edx, byte [ebp + edx - 0x100]
lea ecx, [ebp - 0x201]
sub ecx, edx
mov bl, byte [ecx]
test bl, bl
je 0x4df692
movzx edx, bl
movzx edx, byte [ebp + edx - 0x100]
movzx ecx, byte [ebp + edx - 0x298]
movzx edi, byte [ebp + edx - 0x212]
movzx esi, byte [ebp + edx - 0x239]
movzx edx, byte [ebp + edx - 0x221]
jmp 0x4df69a
xor bl, bl
xor ecx, ecx
xor edi, edi
xor esi, esi
xor edx, edx
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, edx
mov edx, ecx
rol edx, 8
mov dword [eax*4 + 0x100b7e0], edx
mov edx, ecx
mov dword [eax*4 + 0x100b3e0], ecx
rol edx, 0x10
rol ecx, 0x18
mov dword [eax*4 + 0x100bfe0], ecx
movzx ecx, bl
mov dword [eax*4 + 0x100bbe0], edx
mov dword [eax*4 + 0x1009a68], ecx
inc eax
cmp eax, 0x100
jb 0x4df568
pop edi
pop esi
mov byte [0x100c3e0], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4df930
Capabilities:
Compute adler32 checksum

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
shr edi, 0x10
movzx ecx, ax
test esi, esi
je 0x4dfa63
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jbe 0x4dfa5b
lea esp, [esp]
mov eax, ebx
cmp ebx, 0x15b0
jb 0x4df96f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
mov dword [ebp + 0xc], ebx
jl 0x4dfa1e
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x4df990
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x4df990
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4dfa2f
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x4dfa22
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x4df960
mov eax, edi
shl eax, 0x10
or eax, ecx
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40130b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40130b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4012f8
cmp esi, edx
jae 0x40130b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4012e6
cmp esi, edx
jae 0x40130b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x401770
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42b008]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x18]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [esp + 0x28], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0xc]
test esi, esi
jne 0x40189c
xor esi, esi
test eax, eax
je 0x4017f3
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
and edi, 0x300
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
test esi, esi
jne 0x40189c
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x28]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x100
push ecx
lea ecx, [esp + 0x44]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x40186e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call fcn.00401770
mov esi, eax
test esi, esi
jne 0x401898
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x401835
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401881
push eax
call ebx
mov dword [esp + 0xc], 0
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
call fcn.004015e0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4018a3
push eax
call ebx
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b5ff
mov esp, ebp
pop ebp
ret 4
Function at 0x401e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dacb
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x401f0c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x401f0c
call fcn.004013a0
mov edi, eax
jmp 0x40202b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x401f2f
call fcn.004013a0
jmp 0x40201e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x401f4d
call fcn.004013a0
jmp 0x40201e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x401f6e
mov edi, 0x8007000e
jmp 0x402020
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x402064
jb 0x401f8c
cmp eax, 0xffffffff
ja 0x402064
cmp eax, 0x400
jbe 0x401fa1
push eax
lea ecx, [ebp - 0x418]
call fcn.00409ff0
jmp 0x401fc7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x401fc7
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x401fde
mov edi, 0x8007000e
jmp 0x402020
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x401ffe
call fcn.004013a0
jmp 0x40201e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00402c00
mov edi, eax
test esi, esi
je 0x40202b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x402044
lea ecx, [ebp - 0x418]
call fcn.00409d30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b5ff
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004011c0
int3
Function at 0x4060e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push 0x4060d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 8
push 0xffffffffffffffff
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push 0
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x406179
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x406160
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x406142
push 8
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0xc]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x406130
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret 8