joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511f10
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 0x511f3b
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 0x511f5f
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 0x511f7a
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 0x513e30
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x513e4a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x513e4a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x515a20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00517410
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x515a53
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.004fc9a4
mov edx, dword [ebp - 4]
push edx
call fcn.00513dd0
push esi
push eax
call fcn.004fca20
add esp, 0x14
test eax, eax
je 0x515a8f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517630
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00513e90
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x515af9
push 0
call fcn.005145c0
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x515ae7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.005145c0
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x515ac8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x515b71
test edi, edi
je 0x515b6a
mov bl, byte [edi]
push 0
call fcn.005145c0
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x515b3d
cmp bl, 0x31
jne 0x515b32
push 0
call fcn.005145c0
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x515b3d
cmp byte [edi], 0x30
jne 0x515b71
cmp byte [edi + 2], 0x39
jge 0x515b71
test edi, edi
je 0x515b6a
push 0
call fcn.005145c0
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.004fcd08
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00513bf0
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x515bbf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00517600
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x515bb8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x515bfc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.005175b0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005174b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00517390
mov edx, dword [ebp - 4]
push edx
call fcn.00516120
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x522ce0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x522d10
push esi
call fcn.005231e0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x522d09
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x522d93
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x522d7f
mov eax, dword [esi + 8]
test eax, eax
je 0x522d34
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x522d7b
cmp eax, 2
je 0x522d7f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x522d27
cmp eax, 3
je 0x522d5a
cmp eax, 1
jne 0x522d27
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x522d27
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x522d27
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00522dc0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x522db3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00522dc0
add esp, 4
pop esi
ret
Function at 0x551bce
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x551c06
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00554955
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055492c
jmp 0x551c12
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x551c16
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x658328
mov ecx, edi
call fcn.0055462e
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x551c69
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x551c7c
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00554955
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0055492c
jmp 0x551c7c
mov ecx, esi
call fcn.00553dde
test eax, eax
je 0x551c7c
push edi
mov ecx, eax
call fcn.00551bce
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x553554
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 0x553596
call fcn.005657eb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x553596
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x55358d
xor eax, eax
jmp 0x55359e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005535a4
pop edi
pop esi
pop ebx
ret 4
Function at 0x565da2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.005657eb
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x565ddf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x565ddf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x565de3
xor eax, eax
jmp 0x565e61
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00550ce9
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x565e1b
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x565e05
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00565f52
push ebx
mov edi, eax
call fcn.00550d12
test edi, edi
pop ecx
je 0x565e5d
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00565d1b
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00565e66
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401d70
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x401e31
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x401ddb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401e0f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x401e0f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x401d9e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401e40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x401ef4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401e97
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401eda
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x40b004]
je 0x401eae
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x401ec7
test al, 0x40
je 0x401ebe
mov ecx, dword [ebx + 0x20]
jmp 0x401ec5
test al, 0x80
je 0x401eda
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401eda
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x401e64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x103b2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103b21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103b207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103b206a
add dl, dl
jne 0x103b2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103b20dc
xor eax, eax
add dl, dl
jne 0x103b2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103b217d
add dl, dl
jne 0x103b20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103b20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103b2075
mov eax, 1
add dl, dl
jne 0x103b20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103b20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103b20e1
sub eax, ebx
mov ebx, 1
jne 0x103b2128
mov ecx, 1
add dl, dl
jne 0x103b210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103b2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103b2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103b2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103b213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103b214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103b2136
cmp eax, 0x7d00
jae 0x103b216d
cmp eax, 0x500
jb 0x103b2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103b2075
cmp eax, 0x7f
ja 0x103b2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103b2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103b219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103b2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xf55058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xf551a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf5507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5506a
add dl, dl
jne 0xf55089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf550dc
xor eax, eax
add dl, dl
jne 0xf55096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5517d
add dl, dl
jne 0xf550a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf550b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf550bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf550c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf550d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf55075
mov eax, 1
add dl, dl
jne 0xf550ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf550f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf550e1
sub eax, ebx
mov ebx, 1
jne 0xf55128
mov ecx, 1
add dl, dl
jne 0xf5510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf55119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf55105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf55075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf5513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf5514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf55136
cmp eax, 0x7d00
jae 0xf5516d
cmp eax, 0x500
jb 0xf55168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf55075
cmp eax, 0x7f
ja 0xf55170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf55075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf5519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf55075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40645d
pop dword [ebp - 0x50]
mov eax, 0xd1a9cd9f
sub eax, 0xd1696942
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xf92de967
sub dword [ebp - 0x60], 0xaadba41c
mov dword [ebp - 0x5c], 0x5e8245fe
add dword [ebp - 0x5c], 0xd3b10647
mov dword [ebp - 0x58], 0xb4d936fe
sub dword [ebp - 0x58], 0x688cf2d0
mov dword [ebp - 0x54], 0x8e772285
sub dword [ebp - 0x54], 0x8e772285
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6c9521fa
add dword [ebp - 0x60], 0x7dd475c
mov dword [ebp - 0x5c], 0x40dcdd09
add dword [ebp - 0x5c], 0x8f846c
mov dword [ebp - 0x58], 0x4ec472a3
sub dword [ebp - 0x58], 0xeb550637
mov dword [ebp - 0x54], 0xae179178
sub dword [ebp - 0x54], 0xae179178
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3aea7
push 0
call eax
mov ecx, 0xec8ae0b0
sub ecx, 0xec8a893c
mov esi, eax
mov edi, 0xaa970293
add edi, 0x55ae116d
add edi, dword [ebp - 0x50]
mov ebx, 0x80afbd17
sub dword [ebp - 0x34], 0x82539a68
mov edx, dword [edi]
mov dword [ebp - 0x18], 0x9b1947e
add edx, ebx
xor dword [ebp - 0x3c], ebx
mov dword [esi], edx
add dword [ebp - 4], ebx
add esi, 0xff276eff
add esi, 0xd89105
add edi, 0x8aa911f4
sub edi, 0x8aa911f0
loop 0x40656f
add eax, 0x8ebb8461
add eax, 0x7145cc42
mov ebx, eax
add eax, 0x29c09e5a
add eax, 0xd63f61ab
mov ecx, 0x9f5bc7a
sub ecx, 0x9b5bc7a
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x1206a768
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1211a8b6
call fcn.120820e8
sub esp, 0x218
mov eax, dword [section..cdata]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.120c3e64
cmp eax, esi
jne 0x1206a811
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyExW]
jmp 0x1206a7c8
lea eax, [ebp - 0x210]
push eax
call fcn.1206a768
cmp eax, esi
jne 0x1206a810
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1206a7b8
call fcn.12068a93
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.12068a93
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.12082031
leave
ret 4
Function at 0x12074002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1211aa10
call fcn.120820e8
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x1207405f
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
test eax, eax
jg 0x1207404a
call esi
mov esi, eax
jmp 0x12074178
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x12074178
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x12074080
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
jne 0x120740a8
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
test eax, eax
jg 0x12074093
call esi
jmp 0x1207416d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1207416f
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x12074117
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x120740e4
push edi
call fcn.12068975
test al, al
pop ecx
je 0x120740e4
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.12082050
mov dword [ebp + 8], esp
jmp 0x120740f0
push edi
lea ecx, [ebp - 0x10]
call fcn.120c3e64
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x120740fe
mov esi, 0x8007000e
jmp 0x1207416f
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x1207411f
xor eax, eax
jmp 0x12074161
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x12074150
push ebx
call fcn.12068975
test al, al
pop ecx
je 0x12074150
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.12082050
mov eax, esp
jmp 0x12074159
push ebx
lea ecx, [ebp - 0x10]
call fcn.120c3e64
push esi
push edi
push eax
call fcn.120c3e64
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.120c3e64
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.1206a409
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10