joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ffce
Capabilities:
Enumerate pe sections
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4940
push 0x4a7764
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 0x480031
xor eax, eax
jmp 0x480233
push str.Common_FilesMicrosoft_SharedIMEIMSC40AIMSCMIG.EXE
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.004152f0
lea edx, [ebp - 0x124]
push edx
call fcn.0042b4af
add esp, 4
test eax, eax
jne 0x480061
xor eax, eax
jmp 0x480233
mov dword [ebp - 0x128], 0
push 1
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0042b751
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x480094
xor eax, eax
jmp 0x480233
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042a900
add esp, 4
test eax, eax
jne 0x4800c1
mov dword [ebp - 0x1c], 0
jmp 0x480201
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 0x480103
mov dword [ebp - 0x140], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
jmp 0x480233
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 0x480153
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 0x480179
mov edx, dword [ebp - 0x130]
cmp dword [edx], 0x6265682e
jne 0x480177
jmp 0x480179
jmp 0x480135
mov eax, dword [ebp - 0x134]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x12c], ecx
jbe 0x480196
mov dword [ebp - 0x1c], 0
jmp 0x480201
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 0x4801d0
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 0x4801d9
mov dword [ebp - 0x1c], 0
jmp 0x480201
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 0x4800a2
mov dword [ebp - 4], 0xffffffff
jmp 0x480221
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0042b816
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 0x48108a
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 0x4810ea
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 2
jae 0x4811a1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax*8 + 0x535900]
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.00415330
lea eax, [ebp - 0x108]
push eax
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x48119c
push 0
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0042a9c3
add esp, 0xc
test eax, eax
je 0x48119c
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0048d7a4
add esp, 8
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx*8 + 0x535904]
push eax
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48119c
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 0x4810db
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4814df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
push edi
mov dword [ebp - 0x3bc], 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 - 0x3ac], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3ab]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x14], 0x5359b8
mov dword [ebp - 0x10], 0x5359c8
mov dword [ebp - 0xc], 0x5359d8
mov dword [ebp - 8], 0x5359e4
mov dword [ebp - 4], 0x5359f4
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x3ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.0040a130
add esp, 8
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], 0
jne 0x48158c
xor eax, eax
jmp 0x481740
mov eax, dword [ebp - 0x2a8]
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 0x48173e
push 0x535a04
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x481662
cmp dword [ebp + 0xc], 0
jne 0x4815d9
mov eax, 0xfffffffe
jmp 0x481740
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 - 0x3bc]
call fcn.004813aa
test eax, eax
je 0x48165d
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x13c], 2
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x2a4]
push edx
call fcn.00415330
mov dword [ebp - 0x3b4], 0
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
mov ecx, 0x555c48
call fcn.00416dd0
mov eax, 0x44c
jmp 0x481740
jmp 0x48173e
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3b0], 0
jmp 0x481687
mov edx, dword [ebp - 0x3b0]
add edx, 1
mov dword [ebp - 0x3b0], edx
cmp dword [ebp - 0x3b0], 5
jae 0x4816b0
mov eax, dword [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x3b0]
mov edx, dword [ebp + ecx*4 - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4816ae
jmp 0x4816b0
jmp 0x481678
cmp dword [ebp - 0x3b0], 5
jae 0x48173e
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 - 0x3bc]
call fcn.0048149e
test eax, eax
je 0x48173e
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x13c], 2
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x2a4]
push edx
call fcn.00415330
mov dword [ebp - 0x3b8], 0
lea eax, [ebp - 0x3b8]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
mov ecx, 0x555c48
call fcn.00416dd0
mov eax, 0x44c
jmp 0x481740
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x481bee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4dc0
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffd50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c0], 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 str.comctl32.dll
push 0x104
mov edx, dword [ebp - 0x128]
push edx
call fcn.00415330
lea eax, [ebp - 0x124]
push eax
call fcn.0042b4af
add esp, 4
test eax, eax
jne 0x481c85
xor eax, eax
jmp 0x481d9f
push 1
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042b751
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x481ca8
xor eax, eax
jmp 0x481d9f
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 0x481ce8
mov dword [ebp - 4], 0xffffffff
jmp 0x481d0e
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x481d08
xor ecx, ecx
test ecx, ecx
jne 0x481caf
mov edx, dword [ebp - 0x20]
push edx
call fcn.0042b816
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x481d9c
mov eax, dword [ebp + 0xc]
push eax
push 0x44c
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x2c0]
push edx
call dword [ebp + 8]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x150], 2
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x124]
push eax
push 0x104
lea ecx, [ebp - 0x2b8]
push ecx
call fcn.00415330
mov dword [ebp - 0x2bc], 0
lea edx, [ebp - 0x2bc]
push edx
lea eax, [ebp - 0x2b8]
push eax
mov ecx, 0x555c48
call fcn.00416dd0
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 0x48320c
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 0x483252
xor eax, eax
jmp 0x4832d4
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a130
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48326d
xor eax, eax
jmp 0x4832d4
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 0x48328d
xor eax, eax
jmp 0x4832d4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4832a2
xor eax, eax
jmp 0x4832d4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00453370
mov ecx, eax
call fcn.00453794
test eax, eax
je 0x4832ba
xor eax, eax
jmp 0x4832d4
push 0x5367d0
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 0x4832db
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 0x483353
xor eax, eax
jmp 0x4834f3
lea ecx, [ebp - 0x320]
push ecx
push str._s_appwinproc.dll
push 0x104
lea edx, [ebp - 0x21c]
push edx
call fcn.00403d80
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x324]
call fcn.00483545
test eax, eax
je 0x4833ae
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.00415330
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.00415330
mov edx, dword [ebp - 0xc]
add edx, 0xa
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
jmp 0x48341b
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 0x48345c
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x324]
call fcn.004834fa
test eax, eax
je 0x48345a
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 0x48340e
cmp dword [ebp - 0x10], 0
je 0x4834cb
push str.NsPass0.sys
mov eax, 0x104
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00415330
mov edx, dword [ebp - 0xc]
add edx, 7
mov dword [ebp - 8], edx
jmp 0x483491
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 0x4834cb
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x324]
call fcn.004834fa
test eax, eax
je 0x4834c9
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 0x483484
cmp dword [ebp - 4], 0
jne 0x4834e3
cmp dword [ebp - 0x10], 0
jne 0x4834e3
mov dword [ebp - 0x328], 0
jmp 0x4834ed
mov dword [ebp - 0x328], 1
mov eax, dword [ebp - 0x328]
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x48371f
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.00415330
lea eax, [ebp - 0x108]
push eax
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x4837a8
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 0x4837aa
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x483b5a
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]
test eax, eax
jne 0x483b9d
xor eax, eax
jmp 0x483bdd
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a130
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x483bb8
xor eax, eax
jmp 0x483bdd
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x483bdb
mov eax, 1
jmp 0x483bdd
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x483f76
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5030
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 6]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], 0
jmp 0x483ff6
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x28
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x28]
jge 0x48403a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0xc], ecx
jae 0x484038
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x14]
jbe 0x484038
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x484060
jmp 0x483fe4
xor edx, edx
test edx, edx
jne 0x483faa
mov dword [ebp - 4], 0xffffffff
jmp 0x48405d
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
Function at 0x4845ac
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push edi
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x114], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp + eax - 0x104]
mov dword [ebp - 0x108], ecx
push str._temp_
push 0x104
mov edx, dword [ebp - 0x108]
push edx
call fcn.00415330
mov eax, dword [ebp - 0x108]
add eax, 6
mov dword [ebp - 0x114], eax
push 0x536940
push 0x104
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00415330
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x484677
xor eax, eax
jmp 0x48473d
mov ecx, dword [ebp - 0x254]
and ecx, 0x10
test ecx, ecx
je 0x484689
jmp 0x48470e
lea edx, [ebp - 0x228]
push edx
push 0x104
mov eax, dword [ebp - 0x114]
push eax
call fcn.00415330
lea ecx, [ebp - 0x104]
push ecx
call fcn.00453370
mov ecx, eax
call fcn.00453794
test eax, eax
je 0x4846ba
jmp 0x48470e
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4846d3
jmp 0x48470e
lea ecx, [ebp - 0x104]
push ecx
call fcn.0042b1c8
add esp, 4
test eax, eax
jne 0x4846e8
jmp 0x48470e
mov edx, dword [ebp + 0xc]
push edx
push 0x6b
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [ebp + 8]
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x484677
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x110]
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x484744
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x48475c
mov eax, dword [ebp - 8]
jmp 0x4847b3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48476f
mov eax, dword [ebp - 8]
jmp 0x4847b3
push 0
push 0x80
push 3
push 0
push 7
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4847a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4847a6
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x484c5e
Capabilities:
Get common file path
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x536a48
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.004431ff
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x484ea4
mov dword [ebp - 0x224], 0x208
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x21c], 0
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
push 0x536a80
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00442b70
mov ecx, eax
call fcn.00443226
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x484d4d
mov edx, dword [ebp - 0x224]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x32c], eax
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x32c]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
push 0x536a90
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00442b70
mov ecx, eax
call fcn.00443226
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00442b70
mov ecx, eax
call fcn.00443318
cmp dword [ebp - 0xc], 0
jne 0x484e80
push 0x104
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x328]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
cmp dword [ebp - 0x32c], 0
jne 0x484daf
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x340], edx
jmp 0x484dbb
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x330], ecx
cmp dword [ebp - 0x330], 0
je 0x484e80
mov edx, dword [ebp - 0x330]
movsx eax, byte [edx]
test eax, eax
je 0x484e80
push 0x2c
mov ecx, dword [ebp - 0x330]
push ecx
call fcn.0041eec0
add esp, 8
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
je 0x484e1d
mov edx, dword [ebp - 0x334]
mov byte [edx], 0
mov eax, dword [ebp - 0x334]
add eax, 1
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x330]
push ecx
push 0x104
mov edx, dword [ebp - 0x14]
push edx
call fcn.00415330
lea eax, [ebp - 0x328]
push eax
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x484e66
push 2
push 0x536aa0
mov ecx, dword [ebp - 0x330]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x484e66
mov dword [ebp - 4], 1
jmp 0x484e80
mov edx, dword [ebp - 0x334]
mov dword [ebp - 0x330], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x484dc7
cmp dword [ebp - 0x32c], 0
je 0x484ea4
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 0x33c], ecx
mov edx, dword [ebp - 0x33c]
push edx
call fcn.004a90a8
add esp, 4
cmp dword [ebp - 8], 2
jle 0x484eb1
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret