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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x43e9e0], 0
je 0x4123c9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x46b
je 0x412327
jmp 0x4123c9
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [0x43e9e0]
call fcn.00411ad0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call fcn.00412dc0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x412367
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x4123b9
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.00402000
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
cmp edx, dword [ebp + 0xc]
jne 0x41239a
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.00402000
mov ecx, dword [eax]
mov dword [ecx + 0x50], 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 8]
call fcn.00402000
mov eax, dword [eax]
cmp dword [eax + 0x50], 0
je 0x4123b7
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x41235e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jne 0x4123c9
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x414440
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x414449
xor ecx, ecx
jne 0x414449
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41446a
mov eax, 0xd
jmp 0x414496
xor eax, eax
jne 0x414451
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4144a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x4144a9
xor ecx, ecx
jne 0x4144a9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4144ca
mov eax, 0xd
jmp 0x41451f
xor eax, eax
jne 0x4144b1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x4144db
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x414530
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430f68
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x20]
call fcn.00411ce0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411d80
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4145c1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411d10
mov eax, dword [ebp - 0x130]
jmp 0x414660
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x41462e
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00414530
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x414625
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411d10
mov eax, dword [ebp - 0x134]
jmp 0x414660
mov dword [ebp - 0x10], pe_nt_image_headers32
jmp 0x4145c8
lea ecx, [ebp - 0x20]
call fcn.00411d30
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.00414300
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411d10
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041d3f6
mov esp, ebp
pop ebp
ret 4
Function at 0x41d3f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c2d0]
jne 0x41d400
repz ret
jmp fcn.00422566

Function at 0x42b33a
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.004228fa
and dword [ebp - 4], 0
cmp dword [0x43e870], 0
mov ebx, eax
jne 0x42b3eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42b49c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42b49c
push eax
call fcn.00422888
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43e870], eax
call esi
push eax
call fcn.00422888
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e874], eax
call esi
push eax
call fcn.00422888
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e878], eax
call esi
push eax
call fcn.00422888
pop ecx
mov dword [0x43e880], eax
test eax, eax
je 0x42b3eb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422888
pop ecx
mov dword [0x43e87c], eax
mov eax, dword [0x43e87c]
cmp eax, ebx
je 0x42b443
cmp dword [0x43e880], ebx
je 0x42b443
push eax
call fcn.00422903
push dword [0x43e880]
mov esi, eax
call fcn.00422903
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42b443
test edi, edi
je 0x42b443
call esi
test eax, eax
je 0x42b43a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42b43a
test byte [ebp - 0xc], 1
jne 0x42b443
or dword [ebp + 0x10], 0x200000
jmp 0x42b47c
mov eax, dword [0x43e874]
cmp eax, ebx
je 0x42b47c
push eax
call fcn.00422903
pop ecx
test eax, eax
je 0x42b47c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42b47c
mov eax, dword [0x43e878]
cmp eax, ebx
je 0x42b47c
push eax
call fcn.00422903
pop ecx
test eax, eax
je 0x42b47c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e870]
call fcn.00422903
pop ecx
test eax, eax
je 0x42b49c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42b49e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ced777d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jbe 0x5ced7816
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esi, 0xc
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [esi - 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [0x5cee80ac], eax
jne 0x5ced782a
movzx eax, word [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5ced7820
lea eax, [ebp - 4]
push eax
push dword [esi]
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [esi - 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
mov dword [0x5cee80ac], eax
jne 0x5ced782a
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
add edx, 0xfffffffe
mov eax, edx
jmp 0x5ced77f3
dec eax
cmp byte [ecx + eax], 0x20
je 0x5ced77f2
cmp eax, edx
jae 0x5ced7801
mov byte [ecx + eax + 1], bl
mov ecx, dword [esi - 4]
inc eax
inc dword [ebp - 8]
mov word [ecx], ax
mov eax, dword [ebp - 8]
add esi, 0x10
cmp eax, dword [ebp + 0xc]
jb 0x5ced77a6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dword [0x5cee80ac], 0xe
xor eax, eax
jmp 0x5ced7819

Function at 0x5ced782e
Capabilities:
Connect socket
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push 0xff
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x5ced7878
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x5ced7878
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
inc eax
leave
ret 4
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push 2
push 2
mov dword [ebp - 4], 0x10
mov dword [esi], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5ced78f0
push 7
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x5ced15ac
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x5ced78e9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi], eax
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [esi], 0
pop esi
pop ebx
jne 0x5ced7871
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5ced7874

Function at 0x5ced7976
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5ced7991
xor eax, eax
jmp 0x5ced7999
xor eax, eax
inc eax
mov dword [0x5ceeafb0], eax
add esp, 0x190
ret
Function at 0x5cedc262
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5cee38ae
call fcn.5cede420
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x5ced2354
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
call fcn.5ced7dbe
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.5cedc185
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.5ced9e1b
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call fcn.5ced9e37
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], 0x5ced16e0
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push ebx
push esi
push edi
push 0x27
call fcn.00401f88
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x900]
push eax
call edi
and dword [ebp + 8], 0
add esp, 0x14
cmp dword [esi + 0x10], 0
jbe 0x401070
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x100]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40103b
lea eax, [ebp - 0x900]
push eax
call fcn.004076b6
pop ecx
call fcn.00403db3
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4014f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00408782
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401311
push 0x5c
mov ecx, edi
call fcn.00401415
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401284
push edi
push edi
mov dword [0x417740], esi
mov dword [0x417748], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x417788], 2
mov dword [0x417744], eax
je 0x401555
call fcn.0040787a
push 0xffffffffffffffff
push dword [0x417744]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x417748]
mov dword [0x4177fc], edi
cmp eax, edi
je 0x4015a4
cmp eax, 1
je 0x401598
cmp eax, 2
je 0x401594
cmp eax, 3
je 0x401590
cmp eax, 0x67
jle 0x40158b
cmp eax, 0x6a
jle 0x401608
push eax
push 0x14
jmp 0x4015db
push 0x12
jmp 0x40159a
push 0x13
jmp 0x40159a
push 0x11
push edi
call fcn.00407784
pop ecx
pop ecx
jmp 0x401608
cmp dword [0x417804], edi
jne 0x401608
lea eax, [ebp + 8]
push eax
push dword [0x417744]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4015cb
cmp ecx, edi
jne 0x4015cb
xor eax, eax
jmp 0x40160d
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4015de
push ecx
push 0x21
push edi
jmp 0x401600
and ecx, 0xffff
cmp ecx, 0xe
jne 0x4015f2
cmp dword [0x41778c], 0xffffffff
je 0x401608
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00407784
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x401992
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40197c
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401992
test al, 0x10
jne 0x401992
push esi
jmp 0x401972
xor eax, eax
inc eax
pop esi
ret
Function at 0x401bc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41774c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401c09
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401c2f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401c1a
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401c2f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x401ca9
cmp dword [0x41775c], 0
jne 0x401ca7
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41775c], 1
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41774c]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401c9c
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x401ca7
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f88
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x417058], ebx
je 0x401fb8
mov eax, 0x417058
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401fb8
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x417058]
cmp dword [eax], ebx
jne 0x401fa1
shl esi, 4
cmp dword [esi + 0x417058], ebx
jne 0x401fcd
mov eax, 0x41335c
jmp 0x4020e5
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40207d
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402074
call edi
test eax, eax
jne 0x402074
mov eax, dword [esi + 0x417064]
test eax, eax
je 0x402069
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402066
push dword [esi + 0x417064]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x417064], edi
jmp 0x40207c
push edi
jmp 0x402077
mov eax, dword [ebp - 8]
mov dword [esi + 0x417064], eax
jmp 0x40207d
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esi + 0x417064]
test eax, eax
jne 0x4020e4
mov ebx, dword [esi + 0x41705c]
lea edi, [esi + 0x417060]
cmp dword [edi], eax
je 0x4020af
call fcn.00401f2d
cmp eax, dword [0x414468]
jne 0x4020af
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
push 2
add eax, 3
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push ebx
push eax
mov dword [esi + 0x417064], eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esi + 0x417064]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4023ea
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4023fa
xor eax, eax
leave
ret
test byte [0x41778c], 2
mov dword [ebp - 0x40], 0x40
jne 0x40244f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
test eax, eax
je 0x40244f
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x40244f
jb 0x40242b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x40244f
push 0x2b
call fcn.00401f88
push eax
call fcn.00407725
pop ecx
pop ecx
cmp eax, 1
je 0x402448
or dword [0x41778c], 0xffffffff
jmp 0x4023f6
or dword [0x41778c], 2
xor eax, eax
inc eax
leave
ret
Function at 0x402740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004013fd
cmp dword [ebp - 4], 1
jg 0x40275e
push 1
lea ecx, [ebp - 0xc]
call fcn.00401112
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402782
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4027ba
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004021dd
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004010fe
pop ecx
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040134b
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402af7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040248c
push 0x413454
lea ecx, [ebp - 0xc]
call fcn.004024c5
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402bd3
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401311
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401415
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004024c5
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402ba2
push 0x413450
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x402bb6
push 0x413448
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x402bb6
push edi
call fcn.00402af7
pop ecx
jmp 0x402bb2
push 0
push edi
call esi
test eax, eax
je 0x402bf6
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x402bf6
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x402b3d
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402bf6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x402bf6
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402bfe
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c04
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x417810], 0
je 0x402c11
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402c27
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402c45
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x402c41
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402af7
pop ecx
pop esi
ret

Function at 0x402cfc
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004013fd
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402d3b
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004021dd
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret

Function at 0x402e93
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004013fd
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004021dd
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004021dd
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
pop ecx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402f9e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402fbb
xor eax, eax
jmp 0x403014
test al, 0x10
je 0x402fcc
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x403014
mov eax, dword [0x417790]
test eax, eax
jne 0x402fde
push esi
call fcn.00402f71
pop ecx
jmp 0x403014
cmp eax, 2
jne 0x403011
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402fd5
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jl 0x402fd5
xor eax, eax
inc eax
pop esi
leave
ret