joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x405cf2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ccc
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d23
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x405d05
pop edi
not eax
pop esi
ret 0xc

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_struct_PIXWEIGHT____stdcall_PrepareRescale_int__int__int__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8

Function at 0x100206d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100206df
pop dword [ebp - 0x24]
mov eax, 0xf56183c
add eax, 0xabeea3
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x9737e35f
sub dword [ebp - 0x34], 0x48e59e14
mov dword [ebp - 0x30], 0xfbe2843b
sub dword [ebp - 0x30], 0xc9af37f6
mov dword [ebp - 0x2c], 0x311a1157
add dword [ebp - 0x2c], 0x1b3232d7
mov dword [ebp - 0x28], 0x51dfe262
sub dword [ebp - 0x28], 0x51dfe262
lea eax, [ebp - 0x34]
push eax
mov eax, 0x5f5a4091
sub eax, 0x4f57f00d
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x828ab02c
sub dword [ebp - 0x34], 0xe1846d6
mov dword [ebp - 0x30], 0xb9d128bc
add dword [ebp - 0x30], 0x879b38b9
mov dword [ebp - 0x2c], 0x9b1b4cd1
add dword [ebp - 0x2c], 0xc8541f9b
mov dword [ebp - 0x28], 0xfe27bd35
sub dword [ebp - 0x28], 0xfe27bd35
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3c068
push 0
call eax
mov ecx, 0x4aa6
xor edx, edx
add edx, eax
mov edi, 0x10030c00
add edi, dword [ebp - 0x24]
mov esi, 0xd078e486
add esi, 0x14fc7bcd
xor dword [ebp - 0x1c], eax
mov ebx, dword [edi]
add dword [ebp - 0xc], ecx
add ebx, esi
sub dword [ebp - 0xc], esi
mov dword [edx], ebx
add dword [ebp - 4], esi
add edx, 0x70e3fdcb
sub edx, 0x70e3fdc7
add edi, 0x7e7253b2
add edi, 0x818dac52
loop 0x100207f2
add eax, 0xd5547a0e
sub eax, 0xd5535ca3
mov ebx, eax
add eax, 5
mov ecx, 0x2fb92eaf
sub ecx, 0x1fb92eaf
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x43dea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43e037
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0043d970
mov eax, dword [ebp - 0x204]
lea edx, [esi + 1]
call fcn.0040be0c
cmp al, 2
jne 0x43dee6
dec esi
mov eax, ebx
call fcn.0043dc84
test al, al
je 0x43dfd7
test esi, esi
jge 0x43defb
xor esi, esi
lea edi, [esi + 1]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0043d970
mov eax, dword [ebp - 0x204]
call fcn.00403e4c
cmp edi, eax
jge 0x43df42
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0043d970
mov eax, dword [ebp - 0x204]
mov al, byte [eax + edi - 1]
mov edx, dword [0x4c62b0]
and eax, 0xff
bt dword [edx], eax
jae 0x43df42
inc edi
mov eax, dword [ebx + 0x138]
cmp esi, eax
jl 0x43df50
mov esi, eax
mov edi, esi
mov ecx, edi
mov edx, edi
mov eax, ebx
call fcn.0043de7c
cmp edi, esi
je 0x43dfcf
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x43df76
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, ebx
call fcn.0042ee8c
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, ebx
call fcn.0042ee8c
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [ebx + 0x140], esi
jmp 0x43e01e
test esi, esi
jge 0x43dfdd
xor esi, esi
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0043d970
mov eax, dword [ebp - 0x204]
call fcn.00403e4c
cmp esi, eax
jl 0x43e013
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.0043d970
mov eax, dword [ebp - 0x204]
call fcn.00403e4c
mov esi, eax
mov ecx, esi
mov edx, esi
mov eax, ebx
call fcn.0043de7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e03e
lea eax, [ebp - 0x204]
call fcn.00403bd0
ret
Function at 0x4466e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004457e8
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
invalid
invalid
invalid

Function at 0x44c9d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4c5592
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ca2f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4c55b3
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x44ca25
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x44ca33
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x47edfc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47ef56
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ef36
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403d74
lea eax, [ebp - 0x118]
mov edx, 0x47ef6c
call fcn.00403e54
mov eax, dword [ebp - 0x118]
call fcn.00404010
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47eea8
lea eax, [ebp - 0x111]
call fcn.0040858c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00403cb4
jmp 0x47eeaf
mov eax, esi
call fcn.00403bd0
cmp bl, 0x61
jae 0x47eed0
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040c19c
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403c68
jmp 0x47eeea
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.0040c110
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403c68
lea eax, [ebp - 0x118]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0xb
lea edx, [ebp - 0x120]
xor ecx, ecx
mov eax, 0x47ef78
call fcn.00408cbc
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00403c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef3d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x482178
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404010
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x482191
test al, 0x10
jne 0x482195
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x401bd7
pop dword [ebp - 0x3c]
mov eax, 0x8acf6a77
sub eax, 0x8a8f4ea0
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc5a00097
sub dword [ebp - 0x4c], 0x774dbb4c
mov dword [ebp - 0x48], 0x84a017e7
sub dword [ebp - 0x48], 0x526ccba2
mov dword [ebp - 0x44], 0xc0a97574
sub dword [ebp - 0x44], 0x745d3146
mov dword [ebp - 0x40], 0x6c9f454
sub dword [ebp - 0x40], 0x6c9f454
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xc9489645
sub dword [ebp - 0x4c], 0x54d62cef
mov dword [ebp - 0x48], 0xd0570d98
sub dword [ebp - 0x48], 0x8eeaac23
mov dword [ebp - 0x44], 0x68d84a06
add dword [ebp - 0x44], 0xfa972266
mov dword [ebp - 0x40], 0x37a82b15
add dword [ebp - 0x40], 0xc857d4eb
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x77b0a3cf
sub eax, 0x777032cf
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x34673
push 0
call eax
mov ecx, 0x33019c5e
add ecx, 0xccfea2f2
xor ebx, ebx
add ebx, eax
mov esi, 0x4573b433
sub esi, 0x4532b433
add esi, dword [ebp - 0x3c]
mov edx, 0xf790bcbd
mov edi, dword [esi]
xor dword [ebp - 4], 0x9fcf373c
add edi, edx
mov dword [ebp - 0x14], 0xff860fa0
mov dword [ebx], edi
sub dword [ebp - 0x28], esi
add ebx, 0xd29850b7
add ebx, 0x2d67af4d
add esi, 0x742222af
sub esi, 0x742222ab
loop 0x401cf0
add eax, 0xb0bbf611
sub eax, 0xb0bb05fe
mov ebx, eax
add eax, 5
mov ecx, 0x23a453f7
sub ecx, 0x236453f7
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40c393
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c430
push ebx
push esi
call fcn.0040c35c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c2f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c3dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42f
push edi
push eax
call fcn.0040cfb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c3fd
call fcn.0040ae51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c2f0
add esp, 0x20
test eax, eax
jne 0x40c41c
push edi
call fcn.0040ae51
jmp 0x40c424
push ebx
call fcn.0040ae51
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d72d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472f30
push 0x472f28
push str.FlsAlloc
push 0x1f
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d761
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
jmp 0x40d767
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472f40
push 0x472f38
push str.FlsGetValue
push 0x21
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d7ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x472f48
push 0x472f40
push str.FlsSetValue
push 0x22
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d824
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40607b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422274], 0
push esi
jne 0x4060b2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40608c
mov dword [ecx*4 + 0x422270], eax
inc ecx
cmp ecx, 0x100
jl 0x406087
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060e3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422270]
xor eax, esi
inc ecx
dec edx
jne 0x4060c5
pop edi
not eax
pop esi
ret 0xc

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x406c3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, ecx
jne 0x406c58
cmp dword [esi + 0x28], edi
jne 0x406c58
xor eax, eax
jmp 0x406cc2
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x406cc0
add eax, eax
cmp eax, dword [esi + 0x28]
jne 0x406cc0
lea eax, [ebp + 8]
push eax
push 0x20119
push edi
push 0x401350
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406cc0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40133c
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406cb7
mov eax, dword [ebp - 8]
not eax
cmp eax, dword [esi + 0x28]
jne 0x406cb7
xor edi, edi
inc edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x406fe6
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x78], edi
jne 0x40703f
push edi
push 4
push esi
push 0x406f38
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x74], eax
jne 0x407014
mov dword [esi + 0x5c], 1
jmp 0x40703f
push edi
push edi
push 1
push edi
mov dword [esi + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push dword [esi + 0x74]
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
ret

Function at 0x407047
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x422830]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x94], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
inc edi
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x401490
mov dword [ebp - 0x90], ecx
call fcn.0040697a
mov ecx, dword [ebp - 0x90]
call fcn.00406eb2
mov ebx, eax
test ebx, ebx
jne 0x4070aa
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x90]
call fcn.00406eb2
mov ebx, eax
test ebx, ebx
je 0x407112
push 0x11
pop ecx
push 0
lea eax, [ebp - 0x98]
push eax
push 0x88
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x88], edi
push eax
mov dword [ebp - 0x8c], 0xae0ae0ae
lea edi, [ebp - 0x84]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4070f5
xor esi, esi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x94], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x94], 0
je 0x407112
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x401478
jmp 0x40711d
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x401464
mov ecx, dword [ebp - 0x90]
call fcn.0040697a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040de61
leave
ret 4