joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00438200
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410be9
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push str.SetupPath
push eax
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
call fcn.00403290
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret

Function at 0x410c10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x410ca9
push esi
push edi
push ebx
push 2
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp + 8]
push edi
push ebx
push edx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x4d5c5c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x10]
movzx ecx, word [eax + 0x12]
movzx edi, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
push edi
push edx
mov edx, dword [ebp + 0xc]
push ecx
push str._d._d._d._d
call fcn.0040bdc0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410d80
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x438], 0x22c
mov word [ebp - 0x20c], ax
call fcn.00438200
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410dde
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0x438]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x410e26
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x410e00
lea eax, [ebp - 0x414]
push eax
push 0x4d5e1c
call fcn.0043050e
add esp, 8
test eax, eax
je 0x410e42
lea ecx, [ebp - 0x438]
push ecx
push edi
call esi
test eax, eax
jne 0x410e00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 0x4d5b00
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x430]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x410ea1
lea eax, [ebp - 0x440]
push eax
push 4
lea ecx, [ebp - 0x43c]
push ecx
push esi
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov eax, dword [ebp - 0x43c]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
lea eax, [ebp - 0x20c]
pop edi
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x410ec0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00438200
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x20c]
lea esi, [edi + 0x1658]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410f30
add edi, 0x1860
lea eax, [ebp - 0x20c]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x410f51
push str.7z.dll
push 0x104
push esi
call fcn.0043091a
push str.Client7z.dll
push 0x104
push edi
call fcn.0043091a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
push esi
call ebx
test eax, eax
je 0x410f97
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x89
call fcn.00410060
push edi
call ebx
test eax, eax
je 0x410fb0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x8a
call fcn.00410060
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x410fd0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
mov dword [ebp - 0x41c], eax
call esi
test eax, eax
jne 0x411119
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.00438200
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00438200
add esp, 0x18
lea edx, [ebp - 0x414]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push str.retmp
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 3
lea edx, [ebp - 0x20c]
push edx
push ebx
call edi
test eax, eax
jne 0x41110b
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x418]
call fcn.00403290
mov ecx, dword [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov eax, esi
push eax
call fcn.0040a240
mov esi, dword [ebp - 0x418]
push 3
push esi
push ebx
call edi
test eax, eax
je 0x4110cf
push 3
lea ecx, [ebp - 0x20c]
push ecx
push esi
call edi
test eax, eax
jne 0x4110dd
push 5
push 0
push ebx
call edi
push 3
push 0
push esi
call edi
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411118
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
push 5
push 0
lea ecx, [ebp - 0x20c]
push ecx
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
Function at 0x411130
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x4fb2a0]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [0x4fc44c]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
push edi
mov ecx, 0x4fc44c
call edx
add eax, 0x10
push esi
push str._s.
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00403db0
mov ecx, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x41129f
mov ecx, 0x4d69e8
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4111c8
test dx, dx
je 0x4111c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4111c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4111a2
xor eax, eax
jmp 0x4111cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411280
mov ecx, 0x4d69ec
lea eax, [esp + 0x4c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411206
test dx, dx
je 0x411202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411206
add eax, 4
add ecx, 4
test dx, dx
jne 0x4111e0
xor eax, eax
jmp 0x41120b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411280
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
lea ecx, [esp + 0x4c]
push ecx
add eax, 0x10
push esi
push str._s_s
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00403db0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test byte [esp + 0x20], 0x10
push ebx
je 0x411254
mov ecx, dword [esp + 0x1c]
call fcn.00411130
jmp 0x411264
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411264
push esi
call fcn.00410fd0
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411199
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4112c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
Function at 0x411460
Capabilities:
Get common file path
Get program files directory
Query environment variable
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
call fcn.0040c870
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x411496
xor ebx, ebx
jmp 0x4114a9
push 0xf01ff
push 0x4d6c80
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x228]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
lea ecx, [edi + 0x1c70]
push ecx
push str._localappdata_GameBuff
call ebx
push 0x104
lea edx, [edi + 0x1e78]
push edx
push str._localappdata_GamePPSdk
call ebx
mov ecx, edi
call fcn.0040fd80
push esi
push edi
call fcn.004102d0
mov ecx, edi
call fcn.004104b0
lea eax, [edi + 0x820]
lea esi, [ebp - 0x22c]
call fcn.00403290
mov esi, dword [ebp - 0x22c]
cmp dword [esi - 0xc], 0
jne 0x411536
push 0x4d5dd0
lea eax, [edi + 0x820]
push 0x104
push eax
call fcn.00431689
add esp, 0xc
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411552
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0
push 0
push 0
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call fcn.00410cb0
mov ecx, edi
call fcn.00410ec0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00438200
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._localappdata_GameBuff
call ebx
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [ebp - 0x22c]
push edx
push 0x26
push 0
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4115f0
mov ecx, dword [ebp - 0x22c]
lea eax, [edi + 0x618]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [edi + 0x618]
lea edi, [eax - 2]
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x411600
mov ecx, dword [0x4d5c5c]
mov dword [edi], ecx
pop edi
pop esi
add eax, 0xfffffffe
pop ebx
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411620
mov edx, dword [0x4d5dd0]
mov dword [eax], edx
mov ecx, dword [0x4d5dd4]
mov dword [eax + 4], ecx
mov edx, dword [0x4d5dd8]
mov dword [eax + 8], edx
mov ecx, dword [0x4d5ddc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x4d5de0]
xor ecx, ebp
mov word [eax + 0x10], dx
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x411670
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x234], esi
cmp esi, 0xffffffff
je 0x411723
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41171c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4116d0
lea ecx, [ebp - 0x20c]
push ecx
push 0x4d5e1c
call fcn.0043050e
add esp, 8
test eax, eax
jne 0x411708
mov edx, dword [ebp - 0x228]
push edx
push eax
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4116d0
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret

Function at 0x411740
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411783
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4117c2
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call fcn.0043050e
add esp, 8
test eax, eax
je 0x4117bd
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x411795
jmp 0x4117c2
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x4117e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x806]
push ecx
mov ebx, edx
mov word [ebp - 0x808], ax
call fcn.00438200
lea edx, [ebp - 0x808]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x411821
lea eax, [ebp - 0x808]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411840
mov edx, dword [str..]
mov ecx, dword [0x4d69e0]
mov dword [eax], edx
mov dx, word [0x4d69e4]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0xa78]
push eax
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp eax, 0xffffffff
jne 0x4118a6
push 0x4d6cf4
call fcn.00430e27
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x4118b0
mov ecx, 0x4d69e8
lea eax, [ebp - 0xa4c]
jmp 0x4118c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4118e6
test dx, dx
je 0x4118e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4118e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4118c0
xor eax, eax
jmp 0x4118eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4119a3
mov ecx, 0x4d69ec
lea eax, [ebp - 0xa4c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411926
test dx, dx
je 0x411922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411926
add eax, 4
add ecx, 4
test dx, dx
jne 0x411900
xor eax, eax
jmp 0x41192b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4119a3
test byte [ebp - 0xa78], 0x10
je 0x4119a3
xor edx, edx
lea eax, [ebp - 0xa4c]
mov word [ebp - 0x824], dx
mov dword [ebp - 0x810], 7
mov dword [ebp - 0x814], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411960
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa4c]
lea ecx, [ebp - 0x824]
call fcn.00412450
lea eax, [ebp - 0x824]
call fcn.00411fe0
cmp dword [ebp - 0x810], esi
jb 0x4119a3
mov eax, dword [ebp - 0x824]
push eax
call fcn.0042ec00
add esp, 4
mov edx, dword [ebp - 0xa7c]
lea ecx, [ebp - 0xa78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4118b0
mov eax, dword [ebp - 0xa7c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret
Function at 0x413890
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x80a]
push edx
mov dword [ebp - 0xa60], eax
mov word [ebp - 0x80c], cx
call fcn.00438200
mov eax, dword [0x50012c]
add esp, 0xc
test eax, eax
jne 0x4138f6
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x4138ef
mov esi, eax
call fcn.004112e0
jmp 0x4138f1
xor eax, eax
mov dword [0x50012c], eax
add eax, 0x208
lea edx, [ebp - 0x80c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x413903
lea eax, [ebp - 0x80c]
add eax, 0xfffffffe
jmp 0x413920
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x413920
mov ecx, dword [str.SDK.]
mov edx, dword [0x4d6da8]
mov dword [eax], ecx
mov ecx, dword [0x4d6dac]
mov dword [eax + 4], edx
mov edx, dword [0x4d6db0]
mov dword [eax + 8], ecx
mov cx, word [0x4d6db4]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0xa5c]
mov word [eax + 0x10], cx
push edx
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413a80
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x4d69e8
lea eax, [ebp - 0xa30]
jmp 0x413990
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4139b6
test dx, dx
je 0x4139b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4139b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x413990
xor eax, eax
jmp 0x4139bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413a08
mov ecx, 0x4d69ec
lea eax, [ebp - 0xa30]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4139f6
test dx, dx
je 0x4139f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4139f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4139d0
xor eax, eax
jmp 0x4139fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413a08
test byte [ebp - 0xa5c], 0x10
jne 0x413a38
lea ecx, [ebp - 0xa5c]
push ecx
push edi
call esi
test eax, eax
jne 0x413980
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xa30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413a41
mov ecx, dword [ebp - 0xa60]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa30]
call fcn.004140e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
Function at 0x413aa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa7c
mov eax, dword [0x4fb2a0]
xor eax, esp
mov dword [esp + 0xa78], eax
push ebx
push esi
xor eax, eax
push edi
xor ebx, ebx
mov word [esp + 0x14], ax
push ebx
mov eax, 0x4d5b00
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00412450
lea ecx, [esp + 0x14]
push ecx
call fcn.00413890
test eax, eax
jne 0x413b1a
cmp dword [esp + 0x28], 8
jb 0x413b03
mov edx, dword [esp + 0x14]
push edx
call fcn.0042ec00
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.0042e217
mov esp, ebp
pop ebp
ret
push 0x7fe
lea ecx, [esp + 0x286]
xor eax, eax
push ebx
push ecx
mov byte [esp + 0x1b], 1
mov word [esp + 0x28c], ax
call fcn.00438200
mov eax, dword [0x50012c]
add esp, 0xc
cmp eax, ebx
jne 0x413b69
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x413b62
mov esi, eax
call fcn.004112e0
jmp 0x413b64
xor eax, eax
mov dword [0x50012c], eax
add eax, 0x1e78
lea edx, [esp + 0x280]
sub edx, eax
jmp 0x413b80
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x413b80
lea eax, [esp + 0x280]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x413ba0
mov edx, dword [str..]
mov ecx, dword [0x4d69e0]
mov dword [eax], edx
mov dx, word [0x4d69e4]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x413ce6
lea ebx, [ebx]
mov ecx, 0x4d69e8
lea eax, [esp + 0x5c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413c26
cmp dx, bx
je 0x413c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413c26
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x413c00
xor eax, eax
jmp 0x413c2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x413cc5
mov ecx, 0x4d69ec
lea eax, [esp + 0x5c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413c66
cmp dx, bx
je 0x413c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413c66
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x413c40
xor eax, eax
jmp 0x413c6b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x413cc5
test byte [esp + 0x30], 0x10
je 0x413cc5
cmp dword [esp + 0x28], 8
mov edi, dword [esp + 0x14]
jae 0x413c85
lea edi, [esp + 0x14]
cmp dword [0x50012c], ebx
jne 0x413cb6
push 0x24d4
call fcn.0042ec5c
add esp, 4
cmp eax, ebx
je 0x413cb0
mov esi, eax
call fcn.004112e0
mov esi, dword [esp + 0x10]
mov dword [0x50012c], eax
jmp 0x413cb6
mov dword [0x50012c], ebx
lea edx, [esp + 0x5c]
push edx
push edi
call fcn.0040fb00
test eax, eax
jg 0x413cdb
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413bf0
jmp 0x413cdf
mov byte [esp + 0xf], bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x28], 8
jb 0x413cfa
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042ec00
add esp, 4
mov ecx, dword [esp + 0xa84]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e217
mov esp, ebp
pop ebp
ret