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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f92a0]
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.00438230
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 0x410b29
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.00403260
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e257
mov esp, ebp
pop ebp
ret

Function at 0x410b50
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 0x410be9
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 0x4d39dc
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.0040bda0
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 0x410cc0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4f92a0]
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.00438230
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410d1e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
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 0x410d66
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x410d40
lea eax, [ebp - 0x414]
push eax
push 0x4d3b9c
call fcn.0043054e
add esp, 8
test eax, eax
je 0x410d82
lea ecx, [ebp - 0x438]
push ecx
push edi
call esi
test eax, eax
jne 0x410d40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 0x4d3880
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
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 0x410de1
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.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x410e00
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f92a0]
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.00438230
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 0x410e70
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 0x410e91
push str.7z.dll
push 0x104
push esi
call fcn.0043095a
push str.Client7z.dll
push 0x104
push edi
call fcn.0043095a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
push esi
call ebx
test eax, eax
je 0x410ed7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x89
call fcn.0040ffa0
push edi
call ebx
test eax, eax
je 0x410ef0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x8a
call fcn.0040ffa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x410f10
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4f92a0]
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 0x411059
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.00438230
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00438230
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 0x41104b
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
lea esi, [ebp - 0x418]
call fcn.00403260
mov ecx, dword [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov eax, esi
push eax
call fcn.0040a210
mov esi, dword [ebp - 0x418]
push 3
push esi
push ebx
call edi
test eax, eax
je 0x41100f
push 3
lea ecx, [ebp - 0x20c]
push ecx
push esi
call edi
test eax, eax
jne 0x41101d
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 0x411058
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.0042e257
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.0042e257
mov esp, ebp
pop ebp
ret 4
Function at 0x411070
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 [0x4f92a0]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [0x4fa44c]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
push edi
mov ecx, 0x4fa44c
call edx
add eax, 0x10
push esi
push str._s.
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00403d60
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 0x4111df
mov ecx, 0x4d475c
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411108
test dx, dx
je 0x411104
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411108
add eax, 4
add ecx, 4
test dx, dx
jne 0x4110e2
xor eax, eax
jmp 0x41110d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4111c0
mov ecx, 0x4d4760
lea eax, [esp + 0x4c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411146
test dx, dx
je 0x411142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411146
add eax, 4
add ecx, 4
test dx, dx
jne 0x411120
xor eax, eax
jmp 0x41114b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4111c0
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
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.00403d60
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test byte [esp + 0x20], 0x10
push ebx
je 0x411194
mov ecx, dword [esp + 0x1c]
call fcn.00411070
jmp 0x4111a4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4111a4
push esi
call fcn.00410f10
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4111c0
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 0x4110d9
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 0x411206
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.0042e257
mov esp, ebp
pop ebp
ret 4
Function at 0x4113a0
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 [0x4f92a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
call fcn.0040c840
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x4113d6
xor ebx, ebx
jmp 0x4113e9
push 0xf01ff
push str.PcaSvc
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.0040fcc0
push esi
push edi
call fcn.00410210
mov ecx, edi
call fcn.004103f0
lea eax, [edi + 0x820]
lea esi, [ebp - 0x22c]
call fcn.00403260
mov esi, dword [ebp - 0x22c]
cmp dword [esi - 0xc], 0
jne 0x411476
push 0x4d3b50
lea eax, [edi + 0x820]
push 0x104
push eax
call fcn.004316c9
add esp, 0xc
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411492
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.00410bf0
mov ecx, edi
call fcn.00410e00
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00438230
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 0x411530
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 0x411540
mov ecx, dword [0x4d39dc]
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 0x411560
mov edx, dword [0x4d3b50]
mov dword [eax], edx
mov ecx, dword [0x4d3b54]
mov dword [eax + 4], ecx
mov edx, dword [0x4d3b58]
mov dword [eax + 8], edx
mov ecx, dword [0x4d3b5c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dx, word [0x4d3b60]
xor ecx, ebp
mov word [eax + 0x10], dx
call fcn.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x4115b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f92a0]
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 0x411663
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41165c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x411610
lea ecx, [ebp - 0x20c]
push ecx
push 0x4d3b9c
call fcn.0043054e
add esp, 8
test eax, eax
jne 0x411648
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 0x411610
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.0042e257
mov esp, ebp
pop ebp
ret

Function at 0x411680
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4f92a0]
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 0x4116c3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
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 0x411702
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call fcn.0043054e
add esp, 8
test eax, eax
je 0x4116fd
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4116d5
jmp 0x411702
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.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x411720
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x4f92a0]
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.00438230
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 0x411761
lea eax, [ebp - 0x808]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x411780
mov edx, dword [str..]
mov ecx, dword [0x4d4754]
mov dword [eax], edx
mov dx, word [0x4d4758]
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 0x4117e6
push 0x4d4a60
call fcn.00430e67
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e257
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x4117f0
mov ecx, 0x4d475c
lea eax, [ebp - 0xa4c]
jmp 0x411800
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411826
test dx, dx
je 0x411822
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411826
add eax, 4
add ecx, 4
test dx, dx
jne 0x411800
xor eax, eax
jmp 0x41182b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4118e3
mov ecx, 0x4d4760
lea eax, [ebp - 0xa4c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411866
test dx, dx
je 0x411862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411866
add eax, 4
add ecx, 4
test dx, dx
jne 0x411840
xor eax, eax
jmp 0x41186b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4118e3
test byte [ebp - 0xa78], 0x10
je 0x4118e3
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 0x4118a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa4c]
lea ecx, [ebp - 0x824]
call fcn.00412390
lea eax, [ebp - 0x824]
call fcn.00411f20
cmp dword [ebp - 0x810], esi
jb 0x4118e3
mov eax, dword [ebp - 0x824]
push eax
call fcn.0042ec40
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 0x4117f0
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.0042e257
mov esp, ebp
pop ebp
ret
Function at 0x4137e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x4f92a0]
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.00438230
mov eax, dword [0x4fd894]
add esp, 0xc
test eax, eax
jne 0x413846
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x41383f
mov esi, eax
call fcn.00411220
jmp 0x413841
xor eax, eax
mov dword [0x4fd894], 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 0x413853
lea eax, [ebp - 0x80c]
add eax, 0xfffffffe
jmp 0x413870
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x413870
mov ecx, dword [str.SDK.]
mov edx, dword [0x4d4b14]
mov dword [eax], ecx
mov ecx, dword [0x4d4b18]
mov dword [eax + 4], edx
mov edx, dword [0x4d4b1c]
mov dword [eax + 8], ecx
mov cx, word [0x4d4b20]
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 0x4139d0
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x4d475c
lea eax, [ebp - 0xa30]
jmp 0x4138e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413906
test dx, dx
je 0x413902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413906
add eax, 4
add ecx, 4
test dx, dx
jne 0x4138e0
xor eax, eax
jmp 0x41390b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413958
mov ecx, 0x4d4760
lea eax, [ebp - 0xa30]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413946
test dx, dx
je 0x413942
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413946
add eax, 4
add ecx, 4
test dx, dx
jne 0x413920
xor eax, eax
jmp 0x41394b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413958
test byte [ebp - 0xa5c], 0x10
jne 0x413988
lea ecx, [ebp - 0xa5c]
push ecx
push edi
call esi
test eax, eax
jne 0x4138d0
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.0042e257
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 0x413991
mov ecx, dword [ebp - 0xa60]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa30]
call fcn.00414030
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.0042e257
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
Function at 0x4139f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa7c
mov eax, dword [0x4f92a0]
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, 0x4d3880
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00412390
lea ecx, [esp + 0x14]
push ecx
call fcn.004137e0
test eax, eax
jne 0x413a6a
cmp dword [esp + 0x28], 8
jb 0x413a53
mov edx, dword [esp + 0x14]
push edx
call fcn.0042ec40
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.0042e257
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.00438230
mov eax, dword [0x4fd894]
add esp, 0xc
cmp eax, ebx
jne 0x413ab9
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x413ab2
mov esi, eax
call fcn.00411220
jmp 0x413ab4
xor eax, eax
mov dword [0x4fd894], eax
add eax, 0x1e78
lea edx, [esp + 0x280]
sub edx, eax
jmp 0x413ad0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x413ad0
lea eax, [esp + 0x280]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x413af0
mov edx, dword [str..]
mov ecx, dword [0x4d4754]
mov dword [eax], edx
mov dx, word [0x4d4758]
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 0x413c36
lea ebx, [ebx]
mov ecx, 0x4d475c
lea eax, [esp + 0x5c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413b76
cmp dx, bx
je 0x413b72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413b76
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x413b50
xor eax, eax
jmp 0x413b7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x413c15
mov ecx, 0x4d4760
lea eax, [esp + 0x5c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413bb6
cmp dx, bx
je 0x413bb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413bb6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x413b90
xor eax, eax
jmp 0x413bbb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x413c15
test byte [esp + 0x30], 0x10
je 0x413c15
cmp dword [esp + 0x28], 8
mov edi, dword [esp + 0x14]
jae 0x413bd5
lea edi, [esp + 0x14]
cmp dword [0x4fd894], ebx
jne 0x413c06
push 0x24d0
call fcn.0042ec9c
add esp, 4
cmp eax, ebx
je 0x413c00
mov esi, eax
call fcn.00411220
mov esi, dword [esp + 0x10]
mov dword [0x4fd894], eax
jmp 0x413c06
mov dword [0x4fd894], ebx
lea edx, [esp + 0x5c]
push edx
push edi
call fcn.0040fa40
test eax, eax
jg 0x413c2b
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413b40
jmp 0x413c2f
mov byte [esp + 0xf], bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x28], 8
jb 0x413c4a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042ec40
add esp, 4
mov ecx, dword [esp + 0xa84]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret