joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4126aa
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.00444f6c
lea ecx, [ebp - 4]
call fcn.00444f6c
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x41278c
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4dd0f0
mov ecx, esi
call fcn.004567e7
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.004567e7
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x412743
lea ecx, [ebp + 8]
call fcn.0040fa1e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x41277f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.0043fa7d
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.0043fa7d
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x41278f
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0043e825
lea ecx, [ebp - 8]
call fcn.0043e825
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x412cc9
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x412cda
call fcn.00412c6e
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x412cee
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x412cfa
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x412cf2
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x412e8b
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4dcf98], 0
jne 0x412eae
push 0
push dword [0x4dcfa8]
push 0x412d8a
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4dcf98], eax
ret

Function at 0x41301f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x41303a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x413089
cmp dword [ebp - 0x224], esi
je 0x41308f
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413074
jmp 0x413095
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x41303a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x413337
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x41335b
cmp dword [ebp + 0xc], 2
jne 0x41338a
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x41335e
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x41336e
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x4dd0f0
call fcn.00444692
pop esi
pop edi
pop ebp
ret

Function at 0x41338d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xc11
lea ecx, [ebp - 4]
call fcn.00444f8a
push 0x822
push 0
push dword [ebp - 4]
call fcn.004ae820
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x410]
and word [esi], 0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 2]
je 0x4133d4
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x104
push esi
push edi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [esi], 0
je 0x413400
push esi
push ebx
mov ecx, 0x4dd0f0
call fcn.00444692
jmp 0x413433
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
call fcn.0043fa19
add esp, 0x18
test eax, eax
jne 0x413433
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.00413337
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.0043e825
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413440
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4dd0fb], 1
call fcn.00444f8a
push 0x822
push 0
push dword [ebp - 4]
call fcn.004ae820
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x4dd0f0
push esi
call fcn.00447664
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.00447664
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.00447664
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4c44aa
call esi
push edi
mov ebx, 0x4dd0f0
push str.MyName
mov ecx, ebx
call fcn.00444692
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x413507
lea edi, [eax + 2]
push edi
push 0x4c4496
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.00444692
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.0041338d
push edi
push edi
push str.Favorites
call fcn.0041338d
push edi
push edi
push str.Programs
call fcn.0041338d
push edi
push edi
push str.SendTo
call fcn.0041338d
push edi
push edi
push str.Personal
call fcn.0041338d
push edi
push str.Start_Menu
push 0x4c3a50
call fcn.0041338d
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.0041338d
push edi
push edi
push str.Startup
call fcn.0041338d
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.0041338d
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.0043e825
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4135f2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.004aec00
push esi
mov esi, 0x4db2d8
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x413618
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4dd0f0
call fcn.00444692
add esi, 4
cmp esi, 0x4db2ec
jl 0x413605
pop esi
leave
ret
Function at 0x4140f7
Capabilities:
Check if file exists
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4141f7
cmp dword [ebp + 8], 0xffffffff
jne 0x4141f7
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
cmp eax, 2
jne 0x414131
xor eax, eax
cmp word [ebx + 2], 0x3a
sete al
jmp 0x414152
push ebx
call esi
cmp eax, 3
jne 0x414150
lea eax, [ebx + 2]
push 0x4c4a28
push eax
call fcn.004aec3d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x414152
xor eax, eax
cmp eax, edi
je 0x4141ac
mov ax, word [ebx]
mov esi, str.._:
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
mov ebx, 0x20000000
push ebx
push 3
push 0
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
mov word [ebp - 0x10], ax
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x414237
push 0
push ebx
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x18]
push eax
call edi
xor edi, edi
jmp 0x41421a
push 0xc0000000
push ebx
call dword [0x4dd07c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414239
push 0x80000000
push ebx
call dword [0x4dd07c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414239
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x4141ef
sub eax, 0x56
je 0x4141ef
sub eax, 0x3a
je 0x4141ef
sub eax, 0x7a
je 0x4141ef
sub eax, 0x101b
push 9
pop eax
jmp 0x4142c7
push 0xc0000000
push dword [ebp + 8]
call dword [0x4dd078]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414239
push 0x80000000
push dword [ebp + 8]
call dword [0x4dd078]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414239
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x4142c7
xor edi, edi
push esi
call fcn.00413b33
test eax, eax
pop ecx
jne 0x414252
push 5
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4142c7
test byte [ebp + 0x10], 3
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
je 0x414293
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90018
push esi
call ebx
test eax, eax
jne 0x41427e
push 2
jmp 0x414246
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call ebx
test eax, eax
je 0x41427a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 8
push eax
push 0x83722014
push esi
call ebx
cmp dword [ebp - 8], edi
je 0x4142be
push 3
jmp 0x414246
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4142cc
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x414330
push 0xc0000000
push dword [ebp + 8]
call dword [0x4dd078]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41440f
push 0x80000000
push dword [ebp + 8]
call dword [0x4dd078]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41440f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x4144af
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x41434a
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x41436b
push esi
call edi
cmp eax, 3
jne 0x414369
lea eax, [esi + 2]
push 0x4c4a28
push eax
call fcn.004aec3d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x41436b
xor eax, eax
cmp eax, ebx
je 0x4143c4
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, str.._:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000000
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
mov word [ebp - 0x1c], ax
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41440f
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x41430f
push 0xc0000000
push esi
call dword [0x4dd07c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41440f
push 0x80000000
push esi
call dword [0x4dd07c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41440f
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x414407
sub eax, 0x56
je 0x414407
sub eax, 0x3a
je 0x414407
sub eax, 0x7a
je 0x414407
sub eax, 0x101b
push 9
pop eax
jmp 0x4144af
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x34], 1
call esi
test eax, eax
jne 0x414446
push 3
pop ebx
jmp 0x4144a6
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x414478
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
jne 0x41447c
push 2
jmp 0x414443
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004ae880
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414c55
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x414c72
and byte [0x4ddda4], 0xfb
push 0
push 4
push str.SeDebugPrivilege
call fcn.004136a0
add esp, 0xc
ret

Function at 0x414ebb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4ddd50
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403ef8
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x414f13
push dword [ebp + 8]
and word [esi], 0
call fcn.004ade73
test eax, eax
pop ecx
jne 0x414f08
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x414eed
cmp byte [ebp - 4], al
je 0x414f29
push dword [ebp - 8]
call fcn.00403f09
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x415094
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 6]
mov eax, dword [eax + 0x54]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0041457b
mov eax, dword [esi + 0x14]
xor ebx, ebx
add esp, 0xc
cmp word [eax + 6], bx
mov dword [ebp - 4], ebx
jbe 0x415137
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x415125
mov edx, dword [eax + 0x10]
test edx, edx
je 0x415125
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 0xc]
push edx
add edi, ecx
push eax
push edi
call fcn.0041457b
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, ebx
push 0x4c4b40
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x415122
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x18]
sub edi, eax
lea ecx, [ecx + ebx + 0xc]
lea edx, [edi + eax]
add dword [ecx], edx
mov ecx, dword [esi + 0x18]
lea ecx, [ecx + ebx + 0x14]
add edi, eax
add dword [ecx], edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jl 0x4150cb
mov dword [esi + 0x10], edi
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [esi + 0x14], eax
add eax, 0xf8
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
leave
ret 8

Function at 0x415401
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004ae820
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x415436
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x4155b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
push edi
mov dword [ebp - 0xc], 0x20
je 0x4155cd
mov dword [ebp - 8], esi
jmp 0x4155d5
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 0x10]
mov ax, word [esi + 2]
push dword [ebp + 0xc]
mov word [ebp - 4], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x415600
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x415602
xor edi, edi
test ebx, ebx
je 0x415612
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x415614
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x415630
test eax, eax
je 0x415711
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x415711
test edi, edi
jle 0x415711
test byte [esi], 0x40
jne 0x4156a0
push 0
push edi
push ebx
call fcn.00441c6a
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x4156a0
test byte [esi], 0x20
je 0x41566a
test al, 2
je 0x41566a
xor eax, eax
jmp 0x41571a
push 0
lea ecx, [ebp - 0x18]
call fcn.0044e7eb
movzx eax, word [ebp - 4]
mov esi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.004491ae
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0043e825
jmp 0x4156dd
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0040f973
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004145c5
add esp, 0xc
cmp word [ebp - 4], 0
je 0x4156dd
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.00412cc9
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.004ae820
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.004ae820
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x415713
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41571f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00405c00
cmp dword [ebp - 8], ebx
jne 0x415750
push 0xfffffffffffffffe
pop esi
jmp 0x415810
push edi
push dword [ebp - 8]
call fcn.0049be72
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0043fb25
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00444e3a
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
push 6
add eax, edi
push ebx
push eax
call fcn.004ae820
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.00441c6a
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x4157f9
push dword [0x4dd09c]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040f9c1
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004491ae
mov eax, dword [esi + 4]
add esp, 0xc
add eax, 0xc
push eax
mov ecx, esi
call fcn.00444e3a
lea ecx, [ebp - 0x1c]
call fcn.0043e825
push 1
push esi
call fcn.0049e4d8
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x41580d
or esi, 0xffffffff
jmp 0x415810
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402cc5
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416f6e
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4ddd50
push esi
mov ebp, ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add dword [0x4dd4a4], 1
push esi
call ebx
push 0x4dcc24
mov eax, 0x10000
push eax
push ebp
push 0x416f0b
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x416fb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416fc6
push esi
call edi
sub dword [0x4dd4a4], 1
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4176bb
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xfffffffe
and edi, 1
cmp word [ebx], 0
mov dword [ebp - 0x14], edi
je 0x417892
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4176f0
mov edi, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call esi
add eax, edi
mov edi, dword [ebp - 0x10]
push edi
lea ebx, [ebx + eax*2]
call esi
and dword [ebp - 8], 0
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x41771c
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x41772e
push edi
call fcn.004ade73
test eax, eax
pop ecx
je 0x41772e
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.0044e827
cmp dword [ebp - 8], 0
je 0x41774a
push 0x4c51d4
lea ecx, [ebp + 8]
call fcn.00444fd8
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004adf6b
push dword [ebp + 8]
call fcn.00410282
add esp, 0x10
push dword [ebp + 8]
call esi
inc eax
lea edi, [eax + eax]
mov eax, dword [ebp + 8]
mov word [edi + eax - 2], 0x5c
mov eax, dword [ebp + 8]
and word [edi + eax], 0
cmp dword [ebp - 0xc], 0
je 0x417835
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.00444fd8
test byte [ebp - 0x264], 0x10
jne 0x4177e0
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x4177d4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41781c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4177cf
inc eax
mov dword [ebp - 4], eax
jmp 0x41781c
call fcn.00411de1
test eax, eax
pop ecx
je 0x41781c
jmp 0x4177cf
cmp word [ebp - 0x238], 0x2e
jne 0x417808
cmp word [ebp - 0x236], 0
je 0x41781c
cmp word [ebp - 0x236], 0x2e
jne 0x417808
cmp word [ebp - 0x234], 0
je 0x41781c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004176bb
test eax, eax
pop ecx
pop ecx
jne 0x41781c
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405c76
test eax, eax
jne 0x417791
jmp 0x417843
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417840
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402cfa
xor edi, edi
cmp dword [ebp - 8], edi
je 0x417880
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x417873
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x417880
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x41787d
xor eax, eax
inc eax
jmp 0x41787d
call fcn.00411de1
cmp eax, edi
pop ecx
je 0x417880
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0043e825
cmp word [ebx], di
jne 0x4176ed
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret