joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e44
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e61
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e70
mov ebx, 0x40f018
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e85
mov ecx, dword [0x423eb8]
add ecx, eax
push ecx
call fcn.00403069
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403037
test eax, eax
je 0x402fe2
test byte [ebp + 0x17], 0x80
je 0x402fcb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40af88
mov dword [ebp - 0xc], eax
call fcn.00405cb2
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40302d
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ed5
mov esi, dword [ebp + 0x14]
mov edi, 0x40b018
push esi
push edi
call fcn.00403037
test eax, eax
je 0x402fe2
sub dword [ebp + 0x14], esi
mov dword [0x40afa0], edi
mov dword [0x40afa4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40af88
mov dword [0x40afa8], ebx
mov dword [0x40afac], eax
call fcn.00405cd2
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fc3
mov esi, dword [0x40afa8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f14], 1
mov edi, eax
je 0x402f77
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f44
cmp dword [ebp + 0x14], 0
jne 0x402f77
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c58
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fb8
cmp dword [ebp + 0x10], eax
jne 0x402fa0
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fc7
cmp dword [ebp - 0x10], esi
jne 0x402fc7
add dword [ebp - 4], esi
jmp 0x402fac
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40afa8]
cmp dword [ebp - 0x14], 1
jne 0x402ef8
jmp 0x40302d
cmp dword [ebp + 0x14], eax
jg 0x402ec8
jmp 0x40302d
push 0xfffffffffffffffc
jmp 0x402fe4
push 0xfffffffffffffffe
jmp 0x402fe4
test edi, edi
je 0x403022
cmp dword [ebp + 0x14], esi
jge 0x402fd7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403037
test eax, eax
jne 0x40302a
push 0xfffffffffffffffd
pop eax
jmp 0x403030
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402ff2
mov esi, dword [ebp + 0x14]
mov edi, 0x40b018
push esi
push edi
call fcn.00403037
test eax, eax
je 0x402fe2
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fc7
cmp esi, dword [ebp + 0x10]
jne 0x402fc7
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402fe7
jmp 0x40302d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40511a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422478], 0x44
push eax
xor eax, eax
push 0x422478
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405155
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4051df
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040548e
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405213
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423ee8], eax
jmp 0x4053a7
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405231
test eax, eax
je 0x405352
test byte [ebp + 0xc], 2
je 0x405352
mov esi, 0x421478
push edi
push esi
call fcn.004058ba
test ebx, ebx
je 0x40524e
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405254
push edi
call fcn.004053f4
cmp byte [edi], 0
jne 0x405262
cmp byte [0x421478], 0x5c
jne 0x40526d
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405348
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004053d8
cmp byte [eax], 0
je 0x4052b3
cmp byte [ebp - 0x18], 0
je 0x4052b3
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052c9
mov al, byte [esi + 1]
test al, al
je 0x405327
cmp al, 0x2e
jne 0x4052c9
cmp byte [esi + 2], 0
je 0x405327
push esi
push ebx
call fcn.004058ba
test byte [ebp - 0x148], 0x10
je 0x4052ee
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405327
push dword [ebp + 0xc]
push edi
call fcn.004051df
jmp 0x405327
push edi
call fcn.00405572
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40531f
test byte [ebp + 0xc], 4
je 0x405317
push edi
push 0xfffffffffffffff1
call fcn.00404c58
push 0
push edi
call fcn.00405608
jmp 0x405327
inc dword [0x423ee8]
jmp 0x405327
push edi
push 0xfffffffffffffff2
call fcn.00404c58
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405291
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405352
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053a7
cmp dword [ebp - 8], esi
jne 0x405367
inc dword [0x423ee8]
jmp 0x4053a7
push edi
call fcn.00405bb1
test eax, eax
je 0x4053a7
push edi
call fcn.004053ad
push edi
call fcn.00405572
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40539f
test byte [ebp + 0xc], 4
je 0x40535f
push edi
push 0xfffffffffffffff1
call fcn.00404c58
push esi
push edi
call fcn.00405608
jmp 0x4053a7
push edi
push 0xffffffffffffffe5
call fcn.00404c58
pop edi
pop esi
leave
ret 8
Function at 0x40548e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421878
push esi
call fcn.004058ba
push esi
call fcn.00405441
mov edi, eax
test edi, edi
jne 0x4054af
xor eax, eax
jmp 0x405501
push edi
call fcn.00405b18
test byte [0x423e78], 0x80
je 0x4054c8
mov al, byte [edi]
test al, al
je 0x4054ab
cmp al, 0x5c
je 0x4054ab
sub edi, esi
jmp 0x4054e0
call fcn.00405bb1
test eax, eax
je 0x4054da
test byte [eax], 0x10
je 0x4054ab
push esi
call fcn.004053f4
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054cc
call fcn.004053ad
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405572
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40558e
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405591
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4055c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405604
test edi, edi
jne 0x4055cb
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4055fe
Function at 0x405608
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405bd8
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40562c
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405765
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422600], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422600
je 0x405670
push 1
push 0
push esi
call fcn.00405591
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40576b
cmp eax, edi
jg 0x40576b
mov esi, 0x422078
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40576b
cmp eax, edi
jg 0x40576b
push esi
push ebp
push str._s_s_r_n
push 0x421c78
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004058dc
push 4
push 0xc0000000
push esi
call fcn.00405591
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405765
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40575e
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40575e
cmp edi, dword [esp + 0x18]
jne 0x40575e
push str._Rename__r_n
push esi
call fcn.00405506
test eax, eax
jne 0x405772
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058ba
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c78
push eax
call fcn.00405552
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423ef0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409328
push eax
call fcn.00405506
test eax, eax
je 0x405729
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405799
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40578e
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40572b
Function at 0x4057a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405812
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405801
cmp dword [ebp + 0x14], 1
je 0x405803
cmp dword [ebp + 0x14], 2
je 0x405803
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a04], 0
push esi
jne 0x405c7b
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 0x405c55
mov dword [ecx*4 + 0x422a00], eax
inc ecx
cmp ecx, 0x100
jl 0x405c50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cac
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 + 0x422a00]
xor eax, esi
inc ecx
dec edx
jne 0x405c8e
pop edi
not eax
pop esi
ret 0xc

Function at 0x609017
Capabilities:
Encode data using xor

Disassembly:
imul edx, edx, 0xa
mov byte [esp + 4], 0x97
mov byte [esp], bh
add edx, eax
push edi
mov word [esp + 8], 0x6e77
lea esp, [esp + 0x28]
jmp 0x5e2722

Function at 0x60d585
Capabilities:
Encode data using xor

Disassembly:
call fcn.0060d203
pushal
inc esi
lea esp, [esp + 0x2e]
jno 0x60ad26
pushal
adc dl, dl
lea esp, [esp + 0x20]
not dl
std
std
cmp ch, 0xd4
mov byte [esp + 4], 0x61
push word [esp + 0xc]
popf
jmp 0x60bafa

Function at 0x7bb33f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
test eax, eax
pushal
jmp 0x612019
pushfd
clc
jmp 0x5e1c05
pushal
xchg dword [esp + 0x1c], ebp
shr bp, cl
lea ebp, [esp + 0x1c]
cwde
btc ax, 6
lea eax, [eax - 0x48b4a8c7]
not eax
sub esp, 0xfffffffc
bts ax, dx
push esi
inc eax
movzx eax, dl
push edi
lea eax, [esi - 0x1c3ca66]
shrd ax, bx, 7
push ebx
rol ah, 6
stc
movsx ax, cl
or ax, 0xe03
push edx
aad 0x1d
mov eax, dword [ebp + 8]
push 0x68cb412a
add esp, 4
jge 0x5e260d
test eax, eax
call fcn.006b1ea1
Function at 0x401750
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40ef38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x4017fa
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4017e1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x4017e1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040e29a
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401810
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x401872
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x210
ret 0xc
Function at 0x401a80
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x410
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push edi
push eax
push 0
push 0
push ebp
push str.open
mov esi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
ja 0x401b79
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, esi
call fcn.00401810
test eax, eax
jne 0x401b79
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, esi
call fcn.00401810
test eax, eax
jne 0x401b79
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x401b59
lea eax, [esp + 0x10]
push 0x417390
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x401b59
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + eax*2 + 0xe]
push 0x41738c
push esi
call ebx
push ebp
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret 8
push 0x41738c
push esi
mov word [esi], 0
call ebx
push ebp
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 8

Function at 0x401d20
Capabilities:
Check if file exists

Disassembly:
add ecx, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
ret

Function at 0x401d30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push 0
push 0x80
push 1
push 0
push 0
add ecx, 4
push 0x40000000
push ecx
mov dword [esp + 0x20], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0xc]
push 2
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401d88
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x401df0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20
add ecx, 4
lea eax, [esp]
push esi
push ecx
mov ecx, dword [esp + 0x30]
push 0x10
push eax
push str.Error_
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
mov eax, esi
pop esi
add esp, 0x20
ret 0xc

Function at 0x401e40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
add ecx, 4
push ecx
mov ecx, dword [esp + 0xc]
push 0x200
push eax
push str.Error_
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
ret 0xc
Function at 0x402590
Capabilities:
Get disk information

Disassembly:
push ecx
push 0
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0
push 0x4174ac
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4025c9
push eax
push eax
push 0x411c48
call sub.MFC42u.DLL_AfxMessageBox
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
mov edx, ecx
mov eax, ecx
shr edx, 0x10
sub eax, edx
and ecx, 0xffff
sub eax, ecx
pop ecx
ret

Function at 0x402620
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp]
push esi
xor esi, esi
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x4181bc
push esi
push 0x411bf0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40268e
mov eax, dword [esp + 4]
test eax, eax
je 0x402683
call fcn.004025e0
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
push 4
push esi
push str.REG_CODE
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x4026a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x4181bc
push 0
push 0x411bf0
push 0x80000002
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402719
mov eax, dword [esp + 4]
test eax, eax
je 0x402712
lea edx, [esp + 8]
lea ecx, [esp]
push edx
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.REG_CODE
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x14
ret
Function at 0x402750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40f070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
xor edi, edi
mov dword [esp + 0x14], edi
call sub.MFC42u.DLL_CFrameWnd::CFrameWnd
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xe8]
push eax
mov byte [esp + 0x18], 1
call sub.MFC42u.DLL_CString::CString_1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0xf0]
mov dword [esp + 0x14], 0xffffffff
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x20]
mov eax, 0x411918
mov dword [esi + 0x104], edi
mov dword [esi + 0x100], eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc4], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xc8], ecx
lea ecx, [esp + 0x1c]
mov dword [esi], 0x411d90
mov dword [esi + 0xec], eax
mov dword [esi + 0xcc], edx
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
call fcn.0040e29a
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10002b00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x101143a8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10002b3c
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x101143ac
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100bfcbc
add esp, 0x19c
ret

Function at 0x10002b90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10002bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.100ae100
neg esi
sbb esi, esi
mov dword [esp + 0xc], eax
test esi, fcn.100aec40
je 0x10002bd8
lea eax, [esp + 8]
push eax
mov edx, 0x100f2f20
call fcn.100029d0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret