joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40340c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.00417820
push edi
push esi
push ebx
mov bl, byte [ebp + 8]
add esp, 0xfffffff4
push 0x403380
call fcn.0040874c
add esp, 0xfffffff4
push 0x7d2
call fcn.004019cc
mov dword [ebp - 0x4004], eax
add esp, 0x20
add esp, 0xfffffff8
push eax
push 0x403391
call fcn.0040874c
add esp, 0x10
cmp dword [ebp - 0x4004], 0
jne 0x403488
test bl, bl
je 0x403609
mov byte [0x42e198], 0
jmp 0x403609
add esp, 0xfffffff8
push ebx
push 0x4033e0
call fcn.004086e0
mov eax, esi
jmp 0x40360b
test bl, bl
je 0x403491
call fcn.0040a9dc
call fcn.00401ba8
mov dword [ebp - 0x4008], eax
push 0
push 0
push dword [0x424030]
push eax
call sub.KERNEL32.dll_SetFilePointer
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push 0x7d3
call fcn.00401aa8
mov dword [ebp - 0x400c], 0
add esp, 0xfffffff8
push 0x4033a4
push ebx
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x20
jmp 0x4035b2
push esi
push 0x42e198
push 0x4033a6
lea ebx, [ebp - 0x4000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push 0x5c
push esi
call sub.msvcrt.dll_strchr
mov edx, eax
add esp, 0x20
test edx, edx
je 0x40356a
mov edi, 0x42e198
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edx, esi
lea eax, [ecx + edx]
mov byte [eax + ebx], 0
add esp, 0xfffffff8
push ebx
push 0x4033ac
call fcn.0040874c
add esp, 0xfffffff8
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
add esp, 0x18
test eax, eax
jne 0x40356a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x40356a
add esp, 0xfffffff8
push ebx
push 0x4033c2
call fcn.004086e0
add esp, 0x10
push esi
push 0x42e198
push 0x4033a6
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp - 0x4008]
push eax
call fcn.00403134
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x403470
inc dword [ebp - 0x400c]
add esp, 0xfffffff8
push 0x4033a4
push 0
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x4004]
cmp dword [ebp - 0x400c], eax
jge 0x4035d9
test esi, esi
je 0x4035d9
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x4034e8
push 1
push 0
push 0
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x424034], eax
add esp, 0xfffffff4
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x4033f5
call fcn.0040874c
xor eax, eax
lea esp, [ebp - 0x4028]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x403b4c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push ebx
mov ebx, 0x42e198
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
je 0x403b85
add esp, 0xfffffff8
add esp, 0xfffffffe
push 1
push ebx
call fcn.00403ecc
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_RemoveDirectoryA
add esp, 0x1c
add esp, 0xfffffff4
push dword [ebp + 8]
call sub.KERNEL32.dll_ExitProcess
Function at 0x403be8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push edi
push esi
push ebx
mov ebx, dword [ebp + 8]
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403c10
xor eax, eax
jmp 0x403dcf
push 0
lea edi, [ebp - 0x110]
push edi
push 0x104
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
mov ebx, eax
test ebx, ebx
je 0x403dcd
cmp ebx, 0x103
jbe 0x403c48
add esp, 0xfffffff4
push 0x6f
call sub.KERNEL32.dll_SetLastError
xor ebx, ebx
jmp 0x403dcd
add esp, 0xfffffff4
lea eax, [ebp - 0x324]
push eax
call sub.SHELL32.DLL_SHGetDesktopFolder
mov edx, eax
add esp, 0xc
test edx, edx
jl 0x403dcd
add esp, 0xfffffff8
push 0x104
lea esi, [ebp - 0x320]
push esi
push 0xffffffffffffffff
push edi
push 0
call sub.KERNEL32.dll_AreFileApisANSI
test eax, eax
sete al
movzx eax, al
push eax
call sub.KERNEL32.dll_MultiByteToWideChar
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403cb4
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x403dbc
add esp, 0xfffffff4
push 0x6f
call sub.KERNEL32.dll_SetLastError
jmp 0x403db9
add esp, 0xfffffffc
mov edx, dword [ebp - 0x324]
mov ecx, dword [edx]
push 0
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x32c]
push eax
push esi
push 0
push 0
push edx
mov eax, dword [ecx + 0xc]
call eax
mov edx, eax
add esp, 4
test edx, edx
jge 0x403d10
sar eax, 0x10
and eax, 0x1fff
cmp eax, 7
jne 0x403cfc
add esp, 0xfffffff4
movzx edx, dx
push edx
jmp 0x403d01
add esp, 0xfffffff4
push 0xd
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
xor ebx, ebx
jmp 0x403dbc
add esp, 0xfffffff8
push edi
push dword [ebp - 0x328]
call sub.SHELL32.DLL_SHGetPathFromIDListA
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x403d40
cmp byte [ebp - 0x110], 0
je 0x403d40
add esp, 0xfffffff4
push 0xd
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
jmp 0x403d7b
add esp, 0xfffffff4
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea esi, [ebx + 1]
add esp, 0xc
cmp esi, dword [ebp + 0x10]
jbe 0x403d68
add esp, 0xfffffff4
push 0x7a
call sub.KERNEL32.dll_SetLastError
mov ebx, esi
add esp, 0xc
jmp 0x403d7b
add esp, 0xfffffffc
mov eax, dword [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
call sub.KERNEL32.dll_lstrcpynA
add esp, 4
add esp, 0xfffffff4
lea eax, [ebp - 0x330]
push eax
call sub.SHELL32.DLL_SHGetMalloc
add esp, 0xc
test eax, eax
jl 0x403dbc
add esp, 0xfffffff8
mov eax, dword [ebp - 0x330]
mov edx, dword [eax]
push dword [ebp - 0x328]
push eax
mov eax, dword [edx + 0x14]
call eax
add esp, 0xfffffffc
mov eax, dword [ebp - 0x330]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
add esp, 0xc
add esp, 0xfffffff4
mov eax, dword [ebp - 0x324]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, ebx
lea esp, [ebp - 0x348]
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x403ecc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x415c
call fcn.00417820
push edi
push esi
push ebx
add esp, 0xfffffffc
push 1
push 0x403e7d
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
je 0x4040c6
mov edi, dword [ebp + 8]
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
je 0x4040c6
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
push 0x403e7f
call fcn.0040874c
mov edi, dword [ebp + 8]
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
add esp, 0x10
cmp ecx, 0xfffffffe
je 0x4040c6
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x2140]
push ebx
call sub.msvcrt.dll_strcpy
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add esp, 0x10
cmp byte [ebx + ecx - 1], 0x5c
je 0x403f76
add esp, 0xfffffff8
push 0x403e8b
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
push 0x403e8d
push ebx
call sub.msvcrt.dll_strcat
add esp, 0xfffffff8
lea eax, [ebp - 0x140]
mov dword [ebp - 0x4148], eax
push eax
push ebx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x4144], eax
add esp, 0x18
cmp eax, 0xffffffff
je 0x4040c6
lea eax, [ebp - 0x114]
mov dword [ebp - 0x414c], eax
mov esi, eax
mov edi, 0x403e7d
mov ecx, 2
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x404096
mov esi, eax
mov edi, 0x403e91
mov ecx, 3
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x404096
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x4140]
push ebx
call sub.msvcrt.dll_strcpy
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add esp, 0x10
cmp byte [ebx + ecx - 1], 0x5c
je 0x404022
add esp, 0xfffffff8
push 0x403e8b
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [ebp - 0x414c]
push eax
push ebx
call sub.msvcrt.dll_strcat
add esp, 0x10
test byte [ebp - 0x140], 0x10
je 0x40407c
add esp, 0xfffffffc
movzx eax, byte [ebp + 0xc]
push eax
push ebx
push 0x403e94
call fcn.0040874c
add esp, 0x10
cmp byte [ebp + 0xc], 0
je 0x40406c
add esp, 0xfffffff8
add esp, 0xfffffffe
push 0
push ebx
call fcn.00403ecc
add esp, 0x10
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_RemoveDirectoryA
add esp, 0xc
jmp 0x404096
add esp, 0xfffffff8
push ebx
push 0x403eb1
call fcn.0040874c
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_DeleteFileA
add esp, 0x1c
add esp, 0xfffffff8
mov eax, dword [ebp - 0x4148]
push eax
mov eax, dword [ebp - 0x4144]
push eax
call sub.KERNEL32.dll_FindNextFileA
add esp, 8
test eax, eax
jne 0x403fac
add esp, 0xfffffff4
mov eax, dword [ebp - 0x4144]
push eax
call sub.KERNEL32.dll_FindClose
lea esp, [ebp - 0x4168]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x404260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
add esp, 0xfffffff4
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x40428a
cmp dword [ebp - 4], 7
ja 0x4042aa
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x40423c
call fcn.0040874c
add esp, 0xfffffff4
push 0x404246
call fcn.00403acc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
leave
ret

Function at 0x4042d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
add esp, 0xfffffff4
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x404302
cmp dword [ebp - 4], 3
ja 0x404325
add esp, 0xfffffffc
push dword [ebp - 4]
call sub.KERNEL32.dll_GetLastError
push eax
push 0x4042b2
call fcn.0040874c
add esp, 0xfffffff4
push 0x4042bf
call fcn.00403acc
mov eax, dword [ebp - 8]
leave
ret

Function at 0x404344
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
add esp, 0xfffffff4
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 6]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x40436e
cmp dword [ebp - 4], 1
ja 0x40438e
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x40423c
call fcn.0040874c
add esp, 0xfffffff4
push 0x40432a
call fcn.00403acc
movsx eax, word [ebp - 6]
leave
ret

Function at 0x4043b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov ebx, dword [ebp + 8]
add esp, 0xfffffff4
push ebx
call fcn.004042d8
mov esi, eax
add esp, 0xfffffff4
lea eax, [esi + 1]
push eax
call fcn.00417610
mov edi, eax
mov byte [esi + edi], 0
add esp, 0x20
add esp, 0xfffffff4
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x4043f9
cmp dword [ebp - 4], esi
jae 0x404406
add esp, 0xfffffff4
push 0x404394
call fcn.00403acc
mov eax, edi
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x40442c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
add esp, 0xfffffff4
mov eax, dword [ebp + 8]
push eax
call fcn.004042d8
mov esi, eax
add esp, 0xfffffff4
shr eax, 0x1f
lea ebx, [eax + esi]
sar ebx, 1
lea eax, [ebx*2 + 2]
push eax
call fcn.00417610
mov edi, eax
mov word [edi + ebx*2], 0
add esp, 0x20
add esp, 0xfffffff4
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x404486
cmp dword [ebp - 4], esi
jae 0x404493
add esp, 0xfffffff4
push 0x404410
call fcn.00403acc
mov eax, edi
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x404ac0
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00417820
push ebx
add esp, 0xfffffffc
push dword [ebp + 8]
push 0x404aad
lea ebx, [ebp - 0x2000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff4
push ebx
call sub.msvcrt.dll__rmdir
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.msvcrt.dll__mkdir
add esp, 0x10
test eax, eax
jne 0x404b29
add esp, 0xfffffff4
push ebx
call fcn.004044ac
add esp, 0x10
test al, al
je 0x404b20
add esp, 0xfffffff4
push ebx
call sub.msvcrt.dll__rmdir
mov al, 1
jmp 0x404b2b
add esp, 0xfffffff4
push ebx
call sub.msvcrt.dll__rmdir
mov al, 0
mov ebx, dword [ebp - 0x2018]
leave
ret
Function at 0x404bd0
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400c
call fcn.00417820
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
add esp, 0xfffffff8
push esi
push 0x2000
call sub.KERNEL32.dll_GetTempPathA
mov ebx, eax
add esp, 0xfffffff4
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x404b3c
call fcn.0040874c
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
add esp, 0x28
cmp ecx, 0xfffffffe
jne 0x404c78
add esp, 0xfffffffc
push 0x2000
push esi
push 0x404b64
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + 0x1fff]
push eax
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esi + ecx - 1]
push eax
push 0x404b6e
call sub.KERNEL32.dll_GetEnvironmentVariableA
add esp, 0xfffffffc
push esi
push 0x404b7c
call fcn.0040874c
add esp, 0x10
jmp 0x404c96
test ebx, ebx
jle 0x404c96
add esp, 0xfffffff8
add esp, 0xfffffff4
push esi
call sub.msvcrt.dll__mkdir
push eax
push 0x404b9f
call fcn.0040874c
add esp, 0x20
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push esi
mov eax, dword [0x422020]
call eax
add esp, 0xfffffffc
push 0x3f
push ebx
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
je 0x404db8
add esp, 0xfffffff8
push 0x2000
lea ebx, [ebp - 0x4000]
push ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
add esp, 0xfffffff4
push ebx
push 0x404bb4
push esi
call sub.msvcrt.dll_sprintf
add esp, 0x20
add esp, 0xfffffff4
push esi
call fcn.00404ac0
add esp, 0x10
test al, al
jne 0x404db8
mov eax, dword [0x404bbc]
mov dword [esi], eax
mov eax, dword [0x404bc0]
mov dword [esi + 4], eax
add esp, 0xfffffff4
push esi
call fcn.00404ac0
add esp, 0x10
test al, al
jne 0x404db8
mov edi, 0x404bc4
mov eax, dword [0x404bc4]
mov dword [esi], eax
movzx eax, word [edi + 4]
mov word [esi + 4], ax
mov al, byte [edi + 6]
mov byte [esi + 6], al
add esp, 0xfffffff4
push esi
call fcn.00404ac0
add esp, 0x10
test al, al
jne 0x404db8
add esp, 0xfffffff8
push ebx
push esi
call sub.msvcrt.dll_strcpy
add esp, 0xfffffff4
push esi
call fcn.00404ac0
add esp, 0x20
test al, al
jne 0x404db8
mov eax, dword [0x404bcb]
mov dword [esi], eax
add esp, 0xfffffff4
push esi
call fcn.00404ac0
add esp, 0x10
test al, al
je 0x404da9
mov eax, dword [0x404bc4]
mov dword [esi], eax
movzx eax, word [edi + 4]
mov word [esi + 4], ax
mov al, byte [edi + 6]
mov byte [esi + 6], al
add esp, 0xfffffff4
push esi
call sub.msvcrt.dll__mkdir
add esp, 0xfffffff4
push esi
call fcn.00404ac0
add esp, 0x20
test al, al
jne 0x404db8
add esp, 0xfffffff8
push 0
push 0x3f7
call fcn.00403b2c
lea esp, [ebp - 0x4018]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x404e1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00417820
push esi
push ebx
mov esi, dword [ebp + 8]
add esp, 0xfffffff4
lea ebx, [ebp - 0x2000]
push ebx
call fcn.00404bd0
add esp, 0xfffffff8
push ebx
push 0x404dc3
call fcn.0040874c
add esp, 0x20
push esi
push 0
push 0x404dd2
push ebx
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
jne 0x404e9e
add esp, 0xfffffff8
call sub.KERNEL32.dll_GetLastError
push eax
push 0x404ddc
call fcn.0040874c
add esp, 0xfffffff4
add esp, 0xfffffff4
push 0
call sub.msvcrt.dll_time
push eax
call sub.msvcrt.dll_srand
add esp, 0x30
call sub.msvcrt.dll_rand
push eax
push ebx
push 0x404e03
push esi
call sub.msvcrt.dll_sprintf
add esp, 0x10
add esp, 0xfffffff8
push esi
push 0x404e0b
call fcn.0040874c
lea esp, [ebp - 0x2018]
pop ebx
pop esi
leave
ret
Function at 0x407ba8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push ebx
mov esi, 0x422030
mov edi, dword [0x422030]
jmp 0x407c19
mov ebx, dword [esi]
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx - 1]
add esp, 0xfffffff4
push ecx
call fcn.00417610
xor edx, edx
add esp, 0x10
cmp edx, edi
jge 0x407bf6
lea esi, [esi]
mov cl, byte [edx + ebx]
xor cl, 0xbb
mov byte [edx + eax], cl
inc edx
cmp edx, edi
jl 0x407be8
mov byte [edi + eax], 0
add esp, 0xfffffffc
push edi
push eax
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x407c14
mov al, 1
jmp 0x407c2a
add esi, 4
mov edi, dword [esi]
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x407bc0
mov al, 0
lea esp, [ebp - 0x18]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x408408
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x408435
mov ecx, eax
mov eax, dword [esi]
mov dl, al
xor dl, byte [ebx]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x42204c]
mov dword [esi], eax
inc ebx
dec ecx
jne 0x40841c
pop ebx
pop esi
leave
ret
Function at 0x408530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.00417820
push edi
push esi
push ebx
mov eax, dword [0x422854]
test eax, eax
je 0x408568
cmp dword [0x422850], 0
jne 0x408568
add esp, 0xfffffff8
push 0x4084d7
push eax
call sub.msvcrt.dll_fopen
mov dword [0x422850], eax
add esp, 0x10
cmp byte [0x42284c], 0
jne 0x4086b8
mov byte [0x42284c], 1
mov al, byte [0x42287e]
mov byte [ebp - 0x4005], al
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push 0x4084d9
call sub.KERNEL32.dll_GetEnvironmentVariableA
add esp, 4
test eax, eax
je 0x4085c1
mov esi, ebx
mov edi, 0x4084e3
mov ecx, 4
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x4085c1
mov byte [ebp - 0x4005], 1
add esp, 0xfffffffc
push 0x2000
push ebx
push 0x4084e7
call sub.KERNEL32.dll_GetEnvironmentVariableA
add esp, 4
test eax, eax
je 0x4085f5
mov esi, ebx
mov edi, 0x4084e3
mov ecx, 4
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x4085f5
mov byte [ebp - 0x4005], 1
cmp byte [ebp - 0x4005], 0
je 0x4086b8
add esp, 0xfffffff8
push 0x4084f5
push 0x4084ff
call sub.msvcrt.dll__tempnam
mov dword [0x422854], eax
add esp, 0x10
test eax, eax
je 0x408636
add esp, 0xfffffff8
push 0x408503
push eax
call sub.msvcrt.dll_fopen
mov dword [0x422850], eax
add esp, 0x10
cmp dword [0x422850], 0
jne 0x408667
mov dword [0x422854], 0x408505
add esp, 0xfffffff8
push 0x408503
push 0x408505
call sub.msvcrt.dll_fopen
mov dword [0x422850], eax
add esp, 0x10
test eax, eax
je 0x4086b8
add esp, 0xfffffffc
push 0x2000
lea esi, [ebp - 0x4000]
push esi
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
add esp, 0xfffffff8
lea ebx, [ebp - 0x4004]
push ebx
call sub.msvcrt.dll_time
add esp, 0xfffffff4
push ebx
call sub.msvcrt.dll_ctime
push eax
push esi
push 0x408511
push dword [0x422850]
call sub.msvcrt.dll_fprintf
add esp, 0x30
add esp, 0xfffffff4
push dword [0x422850]
call sub.msvcrt.dll_fflush
lea esp, [ebp - 0x4028]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x408838
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00417820
push ebx
add esp, 0xfffffffc
add esp, 0xfffffffe
push 0
call fcn.00404660
push eax
lea ebx, [ebp - 0x2000]
push ebx
call fcn.00404a4c
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2004]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x408810
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
add esp, 0x1c
test eax, eax
jne 0x4088c5
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp - 0x2008], eax
add esp, 0xfffffff8
push 4
lea eax, [ebp - 0x2008]
push eax
push 4
push 0
push ebx
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegSetValueExA
add esp, 0xfffffffc
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegCloseKey
mov ebx, dword [ebp - 0x2028]
leave
ret
Function at 0x4088d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.00417820
push esi
push ebx
add esp, 0xfffffffc
add esp, 0xfffffffe
push 0
call fcn.00404660
push eax
lea ebx, [ebp - 0x2000]
push ebx
call fcn.00404a4c
xor esi, esi
add esp, 0xfffffff4
lea eax, [ebp - 0x2004]
push eax
push 0x20019
push 0
push 0x408810
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0x1c
test eax, eax
jne 0x408977
mov dword [ebp - 0x2008], 4
add esp, 0xfffffff8
lea eax, [ebp - 0x2008]
push eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
push ebx
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x408969
cmp dword [ebp - 0x2008], 4
jne 0x408969
mov esi, dword [ebp - 0x200c]
add esp, 0xfffffff4
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, esi
lea esp, [ebp - 0x2028]
pop ebx
pop esi
leave
ret
Function at 0x40939c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00417820
push esi
push ebx
add esp, 0xfffffff4
push 0x278b
call fcn.004019cc
add esp, 0x10
test eax, eax
je 0x4094f6
cmp dword [ebp + 8], 0
jne 0x4093e4
cmp byte [0x422864], 0
je 0x4094f6
mov eax, dword [0x42e160]
call eax
jmp 0x4094f6
cmp byte [0x422864], 0
jne 0x4094f6
add esp, 0xfffffffc
call fcn.004052c8
push eax
push 0x40925d
lea ebx, [ebp - 0x2000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
push 0x409290
call fcn.0040874c
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x409440
add esp, 0xfffffff4
push 0x4092d0
call fcn.004086e0
jmp 0x4094f6
add esp, 0xfffffff8
push 0x4092f0
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x42e160], eax
push 0x4092fc
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x42e150], eax
push 0x409307
push ebx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x42e140], eax
add esp, 8
cmp dword [0x42e160], 0
je 0x40948d
mov edx, dword [0x42e150]
test edx, edx
je 0x40948d
test eax, eax
jne 0x40949c
add esp, 0xfffffff4
push 0x409330
call fcn.004086e0
jmp 0x4094f6
call edx
add esp, 0xfffffffc
push 0xa
push 0x2710
push 0
call sub.KERNEL32.dll_FindResourceA
mov ebx, eax
add esp, 0xfffffff8
add esp, 0xfffffffc
push ebx
push 0
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov esi, eax
add esp, 0xfffffff8
push ebx
push 0
call sub.KERNEL32.dll_SizeofResource
add esp, 0xfffffffc
push eax
push esi
push ebx
push eax
push esi
mov eax, dword [0x42e140]
call eax
add esp, 8
push eax
push 0x409370
call fcn.0040874c
mov byte [0x422864], 1
lea esp, [ebp - 0x2018]
pop ebx
pop esi
leave
ret

Function at 0x40a5c0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00417820
push esi
push ebx
cmp dword [0x422878], 1
jne 0x40a663
mov dword [0x422878], 0
add esp, 0xfffffff4
push 0x6b
call fcn.004019cc
add esp, 0x10
cmp eax, 1
je 0x40a663
add esp, 0xfffffff8
push 0x2000
lea esi, [ebp - 0x4000]
push esi
call sub.KERNEL32.dll_GetConsoleTitleA
add esp, 8
test eax, eax
je 0x40a663
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call sub.KERNEL32.dll_GetTickCount
push eax
push 0x40a5ba
lea ebx, [ebp - 0x2000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_SetConsoleTitleA
add esp, 0x1c
test eax, eax
je 0x40a663
add esp, 0xfffffff4
push 0x28
call sub.KERNEL32.dll_Sleep
add esp, 0xfffffff4
push ebx
push 0
call sub.USER32.dll_FindWindowA
mov dword [0x422878], eax
add esp, 0xfffffffc
push esi
call sub.KERNEL32.dll_SetConsoleTitleA
lea esp, [ebp - 0x4018]
pop ebx
pop esi
leave
ret

Function at 0x40a670
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
movzx eax, byte [ebp + 0xc]
mov dword [0x42e180], edx
add esp, 0xfffffff8
push eax
push 0x40a77c
call sub.USER32.dll_EnumWindows
leave
ret