joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416154
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.004114cb
and dword [ebp - 4], 0
cmp dword [0x4273f4], 0
mov ebx, eax
jne 0x416205
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4162b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fab0
push edi
call esi
test eax, eax
je 0x4162b6
push eax
call fcn.00411459
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4273f4], eax
call esi
push eax
call fcn.00411459
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4273f8], eax
call esi
push eax
call fcn.00411459
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4273fc], eax
call esi
push eax
call fcn.00411459
pop ecx
mov dword [0x427404], eax
test eax, eax
je 0x416205
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411459
pop ecx
mov dword [0x427400], eax
mov eax, dword [0x427400]
cmp eax, ebx
je 0x41625d
cmp dword [0x427404], ebx
je 0x41625d
push eax
call fcn.004114d4
push dword [0x427404]
mov esi, eax
call fcn.004114d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41625d
test edi, edi
je 0x41625d
call esi
test eax, eax
je 0x416254
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416254
test byte [ebp - 0xc], 1
jne 0x41625d
or dword [ebp + 0x10], 0x200000
jmp 0x416296
mov eax, dword [0x4273f8]
cmp eax, ebx
je 0x416296
push eax
call fcn.004114d4
pop ecx
test eax, eax
je 0x416296
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416296
mov eax, dword [0x4273fc]
cmp eax, ebx
je 0x416296
push eax
call fcn.004114d4
pop ecx
test eax, eax
je 0x416296
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4273f4]
call fcn.004114d4
pop ecx
test eax, eax
je 0x4162b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4162b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401120
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x68
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x64], eax
lea eax, [esp]
push eax
push 0x2c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40119e
cmp eax, 0x3b
jbe 0x401160
push eax
push str.fe672ab7837757095e41f0a3
call fcn.00439b50
add esp, 8
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.85695d93ab17d7f1cb11d6
call esi
test eax, eax
jne 0x401196
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetCurrentDirectory_failed___d_
call fcn.00439b50
add esp, 8
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret
lea ecx, [esp + 4]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret

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

Disassembly:
sub esp, 0x270
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
push 0x103
lea eax, [esp + 0x165]
push 0
push eax
mov byte [esp + 0x16c], 0
call fcn.00440440
add esp, 0xc
xor esi, esi
call fcn.00439c27
cdq
mov ecx, 0xf9
idiv ecx
inc esi
add dl, 0xd
cmp esi, 0x19
mov byte [esp + esi + 0x15f], dl
jl 0x4011e6
xor eax, eax
lea edx, [esp + 0x160]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401267
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401267
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
mov dword [esp + 8], edx
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.00439641
add esp, 0x270
ret
Function at 0x401280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x270
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
push 0x103
lea eax, [esp + 0x165]
push 0
push eax
mov byte [esp + 0x16c], 0
call fcn.00440440
add esp, 0xc
xor esi, esi
call fcn.00439c27
cdq
mov ecx, 0x18
idiv ecx
inc esi
sub dl, 0x15
cmp esi, 0x19
mov byte [esp + esi + 0x15f], dl
jl 0x4012b6
xor eax, eax
lea edx, [esp + 0x160]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401337
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401337
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
mov dword [esp + 8], edx
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.00439641
add esp, 0x270
ret
Function at 0x401350
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x44d4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], eax
mov byte [esp + 0x2c], al
mov dword [esp + 0x50], eax
lea ebx, [esp + 0x28]
lea ebp, [eax + 0x19]
call fcn.00439c27
cdq
mov ecx, 0x19
idiv ecx
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
mov eax, edi
add dl, 0x61
mov byte [esp + 0x1c], dl
cmp ecx, 0x10
jae 0x4013d0
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea esi, [eax + edx]
test esi, esi
je 0x4013fb
mov eax, edi
cmp ecx, 0x10
jae 0x4013e6
lea eax, [esp + 0x2c]
cmp eax, esi
ja 0x4013fb
mov eax, edi
cmp ecx, 0x10
jae 0x4013f5
lea eax, [esp + 0x2c]
add eax, edx
cmp esi, eax
jbe 0x401400
call fcn.00439b40
mov edx, dword [esp + 0x1c]
push esi
push ebx
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00402cf0
sub ebp, 1
jne 0x4013a9
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x401431
cmp dword [esp + 0x40], 0x10
jmp 0x4014ac
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esp + 0x3c]
inc ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40145f
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [esp + 0x40], 0x10
jb 0x4014bb
mov edx, dword [esp + 0x2c]
push edx
jmp 0x4014b3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, 0x10
mov edi, eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x40147b
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push edi
call fcn.0043ea70
mov edx, dword [esp + 0x48]
add esp, 0xc
push esi
mov byte [edx + edi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [esp + 0x40], ebx
jb 0x4014bb
mov eax, dword [esp + 0x2c]
push eax
call fcn.00439c49
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00439641
add esp, 0x40
ret
Function at 0x402460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
shr esi, 0x18
call fcn.0043af41
imul eax, eax, 0x63
add esp, 4
cmp esi, eax
jbe 0x4024ae
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, 1
jmp 0x4024b0
xor eax, eax
sub eax, 1
jne 0x4024bf
call fcn.00406e10
call fcn.00401350
mov eax, dword [ebp + 0x54]
mov esi, eax
shr esi, 1
cmp esi, eax
jae 0x402508
lea ebx, [ebx]
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, esi
div ecx
mov eax, ebp
mov edi, edx
call fcn.00402a70
mov cl, byte [eax]
mov edi, esi
lea eax, [ebp + 0x38]
mov byte [esp + 0x10], cl
call fcn.00402a70
mov bl, byte [eax]
lea eax, [ebp + 0x38]
call fcn.00402a70
xor bl, byte [esp + 0x10]
inc esi
mov byte [eax], bl
cmp esi, dword [ebp + 0x54]
jb 0x4024d0
mov edi, dword [ebp + 0x54]
xor esi, esi
sub edi, 1
mov dword [esp + 0x18], edi
je 0x40255b
jmp 0x402524
mov edi, dword [esp + 0x18]
lea ebx, [ebp + 0x38]
mov eax, ebx
call fcn.00402a70
mov dl, byte [eax]
mov edi, esi
mov eax, ebx
mov byte [esp + 0x10], dl
call fcn.00402a70
mov bl, byte [eax]
lea eax, [ebp + 0x38]
call fcn.00402a70
xor bl, byte [esp + 0x10]
inc esi
mov byte [eax], bl
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
cmp esi, eax
jb 0x402520
mov edi, dword [esp + 0x14]
mov ebx, dword [ebp + 0x4c]
mov eax, edi
call fcn.00402b10
push 0
call fcn.0043af41
add esp, 4
lea ebx, [esp + 0x18]
call fcn.00402b90
lea edi, [ebp + 0x38]
lea ebx, [esp + 0x20]
mov esi, eax
call fcn.00402a20
lea ebx, [esp + 0x28]
mov ebp, eax
call fcn.004029d0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x48]
call fcn.004036d0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 2
je 0x4025cc
sub eax, 2
je 0x4025cc
sub eax, 4
jne 0x4025d9
push 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.00431550
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x404410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x270
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
push 0x103
lea eax, [esp + 0x165]
push 0
push eax
mov byte [esp + 0x16c], 0
call fcn.00440440
add esp, 0xc
xor esi, esi
call fcn.00439c27
cdq
mov ecx, 0x70
idiv ecx
inc esi
sub dl, 0xe
cmp esi, 0x19
mov byte [esp + esi + 0x15f], dl
jl 0x404446
xor eax, eax
lea edx, [esp + 0x160]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4044c7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4044c7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
mov dword [esp + 8], edx
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.00439641
add esp, 0x270
ret

Function at 0x4044e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], eax
mov byte [esi + 0x24], al
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.00436730
test eax, eax
je 0x404521
call fcn.00431550
xor eax, eax
mov word [esi + 0x1c], ax
call fcn.004179d0
sub eax, 1
jne 0x40453b
call fcn.00406e10
call fcn.004043a0
lea ecx, [esp]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, esi
call fcn.00439641
add esp, 0x19c
ret
Function at 0x406330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e328
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x1c
xor eax, eax
mov ecx, esp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x40]
push eax
call fcn.00402be0
call fcn.004014e0
cmp dword [esp + 0x34], 0x10
jb 0x406396
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00439c49
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c

Function at 0x406670
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, 0x2000
push edi
call fcn.00439919
push str.4533de457c6b2ec596b9f1b778
mov esi, eax
mov dword [esp + 0x14], edi
call fcn.00439b50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0
push str.6f4196ed07efde2fbb7fefbfa
push 0x80000004
call ebx
cmp eax, 0xea
jne 0x4066e8
add edi, 0x1000
push edi
push esi
call fcn.00439d26
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
push esi
push 0
push 0
push str.f4852a9f30bb4d0b7
push 0x80000004
mov dword [esp + 0x24], edi
call ebx
cmp eax, 0xea
je 0x4066b5
test eax, eax
jne 0x4066ff
push edi
push str.1fed9601d96bf795d7b72bd7e4c1618_d
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
push eax
push str.fc574bbd9d83a8b1c483__d_
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x406720
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, 0x2000
push edi
call fcn.00439919
push str.5ae7edb59c0327d9df7
mov esi, eax
mov dword [esp + 0x14], edi
call fcn.00439b50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0
push str.e7bd99c99ca1a185e1695171a025ce0
push 0x80000004
call ebx
cmp eax, 0xea
jne 0x406798
add edi, 0x1000
push edi
push esi
call fcn.00439d26
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
push esi
push 0
push 0
push str.061901558e5f0267
push 0x80000004
mov dword [esp + 0x24], edi
call ebx
cmp eax, 0xea
je 0x406765
test eax, eax
jne 0x4067af
push edi
push str.6b69a1fb2cc94fad307b77_d
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
push eax
push str.47af55d5ec45612f69196f3b8d998__d_
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4067d0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x68
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x64], eax
lea eax, [esp]
push eax
push 0x1f
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40684e
cmp eax, 0x50
jbe 0x406810
push eax
push str.657318adf9a7b829e42b05e59a5
call fcn.00439b50
add esp, 8
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.f2270ecd80f1aa27a7f
call esi
test eax, eax
jne 0x406846
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetCurrentDirectory_failed___d_
call fcn.00439b50
add esp, 8
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret
lea ecx, [esp + 4]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret

