joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ec80
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x69192c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push str.wintrust.dll
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00409260
mov dword [esp + 0x50], 0
mov eax, dword [0x74fd44]
test al, 1
jne 0x46ed1f
or eax, 1
mov dword [0x74fd44], eax
mov byte [esp + 0x50], 1
mov dword [0x74fd40], 0
call fcn.004375a0
push 0x6b5140
call fcn.00547b44
add esp, 4
mov byte [esp + 0x50], 0
lea eax, [esp + 0x18]
mov ecx, 0x74fd40
push eax
call fcn.00437760
mov edi, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x46ed4b
push dword [esp + 0x18]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push 0xb
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
push str.crypt32.dll
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.00409260
mov dword [esp + 0x50], 2
mov eax, dword [0x74fd44]
test al, 1
jne 0x46edca
or eax, 1
mov dword [0x74fd44], eax
mov byte [esp + 0x50], 3
mov dword [0x74fd40], 0
call fcn.004375a0
push 0x6b5140
call fcn.00547b44
add esp, 4
mov byte [esp + 0x50], 2
lea eax, [esp + 0x30]
mov ecx, 0x74fd40
push eax
call fcn.00437760
mov ebp, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x46edf6
push dword [esp + 0x30]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x46ee89
test ebp, ebp
je 0x46ee89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push ebp
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x470210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x691ade
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00409040
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00409040
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00409040
mov byte [esp + 0x18], 2
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov al, byte [esi + 0x64]
mov byte [edi + 0x64], al
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4713b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x691bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x54]
push esi
push eax
call fcn.00471ab0
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov byte [esp + 0x48], 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.0042cf80
xorps xmm0, xmm0
lea eax, [esp + 0x14]
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x20], 0
test eax, eax
jne 0x471449
xor bl, bl
jmp 0x471468
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x471461
cmp eax, 0x80
je 0x471461
xor bl, bl
jmp 0x471468
mov byte [esp + 0x18], 1
mov bl, 1
mov byte [esp + 0x20], bl
mov byte [esp + 0x48], 2
lea eax, [esp + 0x13]
push eax
push edi
push esi
mov byte [esp + 0x1f], 0
call fcn.00471540
test al, al
jne 0x47149b
cmp byte [esp + 0x13], al
je 0x47149b
cmp dword [esi + 0x14], 8
jb 0x471494
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x48], 1
test bl, bl
je 0x4714b8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4714b3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4714dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x4714fe
push dword [esp + 0x24]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005472b9
add esp, 0x3c
ret 8
Function at 0x472730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x691e4f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0040f470
mov dword [esp + 0x18], 0
lea eax, [esi + 0x30]
mov byte [eax], 0
xor ecx, ecx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov dword [esp + 0xc], eax
mov word [eax + 4], cx
mov byte [esp + 0x18], 1
mov dword [eax + 0x30], 7
mov dword [eax + 0x2c], ecx
mov word [eax + 0x1c], cx
mov byte [esp + 0x18], 2
mov dword [eax + 0x48], 7
mov dword [eax + 0x44], ecx
mov word [eax + 0x34], cx
mov byte [esp + 0x18], 3
mov dword [eax + 0x60], 7
mov dword [eax + 0x5c], ecx
mov word [eax + 0x4c], cx
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4747e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x692306
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
cmp dword [esi + 0x30], 8
jb 0x474821
push dword [esi + 0x1c]
call fcn.005472b4
add esp, 4
mov dword [esi + 0x30], 7
xor eax, eax
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x47484e
push dword [esi + 4]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x48dcd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x695848
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x78]
lea eax, [esp + 0x1f]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.0042ace0
mov eax, dword [ebx]
xorps xmm0, xmm0
movq qword [esp + 0x30], xmm0
add esp, 0x10
mov dword [esp + 0x28], 0
mov dword [ebx + 4], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.004965b0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.004966b0
mov esi, dword [esp + 0x24]
mov eax, 0x4ec4ec4f
mov ebp, dword [esp + 0x20]
mov ecx, esi
sub ecx, ebp
imul ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x48dee8
lea esi, [ebp + 0x1c]
jmp 0x48dda0
xor eax, eax
mov dword [esp + 0x3c], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x34]
push esi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.00409040
mov byte [esp + 0x6c], 1
lea eax, [esp + 0x2c]
push 0x6f192c
push 0x6f52b4
push eax
call fcn.0041cbd0
add esp, 0xc
lea eax, [esp + 0x2c]
push 0x6f1928
push 0x6f5200
push eax
call fcn.0041cbd0
add esp, 0xc
lea eax, [esp + 0x2c]
push 0x6eb9cc
push 0x6eb9cc
push eax
call fcn.0041cbd0
mov dword [esp + 0x60], 0
add esp, 0xc
mov dword [esp + 0x58], 0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x6c], 2
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x48de6b
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x44]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
push eax
call fcn.00427f60
add esp, 4
cmp dword [esp + 0x54], 0
je 0x48de7e
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.0042aa60
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x58], 0x10
jb 0x48de96
push dword [esp + 0x44]
call fcn.005472b4
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x40], 8
jb 0x48dec3
push dword [esp + 0x2c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
add esi, 0x34
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
dec edi
jne 0x48dda0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x6c], 0xffffffff
test ebp, ebp
je 0x48df23
push dword [esp + 0x1c]
mov edx, esi
push ecx
mov ecx, ebp
call fcn.0048ff90
push ebp
call fcn.005472b4
add esp, 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005472b9
add esp, 0x5c
ret 4
Function at 0x490170
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x688b43
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00409040
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00409040
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x490850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
lea esp, [esp]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x74f530], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x74f630], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x74f730], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x74f430], al
inc esi
cmp esi, 0x100
jl 0x490960
pop esi
add esp, 0x80
ret
Function at 0x4964e0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x69650c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov eax, dword [eax]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
mov ecx, esi
push eax
call fcn.00409040
mov dword [esp + 0x14], 0
lea eax, [esi + 0x18]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [esp + 0x1c], eax
mov word [eax], cx
mov byte [esp + 0x14], 1
mov dword [eax + 0x2c], 7
mov dword [eax + 0x28], ecx
mov word [eax + 0x18], cx
mov byte [esp + 0x14], 2
mov dword [eax + 0x44], 7
mov dword [eax + 0x40], ecx
mov word [eax + 0x30], cx
mov byte [esp + 0x14], 3
mov dword [eax + 0x5c], 7
mov dword [eax + 0x58], ecx
mov word [eax + 0x48], cx
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x4986e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00549c70
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49873c
cmp dword [esp + 4], 6
jb 0x49873c
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005472b9
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.005472b9
add esp, 0x118
ret

Function at 0x498760
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x696a2b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x154]
xorps xmm0, xmm0
mov edi, dword [esp + 0x150]
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x148], 0
lea eax, [esp + 0x28]
push 0x110
push 0
push eax
mov dword [esp + 0x30], 0x114
call fcn.00549c70
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x498824
cmp dword [esp + 0x28], 6
jb 0x498824
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00498930
jmp 0x49882d
lea ecx, [esp + 0x18]
call fcn.00498f40
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jne 0x49883d
xor bl, bl
jmp 0x4988bb
mov ecx, eax
mov eax, 0x4ec4ec4f
sub ecx, esi
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
je 0x4988b5
mov ebx, esi
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4988ab
lea ecx, [ecx]
mov edx, esi
mov ecx, ebx
call fcn.00498e80
test al, al
jne 0x498877
add esi, 0x68
cmp esi, dword [edi + 4]
jne 0x498860
jmp 0x4988ab
mov ecx, dword [esp + 0x14]
push esi
call fcn.004992e0
push dword [esp + 0x14]
mov edx, dword [edi + 4]
lea ecx, [esi + 0x68]
push esi
call fcn.00499c70
mov edx, dword [edi + 4]
add esp, 8
push dword [esp + 0x14]
lea ecx, [edx - 0x68]
push ecx
call fcn.00499d10
add esp, 8
add dword [edi + 4], 0xffffff98
add ebx, 0x68
dec ebp
jne 0x498856
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov bl, 1
mov dword [esp + 0x148], 0xffffffff
test esi, esi
je 0x4988f9
push dword [esp + 0x14]
mov edx, eax
push ecx
mov ecx, esi
call fcn.00499d10
push esi
call fcn.005472b4
add esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov al, bl
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.005472b9
add esp, 0x138
ret 8
Function at 0x49a4b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x696de1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x50]
mov ecx, edi
push 1
push 0
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0x25
call fcn.0040ef80
push 0xffffffffffffffff
push 0
push edi
cmp eax, 0xffffffff
jne 0x49a547
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.00409040
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], 1
jmp 0x49a648
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.00409040
mov dword [esp + 0x48], 1
cmp dword [edi + 0x14], 8
jb 0x49a589
mov eax, dword [edi]
jmp 0x49a58b
mov eax, edi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test ebp, ebp
jne 0x49a5b6
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push edi
mov word [esi], ax
call fcn.00409040
jmp 0x49a615
xor ecx, ecx
lea eax, [ebp + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ca65e
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 8
jb 0x49a5dc
mov edi, dword [edi]
lea eax, [ebp + 1]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x49a600
cmp eax, ebp
ja 0x49a600
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [esp + 0x20]
push ebx
call fcn.00408cf0
push ebx
call fcn.005ad770
add esp, 4
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0040ee30
mov dword [esp + 0x18], 1
mov byte [esp + 0x48], 0
cmp dword [esp + 0x34], 8
jb 0x49a635
push dword [esp + 0x20]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005472b9
add esp, 0x38
ret 8
Function at 0x49b540
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x696f4c
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28c]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x76]
push eax
call fcn.00549c70
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, vtable..0
mov dword [esp + 0x34], 0
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b5e0
sub ecx, edx
sar ecx, 1
push ecx
push vtable..0
lea ecx, [esp + 0x2c]
call fcn.00409260
mov dword [esp + 0x284], 0
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x6c], ax
jne 0x49b63b
xor ecx, ecx
jmp 0x49b651
lea ecx, [esp + 0x6c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b642
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x14]
call fcn.00409260
mov byte [esp + 0x284], 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0041eff0
add esp, 0xc
mov byte [esp + 0x284], 3
cmp dword [esp + 0x20], 8
jb 0x49b69a
push dword [esp + 0xc]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov byte [esp + 0x284], 4
cmp dword [esp + 0x38], 8
jb 0x49b6cc
push dword [esp + 0x24]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
lea ecx, [esp + 0x54]
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.004261a0
test al, al
jne 0x49b6f4
xor bl, bl
jmp 0x49b75c
lea edx, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.00432140
mov byte [esp + 0x284], 5
cmp dword [esp + 0x4c], 0
jne 0x49b714
xor bl, bl
jmp 0x49b72a
lea eax, [esp + 0x3c]
cmp esi, eax
je 0x49b728
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00409040
mov bl, 1
mov byte [esp + 0x284], 4
cmp dword [esp + 0x50], 8
jb 0x49b745
push dword [esp + 0x3c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov dword [esp + 0x284], 0xffffffff
cmp dword [esp + 0x68], 8
jb 0x49b77a
push dword [esp + 0x54]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov word [esp + 0x54], ax
mov al, bl
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.005472b9
add esp, 0x27c
ret 4