joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412640
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x490788]
push esi
push eax
call fcn.00412d50
test eax, eax
je 0x412674
push eax
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412674
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x412680
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ecx
mov eax, dword [0x490790]
push ebx
push esi
push edi
push eax
push 1
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x41271a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41271a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0x412610
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412707
push 0
push 0
push 0x7ef
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4e20
push esi
call edi
cmp eax, 0x102
jne 0x41271a
mov ecx, ebx
call fcn.00412640
push 0x4e20
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, ebx
call fcn.00412640
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x412c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push eax
push 1
push 0
push ecx
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412c6e
xor eax, eax
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push edi
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ecx
ret 0x14

Function at 0x412d50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov byte [esp + 0x140], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 2
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412db3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x412ddf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
mov esi, dword [esp + 0x248]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x412e45
cmp eax, 4
je 0x412e45
lea ecx, [esp + 0x40]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x412e10
cmp edx, dword [esp + 0x18]
jne 0x412e56
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x144]
push eax
push edx
call fcn.00412cc0
test eax, eax
je 0x412e45
lea ecx, [esp + 0x144]
push ecx
push esi
call ebp
test eax, eax
je 0x412e5c
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x412e64
jmp 0x412ded
mov dword [esp + 0x10], edx
jmp 0x412e64
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x238
ret 4
Function at 0x412e80
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov ecx, dword [0x4907fc]
sub esp, 0x44
test ecx, ecx
je 0x412e92
call fcn.00421fb0
push esi
push edi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x3a], eax
lea ecx, [esp + 8]
mov dword [esp + 0x3e], eax
push ecx
mov dword [esp + 0x46], eax
push 0xf003f
mov dword [esp + 0x4e], eax
lea edx, [esp + 0x14]
push eax
push edx
push SysReAllocString
mov word [esp + 0x5e], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x412efa
mov eax, dword [0x490794]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0042d810
add esp, 0x44
ret

Function at 0x414110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0041c6d0
call fcn.00403a70
call fcn.00425260
lea ecx, [esi + 0x5fc]
call fcn.00428dd0
push 0x490728
lea ecx, [esp + 8]
call fcn.00460131
mov eax, dword [0x4907b8]
mov ecx, dword [0x4897ac]
mov edx, dword [0x4907d0]
push eax
mov eax, dword [0x4907d4]
push ecx
push edx
push eax
lea ecx, [esp + 0x14]
push str.HDID_sUSERID_sPID_dPVER_s
push ecx
mov dword [esp + 0x30], 0
call fcn.0045e7bf
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x4907e4]
add esp, 0x18
push str.Logout
push edx
call fcn.0041de60
push ecx
lea eax, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call fcn.0045fe38
lea ecx, [esp + 0xc]
push ecx
call fcn.0040d8e0
add esp, 8
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.004601fc
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.004600c3
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
push str.DATA
push eax
call fcn.004603cc
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call fcn.004601fc
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.004600c3
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0x83c]
mov esi, dword [esi + 0x834]
push ecx
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00411e80
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.004600c3
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004600c3
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4180b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x418260
mov eax, dword [esp + 0x24]
test eax, eax
je 0x418229
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418259
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418259
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x418259
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.0043c9d1
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x418259
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x490728
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x418229
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41823e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418245
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.0043c9d1
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00418040
test eax, eax
je 0x41824c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x41818c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x418251
mov eax, dword [esp + 0x10]
push eax
jmp 0x418251
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043c8e8
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x418270
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x4182a0
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4182af
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x4182d2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4182e1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x418304
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x418350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x4184c7
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.00418270
test eax, eax
jne 0x4183b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x418462
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x418412
mov byte [esp + 0x1a], 0
jmp 0x41841a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.00418320
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4184c7
cmp dword [esp + 0x30], 0x10
jne 0x4184c7
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x4183c9
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x4184bc
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4184c7
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x4184c7
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x418474
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x41b6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41b713
mov eax, dword [esi]
jmp 0x41b715
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x8c]
test eax, eax
jge 0x41b734
push 0x48a650
push edi
push eax
call fcn.0045a0ec
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x41b794
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41b794
mov eax, dword [esi]
test eax, eax
je 0x41b77b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41b78b
push eax
call fcn.0045fe2d
add esp, 4
push esi
call fcn.0045fe2d
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x41c340
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 4]
mov dword [esp + 4], 0xffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x418760
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x10
ret 4

Function at 0x41c810
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x46d1bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
push 0x490728
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.00460131
push 0
push 2
mov dword [esp + 0x24], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov edi, eax
call fcn.0045fe04
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41c897
mov ebp, dword [esp + 0x28]
cmp dword [esi + 8], ebp
je 0x41c88a
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41c878
jmp 0x41c897
lea eax, [esi + 0x24]
lea ecx, [esp + 0xc]
push eax
call fcn.0046024c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0045fe2d
mov esi, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0045fe38
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004600c3
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x41f440
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x46d512
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
xor ebx, ebx
push 0x10
mov dword [esp + 0x30], ebx
xor edi, edi
call fcn.0045fe04
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x41f489
mov ecx, eax
call fcn.00464032
mov esi, eax
jmp 0x41f48b
xor esi, esi
push 0x490728
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00460131
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
push ebx
push ebx
push ecx
mov ecx, esi
mov byte [esp + 0x38], 2
call dword [eax + 0x20]
test eax, eax
je 0x41f552
push 0x2000
lea ecx, [esp + 0x1c]
call fcn.004245a0
mov edi, dword [esi]
push 0x2000
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call fcn.00424600
push eax
mov ecx, esi
call dword [edi + 0x34]
cmp eax, ebx
je 0x41f538
lea ecx, [esp + 0x18]
call fcn.00424600
push eax
lea ecx, [esp + 0x10]
call fcn.0046049f
lea ecx, [esp + 0x18]
call fcn.00424640
mov edx, dword [esp + 0xc]
cmp dword [edx - 8], 0x7d000
jg 0x41f52a
mov edi, dword [esi]
push 0x2000
lea ecx, [esp + 0x1c]
call fcn.00424600
push eax
mov ecx, esi
call dword [edi + 0x34]
cmp eax, ebx
jne 0x41f4e5
jmp 0x41f538
push 0x490728
lea ecx, [esp + 0x10]
call fcn.0046024c
mov eax, dword [esi]
mov ecx, esi
mov edi, 1
call dword [eax + 0x4c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00424610
cmp esi, ebx
je 0x41f55f
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
cmp edi, 0xffffffff
jne 0x41f597
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call fcn.004600c3
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call fcn.004600c3
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
call fcn.0041f5f0
mov esi, eax
lea ecx, [esp + 0xc]
dec esi
mov byte [esp + 0x2c], bl
neg esi
sbb esi, esi
inc esi
call fcn.004600c3
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004600c3
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x41f730
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
sub esp, 0x34c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4907dc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x218]
push ecx
push str.iClick.log
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f8c1
mov al, byte [esp + 0x218]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test al, 0x10
jne 0x41f817
lea edx, [esp + 0x118]
push 0
push edx
lea eax, [esp + 0x250]
push 0x104
push eax
call ebp
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41f7ef
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push edx
call fcn.00448080
add esp, 8
test eax, eax
jge 0x41f817
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41f8b9
test byte [esp + 0x21c], 0x10
jne 0x41f8a2
lea edx, [esp + 0x118]
push 0
push edx
lea eax, [esp + 0x250]
push 0x104
push eax
call ebp
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41f87a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push edx
call fcn.00448080
add esp, 8
test eax, eax
jge 0x41f8a2
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f82e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, dword [0x490960]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00448080
add esp, 8
test eax, eax
jne 0x41f8df
push 0x490728
jmp 0x41f8e4
lea ecx, [esp + 0x10]
push ecx
mov esi, dword [esp + 0x360]
mov ecx, esi
call fcn.00460131
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x34c
ret 4
Function at 0x421dc0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00421df0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x421ae0
push 0
push 0
call fcn.0043c785
add esp, 0x18
pop esi
pop ecx
ret
Function at 0x425230
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x425190
push 0
push 0
call fcn.0043c785
add esp, 0x1c
ret

Function at 0x426260
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x426230
push 0
push 0
call fcn.0043c785
add esp, 0x1c
ret

Function at 0x426410
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4264f0
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [esp + 4]
push edi
push ecx
push 0
push 0
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x42645e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push edx
push eax
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [esp + 8]
push eax
push 0x19
push 0
call esi
test eax, eax
jl 0x426488
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [esp + 8]
push eax
push 0xb
push 0
call esi
test eax, eax
jl 0x4264b2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [esp + 8]
push eax
push 0x17
push 0
call esi
test eax, eax
jl 0x4264dc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10
xor eax, eax
add esp, 8
ret 0x10
Function at 0x4271c0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x4284c0
push 0
push 0
call fcn.0043c785
add esp, 0x1c
ret