joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d548
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d55f
add esp, 0xfffffff0
call fcn.004033f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004196b0
mov eax, dword [0x452fa8]
cmp word [eax + 2], 0
jne 0x44d587
mov eax, dword [0x452fa8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ec20
mov eax, dword [0x453050]
cmp word [eax + 2], 0
jne 0x44d5a1
mov eax, dword [0x453050]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ee18
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411444]
call fcn.004030b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411444]
call fcn.004030b8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b88c]
call fcn.004214d4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44d728
mov eax, dword [0x452ecc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004218a4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f3b8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452ecc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bfd8
test eax, eax
je 0x44d696
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408390
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c000
test eax, eax
je 0x44d6aa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404114
mov eax, dword [0x452dc8]
cmp byte [eax], 0
jne 0x44d6de
mov eax, ebx
call fcn.0044d850
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044f594
mov eax, ebx
call fcn.0044ff58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d71e
call fcn.0040344c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44dad0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x454bb4]
cmp dword [eax + 0x30], 0
je 0x44db7a
cmp dword [ebx + 0x94], 0
jne 0x44db74
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44da60
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44db74
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44db3a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44db74
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413808
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44db49
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e6dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e711
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f94
jmp 0x44e71e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f770
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f7b1
mov eax, esi
call fcn.00436080
test al, al
je 0x44f7b1
mov eax, dword [ebx + 0x84]
call fcn.00435d7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f7b1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435d7c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x410d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x410dab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d180
add esp, 4
or eax, 0xffffffff
jmp 0x410dda
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x410dd8
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x410dd8
mov dword [0x42cdf4], 0xd
mov dword [0x42cdf8], 5
or eax, 0xffffffff
jmp 0x410dda
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x42d9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x47d940
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42d9f8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42da08
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42da48
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42da25
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42dab6
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42dab0
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42da84
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42daa8
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42da70
test ecx, ecx
je 0x42daf6
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42daa8
cmp ecx, 1
jbe 0x42daf6
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42daa8
cmp ecx, 2
jbe 0x42daf6
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42daf6
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42da60
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042f050
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42d9f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42dac5
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42dac5
Function at 0x42f120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x42f161
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42f13f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42f1ca
cmp dword [eax + 0xc], edi
jne 0x42f1c4
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42f19c
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42f1c0
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42f188
test ecx, ecx
je 0x42f1e3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42f1c0
cmp ecx, 1
jbe 0x42f1e3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42f1c0
cmp ecx, 2
jbe 0x42f1e3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42f1e3
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x42f176
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.0042f050
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x42f1dc
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x47d040]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446e28
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x446e68
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x446e45
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x446ee2
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x446edc
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x446ea4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x446ed4
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x446e90
test ecx, ecx
je 0x446f53
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x446ed4
cmp ecx, 1
jbe 0x446f53
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x446ed4
cmp ecx, 2
jbe 0x446f53
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x446f53
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x446e80
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042f050
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x446e14
mov ecx, dword [0x47d118]
test ecx, ecx
je 0x446f4c
mov esi, 0x47d118
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446f28
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042f120
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x446f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x446ef1
xor cl, 3
mov byte [eax + 5], cl
jmp 0x446ef1
Function at 0x44a500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x44a53b
push 0x497900
call dword [0x4790dc]
mov edi, esi
call fcn.0044a190
mov edi, eax
test edi, edi
je 0x44a53b
inc dword [edi + 0x14]
push 0x497900
call dword [0x4790d8]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44a55f
test esi, esi
je 0x44a557
push 0x497900
call dword [0x4790d8]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44a574
test esi, esi
jmp 0x44a66a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [0x47909c]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x44a5a9
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44a666
push 0x1c
push 0
call dword [0x479124]
push eax
call dword [0x47911c]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [0x47909c]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [0x47909c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00466c40
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.0044a1d0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x44a62d
push eax
mov eax, esi
call fcn.0044a350
add esp, 4
push esi
call fcn.0044a3e0
add esp, 4
test eax, eax
je 0x44a65f
push esi
call fcn.0044a280
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x44a683
add eax, edi
je 0x44a65f
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x44a680
mov eax, esi
call fcn.0044a7d0
cmp dword [ebp + 0xc], 0
je 0x44a677
push 0x497900
call dword [0x4790d8]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x44a6b4
push eax
call fcn.0045d6a6
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.0044a090
push 0x497900
call dword [0x4790d8]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x433b02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x433b09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x433af8
mov eax, 1
add ebx, ebx
jne 0x433b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x433b10
jne 0x433b2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433b10
xor ecx, ecx
sub eax, 3
jb 0x433b40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x433bb2
mov ebp, eax
add ebx, ebx
jne 0x433b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x433b58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x433b7c
inc ecx
add ebx, ebx
jne 0x433b68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x433b5d
jne 0x433b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433b5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x433b9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x433b8d
jmp 0x433afe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x433b9c
add edi, ecx
jmp 0x433afe
pop esi
mov edi, esi
mov ecx, 0xdc5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x433bba
cmp byte [edi], 5
jne 0x433bba
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 0x433bbf
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x433c37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39e00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39ef0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x433bec
mov ecx, edi
jns 0x433c1b
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 + 0x39ef4]
or eax, eax
je 0x433c31
mov dword [ebx], eax
add ebx, 4
jmp 0x433c09
call dword [esi + 0x39f04]
mov ebp, dword [esi + 0x39ef8]
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 0x433c6b
sub esp, 0xffffff80
jmp 0x410105
Function at 0x5b3b90
Capabilities:
Parse pe header

Disassembly:
push word [esp + 1]
jmp 0x5b3be9
lea esp, [esp + 3]
call fcn.005b3bc3

Function at 0x5b3bce
Capabilities:
Parse pe header

Disassembly:
call fcn.005b055b
push eax
jmp 0x5b0556
call 0x5b2006
jmp 0x5b3c78
movzx ebx, word [eax + 0x3c]
jmp 0x5b3c54
push word [esp + 3]
call 0x5b3bce
jl 0x5b3c35
push dword [esp + 0xc]
push dword [esp + 4]
lea esp, [esp + 3]
mov dword [esp + 0x64], edi
jmp 0x5b3c0c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x5b3cc5
lea esp, [esp + 0x64]
mov eax, dword fs:[0x30]
jmp 0x5b3bf2
sub eax, 0x10000
add byte [eax], al
add dword [eax], eax
jmp 0x5b3c7c
add ebx, eax
cmp word [ebx], 0x4550
je 0x5b0594
jne 0x5b3c34
adc dword [ecx + 0x45936001], edx
xchg ecx, eax
adc al, byte [eax + 0x11f412e7]
xchg edi, eax
pop es
bound edx, qword [ecx + 0x54258a7e]
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x5b201b
jne 0x5b3c34
les ecx, [ebx - 0x25]
mov esi, 0xec6aa94d
bound eax, qword [0xf97c1df4]
imul ecx, dword [eax], 0xda5e19fb
dec eax
das
fidiv dword [esp + edi*4]
aas
scasd eax, dword es:[edi]
retf 0xae39
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x5b2001
Function at 0x401fe3
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x402021
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402007
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
and dword [esi + 8], 0
test eax, eax
je 0x402021
mov ecx, dword [esi + 4]
mov dword [eax], ecx
pop esi
ret 8

Function at 0x4020af
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4020bc
xor eax, eax
pop esi
ret
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x4020e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 8], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

Function at 0x403111
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xc0e]
mov word [ebp - 0xc10], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc10]
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, str.6ED50743_E57E_4103_B9D9_917D06926181
stosw word es:[edi], ax
push ebx
mov edi, 0x103
push str.CLSID_sLocalServer32
lea eax, [ebp - 0x208]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc10]
push eax
push 1
lea eax, [ebp - 0x208]
push 0
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x403225
push 0x208
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memset
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerLow_Rights
push str._sElevationPolicy_s
lea eax, [ebp - 0x208]
push edi
push eax
call esi
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040303f
add esp, 0x28
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40322a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.6ED50743_E57E_4103_B9D9_917D06926181
mov ebx, 0x103
push str.CLSID_s
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call edi
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
push str.6ED50743_E57E_4103_B9D9_917D06926181
push str.SOFTWAREMicrosoftInternet_ExplorerLow_Rights
push str._sElevationPolicy_s
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x208]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403b99
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
lea esi, [eax + ecx*4]
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push esi
mov dword [ebp + 8], ebx
call edi
test eax, eax
je 0x403be1
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x403bd1
mov ebx, eax
mov dword [esi], ecx
lea eax, [ebp + 0x10]
and dword [ebp + 0x10], 0
push eax
push dword [ebp + 8]
push 4
push esi
call edi
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x405a47
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push str.406A9880_7B5A_4F58_B763_66A80E7B0531_GameExternalHandle
xor ebx, ebx
push 4
push ebx
push 4
push ebx
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea esi, [edi + 0xe4]
cmp eax, ebx
mov dword [esi], eax
je 0x405a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push ebx
push ebx
push 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x405a89
mov ecx, dword [edi + 4]
mov dword [eax], ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebx
ret

Function at 0x405a94
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xe0]
test ecx, ecx
je 0x405ac9
call fcn.0040397b
test eax, eax
je 0x405ac9
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xe0]
call fcn.00403816
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret