joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c600
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
cmp dword [esi + 0x14], 8
jb 0x49c61d
mov eax, dword [esi]
jmp 0x49c61f
mov eax, esi
test eax, eax
je 0x49c743
cmp word [eax], 0
je 0x49c743
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49c743
test al, 0x10
jne 0x49c743
cmp dword [esi + 0x14], 8
jb 0x49c651
mov esi, dword [esi]
push 0x4be7a4
push esi
call fcn.0044e1ce
mov esi, eax
add esp, 8
test esi, esi
je 0x49c743
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00450624
push 2
push 0
push esi
call fcn.0044fdb1
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00450624
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004506ab
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x49c73a
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.0044e8b7
add esp, 0x10
test eax, eax
je 0x49c73a
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x49c73a
cmp dword [esp + 0x20], 0x48535844
jne 0x49c73a
cmp dword [esp + 0x24], 0x28
jne 0x49c73a
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.0044daa4
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
push edi
xor edi, edi
cmp dword [0x2b1a6d4], 0x594
mov dword [ebp - 8], eax
jne 0x4010b2
push edi
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x441c58]
mov dword [ebp - 0x20], eax
mov eax, dword [0x441c5c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.00401077
mov eax, dword [0x441c60]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x441c64]
add esi, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2b1a6d4], 0xc
mov dword [ebp - 4], eax
jne 0x40112d
push edi
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2b1a6d4]
cmp eax, 0xfa9
jne 0x401149
mov dword [0x2b1a6d0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401164
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x2b1a084], edi
mov ecx, dword [ebp - 0xc]
mov edx, ebx
lea eax, [esi + ebx]
shr edx, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [0x2b1a6cc], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub ebx, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010ed
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x404598
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4418ac]
jne 0x4045a2
repz ret
jmp fcn.00406eac

Function at 0x406c6f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401d7c
and dword [ebp - 4], 0
cmp dword [0x445f90], 0
mov ebx, eax
jne 0x406d20
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406dd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406dd1
push eax
call fcn.00401d0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x445f90], eax
call esi
push eax
call fcn.00401d0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x445f94], eax
call esi
push eax
call fcn.00401d0a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x445f98], eax
call esi
push eax
call fcn.00401d0a
pop ecx
mov dword [0x445fa0], eax
test eax, eax
je 0x406d20
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401d0a
pop ecx
mov dword [0x445f9c], eax
mov eax, dword [0x445f9c]
cmp eax, ebx
je 0x406d78
cmp dword [0x445fa0], ebx
je 0x406d78
push eax
call fcn.00401d85
push dword [0x445fa0]
mov esi, eax
call fcn.00401d85
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406d78
test edi, edi
je 0x406d78
call esi
test eax, eax
je 0x406d6f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406d6f
test byte [ebp - 0xc], 1
jne 0x406d78
or dword [ebp + 0x10], 0x200000
jmp 0x406db1
mov eax, dword [0x445f94]
cmp eax, ebx
je 0x406db1
push eax
call fcn.00401d85
pop ecx
test eax, eax
je 0x406db1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406db1
mov eax, dword [0x445f98]
cmp eax, ebx
je 0x406db1
push eax
call fcn.00401d85
pop ecx
test eax, eax
je 0x406db1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445f90]
call fcn.00401d85
pop ecx
test eax, eax
je 0x406dd1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406dd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bbc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40bc10
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40bbdf
jmp 0x40bc10
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40bc00
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40cb33
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40cb68
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40cb92
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40cb92
test edi, edi
je 0x40cb5f
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40cb5f
test edi, edi
je 0x40cb9a
mov eax, edi
jmp 0x40cb61
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40cb61
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.004106d8
add esp, 0xc
int3
Function at 0x41070c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonSize], eax
call fcn.0040cb33
pop ecx
mov ecx, dword [sym.TestBinarySearch.exe_gMozillaPoisonSize]
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410744
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x402f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea ecx, [ebp - 0xc]
call fcn.00401140
lea ecx, [ebp - 0x18]
call fcn.00401140
push 0x3c
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00426ce0
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
mov edx, dword [ebp + 0xc]
and edx, 1
je 0x402f6b
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x50]
or eax, 0x8000
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x402f7a
mov dword [ebp - 0x48], str.runas
mov edx, dword [ebp + 0xc]
and edx, 0x10000
jne 0x402f90
mov eax, dword [ebp - 0x50]
or eax, 0x100
mov dword [ebp - 0x50], eax
mov ecx, dword [0x4371e8]
mov dword [ebp - 0x4c], ecx
push 5
mov edx, dword [0x4371e8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004051c0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00401280
lea ecx, [ebp - 0xc]
call fcn.00412210
test eax, eax
jne 0x402ff3
mov dword [ebp - 0x58], 1
lea ecx, [ebp - 0x18]
call fcn.00401240
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x58]
jmp 0x40306e
lea ecx, [ebp - 0xc]
call fcn.00412200
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x18]
call fcn.00412200
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403054
mov ecx, dword [ebp + 0xc]
and ecx, 0x10000
jne 0x40302e
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x18]
call fcn.00401240
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x5c]
jmp 0x40306e
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x18]
call fcn.00401240
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x60]
mov esp, ebp
pop ebp
ret
Function at 0x403fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00404200
mov ecx, dword [ebp - 0xc]
mov dword [0x4371dc], ecx
mov dword [0x4371e4], 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x404230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4371e0], eax
cmp dword [0x4371e0], 0
je 0x40404c
cmp dword [0x43722c], 2
je 0x40403d
call fcn.0040f460
push 0xffffffffffffffff
mov ecx, dword [0x4371e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x437384], 0
cmp dword [0x4371e4], 0
je 0x4040d0
mov edx, dword [0x4371e4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x6a
ja case.0x404081.3
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x40418c]
jmp dword [edx*4 + 0x404178]
push 0x11
push 0
call fcn.0040f2d0
add esp, 8
jmp 0x4040c6
push 0x12
push 0
call fcn.0040f2d0
add esp, 8
jmp 0x4040c6
push 0x13
push 0
call fcn.0040f2d0
add esp, 8
jmp 0x4040c6
jmp 0x4040c6
mov eax, dword [0x4371e4]
push eax
push 0x14
push 0
call fcn.0040f2d0
add esp, 0xc
mov eax, 0x80004005
jmp 0x404171
mov dword [ebp - 4], 0
cmp dword [0x43738c], 0
jne 0x404168
cmp dword [0x4371e0], 0
je 0x404108
lea ecx, [ebp - 4]
push ecx
mov edx, dword [0x4371e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x404108
cmp dword [ebp - 4], 0
je 0x404166
mov eax, dword [ebp - 4]
and eax, 0x80070000
cmp eax, 0x80070000
je 0x404129
mov ecx, dword [ebp - 4]
push ecx
push 0x21
push 0
call fcn.0040f2d0
add esp, 0xc
jmp 0x40415f
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0xe
jne 0x404140
cmp dword [0x437230], 0xffffffff
je 0x40415f
mov eax, dword [ebp - 4]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
push ecx
push 0x22
push 1
call fcn.0040f2d0
add esp, 0xc
mov eax, 0x80004005
jmp 0x404171
jmp 0x40416f
mov eax, 0x80004005
jmp 0x404171
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x404e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42faf0
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00401140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404e7a
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00404ec0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00404e90
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x404fb0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x42faf0
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00405320
movzx ecx, al
test ecx, ecx
jne 0x404fe4
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00401240
mov esp, ebp
pop ebp
ret

Function at 0x405080
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea ecx, [ebp - 0x14]
call fcn.00401140
push 2
lea ecx, [ebp - 0x14]
call fcn.00404ec0
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 8], eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00402190
cmp dword [ebp - 8], 0
jbe 0x4050d9
mov eax, dword [ebp - 8]
add eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00404ec0
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x14]
call fcn.00404e90
lea ecx, [ebp - 0x14]
call fcn.00412210
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
jmp 0x4050f6
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0xfff
jge 0x40514c
mov eax, dword [ebp - 4]
add eax, 0xf
push eax
lea ecx, [ebp - 0x14]
call fcn.00404ec0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00404e90
lea ecx, [ebp - 0x14]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40514a
jmp 0x40514c
jmp 0x4050ed
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403eb0
lea ecx, [ebp - 0x14]
call fcn.00401240
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4055e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40563f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb7
je 0x405616
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x405644
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40563f
mov eax, dword [ebp - 4]
and eax, 0x10
jne 0x40563f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x405644
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00401140
push 1
push 1
lea ecx, [ebp - 0x10]
call fcn.00404ec0
push eax
mov ecx, dword [ebp + 8]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40568d
lea ecx, [ebp - 0x10]
call fcn.00401240
jmp 0x4056cf
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404ec0
push eax
mov ecx, dword [ebp + 8]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x10]
call fcn.00404e90
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403550
lea ecx, [ebp - 0x10]
call fcn.00401240
mov esp, ebp
pop ebp
ret
Function at 0x4068d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402170
push 0x42fb64
lea ecx, [ebp - 0xc]
call fcn.0041e010
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x406a0d
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xc]
call fcn.00401280
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00402260
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041e010
mov ecx, dword [ebp - 0x260]
and ecx, 0x10
je 0x4069a5
push 0x42fb60
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4069a3
push 0x42fb58
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4069a3
lea ecx, [ebp - 0xc]
call fcn.00412200
push eax
call fcn.004068d0
add esp, 4
test eax, eax
jne 0x4069a3
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x264]
jmp 0x406a6e
jmp 0x4069ea
push 0
lea ecx, [ebp - 0xc]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4069cd
lea ecx, [ebp - 0xc]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4069ea
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x268]
jmp 0x406a6e
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406915
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x43725c
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x406a3c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406a56
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x26c]
jmp 0x406a6e
mov dword [ebp - 0x270], 1
lea ecx, [ebp - 0xc]
call fcn.00401240
mov eax, dword [ebp - 0x270]
mov esp, ebp
pop ebp
ret
Function at 0x406a80
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
cmp dword [0x437398], 0
je 0x406a99
mov eax, 1
jmp 0x406afb
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x406aba
mov eax, 1
jmp 0x406afb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
and eax, 0x10
jne 0x406aef
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x406aeb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406afb
xor eax, eax
jmp 0x406afb
mov eax, dword [ebp + 8]
push eax
call fcn.004068d0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4076f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00401140
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40773e
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
lea ecx, [ebp - 0x10]
call fcn.00404ec0
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402190
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403eb0
lea ecx, [ebp - 0x10]
call fcn.00401240
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x407a40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.00401140
mov edx, dword [ebp - 8]
add edx, 2
push edx
lea ecx, [ebp - 0x14]
call fcn.00404ec0
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
add ecx, 2
push ecx
lea ecx, [ebp - 0x14]
call fcn.00404ec0
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x14]
call fcn.00404e90
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403eb0
lea ecx, [ebp - 0x14]
call fcn.00401240
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x407ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
movzx eax, word [0x4371ec]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407b0e
push 0x409
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407b50
cmp dword [ebp + 0x10], 0
je 0x407b2d
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x407b50
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x407bc9
cmp dword [0x4371f0], 0
jne 0x407bc7
mov dword [0x4371f0], 1
push str.SetProcessPreferredUILanguages
mov edx, dword [0x4371f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
push 0
push 0x409
push 0
movzx eax, word [0x4371ec]
push eax
push str._04X_c_04X_c
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 0x54], 0
jne 0x407bb6
push str.SetThreadPreferredUILanguages
mov edx, dword [0x4371f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x407bc7
push 0
lea eax, [ebp - 0x50]
push eax
push 4
call dword [ebp - 0x54]
xor eax, eax
mov esp, ebp
pop ebp
ret