joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418fc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a110
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41908b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41908b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41903e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419049
or bh, 8
and edi, 0x8000000
je 0x419064
mov eax, dword [0x43a53c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41908b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419460
Capabilities:
Extract resource via kernel32 functions

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

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41d485
call fcn.00423032
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d485
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d47c
xor eax, eax
jmp 0x41d48d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d493
pop edi
pop esi
pop ebx
ret 4

Function at 0x423b1f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423b4d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423b6b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423a85
jmp 0x423b6b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423b6b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00423a85
test edi, edi
mov eax, edi
jne 0x423b55
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1013ad00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1013ad2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1013ad2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fda2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4a26b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x228], esi
mov word [esi], cx
mov dword [ebp - 4], ecx
mov edi, dword [eax]
mov ecx, 1
mov dword [ebp - 0x224], ecx
test edi, edi
je 0x40115e
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], 0x104
call fcn.00426240
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push str.UninstallString
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x401140
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401140
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b847
mov esp, ebp
pop ebp
ret 4
Function at 0x402210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a26b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x4022bc
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00426240
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40224e
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0041c08d
push 0x4941b8
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0041c018
lea eax, [ebp - 0x20c]
add esp, 0x18
mov dword [ebp - 0x210], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402290
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [edi]
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b847
mov esp, ebp
pop ebp
ret

Function at 0x402fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47fc28
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4a26b4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00403410
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.00403470
add esp, 0x10
push 0x49d4b8
lea eax, [esp + 0x30]
push eax
call fcn.0041e04b
int3
Function at 0x4064c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f758
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4a26b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x406501
xor eax, eax
jmp 0x40669a
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
xor eax, eax
cmp edx, eax
je 0x40652f
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx]
lea ebx, [edx + ebx*2]
cmp edx, ebx
jae 0x40652f
dec dword [ecx]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x40669a
cmp dword [esi + 0x54], eax
je 0x406695
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x48]
cmp dword [edx], ebx
jne 0x406558
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
mov dword [edx], ebx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov edx, dword [esi + 0x30]
sub ecx, ecx
sar ecx, 1
mov dword [edx], ecx
cmp dword [esi + 0x44], eax
jne 0x406582
mov esi, dword [esi + 0x54]
push esi
push edi
call fcn.0041c34b
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x40669a
mov eax, ecx
jmp 0x40669a
movzx edx, di
mov ecx, 0xf
mov dword [ebp - 0x30], edx
mov edx, eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4065aa
lea edx, [ebp - 0x2c]
mov byte [edx + 8], al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4065c2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [edi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x40668d
cmp eax, 1
jg 0x406655
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x406602
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, ecx
je 0x40662b
cmp ebx, 0x10
jae 0x406611
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x54]
push ecx
push edi
push 1
push eax
call fcn.0041d7be
add esp, 0x10
cmp edi, eax
jne 0x40668d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x40667f
test edi, edi
jne 0x4065b6
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x406690
push edi
push 8
call fcn.00406f30
jmp 0x4065b0
cmp eax, 3
jne 0x40668d
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.00404c70
movzx esi, word [ebp + 8]
test al, al
jne 0x406672
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.004051a0
mov ax, si
jmp 0x40669a
lea ecx, [ebp - 0x2c]
call fcn.004051a0
mov ax, word [ebp + 8]
jmp 0x40669a
lea ecx, [ebp - 0x2c]
call fcn.004051a0
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b847
mov esp, ebp
pop ebp
ret 4
Function at 0x4072b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fb68
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a26b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x54], 0
jne 0x4073a8
mov eax, dword [ebp + 8]
push 0x40
push 0xa
push eax
call fcn.0041a6d3
add esp, 0xc
test eax, eax
je 0x4073a8
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x4a74d8]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.00408670
push eax
mov dword [ebp - 4], 0
call fcn.0040a1c0
add esp, 4
mov edi, eax
call fcn.004075a0
lea ecx, [ebp + 8]
call fcn.00403f70
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 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a26b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40757b
cmp byte [edi + 0x4a], bl
je 0x40757b
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x40756f
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4074cf
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4074e7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x407510
dec eax
je 0x407514
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40756a
jmp 0x407576
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x407524
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40754d
cmp ebx, 0x10
jae 0x407533
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041d7be
add esp, 0x10
cmp esi, eax
jne 0x407567
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x407573
test esi, esi
jne 0x4074db
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406f30
jmp 0x4074d5
lea ecx, [ebp - 0x2c]
call fcn.004051a0
xor al, al
jmp 0x40757d
lea ecx, [ebp - 0x2c]
call fcn.004051a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b847
mov esp, ebp
pop ebp
ret
Function at 0x408580
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f72b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a26b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041a5c4
push 4
mov dword [ebp - 4], 0
call fcn.0041bd9d
mov edi, eax
add esp, 4
test edi, edi
je 0x4085fc
call fcn.0041a49c
mov dword [edi], eax
call fcn.0041a25b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041a585
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4085f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041a5ad
jmp 0x4085fe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x494554
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a8a5
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.LanguageID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40af30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x40af40
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4aa220], ecx
inc edx
cmp edx, 0x100
jb 0x40af40
cmp edx, 0x800
jae 0x40b019
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x4a9e20]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4aa220]
inc edx
mov dword [edx*4 + 0x4aa21c], eax
cmp edx, 0x800
jb 0x40aff0
lea esi, [ebp - 0x24]
mov dword [0x4a74f8], 0x40b0e0
call fcn.0040ea40
test eax, eax
je 0x40b0d6
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x4a554c
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x40b06c
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x40b06c
cmp dword [ecx], ebx
je 0x40b0a4
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x40b058
or ecx, 0xffffffff
sub ecx, 0
je 0x40b0bc
dec ecx
je 0x40b0a8
dec ecx
jne 0x40b0d6
cmp esi, 6
jb 0x40b0d6
jne 0x40b0cc
cmp dword [ebp - 4], 0xf
jb 0x40b0d6
mov dword [0x4a74f8], 0x40b190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x40b07b
cmp esi, 5
jb 0x40b0d6
jne 0x40b0cc
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x40b0d6
cmp eax, 0xa
jmp 0x40b0ca
cmp esi, 6
jb 0x40b0d6
jne 0x40b0cc
cmp dword [ebp - 4], 0x100c
je 0x40b0d6
mov dword [0x4a74f8], 0x40b190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40bc5f
mov dword [edi], 0
jmp 0x40bc20
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40bc2f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40bc67
test ecx, ecx
je 0x40bc5f
test esi, esi
jne 0x40bc20
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x40e8d2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x40e900
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40e900
inc edi
cmp edi, edx
jb 0x40e8f1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x40ea07
cmp eax, 3
jbe 0x40e937
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x40e974
cmp al, 0xff
je 0x40e974
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40e8e5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x40e91b
movzx eax, byte [esi + 0x4945fc]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x4945f4], 0
mov al, byte [ecx + 4]
je 0x40e960
test al, al
je 0x40e960
cmp al, 0xff
jne 0x40e91b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x40e8e5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x40e9d7
movzx edx, byte [esi + 0x4945fc]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x40e9be
cmp cl, 0xff
jne 0x40e9d4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x40e992
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x40e8e5
cmp eax, 3
jbe 0x40ea1c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret