joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f561
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x1005f5f0
cmp dword [esi + 4], 0xffffffff
jne 0x1005f5f0
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.1006e05b
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x1005f5bd
cmp ax, 0x2f
je 0x1005f5bd
push edi
call fcn.1006e05b
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100cadfc
push edi
call fcn.10074d31
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.1005e6fd
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x1005f5d5
mov eax, dword [ebp + 8]
jmp 0x1005f5f5
push dword [ebp + 0xc]
call fcn.1005eb16
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x1005f5f5
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x1005fb52
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100df3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x1005fb86
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1005fb86
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x1005fc48
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x1005fba5
cmp cx, 0x5c
jne 0x1005fba7
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x1005fb99
cmp eax, esi
push edi
je 0x1005fbe5
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10070d90
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.1005fb52
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x1005fc07
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10071383
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.1006e05b
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10074d31
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x1005fc48
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e071
leave
ret
Function at 0x10060732
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100b58bd
call fcn.10075fa8
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.10060235
and dword [ebp - 4], 0
mov eax, dword [0x100fa284]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10060874
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100cadfc
je 0x10060796
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10060586
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x100607aa
push esi
push edi
call fcn.1006e830
test eax, eax
pop ecx
pop ecx
jne 0x100607af
or eax, 0xffffffff
jmp 0x100607b3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10060874
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.100602c1
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10060586
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1006048b
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x1006082e
test esi, esi
jle 0x1006082e
cmp ebx, esi
jle 0x10060800
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.1006060d
mov edi, dword [ebp - 0x10]
mov eax, esi
sub eax, ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [edi + ebx*2]
push eax
mov eax, dword [edi - 4]
lea eax, [eax + eax + 2]
push eax
push edi
call fcn.10024819
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x1006084d
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1006087b
cmp dword [edi - 8], 0
jl 0x10060864
push 0x100cadfc
push edi
call fcn.1006e830
test eax, eax
pop ecx
pop ecx
jne 0x10060868
mov eax, esi
jmp 0x1006086c
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x100607bc
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.1006048b
lea esi, [ebp - 0x10]
call fcn.1006048b
mov eax, dword [ebp - 0x18]
call fcn.10076047
ret
Function at 0x10060caa
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100b6c68
call fcn.10076011
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.10067de0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016e9
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100018df
test al, al
je 0x10060d08
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.10067b26
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001795
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.10001780
jmp 0x10060d11
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001795
lea esi, [ebp - 0x2c]
call fcn.10067bd9
push 0x100cd2ac
lea ecx, [ebp - 0x6c]
call fcn.10001712
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.10067cec
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10001780
mov ecx, esi
call fcn.10004e35
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x10060d60
and dword [eax + 0x1c], 0
jmp 0x10060e21
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.10067a3c
push 0x100cd2c4
lea ecx, [ebp - 0x6c]
call fcn.10001712
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10067c78
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10001780
mov ecx, edi
call fcn.10004e35
push eax
call ebx
cmp eax, 0xffffffff
je 0x10060db8
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.10001795
jmp 0x10060e1d
push str.SKIN
push str.QMUIRES.dat
push dword [0x100fb078]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10060e21
push esi
push dword [0x100fb078]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10060e21
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10060e21
push esi
push dword [0x100fb078]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.1006459a
push edi
push ebx
push dword [esi]
call fcn.10070d90
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.10001780
lea ecx, [ebp - 0x48]
call fcn.10001780
mov al, byte [ebp - 0x49]
call fcn.1007605b
ret
Function at 0x1006125c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100b6c1b
call fcn.10076011
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.100018df
test al, al
jne 0x1006137e
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001748
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.10067bd9
call fcn.10020760
mov ecx, edi
mov ebx, eax
call fcn.100014df
mov edi, eax
test edi, edi
je 0x100612c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x100612c8
xor eax, eax
jmp 0x100612db
lea eax, [esi + esi]
call fcn.10080060
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100348f9
push eax
lea ecx, [ebp - 0x5c]
call fcn.10001712
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10067cec
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10001780
mov ecx, edi
call fcn.10004e35
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x10061376
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1006136d
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.1006d41e
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006136d
cmp dword [ebp - 0x34], esi
jne 0x1006136d
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10001780
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.1007605b
ret 8
Function at 0x10062287
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100df3e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100b641a
call fcn.10075fa8
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.10070d10
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.10070d10
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x100fa284]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x1006232f
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.10060333
jmp 0x10062364
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x10062364
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.100604b3
test eax, eax
je 0x10062364
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.100208fb
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10060732
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.1006048b
cmp ebx, edi
je 0x100623d9
lea eax, [ebp]
push eax
push edi
push 0x100cd3cc
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100cd3d4
push eax
call fcn.100732c7
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x100623d9
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.10073489
push esi
call fcn.1007357d
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1006e071
add ebp, 0x414
leave
ret

Function at 0x10067eac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x1006bf50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d2c50
push 0x100752f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100df3e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x1006bfa0
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x1006bfee
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x1006bfee
mov edx, dword [ebp - 0x7c]
add eax, edx
cmp eax, esi
jae 0x1006c00e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006e071
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x1006c0e3
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x1006c0e3
test eax, 0x100
jne 0x1006c0e3
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x1006c05d
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bfc0
cmp word [ebp - 0x5c], 0x5a4d
jne 0x1006c048
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x1006c048
cmp eax, 0x40
jb 0x1006c048
push 0
push 0xf8
mov ecx, dword [ebp - 0x60]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x1006c09c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bfc0
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0x4550
je 0x1006c0bc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bfc0
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x1006bff0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
lea esi, [eax + ecx]
jmp 0x1006bfc0
Function at 0x1006cd90
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
mov ecx, dword [esp + 0x30]
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x34]
mov eax, ebx
or eax, 4
test ecx, ecx
jne 0x1006cdab
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call ecx
test eax, eax
je 0x1006ce13
mov ecx, dword [esp + 0x48]
xor eax, eax
test ecx, ecx
je 0x1006cdf2
mov dword [esp + 4], ecx
mov eax, 1
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push edx
call fcn.1006ca40
test eax, eax
jne 0x1006ce1c
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
pop ebx
add esp, 0x18
ret 0x30
mov eax, dword [esp + 0x44]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x1006ce3f
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
test bl, 4
jne 0x1006ce4b
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop ebx
add esp, 0x18
ret 0x30

Function at 0x1006e071
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100df3e0]
jne 0x1006e07b
repz ret
jmp fcn.10079d91
Function at 0x1007dc16
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 + 0x100dfb88]
je 0x1007dc31
inc edi
cmp edi, 0x17
jb 0x1007dc22
cmp edi, 0x17
jae 0x1007ddb1
push ebp
push 3
call fcn.10086f44
cmp eax, 1
pop ecx
je 0x1007dd7d
push 3
call fcn.10086f44
test eax, eax
pop ecx
jne 0x1007dc65
cmp dword [0x100fa5a8], 1
je 0x1007dd7d
cmp ebx, 0xfc
je 0x1007ddb0
push 0x100baae8
mov ebx, 0x314
push ebx
mov ebp, 0x100faae8
push ebp
call fcn.100754f7
add esp, 0xc
test eax, eax
je 0x1007dc9b
push esi
push esi
push esi
push esi
push esi
call fcn.1006de51
add esp, 0x14
push 0x104
mov esi, 0x100fab01
push esi
push 0
mov byte [0x100fac05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007dcdf
push 0x100baad0
push 0x2fb
push esi
call fcn.100754f7
add esp, 0xc
test eax, eax
je 0x1007dcdf
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1006de51
add esp, 0x14
push esi
call fcn.1006dfd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007dd24
push esi
call fcn.1006dfd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100fadfc
push 0x100baacc
sub ecx, eax
push ecx
push eax
call fcn.10074dd3
add esp, 0x14
test eax, eax
je 0x1007dd24
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1006de51
add esp, 0x14
jmp 0x1007dd26
xor esi, esi
push 0x100baac8
push ebx
push ebp
call fcn.10075486
add esp, 0xc
test eax, eax
je 0x1007dd46
push esi
push esi
push esi
push esi
push esi
call fcn.1006de51
add esp, 0x14
push dword [edi*8 + 0x100dfb8c]
push ebx
push ebp
call fcn.10075486
add esp, 0xc
test eax, eax
je 0x1007dd68
push esi
push esi
push esi
push esi
push esi
call fcn.1006de51
add esp, 0x14
push 0x12010
push 0x100baaa0
push ebp
call fcn.10086d87
add esp, 0xc
jmp 0x1007ddb0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1007ddb0
cmp ebp, 0xffffffff
je 0x1007ddb0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100dfb8c]
push dword [esi]
call fcn.1006dfd0
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 0x10086d87
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100797a2
xor ebx, ebx
cmp dword [0x100fb044], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10086e5d
push 0x100bbd34
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10086f3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bbd28
push edi
call esi
cmp eax, ebx
je 0x10086f3d
push eax
call fcn.10079734
mov dword [esp], 0x100bbd18
push edi
mov dword [0x100fb044], eax
call esi
push eax
call fcn.10079734
mov dword [esp], 0x100bbd04
push edi
mov dword [0x100fb048], eax
call esi
push eax
call fcn.10079734
mov dword [0x100fb04c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10079330
test eax, eax
pop ecx
pop ecx
je 0x10086e2b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006de51
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10086e5d
push 0x100bbce8
push edi
call esi
push eax
call fcn.10079734
cmp eax, ebx
pop ecx
mov dword [0x100fb054], eax
je 0x10086e5d
push 0x100bbcd0
push edi
call esi
push eax
call fcn.10079734
pop ecx
mov dword [0x100fb050], eax
mov eax, dword [0x100fb050]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10086ee2
cmp dword [0x100fb054], ecx
je 0x10086ee2
push eax
call fcn.100797ab
push dword [0x100fb054]
mov esi, eax
call fcn.100797ab
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10086ee2
cmp edi, ebx
je 0x10086ee2
call esi
cmp eax, ebx
je 0x10086eaf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10086eaf
test byte [ebp - 0x18], 1
jne 0x10086ee2
lea eax, [ebp - 0x10]
push eax
call fcn.10079367
test eax, eax
pop ecx
je 0x10086eca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1006de51
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10086ed9
or dword [ebp + 0x10], 0x200000
jmp 0x10086f1d
or dword [ebp + 0x10], 0x40000
jmp 0x10086f1d
mov eax, dword [0x100fb048]
cmp eax, dword [ebp - 8]
je 0x10086f1d
push eax
call fcn.100797ab
cmp eax, ebx
pop ecx
je 0x10086f1d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10086f1d
mov eax, dword [0x100fb04c]
cmp eax, dword [ebp - 8]
je 0x10086f1d
push eax
call fcn.100797ab
cmp eax, ebx
pop ecx
je 0x10086f1d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100fb044]
call fcn.100797ab
cmp eax, ebx
pop ecx
je 0x10086f3d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10086f3f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008c5c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100fb128], 0
push esi
jne 0x1008c539
call fcn.1008c464
test eax, eax
je 0x1008c57c
mov eax, dword [0x100fb128]
cmp eax, 1
jne 0x1008c55a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1008c57c
pop esi
ret
push eax
call dword [0x100fb130]
test eax, eax
jne 0x1008c5c4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1008c580
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100fb128]
call dword [0x100fb130]
mov edi, eax
test edi, edi
je 0x1008c5a7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1008c5c3
lea edi, [esi + 0xff0]
push esi
push dword [0x100fb128]
call dword [0x100fb12c]
add esi, 0x10
cmp esi, edi
jb 0x1008c5ad
mov eax, esi
pop edi
pop esi
ret
jmp 0x1008c526

Function at 0x1008c740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x19c
push 4
push 0x3000
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1008c777
xor eax, eax
jmp 0x1008c80f
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10070d10
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1008c7b5
jmp 0x1008c7f3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x1008c7ca
jmp 0x1008c7f3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x1008c7e3
jmp 0x1008c7f3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
xor eax, eax
jne 0x1008c789
cmp dword [ebp - 4], 0
je 0x1008c80c
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1008d3b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100df3e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100fb280], 0
jne 0x1008d448
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10070d10
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [0x100fb280], ecx
xor eax, eax
cmp dword [0x100fb280], 0
setne al
jmp 0x1008d44d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e071
mov esp, ebp
pop ebp
ret