joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47594d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b07c8
push 0x4a2bd4
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 0x475983
xor eax, eax
jmp 0x475b44
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040a2a0
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4759a1
xor eax, eax
jmp 0x475b44
push 9
push str._system32_
mov ecx, dword [ebp - 0x1c]
sub ecx, 9
push ecx
call fcn.004153d0
add esp, 0xc
test eax, eax
je 0x4759d5
push 9
push 0x533a1c
mov edx, dword [ebp - 0x1c]
sub edx, 9
push edx
call fcn.004153d0
add esp, 0xc
test eax, eax
jne 0x4759dc
xor eax, eax
jmp 0x475b44
mov dword [ebp - 0x20], 0
push 0x533a28
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00402b10
add esp, 8
test eax, eax
jne 0x475a01
mov dword [ebp - 0x20], 1
jmp 0x475a26
push str.usp10.dll
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402b10
add esp, 8
test eax, eax
jne 0x475a1f
mov dword [ebp - 0x20], 2
jmp 0x475a26
xor eax, eax
jmp 0x475b44
cmp dword [ebp + 0xc], 0
jne 0x475a36
mov eax, 0xfffffffe
jmp 0x475b44
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 0x475b21
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 0x475b21
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x475b21
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x475b21
cmp dword [ebp - 0x20], 1
jne 0x475ae8
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.00475303
test eax, eax
jne 0x475ad5
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.0047556b
test eax, eax
je 0x475ae6
push 1
call fcn.00436d52
add esp, 4
mov dword [ebp - 0x24], 1
jmp 0x475b21
cmp dword [ebp - 0x20], 2
jne 0x475b21
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.00475719
test eax, eax
je 0x475b21
push 1
call fcn.00436d52
add esp, 4
mov dword [ebp - 0x24], 4
mov dword [0x5425f0], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x475b41
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 0x475f98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b09f8
push 0x4a2bd4
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.00409190
lea eax, [ebp - 0x124]
push eax
call fcn.0042ae0a
add esp, 4
test eax, eax
jne 0x476051
xor eax, eax
jmp 0x4761f9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042956f
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47608c
cmp dword [ebp - 0x1c], 0x32000
jb 0x47608c
cmp dword [ebp - 0x1c], 0x3e800
jbe 0x476093
xor eax, eax
jmp 0x4761f9
push 1
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4760bc
xor eax, eax
jmp 0x4761f9
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0042a230
add esp, 4
test eax, eax
jne 0x4760e5
mov dword [ebp - 0x128], 0
jmp 0x4761c1
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 0x47611a
mov dword [ebp - 0x128], 0
jmp 0x4761c1
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 0x476150
mov dword [ebp - 0x128], 0
jmp 0x4761c1
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 0x47618a
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 0x476196
mov dword [ebp - 0x128], 0
jmp 0x4761c1
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 0x4760c3
mov dword [ebp - 4], 0xffffffff
jmp 0x4761e4
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0042b171
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 0x476c25
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.0042ae0a
add esp, 4
test eax, eax
jne 0x476c58
jmp 0x476e20
push 1
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x476c78
jmp 0x476e1e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x476c89
jmp 0x476e1c
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 0x476ca0
jmp 0x476e1a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x476cc8
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x476cc8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x476ccd
jmp 0x476e18
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 0x476ceb
jmp 0x476e16
push 5
push 0x534554
mov eax, dword [ebp - 0x10]
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x476d0e
mov dword [ebp - 0x14], 1
jmp 0x476e14
push 5
push str.Upack
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x476d3a
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x476d3a
mov dword [ebp - 0x14], 1
jmp 0x476e12
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x31585055
jne 0x476d51
mov dword [ebp - 0x14], 1
jmp 0x476e10
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 0x476d7f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x2c]
jb 0x476d7f
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 0x476d8b
mov dword [ebp - 0x14], 1
jmp 0x476e0e
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 1
jle 0x476dd4
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 0x476dd4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
test edx, edx
je 0x476dd4
mov dword [ebp - 0x14], 1
jmp 0x476e0c
cmp dword [ebp - 0xc], 0
je 0x476de6
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042b171
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x476e07
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b990
mov ecx, eax
call fcn.0044bdb4
test eax, eax
je 0x476e07
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x476e22
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
jmp 0x476dd4
mov esp, ebp
pop ebp
ret 4
Function at 0x477c7e
Capabilities:
Enumerate pe sections
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0a78
push 0x4a2bd4
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 0x477ce1
xor eax, eax
jmp 0x477ee3
push str.Common_FilesMicrosoft_SharedIMEIMSC40AIMSCMIG.EXE
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.004154a0
lea edx, [ebp - 0x124]
push edx
call fcn.0042ae0a
add esp, 4
test eax, eax
jne 0x477d11
xor eax, eax
jmp 0x477ee3
mov dword [ebp - 0x128], 0
push 1
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x477d44
xor eax, eax
jmp 0x477ee3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042a230
add esp, 4
test eax, eax
jne 0x477d71
mov dword [ebp - 0x1c], 0
jmp 0x477eb1
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 0x477db3
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
jmp 0x477ee3
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 0x477e03
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 0x477e29
mov edx, dword [ebp - 0x130]
cmp dword [edx], 0x6265682e
jne 0x477e27
jmp 0x477e29
jmp 0x477de5
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x12c], ecx
jbe 0x477e46
mov dword [ebp - 0x1c], 0
jmp 0x477eb1
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 0x477e80
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 0x477e89
mov dword [ebp - 0x1c], 0
jmp 0x477eb1
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 0x477d52
mov dword [ebp - 4], 0xffffffff
jmp 0x477ed1
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042b171
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
Function at 0x478d3a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push edi
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x108]
mov dword [ebp - 4], ecx
jmp 0x478d9a
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 2
jae 0x478e51
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax*8 + 0x535ad8]
push ecx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x108]
sub edx, eax
mov ecx, 0x104
sub ecx, edx
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004154e0
lea eax, [ebp - 0x108]
push eax
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x478e4c
push 0
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0042a2f3
add esp, 0xc
test eax, eax
je 0x478e4c
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00486e66
add esp, 8
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx*8 + 0x535adc]
push eax
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x478e4c
mov edx, dword [ebp + 0xc]
push edx
push 0x78
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [ebp + 8]
jmp 0x478d8b
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x47918f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push edi
mov dword [ebp - 0x4d8], ecx
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x4c8], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x4c7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x14], 0x535b90
mov dword [ebp - 0x10], 0x535ba0
mov dword [ebp - 0xc], 0x535bb0
mov dword [ebp - 8], 0x535bbc
mov dword [ebp - 4], 0x535bcc
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.0040a2a0
add esp, 8
mov dword [ebp - 0x3c4], eax
cmp dword [ebp - 0x3c4], 0
jne 0x47923c
xor eax, eax
jmp 0x4793f0
mov eax, dword [ebp - 0x3c4]
sub eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x4793ee
push 0x535bdc
mov eax, dword [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x479312
cmp dword [ebp + 0xc], 0
jne 0x479289
mov eax, 0xfffffffe
jmp 0x4793f0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4d8]
call fcn.0047905a
test eax, eax
je 0x47930d
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 2
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x3c0]
push edx
call fcn.004154e0
mov dword [ebp - 0x4d0], 0
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
mov ecx, 0x55a980
call fcn.00416ee0
mov eax, 0x44c
jmp 0x4793f0
jmp 0x4793ee
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4cc], 0
jmp 0x479337
mov edx, dword [ebp - 0x4cc]
add edx, 1
mov dword [ebp - 0x4cc], edx
cmp dword [ebp - 0x4cc], 5
jae 0x479360
mov eax, dword [ebp - 0x3c4]
push eax
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ebp + ecx*4 - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x47935e
jmp 0x479360
jmp 0x479328
cmp dword [ebp - 0x4cc], 5
jae 0x4793ee
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4d8]
call fcn.0047914e
test eax, eax
je 0x4793ee
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 2
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x3c0]
push edx
call fcn.004154e0
mov dword [ebp - 0x4d4], 0
lea eax, [ebp - 0x4d4]
push eax
lea ecx, [ebp - 0x3c0]
push ecx
mov ecx, 0x55a980
call fcn.00416ee0
mov eax, 0x44c
jmp 0x4793f0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47989e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0ef8
push 0x4a2bd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffc34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x3dc], ecx
mov byte [ebp - 0x124], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x124]
mov dword [ebp - 0x128], ecx
push 0x535c88
push 0x104
mov edx, dword [ebp - 0x128]
push edx
call fcn.004154e0
lea eax, [ebp - 0x124]
push eax
call fcn.0042ae0a
add esp, 4
test eax, eax
jne 0x479935
xor eax, eax
jmp 0x479a4f
push 1
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x479958
xor eax, eax
jmp 0x479a4f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xc64
mov dword [ebp - 0x12c], edx
push 7
push str.reg.exe
mov eax, dword [ebp - 0x12c]
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x479998
mov dword [ebp - 4], 0xffffffff
jmp 0x4799be
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4799b8
xor ecx, ecx
test ecx, ecx
jne 0x47995f
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042b171
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x479a4c
mov eax, dword [ebp + 0xc]
push eax
push 0x44c
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x3dc]
push edx
call dword [ebp + 8]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x26c], 2
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x124]
push eax
push 0x104
lea ecx, [ebp - 0x3d4]
push ecx
call fcn.004154e0
mov dword [ebp - 0x3d8], 0
lea edx, [ebp - 0x3d8]
push edx
lea eax, [ebp - 0x3d4]
push eax
mov ecx, 0x55a980
call fcn.00416ee0
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
Function at 0x47aefb
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push edi
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x47af41
xor eax, eax
jmp 0x47afc3
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a2a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47af5c
xor eax, eax
jmp 0x47afc3
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
je 0x47af7c
xor eax, eax
jmp 0x47afc3
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x47af91
xor eax, eax
jmp 0x47afc3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044b990
mov ecx, eax
call fcn.0044bdb4
test eax, eax
je 0x47afa9
xor eax, eax
jmp 0x47afc3
push 0x536a20
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x47afca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push edi
mov dword [ebp - 0x324], ecx
mov byte [ebp - 0x320], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x31f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x21c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x47b042
xor eax, eax
jmp 0x47b1e2
lea ecx, [ebp - 0x320]
push ecx
push str._s_appwinproc.dll
push 0x104
lea edx, [ebp - 0x21c]
push edx
call fcn.00403f50
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x324]
call fcn.0047b234
test eax, eax
je 0x47b09d
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
push 0x6f
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x324]
push eax
call dword [ebp + 8]
lea ecx, [ebp - 0x320]
push ecx
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.004154e0
lea eax, [ebp - 0x118]
push eax
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp + ecx - 0x118]
mov dword [ebp - 0xc], edx
push str.Nskhelper0.sys
mov eax, 0x104
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004154e0
mov edx, dword [ebp - 0xc]
add edx, 0xa
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
jmp 0x47b10a
mov eax, dword [ebp - 8]
mov cl, byte [eax]
add cl, 1
mov edx, dword [ebp - 8]
mov byte [edx], cl
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x39
jg 0x47b14b
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x324]
call fcn.0047b1e9
test eax, eax
je 0x47b149
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
push eax
push 0x6f
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x324]
push edx
call dword [ebp + 8]
jmp 0x47b0fd
cmp dword [ebp - 0x10], 0
je 0x47b1ba
push str.NsPass0.sys
mov eax, 0x104
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004154e0
mov edx, dword [ebp - 0xc]
add edx, 7
mov dword [ebp - 8], edx
jmp 0x47b180
mov eax, dword [ebp - 8]
mov cl, byte [eax]
add cl, 1
mov edx, dword [ebp - 8]
mov byte [edx], cl
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x39
jg 0x47b1ba
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x324]
call fcn.0047b1e9
test eax, eax
je 0x47b1b8
mov eax, dword [ebp + 0xc]
push eax
push 0x6f
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x324]
push edx
call dword [ebp + 8]
jmp 0x47b173
cmp dword [ebp - 4], 0
jne 0x47b1d2
cmp dword [ebp - 0x10], 0
jne 0x47b1d2
mov dword [ebp - 0x328], 0
jmp 0x47b1dc
mov dword [ebp - 0x328], 1
mov eax, dword [ebp - 0x328]
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x47b40e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x108]
mov dword [ebp - 4], ecx
push str.Comie.exe
push 0x104
mov edx, dword [ebp - 4]
push edx
call fcn.004154e0
lea eax, [ebp - 0x108]
push eax
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x47b497
mov ecx, dword [ebp + 0xc]
push ecx
push 0x6d
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call dword [ebp + 8]
mov eax, 1
jmp 0x47b499
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8