joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4708ea
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5410
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f41c
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
jne 0x470975
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x47097a
jmp 0x470a45
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042f8d5
add esp, 8
mov edx, dword [ebp - 0x28]
add edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], 0
je 0x470a45
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042f8d5
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x30], ecx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea edx, [ebp - 0x15c]
push edx
push 0
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.0042e826
add esp, 0x14
test eax, eax
je 0x470a37
push 6
push 0x528024
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x470a37
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x470a35
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], 0
jmp 0x470a45
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
jmp 0x470998
mov dword [ebp - 4], 0xffffffff
jmp 0x470a5e
cmp dword [ebp - 0x1c], 0
je 0x470a70
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042f4e1
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x470a86
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x470ac1
push str.dllcache_services.exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x470ad3
push str.services.exe
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409100
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x471b2b
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad36c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x114]
call fcn.0041f720
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 8]
push eax
push str.._s_nul.dll_
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a230
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0x52a174
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a230
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x471c18
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4b8]
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0x1f01ff
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.0041fc78
push 1
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4e0]
jmp 0x471c9a
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4e0]
push 0x1f01ff
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.0041fc55
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [0x54b4e0]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [0x54b4e0]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4e0]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0041f737
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4722fd
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.00422930
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x472357
xor eax, eax
jmp 0x472420
mov eax, dword [ebp - 0x10c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.00422930
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x472396
xor eax, eax
jmp 0x472420
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push str._sWindows.old_s
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a230
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4723e6
mov eax, 1
jmp 0x472420
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push str._sWindows.old.000_s
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a230
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47241e
mov eax, 1
jmp 0x472420
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x473104
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10c], 0
je 0x473121
mov eax, 1
jmp 0x4731d9
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.fixfinal2.dll
mov edx, dword [ebp - 4]
add edx, 8
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 4]
call fcn.004731dd
test eax, eax
jne 0x473158
xor eax, eax
jmp 0x4731d9
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x473185
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [0x54b4b8]
xor eax, eax
jmp 0x4731d9
push str.ScanXXX
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10c], 0
jne 0x4731d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [0x54b4b8]
xor eax, eax
jmp 0x4731d9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4771af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], ecx
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040a210
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4771dc
xor eax, eax
jmp 0x4772b4
push 0x2e
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a210
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4771fa
xor eax, eax
jmp 0x4772b4
push 0x53a384
mov edx, dword [ebp - 8]
push edx
call fcn.00402af0
add esp, 8
test eax, eax
jne 0x4772b2
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 8]
cmp eax, 0xa
jle 0x4772b2
mov ecx, dword [ebp - 8]
sub ecx, 6
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x3830
jne 0x4772b2
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
cmp edx, 0x2e
je 0x47726a
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x47725b
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x39
jle 0x47725f
xor eax, eax
jmp 0x4772b4
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x47723a
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x4772b2
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.00415370
add esp, 0xc
test eax, eax
jne 0x4772b2
mov eax, 1
jmp 0x4772b4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4780fb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b67a0
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0042f17a
add esp, 4
test eax, eax
jne 0x47814e
jmp 0x47829c
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042f41c
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47816e
jmp 0x47829c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x47818d
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x4781ab
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x4781d3
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x4550
jne 0x4781d3
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x4781df
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 6]
cmp eax, 6
jl 0x478200
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x478222
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
mov dword [ebp - 0x2c], 0
jmp 0x478234
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x2c], ecx
jge 0x478283
push 4
push str..bad
mov edx, dword [ebp - 0x28]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x478269
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
mov eax, dword [ebp - 0x28]
add eax, 0x28
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x478281
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
jmp 0x47822b
mov dword [ebp - 4], 0xffffffff
jmp 0x47829c
cmp dword [ebp - 0x24], 0
je 0x4782ae
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0042f4e1
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x4782cf
mov edx, dword [ebp + 8]
push edx
call fcn.0044fae0
mov ecx, eax
call fcn.0044ff04
test eax, eax
je 0x4782cf
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4799fd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b69f0
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0
jne 0x479a33
xor eax, eax
jmp 0x479bf4
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040a210
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x479a51
xor eax, eax
jmp 0x479bf4
push 9
push str._system32_
mov ecx, dword [ebp - 0x1c]
sub ecx, 9
push ecx
call fcn.00415370
add esp, 0xc
test eax, eax
je 0x479a85
push 9
push 0x53c22c
mov edx, dword [ebp - 0x1c]
sub edx, 9
push edx
call fcn.00415370
add esp, 0xc
test eax, eax
jne 0x479a8c
xor eax, eax
jmp 0x479bf4
mov dword [ebp - 0x20], 0
push 0x53c238
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402af0
add esp, 8
test eax, eax
jne 0x479ab1
mov dword [ebp - 0x20], 1
jmp 0x479ad6
push str.usp10.dll
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402af0
add esp, 8
test eax, eax
jne 0x479acf
mov dword [ebp - 0x20], 2
jmp 0x479ad6
xor eax, eax
jmp 0x479bf4
cmp dword [ebp + 0xc], 0
jne 0x479ae6
mov eax, 0xfffffffe
jmp 0x479bf4
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x479bd1
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 6]
test edx, edx
je 0x479bd1
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x479bd1
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x479bd1
cmp dword [ebp - 0x20], 1
jne 0x479b98
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.004793b3
test eax, eax
jne 0x479b85
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.0047961b
test eax, eax
je 0x479b96
push 1
call fcn.0043abf2
add esp, 4
mov dword [ebp - 0x24], 1
jmp 0x479bd1
cmp dword [ebp - 0x20], 2
jne 0x479bd1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.004797c9
test eax, eax
je 0x479bd1
push 1
call fcn.0043abf2
add esp, 4
mov dword [ebp - 0x24], 4
mov dword [0x54b128], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x479bf1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47a048
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6c20
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x124], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x130], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x124]
mov dword [ebp - 0x130], ecx
push str.inf_svchoct.exe
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x124]
sub edx, eax
mov ecx, 0x104
sub ecx, edx
push ecx
mov edx, dword [ebp - 0x130]
push edx
call fcn.00409100
lea eax, [ebp - 0x124]
push eax
call fcn.0042f17a
add esp, 4
test eax, eax
jne 0x47a101
xor eax, eax
jmp 0x47a2a9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042d8df
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47a13c
cmp dword [ebp - 0x1c], 0x32000
jb 0x47a13c
cmp dword [ebp - 0x1c], 0x3e800
jbe 0x47a143
xor eax, eax
jmp 0x47a2a9
push 1
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.0042f41c
add esp, 0xc
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x47a16c
xor eax, eax
jmp 0x47a2a9
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0042e5a0
add esp, 4
test eax, eax
jne 0x47a195
mov dword [ebp - 0x128], 0
jmp 0x47a271
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x12c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 3
je 0x47a1ca
mov dword [ebp - 0x128], 0
jmp 0x47a271
mov edx, dword [ebp - 0x134]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x134]
lea edx, [ecx + eax + 0x68]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
cmp dword [eax], 0x7275782e
je 0x47a200
mov dword [ebp - 0x128], 0
jmp 0x47a271
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [eax + 0xc]
jb 0x47a23a
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x13c]
add eax, dword [ecx + 8]
cmp dword [ebp - 0x138], eax
jbe 0x47a246
mov dword [ebp - 0x128], 0
jmp 0x47a271
mov edx, dword [ebp + 0xc]
push edx
push 0x6b
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call dword [ebp + 8]
mov dword [ebp - 0x128], 1
xor edx, edx
test edx, edx
jne 0x47a173
mov dword [ebp - 4], 0xffffffff
jmp 0x47a294
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0042f4e1
add esp, 4
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47acd5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0042f17a
add esp, 4
test eax, eax
jne 0x47ad08
jmp 0x47aed0
push 1
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042f41c
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47ad28
jmp 0x47aece
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47ad39
jmp 0x47aecc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x47ad50
jmp 0x47aeca
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x47ad78
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x47ad78
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x47ad7d
jmp 0x47aec8
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x47ad9b
jmp 0x47aec6
push 5
push 0x53cd64
mov eax, dword [ebp - 0x10]
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x47adbe
mov dword [ebp - 0x14], 1
jmp 0x47aec4
push 5
push str.Upack
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x47adea
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x47adea
mov dword [ebp - 0x14], 1
jmp 0x47aec2
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x31585055
jne 0x47ae01
mov dword [ebp - 0x14], 1
jmp 0x47aec0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0x40
jb 0x47ae2f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x2c]
jb 0x47ae2f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x1c]
cmp dword [ebp - 0x1c], ecx
jbe 0x47ae3b
mov dword [ebp - 0x14], 1
jmp 0x47aebe
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 1
jle 0x47ae84
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + 6]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx + 0x14]
jbe 0x47ae84
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
test edx, edx
je 0x47ae84
mov dword [ebp - 0x14], 1
jmp 0x47aebc
cmp dword [ebp - 0xc], 0
je 0x47ae96
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042f4e1
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x47aeb7
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044fae0
mov ecx, eax
call fcn.0044ff04
test eax, eax
je 0x47aeb7
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x47aed2
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
jmp 0x47ae84
mov esp, ebp
pop ebp
ret 4
Function at 0x47bd2e
Capabilities:
Enumerate pe sections
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6ca0
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 0x124], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
push 0
push 0x26
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x47bd91
xor eax, eax
jmp 0x47bf93
push str.Common_FilesMicrosoft_SharedIMEIMSC40AIMSCMIG.EXE
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.00415440
lea edx, [ebp - 0x124]
push edx
call fcn.0042f17a
add esp, 4
test eax, eax
jne 0x47bdc1
xor eax, eax
jmp 0x47bf93
mov dword [ebp - 0x128], 0
push 1
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0042f41c
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x47bdf4
xor eax, eax
jmp 0x47bf93
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042e5a0
add esp, 4
test eax, eax
jne 0x47be21
mov dword [ebp - 0x1c], 0
jmp 0x47bf61
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
xor edx, edx
mov dx, word [ecx + 6]
cmp edx, 3
jne 0x47be63
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
jmp 0x47bf93
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x134]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x12c], 1
jmp 0x47beb3
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x130]
add edx, 0x28
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x12c], ecx
ja 0x47bed9
mov edx, dword [ebp - 0x130]
cmp dword [edx], 0x6265682e
jne 0x47bed7
jmp 0x47bed9
jmp 0x47be95
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x12c], ecx
jbe 0x47bef6
mov dword [ebp - 0x1c], 0
jmp 0x47bf61
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x138]
cmp edx, dword [ecx + 0xc]
jb 0x47bf30
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x130]
add ecx, dword [edx + 8]
cmp dword [ebp - 0x138], ecx
jbe 0x47bf39
mov dword [ebp - 0x1c], 0
jmp 0x47bf61
mov eax, dword [ebp + 0xc]
push eax
push 0x6b
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
call dword [ebp + 8]
mov dword [ebp - 0x1c], 1
xor eax, eax
test eax, eax
jne 0x47be02
mov dword [ebp - 4], 0xffffffff
jmp 0x47bf81
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042f4e1
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8