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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [edi]
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
sub dword [edi + 8], eax
cmp eax, 4
jne 0x432ac3
mov dword [ebx + 0x1c], esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
mov eax, ecx
or eax, 0xff000000
cmp eax, 0xff334449
jne 0x432a1c
mov eax, dword [edi]
push 0
lea ecx, [ebp - 8]
push ecx
push 6
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
sub dword [edi + 8], eax
cmp eax, 6
jne 0x432ac3
cmp byte [ebp - 0x1c], 0xff
jae 0x432a19
cmp byte [ebp - 0x1b], 0xff
jae 0x432a19
mov dl, byte [ebp - 0x1a]
cmp dl, 0x80
jae 0x432a19
cmp byte [ebp - 0x19], 0x80
jae 0x432a19
mov cl, byte [ebp - 0x18]
cmp cl, 0x80
jae 0x432a19
mov al, byte [ebp - 0x17]
cmp al, 0x80
jae 0x432a19
movzx esi, dl
movzx edx, byte [ebp - 0x19]
shl esi, 7
add esi, edx
movzx ecx, cl
shl esi, 7
movzx edx, al
add esi, ecx
shl esi, 7
add esi, edx
push 1
mov eax, esi
cdq
push 0
push edx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
lea edx, [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
sub dword [edi + 8], eax
cmp eax, 4
jne 0x432ac3
mov ecx, dword [ebp + 8]
add esi, 0xa
add dword [ebx + 0x1c], esi
mov edx, ecx
or edx, 0xff000000
cmp edx, 0xff334449
je 0x43294b
jmp 0x432a1c
mov ecx, dword [ebp + 8]
cmp cl, 0xff
jne 0x432a85
cmp ch, 0xe0
jb 0x432a85
movzx esi, ch
mov eax, esi
shr eax, 3
and eax, 3
mov eax, dword [eax*4 + 0x45a98c]
cmp eax, 4
mov dword [ebx], eax
jge 0x432a85
mov dl, ch
and dl, 6
cmp dl, 2
jne 0x432a85
xor edx, edx
mov eax, esi
and eax, 1
cmp dword [ebx], edx
mov dword [ebx + 4], eax
setne dl
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp + 0xa]
mov esi, eax
shr esi, 4
shl edx, 4
add edx, esi
mov edx, dword [edx*4 + 0x45a9a0]
test edx, edx
mov dword [ebx + 8], edx
je 0x432a85
shr eax, 2
and eax, 3
cmp eax, 3
mov dword [ebx + 0xc], eax
jl 0x432acd
mov edx, dword [edi]
push 0
shr ecx, 8
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 8], ecx
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
sub dword [edi + 8], eax
cmp eax, 1
jne 0x432ac3
mov eax, dword [ebp - 4]
add dword [ebx + 0x1c], 1
add eax, 1
cmp eax, 0xffff
mov dword [ebp - 4], eax
jl 0x432936
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, byte [ebp + 0xa]
shr eax, 1
and eax, 1
mov dword [ebx + 0x10], eax
movzx eax, byte [ebp + 0xb]
mov ecx, eax
shr eax, 4
shr ecx, 6
and eax, 3
cmp dword [ebp - 0x14], 0
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
jne 0x432b0f
mov ecx, dword [edi]
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x14]
sub dword [edi + 8], edx
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4388b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp + 8]
call fcn.0040c52e
push dword [ebp + 0xc]
call fcn.0040c2b2
push dword [ebp + 0xc]
lea esi, [ebp + 0xc]
mov edi, eax
call fcn.0040c4bf
push 0xf
pop eax
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test edi, edi
jle 0x438939
lea eax, [edi - 1]
mov esi, 0x3e8
xor edx, edx
mov ecx, esi
div ecx
mov edi, eax
inc edi
push esi
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00401538
xor eax, eax
xor byte [ebp + eax - 0x3e8], 0xf0
inc eax
cmp eax, esi
jl 0x438918
push esi
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00401576
dec edi
jne 0x438905
cmp dword [ebp + 0xc], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43894a
push dword [ebp + 0xc]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x438955
push dword [ebp + 8]
call esi
pop edi
pop esi
leave
ret 8
Function at 0x439891
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx + 2]
mov ecx, dword [ebx + 4]
push esi
push edi
mov esi, 0x7fff0
call fcn.004372cd
mov ecx, dword [ebp + 8]
push 1
xor esi, esi
mov dword [edi], 0x47bdf0
mov eax, dword [ecx]
or dword [ecx], 0xffffffff
mov ecx, dword [ebp + 0x10]
push esi
push esi
push eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x1c], eax
jne 0x4398ed
push esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], 0x54
mov dword [edi + 0x28], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x40], esi
mov eax, dword [ebx + 4]
lea ecx, [edi + 0x80]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
cmp eax, esi
lea edx, [edi + 0x84]
mov dword [edx], eax
jne 0x43991e
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ebx + 0xc]
or dword [edi + 0x8e], 0xffffffff
cmp dword [edi + 0x10], 0xffffffff
mov word [edi + 0x88], ax
mov dword [edi + 0x8a], esi
jne 0x439945
mov byte [edi + 0xd], 4
jmp 0x439a09
mov ax, word [ebx + 2]
mov ecx, dword [ebx + 4]
mov word [ebp - 0x12], ax
movzx eax, ax
imul eax, ecx
add eax, eax
push esi
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x12]
push esi
add eax, eax
push esi
mov word [ebp - 8], ax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
lea eax, [edi + 0x20]
push eax
mov word [ebp - 0x14], 1
mov word [ebp - 6], 0x10
mov word [ebp - 4], si
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x4399ac
push 4
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
lea eax, [edi + 0x20]
push eax
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x4399ac
mov byte [edi + 0xd], 5
jmp 0x439a09
mov ecx, dword [edi + 0x20]
cmp ecx, esi
je 0x4399a6
movzx eax, word [ebp - 8]
push 1
lea ebx, [edi + 0x78]
shl eax, 0xd
push ebx
push eax
push ecx
mov dword [ebx], esi
mov dword [edi + 0x7c], eax
call sub.MSACM32.dll_acmStreamSize
mov eax, dword [ebx]
cmp eax, esi
je 0x4399a6
push eax
call fcn.0043ef0a
push dword [edi + 0x7c]
mov dword [edi + 0x30], eax
mov eax, dword [ebx]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], esi
call fcn.0043ef0a
pop ecx
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x7c]
pop ecx
mov dword [edi + 0x44], eax
push esi
lea eax, [edi + 0x24]
push eax
push dword [edi + 0x20]
mov dword [edi + 0x48], esi
call sub.MSACM32.dll_acmStreamPrepareHeader
mov dword [edi + 0x34], esi
pop esi
mov eax, edi
pop ebx
leave
ret 0xc
Function at 0x43c105
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [ebx + 0xb1]
push edi
push 0
push 0x50000000
push 0x459720
push 0x459904
mov ebp, 0x257f
push ebp
call fcn.0042efb9
mov edi, dword [ebx + 0xb1]
push ebp
mov eax, ebx
call fcn.00409d2c
mov eax, dword [ebx + 0xb1]
push 0
push ebp
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x459720
push ebp
lea eax, [ebx + 0xb5]
push eax
mov eax, dword [ebx + 0xb1]
call fcn.0042e3e6
mov esi, dword [ebx + 0xb1]
push ebx
push 0x43e71f
push 0x112
add esi, 0x20
call fcn.0042f329
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43c888
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, eax
mov eax, dword [esi]
lea ecx, [eax + 1]
push 0x104
mov dword [esi], ecx
lea ecx, [ebp - 0x208]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x43c8bf
and word [esi + 0x628], 0
jmp 0x43c8d5
lea ecx, [ebp - 0x208]
lea eax, [esi + 0x41c]
push ecx
add esi, 8
push esi
call fcn.0040bee8
pop esi
leave
ret
Function at 0x442be7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4841d8]
je 0x442c02
inc edi
cmp edi, 0x17
jb 0x442bf3
cmp edi, 0x17
jae 0x442d82
push ebp
push 3
call fcn.0044bab1
cmp eax, 1
pop ecx
je 0x442d4e
push 3
call fcn.0044bab1
test eax, eax
pop ecx
jne 0x442c36
cmp dword [0x484050], 1
je 0x442d4e
cmp ebx, 0xfc
je 0x442d81
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4865b8
push ebp
call fcn.00445749
add esp, 0xc
test eax, eax
je 0x442c6c
push esi
push esi
push esi
push esi
push esi
call fcn.00441a80
add esp, 0x14
push 0x104
mov esi, 0x4865d1
push esi
push 0
mov byte [0x4866d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x442cb0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00445749
add esp, 0xc
test eax, eax
je 0x442cb0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00441a80
add esp, 0x14
push esi
call fcn.00445840
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x442cf5
push esi
call fcn.00445840
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4868cc
push 0x45801c
sub ecx, eax
push ecx
push eax
call fcn.00445696
add esp, 0x14
test eax, eax
je 0x442cf5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00441a80
add esp, 0x14
jmp 0x442cf7
xor esi, esi
push 0x458018
push ebx
push ebp
call fcn.004455db
add esp, 0xc
test eax, eax
je 0x442d17
push esi
push esi
push esi
push esi
push esi
call fcn.00441a80
add esp, 0x14
push dword [edi*8 + 0x4841dc]
push ebx
push ebp
call fcn.004455db
add esp, 0xc
test eax, eax
je 0x442d39
push esi
push esi
push esi
push esi
push esi
call fcn.00441a80
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044b8f4
add esp, 0xc
jmp 0x442d81
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x442d81
cmp ebp, 0xffffffff
je 0x442d81
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4841dc]
push dword [esi]
call fcn.00445840
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4443f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x484b30]
jne 0x4443fe
repz ret
jmp fcn.0044c1ff
Function at 0x44b8f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00441cf9
xor ebx, ebx
cmp dword [0x486c88], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44b9ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44baaa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44baaa
push eax
call fcn.00441c8b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x486c88], eax
call esi
push eax
call fcn.00441c8b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x486c8c], eax
call esi
push eax
call fcn.00441c8b
mov dword [0x486c90], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044244a
test eax, eax
pop ecx
pop ecx
je 0x44b998
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441a80
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44b9ca
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00441c8b
cmp eax, ebx
pop ecx
mov dword [0x486c98], eax
je 0x44b9ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00441c8b
pop ecx
mov dword [0x486c94], eax
mov eax, dword [0x486c94]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44ba4f
cmp dword [0x486c98], ecx
je 0x44ba4f
push eax
call fcn.00441d02
push dword [0x486c98]
mov esi, eax
call fcn.00441d02
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44ba4f
cmp edi, ebx
je 0x44ba4f
call esi
cmp eax, ebx
je 0x44ba1c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ba1c
test byte [ebp - 0x18], 1
jne 0x44ba4f
lea eax, [ebp - 0x10]
push eax
call fcn.00442481
test eax, eax
pop ecx
je 0x44ba37
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00441a80
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44ba46
or dword [ebp + 0x10], 0x200000
jmp 0x44ba8a
or dword [ebp + 0x10], 0x40000
jmp 0x44ba8a
mov eax, dword [0x486c8c]
cmp eax, dword [ebp - 8]
je 0x44ba8a
push eax
call fcn.00441d02
cmp eax, ebx
pop ecx
je 0x44ba8a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44ba8a
mov eax, dword [0x486c90]
cmp eax, dword [ebp - 8]
je 0x44ba8a
push eax
call fcn.00441d02
cmp eax, ebx
pop ecx
je 0x44ba8a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486c88]
call fcn.00441d02
cmp eax, ebx
pop ecx
je 0x44baaa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44baac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e54
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x91f6439
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2e7a3e2c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x49a294
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 0x49a2c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a2e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a1fa
jmp 0x49a2e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a2e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a1fa
test edi, edi
mov eax, edi
jne 0x49a2ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x412230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
jmp 0x41224a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412240
mov eax, 1
add ebx, ebx
jne 0x412263
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412258
jne 0x412274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412258
xor ecx, ecx
sub eax, 3
jb 0x412288
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4122fa
mov ebp, eax
add ebx, ebx
jne 0x412293
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4122a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4122c4
inc ecx
add ebx, ebx
jne 0x4122b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4122a5
jne 0x4122c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4122a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4122e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4122d5
jmp 0x412246
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4122e4
add edi, ecx
jmp 0x412246
pop esi
mov edi, esi
mov ecx, 0x113
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412302
cmp byte [edi], 2
jne 0x412302
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 0x412307
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412376
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1203c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412334
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12044]
or eax, eax
je 0x412370
mov dword [ebx], eax
add ebx, 4
jmp 0x412351
call dword [esi + 0x12040]
mov ebp, dword [esi + 0x12048]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x123d1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4123c2
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x1003a60
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jne 0x1003a7b
xor eax, eax
inc eax
jmp 0x1003c45
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003adc
push 0x1001c1c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x1003ac8
push 0x1001c08
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1003ac1
push dword [ebp - 8]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
cmp edi, eax
je 0x1003c43
mov eax, dword [ebp + 8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1003bb0
cmp word [eax], bx
je 0x1003bb0
push eax
call esi
push 0x1001bf4
mov ebx, eax
call esi
push 0x1001bec
add ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1003bdf
push 0x1001bec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001bf4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003b8e
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01002266
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.010038fd
push dword [ebp - 4]
mov dword [ebp + 8], eax
push 0x100120c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call edi
jmp 0x1003b92
and dword [ebp + 8], 0
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x1003bae
cmp dword [ebp + 0x10], 0
je 0x1003ba6
call fcn.010022e5
xor eax, eax
inc eax
jmp 0x1003c43
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
shl eax, 1
mov dword [ebp - 0xc], eax
je 0x1003bdf
mov ebx, 0x1001bc0
push ebx
call esi
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2]
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1003be3
xor eax, eax
jmp 0x1003c43
push dword [ebp - 0xc]
and dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003c2c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push esi
jmp section..htext
push esi
call edi
cmp dword [ebp + 8], 0
je 0x1003c40
cmp dword [ebp + 0x10], 0
je 0x1003c40
call fcn.010022e5
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10