joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44e6d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421e8e
cmp byte [ebx], 0xa
jne 0x421e8e
or byte [eax + edi + 0x28], 4
jmp 0x421e93
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421f91
mov al, byte [edx]
cmp al, 0x1a
je 0x421f73
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421ec2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421ee7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421ef1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421ea4
jmp 0x421f91
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421f6e
cmp dword [ebp - 0xc], 0
je 0x421f6e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44e6d8]
test byte [eax + edi + 0x28], 0x48
je 0x421f48
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421f33
mov byte [esi], dl
jmp 0x421f44
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44e6d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421f91
cmp byte [ebp - 1], 0xa
jne 0x421f57
cmp esi, ebx
jne 0x421f57
mov byte [esi], 0xa
jmp 0x421f90
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c498
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421f91
mov byte [esi], 0xd
jmp 0x421f90
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44e6d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421f8d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421f91
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421f9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x44e6d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421fdd
cmp word [esi], dx
jne 0x421fdd
or byte [edi + eax + 0x28], 4
jmp 0x421fe2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x422135
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x422115
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422024
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42205a
cmp eax, edx
jae 0x422066
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x421ffc
jmp 0x422135
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422111
cmp dword [ebp - 0x14], 0
je 0x422111
mov eax, dword [ebx*4 + 0x44e6d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4220e9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4220b2
mov word [esi], cx
jmp 0x4220e5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44e6d8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44e6d8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44e6d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x422135
pop ebx
cmp word [ebp - 4], bx
jne 0x4220fa
cmp esi, dword [ebp + 0xc]
jne 0x4220fa
mov word [esi], bx
jmp 0x422132
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c498
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422135
push 0xd
jmp 0x42212e
mov ecx, dword [ebx*4 + 0x44e6d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42212c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422135
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424200
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42423c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x424234
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42423e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x424224
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x424310
Capabilities:
Parse pe header

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

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 8

Function at 0x409812
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, 0x105
push eax
push eax
mov ecx, esi
call fcn.00408b26
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.00408aca
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x409850
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426edc], 0
jne 0x409887
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004097c7
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.00409575
push dword [ebp - 0xc]
mov bl, al
call fcn.00408a60
pop ecx
mov al, bl
pop ebx
jmp 0x409898
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x40989c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426edc], 0
jne 0x4098cf
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004097c7
push dword [eax]
call fcn.0040958b
push dword [ebp - 0xc]
mov bl, al
call fcn.00408a60
pop ecx
mov al, bl
pop ebx
jmp 0x4098dd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x4098e1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426edc], 0
jne 0x409914
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004097c7
push dword [eax]
call fcn.0040959d
push dword [ebp - 0xc]
mov bl, al
call fcn.00408a60
pop ecx
mov al, bl
pop ebx
jmp 0x409924
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x409928
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x426edc], 0
jne 0x40995b
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004097c7
push dword [eax]
call fcn.004095b1
push dword [ebp - 0xc]
mov bl, al
call fcn.00408a60
pop ecx
mov al, bl
pop ebx
jmp 0x409977
push 0
push dword [ebp + 8]
call fcn.00409850
test al, al
je 0x409977
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
leave
ret 4

Function at 0x4099fa
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.00408b26
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.00408aca
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4
Function at 0x409a38
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.00408b26
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.00408aca
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x40a68a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a6b0
xor al, al
jmp 0x40a6d0
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00414a10
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40e79f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x40e8fa
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x40e7dd
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40e7e2
inc edi
cmp edi, dword [ebp - 4]
jb 0x40e7d4
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x40e8da
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40e839
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x40e80d
cmp cl, 0xff
jne 0x40e864
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x40e872
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40e879
dec ecx
shl edx, cl
and edx, 7
je 0x40e7fe
movzx ecx, byte [edx + 0x41d9ec]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x41d9e4], 0
mov cl, byte [ebx + 4]
je 0x40e861
test cl, cl
je 0x40e861
cmp cl, 0xff
jne 0x40e7fe
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40e7cf
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x40e8ad
movzx esi, byte [edx + 0x41d9ec]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40e898
cmp al, 0xff
jne 0x40e8aa
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x40e82b
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40e7cf
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0x14

Function at 0x4107d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00414e89
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.00410790
pop ebp
ret 0xc

Function at 0x411127
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x41be90
call fcn.00413e7b
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.004110d9
push 0x45
lea eax, [ebp - 0x18]
push eax
call fcn.0040ac8c
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040acc8
push dword [ebp - 0x18]
call fcn.00408a60
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00413f53
ret 8
Function at 0x413e6c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426030]
jne 0x413e76
repz ret
jmp fcn.00416b9c

Function at 0x4191fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00415816
and dword [ebp - 4], 0
cmp dword [0x427854], 0
mov ebx, eax
jne 0x4192af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x419360
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x419360
push eax
call fcn.004157a4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427854], eax
call esi
push eax
call fcn.004157a4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427858], eax
call esi
push eax
call fcn.004157a4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42785c], eax
call esi
push eax
call fcn.004157a4
pop ecx
mov dword [0x427864], eax
test eax, eax
je 0x4192af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004157a4
pop ecx
mov dword [0x427860], eax
mov eax, dword [0x427860]
cmp eax, ebx
je 0x419307
cmp dword [0x427864], ebx
je 0x419307
push eax
call fcn.0041581f
push dword [0x427864]
mov esi, eax
call fcn.0041581f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x419307
test edi, edi
je 0x419307
call esi
test eax, eax
je 0x4192fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4192fe
test byte [ebp - 0xc], 1
jne 0x419307
or dword [ebp + 0x10], 0x200000
jmp 0x419340
mov eax, dword [0x427858]
cmp eax, ebx
je 0x419340
push eax
call fcn.0041581f
pop ecx
test eax, eax
je 0x419340
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x419340
mov eax, dword [0x42785c]
cmp eax, ebx
je 0x419340
push eax
call fcn.0041581f
pop ecx
test eax, eax
je 0x419340
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427854]
call fcn.0041581f
pop ecx
test eax, eax
je 0x419360
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x419362
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x5b7350
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x51c015
lea edi, [esi - 0x11b015]
push edi
or ebp, 0xffffffff
jmp 0x5b7372
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5b7379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b7368
mov eax, 1
add ebx, ebx
jne 0x5b738b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5b739c
jne 0x5b73bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b73bb
dec eax
add ebx, ebx
jne 0x5b73a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5b7380
add ebx, ebx
jne 0x5b73b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5b740d
xor ecx, ecx
sub eax, 3
jb 0x5b73d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b7442
sar eax, 1
mov ebp, eax
jmp 0x5b73de
add ebx, ebx
jne 0x5b73de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b73ac
inc ecx
add ebx, ebx
jne 0x5b73ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b73ac
add ebx, ebx
jne 0x5b73f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5b73ee
jne 0x5b740a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5b73ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b742c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b741e
jmp 0x5b736e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b742c
add edi, ecx
jmp 0x5b736e
pop esi
mov edi, esi
mov ecx, 0x499a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b744a
cmp byte [edi], 0x22
jne 0x5b744a
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 0x5b744f
lea edi, [esi + 0x1b1000]
mov eax, dword [edi]
or eax, eax
je 0x5b74be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b7028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b747c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b7030]
or eax, eax
je 0x5b74b8
mov dword [ebx], eax
add ebx, 4
jmp 0x5b7499
call dword [esi + 0x1b702c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5b74ef
cmp al, 0xef
ja 0x5b74e2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5b74c4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5b74d1
mov ebp, dword [esi + 0x1b7034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x5b7523
sub esp, 0xffffff80
jmp 0x45e2e0
Function at 0x84e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x84e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x877074
push ecx
mov edi, eax
call fcn.00862198
mov esi, eax
add esp, 8
test esi, esi
jne 0x84e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0086202e
push esi
call fcn.00861fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x851850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8518ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x87c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8518ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008621e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8518ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x87c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x85192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00863082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x851957
mov word [eax], si
add eax, 2
push eax
call fcn.00863030
add esp, 4
jmp 0x851959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8518ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8518b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x851ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x852080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8520c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x877458
push ecx
call fcn.008621e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008621e1
add esp, 0x10
jmp 0x8520d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0086220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00861dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00852050
mov eax, dword [0x87c728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x85213b
push esi
call fcn.00851fb0
add esp, 4
mov dword [0x87c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x85214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00851ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x855440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8554b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x85548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x855471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x85547e
add edx, ecx
cmp ebx, edx
jb 0x85548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x855467
xor ecx, ecx
jmp 0x8554a2
test eax, eax
jne 0x855492
xor ecx, ecx
jmp 0x8554a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008553c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret