joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041c630
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40af61
xor al, al
jmp 0x40b0e3
push esi
push edi
call fcn.0040b0f5
push edi
call fcn.00421845
pop ecx
push edi
mov esi, eax
call fcn.0040b121
test al, al
je 0x40b001
push edi
call fcn.0040b0f5
test al, al
je 0x40afb0
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40affa
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00422d31
lea eax, [esi + 8]
push edi
push eax
call fcn.00421823
add esp, 0x14
jmp 0x40aff3
push 0x5c
pop eax
cmp word [edi], ax
jne 0x40affa
add edi, 2
cmp word [edi], ax
jne 0x40affa
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40affa
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00422d31
lea eax, [esi + 8]
push 0x430574
push eax
call fcn.00421823
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00421823
add esp, 0x1c
mov al, 1
jmp 0x40b0e2
xor al, al
jmp 0x40b0e2
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b0df
cmp eax, ebx
ja 0x40b0df
movzx eax, word [edi]
push eax
call fcn.0040b1fc
test al, al
je 0x40b06f
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40b0df
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00422d31
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00422d31
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00421823
add esp, 0x20
jmp 0x40b0db
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040aacd
lea eax, [ebp - 0x1000]
push eax
call fcn.00421845
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40b0df
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00422d31
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00421823
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40b0d1
movzx eax, word [edi + 2]
push eax
call fcn.0040b1fc
test al, al
je 0x40b0d1
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040ecff
mov al, 1
jmp 0x40b0e1
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40bc9f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40bcbc
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40bcb4
cmp cl, byte [edx]
jne 0x40bcf7
push esi
push edx
push 0xffffffffffffffff
call fcn.00405c39
not eax
mov ecx, ebx
cmp dword [ecx + 0x43a02c], eax
jne 0x40bcdd
cmp dword [ecx + 0x43a028], esi
je 0x40bce8
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40bccd
jmp 0x40bcf7
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x43a030]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401d07
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040e2a0
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401d32
push dword [0x418054]
call fcn.004053bb
and eax, eax
je 0x401d32
push dword [0x418054]
call fcn.0040542a
call fcn.00403719
push dword [0x4180a0]
call fcn.0040aa44
push dword [0x4180c0]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [0x4180a8]
call sub.KERNEL32.dll_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011b6

Function at 0x401d9f
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e2a0
mov eax, 0x4170f8
mov dword [0x41806c], eax
mov dword [esp], 0
jmp 0x401dc0
mov eax, 3
cmp eax, dword [esp]
jl 0x401e2e
mov eax, dword [0x41806c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41806c]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405f10
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e300
lea eax, [esp + 0x10]
push eax
call fcn.0040e1a0
inc dword [esp]
jno 0x401dc0
push 0x400
call fcn.00409e60
mov dword [esp + 0x10], eax
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
call fcn.0040aa52
lea eax, [esp + 0x18]
push eax
call fcn.0040e1a0
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409e80
lea eax, [0x4180a8]
push eax
call fcn.0040e1a0
push dword [0x4180a8]
call fcn.0040aa44
push dword [0x4180a8]
call fcn.0040a985
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x4180a8]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409e80
lea eax, [0x4180c0]
push eax
call fcn.0040e1a0
push dword [0x4180c0]
call fcn.0040aa44
push dword [0x4180c0]
call fcn.0040a985
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x4180c0]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x4180c0]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409e80
lea eax, [0x4180a0]
push eax
call fcn.0040e1a0
push dword [0x4180a0]
call fcn.0040aa44
push dword [esp + 0xc]
push dword [0x4180a0]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
call fcn.00409e40
jmp 0x401f74
push dword [esp + 0xc]
call fcn.0040e230
push dword [esp + 0x14]
call fcn.0040e230
push dword [esp + 8]
call fcn.0040e230
add esp, 0x18
pop ebx
ret
Function at 0x402658
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40265e
call fcn.0040e2a0
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170b7
mov dword [0x41806c], eax
mov dword [esp], 0
jmp 0x40268c
mov eax, 6
cmp eax, dword [esp]
jl 0x4026fa
mov eax, dword [0x41806c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41806c]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405f10
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e300
lea eax, [esp + 0x10]
push eax
call fcn.0040e1a0
inc dword [esp]
jno 0x40268c
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.00409e80
lea eax, [esp + 0x14]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
lea eax, [esp + 0x18]
push eax
call fcn.0040e1a0
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405d60
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4027b8
push edx
call fcn.0040e160
pop edx
push eax
mov edx, 0x417026
push edx
call fcn.0040e300
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.004060b0
call fcn.00405182
add dword [esp], edx
call fcn.00406000
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e1a0
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.00409b8a
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x4027ed
push dword [esp + 0x14]
call fcn.0040e230
push dword [esp + 8]
call fcn.0040e230
push dword [esp + 0x10]
call fcn.0040e230
push dword [esp + 0xc]
call fcn.0040e230
push dword [esp + 0x20]
call fcn.0040e230
add esp, 0x24
pop ebx
ret

Function at 0x40281f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040e2a0
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x41805c], eax
push dword [0x41805c]
call fcn.00409e60
mov dword [esp + 4], eax
push dword [0x41805c]
push dword [esp + 8]
push dword [esp + 8]
call fcn.00409f40
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x40287c
add esp, 8
ret 8
Function at 0x402f92
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402f98
call fcn.0040e2a0
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402fc4
mov eax, 1
jmp 0x402fc6
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x4034bd
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4034c3
call fcn.0040e2a0
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402f92
and eax, eax
je 0x403513
call fcn.0040558e
mov ebx, eax
cmp ebx, 0x41
je 0x403513
mov eax, 1
jmp 0x403515
xor eax, eax
and eax, eax
je 0x403683
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, str.sysnative
push edx
call fcn.0040e300
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, dword [esp + 4]
push edx
call fcn.0040e300
lea eax, [esp + 0x10]
push eax
call fcn.0040e1a0
mov edx, dword [esp + 8]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
mov edx, dword [esp + 4]
push edx
call fcn.0040e300
mov edx, dword [esp + 8]
push edx
call fcn.0040e300
lea eax, [esp + 0x14]
push eax
call fcn.0040e1a0
push dword [esp + 0xc]
push 0
call fcn.0040b080
and eax, eax
je 0x403604
mov dword [esp + 0x14], 1
push 0
call fcn.0040ac90
jmp 0x40360c
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040b080
and eax, eax
je 0x403632
mov dword [esp + 0x18], 1
push 0
call fcn.0040ac90
jmp 0x40363a
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x403681
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x4036be
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e160
pop edx
push eax
push 0x800
call fcn.00406260
lea eax, [esp + 0xc]
push eax
call fcn.0040e1a0
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e160
pop edx
push eax
push edx
call fcn.0040e300
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x4036e6
push dword [esp + 0x10]
call fcn.0040e230
push dword [esp]
call fcn.0040e230
push dword [esp + 4]
call fcn.0040e230
push dword [esp + 8]
call fcn.0040e230
push dword [esp + 0xc]
call fcn.0040e230
add esp, 0x1c
pop ebx
ret 8
Function at 0x403719
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040e2a0
mov ebx, dword [0x418068]
cmp ebx, 1
jne 0x4037c6
push dword [0x4180e0]
call fcn.0040a703
mov ebx, eax
and ebx, ebx
jle 0x40376d
push dword [0x4180e0]
call fcn.0040a70d
push dword [0x4180e0]
call fcn.0040a722
or eax, eax
je 0x40376d
mov ebp, dword [0x4180e4]
push dword [ebp + 8]
call fcn.0040aa44
jmp 0x40374e
push dword [0x4180d8]
call fcn.0040a703
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x4037c6
push 5
push 0
push 1
push dword [0x4180d8]
call fcn.00406bf0
push dword [0x4180d8]
call fcn.0040a70d
push dword [0x4180d8]
call fcn.0040a722
or eax, eax
je 0x4037c6
mov ebp, dword [0x4180dc]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x4037a7
mov eax, 1
jmp 0x4037cf
add esp, 4
pop ebx
pop ebp
ret

Function at 0x40542a
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053de
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x4186e8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4180fc]
jmp 0x40545b
cmp dword [esi + 0xc], edi
je 0x405461
mov esi, dword [esi]
test esi, esi
jne 0x405454
jmp 0x405479
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x4180fc
call fcn.0040ddf2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x405486
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40551e
push edi
push 0x4186e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4180fc]
test edi, edi
je 0x4054f2
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4054eb
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4180fc
call fcn.0040ddf2
pop ecx
pop ecx
jmp 0x4054ed
mov edi, dword [edi]
test edi, edi
jne 0x4054c2
pop ebx
mov eax, dword [0x4170fc]
mov esi, eax
inc eax
push 0x10
push 0x4180fc
mov dword [0x4170fc], eax
call fcn.0040de32
pop ecx
pop ecx
push 0x4186e8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x40558e
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4056e6
mov eax, dword [esp + 0x20]
dec eax
je 0x4056c9
dec eax
jne 0x4056e6
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.00405547
pop ecx
test eax, eax
je 0x4055fa
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x405627
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40562c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x40562c
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4056c5
dec ebx
je 0x4056c1
dec ebx
je 0x4056a0
dec ebx
je 0x40565a
sub ebx, 4
jne 0x4056e6
test edi, edi
jne 0x4056e6
push 0x6e
jmp 0x4056e5
sub edi, 0
je 0x405692
dec edi
je 0x405684
dec edi
je 0x405676
dec edi
jne 0x4056e6
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4056e6
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4056e6
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4056e6
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4056e6
sub edi, 0
je 0x4056bd
dec edi
je 0x4056b9
dec edi
jne 0x4056e6
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4056e6
push 0x3c
jmp 0x4056e5
push 0x32
jmp 0x4056e5
push 0x14
jmp 0x4056e5
push 5
jmp 0x4056e5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4056e3
cmp eax, 0xa
je 0x4056df
cmp eax, 0x5a
jne 0x4056e6
push 0x28
jmp 0x4056e5
push 0x1e
jmp 0x4056e5
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x4091c8
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40921d
push dword [esp + 0x10]
push 0x409147
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x418124]
test esi, esi
je 0x409276
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x409215
cmp byte [esi + 0x10], 0
je 0x409215
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4091f1
jmp 0x409276
mov esi, dword [0x418124]
test esi, esi
je 0x409276
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40926f
cmp byte [esi + 0x11], 0
je 0x40924b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409262
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x418124
call fcn.0040ddf2
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40922a
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40937a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x41870c]
call fcn.0040d5a8
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40947a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4093d0
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4093c8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x409410
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409452
push 0x22
pop edx
cmp cx, dx
je 0x409402
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4093f2
xor ecx, ecx
cmp word [eax], cx
je 0x409452
mov ecx, eax
add eax, 2
jmp 0x409454
test dx, dx
je 0x40945a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x409402
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x409448
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409452
cmp cx, dx
je 0x409445
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x409435
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40941a
jmp 0x409402
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40945c
xor edx, edx
cmp dword [ebp], ebx
jne 0x409465
test edi, edi
jne 0x409482
test edx, edx
je 0x40946a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4093be
test edi, edi
jne 0x409493
mov eax, ebx
jmp 0x409497
test esi, esi
je 0x409493
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409497
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40a985
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40a9fd
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40a9de
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40a9db
cmp ecx, 0x5c
je 0x40a9db
cmp ecx, 0x2f
jne 0x40a9e8
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40a9c8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a9ff
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa05
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x40aa13
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x40aa16
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40aa3f
test byte [esp + 8], 2
je 0x40aa33
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40aa41
xor eax, eax
ret 8

Function at 0x40ad00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40ad3c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x40b140
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x40b234
cmp word [edx], 0
je 0x40b234
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x40b1cd
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x40b1a0
jmp 0x40b180
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b180
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0040b2e0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b1a0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0040b3f0
mov esi, eax
test esi, esi
je 0x40b22b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x40b208
push dword [esp + 0x10]
push esi
push eax
call fcn.0040b2e0
mov dword [esp + 4], eax
jmp 0x40b21c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x41804c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc