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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40ada0]
cmp eax, 0xffffffff
jne 0x426fd3
push esi
push 1
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
and dword [0x40ada0], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push 0x40b0c4
push 0x40b09c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x426fcd
push 3
lea eax, [ebp - 0x10c]
push 0x40b0cc
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jle 0x426fcd
mov dword [0x40ada0], esi
mov eax, dword [0x40ada0]
pop esi
leave
ret

Function at 0x427345
Capabilities:
Create process on windows
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x930
and byte [ebp - 0x130], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x40b0f4
push 0x40b0f0
mov edi, SysReAllocString
push ebx
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x104
call esi
test eax, eax
je 0x4273c8
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x45f128
push ebx
push edi
mov dword [ebp - 8], 0x104
call esi
lea edi, [ebp - 0x130]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42741a
lea eax, [ebp - 0x930]
push 0x800
push eax
push dword [ebp + 8]
call fcn.00424a26
add esp, 0xc
lea eax, [ebp - 0x930]
push 0xa
push 0
push eax
lea eax, [ebp - 0x130]
push eax
push 0x40a890
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4274bb
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], edi
je 0x4274c0
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x4274c0
lea eax, [ebp - 4]
push eax
push 0x4036f8
push 0x15
push edi
push 0x4036c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4274c0
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4274bb
lea edx, [ebp + 8]
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [ebp + 8], edi
je 0x427485
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x2c]
mov word [ebp - 0x1c], di
mov word [ebp - 0x2c], 8
mov dword [ebp - 0x24], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
jmp 0x4274c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427936
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x42794d
push 1
pop eax
pop ecx
ret
call fcn.004278c3
test eax, eax
jne 0x427948
push eax
push 0x40b1c0
call sub.SensApi.dll_IsDestinationReachableA
pop ecx
ret

Function at 0x427b4f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
push 0x40a0d0
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x108]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x108]
push 0
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x427bc3
push 1
pop eax
jmp 0x427bc8
and byte [edi], 0
xor eax, eax
pop edi
leave
ret

Function at 0x427bcb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and byte [ebp - 0x10c], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x210], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x103
push 0x40b1d8
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
jne 0x427c6a
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.00427b4f
add esp, 0xc
leave
ret
mov eax, dword [ebp + 0xc]
and byte [eax], 0
xor eax, eax
leave
ret

Function at 0x427d43
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push edi
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
mov esi, 0xfa000
push dword [ebp + 8]
mov edi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x427d77
push 1
pop eax
jmp 0x427db6
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
jae 0x427d81
mov edi, ebx
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427da3
cmp edi, ebx
je 0x427da8
sub ebx, esi
add dword [ebp + 0xc], edi
jmp 0x427d7b
push 1
pop esi
jmp 0x427daa
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x42924c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
push dword [esi + 4]
lea eax, [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esi + 4]
add esp, 0xc
lea ebx, [esi + 0x34]
mov dword [ebp + 8], eax
xor edi, edi
push 0
push dword [ebp + 8]
push ebx
call fcn.0041c95f
sub eax, dword [ebp + 8]
add dword [ebp + 8], eax
add edi, eax
add ebx, eax
cmp edi, 5
jl 0x429274
mov eax, dword [esi + 4]
mov dword [esi + 0x30], edi
sub edi, ebx
xor ecx, ecx
push 5
mov byte [ebp - 8], 0xe9
lea eax, [edi + eax - 5]
mov cl, ah
mov byte [ebp - 7], al
mov byte [ebp - 6], cl
xor ecx, ecx
shr eax, 0x10
mov byte [ebp - 5], al
mov cl, ah
lea eax, [ebp - 8]
mov byte [ebp - 4], cl
push eax
push ebx
call fcn.00438fc0
lea eax, [esi + 0x18]
push 5
push eax
push dword [esi + 4]
call fcn.00438fc0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430195
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
lea eax, [ebp - 0x2c]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x2c], 0x2c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
mov dword [esi + 0x24], eax
push dword [esi + 4]
call edi
push 0
push dword [esi + 4]
call edi
pop edi
pop esi
leave
ret
Function at 0x431891
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45e45c
call fcn.0045cfc0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00432327
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 4], edi
call fcn.00432327
mov ecx, dword [ebp - 0xc]
or dword [esi + 0x3c], 0xffffffff
mov dword [esi + 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi], 0x402c3c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x43189c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45e45c
call fcn.0045cfc0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00432327
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [ebp - 4], edi
call fcn.00432327
mov ecx, dword [ebp - 0xc]
or dword [esi + 0x3c], 0xffffffff
mov dword [esi + 4], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi], 0x402c3c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x432024
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 4], 0x104
mov esi, ecx
jne 0x4320f0
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4320f0
push 0x14
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
push eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [esi + 0x2c]
push eax
push 0x410
push dword [esi + 0x30]
call edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x50
push ecx
push eax
push 0x41d
mov dword [ebp - 0x4c], 0x101
push dword [esi + 0x30]
call edi
test byte [ebp - 0x48], 8
jne 0x4320f0
mov al, byte [ebx + 8]
and byte [ebp + 0xa], 0
xor ebx, ebx
mov byte [ebp + 8], 0x26
cmp dword [esi + 0x28], ebx
mov byte [ebp + 9], al
jle 0x4320f0
and byte [ebp - 0x154], 0
lea eax, [ebp - 0x154]
push eax
push ebx
push 0x42d
push dword [esi + 0xc]
call edi
lea eax, [ebp - 0x154]
push eax
call fcn.00427635
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x4320f9
inc ebx
cmp ebx, dword [esi + 0x28]
jl 0x4320ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
mov ecx, esi
call fcn.00432106
push 1
pop eax
jmp 0x4320f2
Function at 0x432106
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push dword [esi + 4]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov ebx, 0x496d18
push 6
push edi
mov ecx, ebx
mov dword [esp + 0x34], edi
call fcn.0045248d
push 1
push 6
push edi
mov ecx, ebx
call fcn.00452b69
push edi
mov ecx, ebx
call fcn.00451543
cmp dword [esi + 0x20], 0xffffffff
je 0x4322a7
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4322a7
push ebp
push 0xffffffffffffffff
push 0x448
push dword [esi + 0xc]
call edi
push 1
push dword [esi + 0x20]
push 0x403
push dword [esi + 0xc]
call edi
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0x433
mov dword [esi + 0x44], eax
push dword [esi + 0xc]
call edi
lea eax, [esp + 0x18]
push 2
push eax
push ebp
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [esi + 0x20]
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, ebp
mov dword [esi + 0x1c], eax
je 0x4322a7
mov dword [0x46155c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebp
push 0x431eef
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x461558], eax
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esi + 0x20]
mov ecx, ebx
push dword [esi + 0xc]
push 0x3ec
call fcn.0045107a
mov eax, dword [esi + 0x1c]
mov dword [0x532df4], eax
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetFocus]
push ebp
push dword [esi + 0x30]
push ebp
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0x4180
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, ebp
je 0x43224e
or dword [esi + 0x20], 0xffffffff
push ebp
push eax
push 0x111
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x432261
push 0x1b
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x432261
or dword [esi + 0x20], 0xffffffff
push dword [0x461558]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x461558], ebp
mov dword [0x46155c], ebp
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43229d
push ebp
push dword [esi + 0x44]
push 0x403
push dword [esi + 0xc]
call edi
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x20], 0xffffffff
jne 0x43215b
mov dword [esi + 0x1c], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x432373
Capabilities:
Check os version

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
cmp al, 5
call esi
push 4
mov dword [0x4615b8], eax
call esi
push 4
mov dword [0x4615d4], eax
call esi
push 7
mov dword [0x4615d0], eax
call esi
push 0xe
mov dword [0x4615cc], eax
call esi
push 0x11
mov dword [0x4615c8], eax
call esi
push 0x10
mov dword [0x4615c4], eax
call esi
push 0x10
mov dword [0x4615c0], eax
call esi
push 4
mov dword [0x4615bc], eax
call esi
push 1
mov dword [0x4615b4], eax
pop eax
mov dword [0x46158c], 0xa
push 0x10
mov dword [0x4615b0], eax
pop ecx
mov dword [0x461598], eax
push ecx
mov dword [0x4615a8], ecx
pop edx
mov dword [0x461578], eax
push 3
mov dword [0x4615ac], edx
pop edx
push 2
mov dword [0x46159c], edx
pop ecx
mov dword [0x461588], edx
mov dword [0x4615a0], ecx
mov dword [0x461590], ecx
xor ecx, ecx
pop esi
mov dword [0x461580], ecx
mov dword [0x46157c], ecx
mov dword [0x46156c], ecx
ret
Function at 0x4339ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x433aa0
mov eax, dword [ebp + 8]
push esi
push 0x40a240
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [eax], esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
mov dword [ebp + 0xc], edi
je 0x433a9c
push ebx
push 2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebx
push dword [ebp + 0xc]
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
rep stosb byte es:[edi], al
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x30
cmp eax, ebx
jne 0x433a89
push ebx
push esi
push dword [ebp + 8]
call fcn.00433912
add esp, 0xc
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.MSVCRT.dll_free]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
pop ebx
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret

Function at 0x433aa3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x433afd
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x433afd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x433af6
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push dword [ebp + 8]
call fcn.00433912
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x434df0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45e5fc
call fcn.0045cfc0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], fcn.00434e68
mov dword [esi + 4], 0x402e40
mov dword [esi + 8], 0x402e2c
mov dword [esi + 0xc], 0x402e1c
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 3
call fcn.00411a66
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00411a66
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.00411a66
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.00411a66
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x2c]
call fcn.00411a66
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x434f98
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x45e610
call fcn.0045cfc0
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
push edi
push 0x40b904
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00423536
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push 0x103
push eax
push 0x45f128
push 0x40b8f0
push 0x40b8e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
push 1
pop ecx
cmp eax, ecx
jne 0x435018
mov dword [esi + 0x4c], ecx
jmp 0x43501b
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x3c]
lea ecx, [ebp - 0x14]
push SysReAllocString
push ecx
push eax
push 0x40ade4
mov dword [ebp - 0x14], ebx
call fcn.00424471
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
setne al
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x40], eax
call fcn.00411a66
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4355bb
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x45e674
call fcn.0045cfc0
sub esp, 0x55c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
lea eax, [ebp - 0x568]
push 0x103
push eax
mov dword [ebp - 0x18], ecx
push dword [0x532da0]
call fcn.00425ffa
add esp, 0x10
lea eax, [ebp - 0x568]
push 0x40ab70
push eax
push 0x40b940
lea eax, [ebp - 0x360]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x25c]
mov byte [ebp - 0x25d], bl
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x435643
xor eax, eax
jmp 0x43576c
mov esi, 0x40ab6c
lea eax, [ebp - 0x230]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x435670
cmp cl, bl
je 0x43566c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x435670
inc eax
inc eax
inc esi
inc esi
cmp cl, bl
jne 0x43564e
xor eax, eax
jmp 0x435675
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43573c
mov esi, 0x40ab68
lea eax, [ebp - 0x230]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4356aa
cmp cl, bl
je 0x4356a6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4356aa
inc eax
inc eax
inc esi
inc esi
cmp cl, bl
jne 0x435688
xor eax, eax
jmp 0x4356af
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43573c
test byte [ebp - 0x25c], 0x10
je 0x43573c
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x568]
push eax
push 0x40b928
lea eax, [ebp - 0x11c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x463]
mov byte [ebp - 0x464], bl
push 0x40
mov byte [ebp - 0x19], bl
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x464]
push 0x103
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004260d1
pop ecx
cmp eax, ebx
pop ecx
je 0x43573c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x11c]
push eax
call fcn.004359d8
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x435643
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.004360d1
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x436486
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45e6e0
call fcn.0045cfc0
sub esp, 0x120
and byte [ebp - 0x12c], 0
push esi
push edi
mov dword [ebp - 0x18], ecx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x103
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x12c]
mov ecx, 0x46179c
push eax
call fcn.00414267
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x12c]
mov ecx, 0x461794
push eax
call fcn.00414267
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp dword [ebp - 0x10], 0
pop edi
pop esi
je 0x43654a
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00414161
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x14]
mov ecx, 0x461624
call fcn.00414267
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00411a66
mov ecx, dword [ebp - 0x18]
call fcn.004355bb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x436927
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x10], 0x50
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x43697b
push dword [ebp - 0xa]
call dword [sym.imp.SHELL32.dll_SHFreeNameMappings]
mov eax, esi
pop edi
pop esi
leave
ret