Function at 0x406860
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x254
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
push 0
push str.807deb9339ad5fab01ab9117ee73efd
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406907
lea eax, [esp + 0x10]
push eax
push str..txt
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406907
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x44]
push edx
call ebp
test eax, eax
je 0x406920
lea eax, [esp + 0x3c]
push eax
call esi
cmp eax, 0xffffffff
je 0x406907
test al, 1
jne 0x4068e5
or eax, 1
push eax
lea ecx, [esp + 0x154]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4068b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x406907
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439641
add esp, 0x254
ret
push str.3693e7b39e6d0949d36fad2fe
call fcn.00439b50
add esp, 4
jmp 0x406907
Function at 0x4069a0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x68
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x64], eax
lea eax, [esp]
push eax
push 0x9a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x406a21
cmp eax, 0x5a
jbe 0x4069e3
push eax
push str.dbe57915c6575cefd7
call fcn.00439b50
add esp, 8
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.4feb6909b505ed73c7e
call esi
test eax, eax
jne 0x406a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetCurrentDirectory_failed___d_
call fcn.00439b50
add esp, 8
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret
lea ecx, [esp + 4]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00439641
add esp, 0x68
ret

Function at 0x406a30
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x254
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
push 0
push str.61e9e1e32fc3f817b723283f670
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406ad7
lea eax, [esp + 0x10]
push eax
push str..txt
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ad7
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x44]
push edx
call ebp
test eax, eax
je 0x406af0
lea eax, [esp + 0x3c]
push eax
call esi
cmp eax, 0xffffffff
je 0x406ad7
test al, 1
jne 0x406ab5
or eax, 1
push eax
lea ecx, [esp + 0x154]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x406ad7
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439641
add esp, 0x254
ret
push str.851fa86f83e5db336a99855fbf
call fcn.00439b50
add esp, 4
jmp 0x406ad7
Function at 0x406b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, 0x2000
push edi
call fcn.00439919
push str.e3670c0f890db98b0c8555
mov esi, eax
mov dword [esp + 0x14], edi
call fcn.00439b50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0
push str.c85bd98b648b303d0de99dff305bf
push 0x80000004
call ebx
cmp eax, 0xea
jne 0x406b78
add edi, 0x1000
push edi
push esi
call fcn.00439d26
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
push esi
push 0
push 0
push str.8d2d756b2223530565
push 0x80000004
mov dword [esp + 0x24], edi
call ebx
cmp eax, 0xea
je 0x406b45
test eax, eax
jne 0x406b8f
push edi
push str.1b251eb78ecd2d09ea334103100d2d_d
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
push eax
push str.f525d957244f3e97d887414110d1fc__d_
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x270
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
push 0x103
lea eax, [esp + 0x165]
push 0
push eax
mov byte [esp + 0x16c], 0
call fcn.00440440
add esp, 0xc
xor esi, esi
call fcn.00439c27
cdq
mov ecx, 0x4a
idiv ecx
inc esi
sub dl, 0x3a
cmp esi, 0x19
mov byte [esp + esi + 0x15f], dl
jl 0x406cc6
xor eax, eax
lea edx, [esp + 0x160]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406d47
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x406d47
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
mov dword [esp + 8], edx
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.00439641
add esp, 0x270
ret

Function at 0x406d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, 0x2000
push edi
call fcn.00439919
push str.9379600f79c75509d563fb
mov esi, eax
mov dword [esp + 0x14], edi
call fcn.00439b50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0
push str.88bdc0fb89d7ad5d
push 0x80000004
call ebx
cmp eax, 0xea
jne 0x406dd8
add edi, 0x1000
push edi
push esi
call fcn.00439d26
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
push esi
push 0
push 0
push str.232ded2b2773b029e
push 0x80000004
mov dword [esp + 0x24], edi
call ebx
cmp eax, 0xea
je 0x406da5
test eax, eax
jne 0x406def
push edi
push str.3813dde9140946a3cc3f8e0_d
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
push eax
push str.c0bb4207da65545dd5a1db3__d_
call fcn.00439b50
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x406ed0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406f24
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
jne 0x406f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x406f24
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
xor ecx, esp
call fcn.00439641
add esp, 0x254
ret
Function at 0x4107b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44d9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00402e20
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410806
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004109c0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00402e20
cmp dword [esp + 0x24], 8
jb 0x41084f
mov edx, dword [esp + 0x10]
push edx
call fcn.00439c49
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret