joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [esp + 8], 0
je 0x403c0f
cmp dword [esp + 0xc], 0
je 0x403c0f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x403b98
pop edi
pop ecx
ret
push ebx
push esi
push 0xa
push str.SFX_INFO
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x403bbd
pop esi
pop ebx
pop edi
pop ecx
ret
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov dword [esp + 0x14], eax
call fcn.0040f590
mov ecx, dword [esp + 0x14]
push esi
mov ebp, eax
push ecx
push ebp
call fcn.00416680
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov dword [edx], ebp
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4040b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, eax
mov ebx, ecx
jne 0x4040ce
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40410e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.GetFileBuffer_____CreateFile___s___failed__error_code:__lu.
call fcn.0040b8f0
add esp, 0xc
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x404142
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.GetFileBuffer_____GetFileSize_lpSrcFilePath:___s___failed__error_code:__lu.
call fcn.0040b8f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
lea ecx, [edi + ebp]
cmp eax, ecx
jae 0x40416a
push ebp
push edi
push eax
push str.GetFileBuffer_____Invalid_file_size__dwFileSize:__lu__dwFileOffset:__lu__dwBufferSize:__lu.
call fcn.0040b8f0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebx, [ebp + 2]
push ebx
call fcn.0040f590
push ebx
mov edi, eax
push 0
push edi
call fcn.00412200
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push edi
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov eax, dword [esp + 0x10]
je 0x4041d7
cmp eax, ebp
jne 0x4041d7
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], edi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x14]
push ecx
push eax
push str.GetFileBuffer_____ReadFile___failed__dwReadBytes:__lu__error_code:__lu.
call fcn.0040b8f0
push edi
call fcn.004108d3
add esp, 0x10
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x404fa0
Capabilities:
Delete file
Move file
Terminate process

Disassembly:
sub esp, 0x218
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push esi
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
xor esi, esi
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
call fcn.00403b70
add esp, 8
test eax, eax
jne 0x40500d
push str.GetSetupResInfo___return_false
call fcn.0040b8f0
add esp, 4
push 0x10
push 0x4235d4
push 0x4237b8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00410ec8
mov eax, dword [esp + 4]
cmp eax, 0x4bc
je 0x405046
push eax
push str.GetSetupResInfo__:_dwResSize:__d
call fcn.0040b8f0
add esp, 8
push 0x10
push 0x4235d4
push str.penc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00410ec8
push ebx
push ebp
push edi
push 0x206
lea eax, [esp + 0x22]
push esi
push eax
mov word [esp + 0x28], si
call fcn.00412200
mov ebp, dword [esp + 0x20]
mov edi, dword [ebp + 0xc]
add edi, dword [ebp]
mov ebx, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 4], esi
jbe 0x40517e
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
mov eax, edi
mov dword [esp + 0x18], 0
call fcn.004040b0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 8
add edi, ebx
cmp esi, 2
mov dword [esp + 0x14], ecx
je 0x4050bc
push eax
add edi, ecx
call fcn.0040f9b2
add esi, 1
add esp, 4
cmp esi, dword [ebp + 4]
jb 0x405077
jmp 0x40517e
lea esi, [eax + 8]
push esi
push 0x42e6e8
push 0x423af4
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.004107e1
add esp, 0x14
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x1c]
mov word [eax + 0x42eaf8], cx
add eax, 2
test cx, cx
jne 0x4050e0
mov ecx, str.LangMXlang_ch.xml
mov eax, esi
jmp 0x405100
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405126
test dx, dx
je 0x405122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405126
add eax, 4
add ecx, 4
test dx, dx
jne 0x405100
xor eax, eax
jmp 0x40512b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405139
mov dword [0x42f90c], 0x804
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00403c20
add esp, 0xc
test eax, eax
jne 0x40516f
push str.SaveFileBufferAsFile___return_false
call fcn.0040b8f0
mov edx, dword [esp + 0x14]
push edx
call fcn.0040f9b2
add esp, 8
xor eax, eax
jmp 0x405183
push 4
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, 1
mov ecx, dword [esp + 0x224]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0040fbc6
add esp, 0x218
ret
Function at 0x405c70
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4206fc
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
push edi
mov eax, dword [0x42c2f0]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
xor ebp, ebp
push 0x206
mov esi, ecx
lea ecx, [esp + 0x2a]
push ebp
push ecx
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], bp
call fcn.00412200
add esp, 0xc
mov dword [esp + 0x14], ebp
lea edi, [esp + 0x14]
mov dword [esp + 0x23c], ebp
call fcn.00406ea0
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
mov edi, esi
call fcn.00401230
mov byte [esp + 0x240], 1
cmp dword [esp + 0x18], ebp
jne 0x405d0c
push 0x80004003
call fcn.0040f5a0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x240], 0
call fcn.00401690
movzx eax, ax
cmp ax, bp
je 0x405e23
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov edi, ebx
call fcn.00401230
mov byte [esp + 0x240], 2
cmp dword [esp + 0x18], ebp
jne 0x405d50
push 0x80004003
call fcn.0040f5a0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x244], 0
call fcn.004015c0
mov byte [esp + 0x23c], 3
mov edi, edi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x405d86
push 0x80004003
call fcn.0040f5a0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
mov esi, eax
mov dword [esp + 0x20], 0
call edx
test eax, eax
jge 0x405dad
push 0x425864
push esi
push eax
call fcn.0040f5b0
cmp ebp, dword [esp + 0x18]
je 0x405e0b
cmp dword [esp + 0x1c], 0
jne 0x405dc4
push 0x80004003
call fcn.0040f5a0
mov esi, dword [esp + 0x1c]
push ecx
mov edx, ebp
mov edi, esp
mov dword [esp + 0x1c], esp
call fcn.00401580
call fcn.00405aa0
mov ecx, dword [esp + 0x24]
add esp, 4
push eax
push ebx
lea edx, [esp + 0x2c]
push str._s:_d
push edx
mov dword [ecx], eax
call fcn.0041074b
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add ebp, 1
jmp 0x405d70
mov byte [esp + 0x23c], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405e23
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405e3e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x230
ret
Function at 0x405e70
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x4a4], eax
push 0x103
lea eax, [esp + 0x195]
push 0
push eax
mov byte [esp + 0x19c], 0
call fcn.00412200
push 0x206
lea ecx, [esp + 0x2aa]
push 0
push ecx
mov word [esp + 0x2b0], 0
call fcn.00412200
add esp, 0x18
lea edx, [esp]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x405f1c
push eax
lea eax, [esp + 0x29c]
push str.WSAStartup_failed:__d
push eax
call fcn.0041074b
mov edx, dword [0x42e548]
add esp, 0xc
push 0
push str.Error
lea ecx, [esp + 0x2a0]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x4ac
ret
push 0x104
lea eax, [esp + 0x194]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x405f05
lea ecx, [esp + 0x190]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x405f05
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edx, esi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x405f52
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
mov eax, 1
call fcn.0040fbc6
add esp, 0x4ac
ret
Function at 0x4068c0
Capabilities:
Open clipboard
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_OpenClipboard]
push esi
push edi
xor esi, esi
push esi
call ebp
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x406904
nop
push str.Cannot_open_the_Clipboard
call edi
push 0x3e8
call ebx
add esi, 0x3e8
cmp esi, 0x2710
jg 0x406904
push 0
call ebp
test eax, eax
je 0x4068e0
mov ebp, dword [sym.imp.USER32.dll_EmptyClipboard]
xor esi, esi
call ebp
test eax, eax
jne 0x406934
push str.Cannot_empty_the_Clipboard
call edi
push 0x3e8
call ebx
add esi, 0x3e8
cmp esi, 0x2710
jg 0x406934
call ebp
test eax, eax
je 0x406912
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x407d90
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x110
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x10c], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00412200
add esp, 0xc
cmp dword [0x42f91c], 0
je 0x407de0
mov eax, 1
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x110
ret
push 0x425884
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f91c], eax
jne 0x407e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x110
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptType
push eax
call esi
test eax, eax
mov dword [0x430128], eax
je 0x407f20
call eax
cmp eax, 0x64
mov dword [0x430144], eax
jbe 0x407f26
mov ecx, dword [0x42f91c]
push str.CryptVersion
push ecx
call esi
test eax, eax
mov dword [0x43012c], eax
je 0x407f20
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call eax
mov eax, dword [0x42f91c]
push str.GlobalInitLib
push eax
call esi
test eax, eax
mov dword [0x430138], eax
je 0x407f20
mov ecx, dword [0x42f91c]
push str.InitLib
push ecx
call esi
test eax, eax
mov dword [0x430120], eax
je 0x407f20
mov edx, dword [esp + 0x118]
mov ecx, dword [0x430144]
push edx
push edi
push ecx
call eax
test eax, eax
je 0x407f26
mov edx, dword [0x42f91c]
push str.Encrypt
push edx
call esi
test eax, eax
mov dword [0x430130], eax
je 0x407f20
mov eax, dword [0x42f91c]
push str.Decrypt
push eax
call esi
test eax, eax
mov dword [0x430134], eax
je 0x407f20
mov ecx, dword [0x42f91c]
push str.CheckDecrLib
push ecx
call esi
cmp dword [0x430138], 0
mov dword [0x43013c], eax
je 0x407f20
mov edx, dword [0x42f91c]
push str.CheckKeyLib
push edx
call esi
test eax, eax
mov dword [0x430140], eax
jne 0x407f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00407f60
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x110
ret
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040fbc6
add esp, 0x110
ret
Function at 0x407fd0
Capabilities:
Encode data using xor

Disassembly:
test ebx, ebx
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov esi, ecx
jbe 0x408009
xor ecx, ecx
test ebp, ebp
jbe 0x408009
mov eax, dword [esp + 0x18]
add eax, ecx
xor edx, edx
div ebx
mov eax, dword [esp + 0x14]
add ecx, 1
add esi, 1
add edi, 1
mov dl, byte [edx + eax]
xor dl, byte [esi - 1]
cmp ecx, ebp
mov byte [edi - 1], dl
jb 0x407fe5
pop edi
pop esi
pop ebp
ret

Function at 0x408010
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
push edi
mov edi, edx
jbe 0x408057
mov eax, ecx
xor edx, edx
div dword [esp + 0x1c]
add esi, 1
add edi, 1
mov al, byte [edx + ebp]
xor al, byte [esi - 1]
xor al, cl
xor al, ch
xor al, byte [esp + 0x22]
add ecx, 1
xor al, byte [esp + 0x23]
sub ebx, 1
mov byte [edi - 1], al
mov dword [esp + 0x20], ecx
jne 0x408028
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408630
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408671
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408665
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop esi
ret
Function at 0x40a5e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x338
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x334], eax
push esi
push 0x103
xor esi, esi
lea eax, [esp + 0x129]
push esi
push eax
mov byte [esp + 0x130], 0
call fcn.00412200
add esp, 0xc
push 0x110
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00412200
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x1c], 2
jne 0x40a6dd
lea ecx, [esp + 0x124]
call fcn.00409b00
mov esi, eax
test esi, esi
je 0x40a66f
lea eax, [esp + 0x124]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a662
sub eax, edx
jne 0x40a67d
lea ecx, [esp + 0x124]
call fcn.00409e30
mov esi, eax
test esi, esi
je 0x40a69d
lea eax, [esp + 0x124]
lea edx, [eax + 1]
jmp 0x40a690
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a690
sub eax, edx
jne 0x40a6ab
lea ecx, [esp + 0x124]
call fcn.0040a350
mov esi, eax
test esi, esi
je 0x40a6cd
lea eax, [esp + 0x124]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a6c0
sub eax, edx
jne 0x40a71f
lea ecx, [esp + 0x124]
call fcn.0040a0a0
mov esi, eax
jmp 0x40a71f
push 0x103
lea eax, [esp + 0x231]
push 0
push eax
mov byte [esp + 0x238], 0
call fcn.00412200
add esp, 0xc
lea ecx, [esp + 0x22c]
push str.G_H_D_I_e1____stOsVersion.dwPlatformId___VER_PLATFORM_WIN32_NT_n
push ecx
call fcn.0040fac5
add esp, 8
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x124]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40a730
mov ecx, dword [esp + 0x338]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040fbc6
add esp, 0x338
ret
Function at 0x40a760
Capabilities:
Get common file path
Get disk information
Print debug messages
Query environment variable

Disassembly:
sub esp, 0x328
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x324], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040a5e0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x40a7a1
mov eax, edi
lea edx, [eax + 1]
jmp 0x40a790
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a790
sub eax, edx
jne 0x40a886
push 0x103
lea eax, [esp + 0x229]
push ebx
push eax
mov byte [esp + 0x230], bl
call fcn.00412200
add esp, 0xc
lea ecx, [esp + 0x224]
push str.G_C_U_I_e1____G_H_D_I__.failed_n
push ecx
call fcn.0040fac5
add esp, 8
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x103
lea eax, [esp + 0x121]
push ebx
push eax
mov byte [esp + 0x128], bl
call fcn.00412200
add esp, 0xc
push 0x103
lea ecx, [esp + 0x120]
push ecx
push str.COMPUTERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0x11c]
push edx
call fcn.00420273
add esp, 4
push 0x103
lea eax, [esp + 0x19]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], bl
call fcn.00412200
add esp, 0xc
push 0x103
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x37], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x11c]
push ecx
push edx
push str.VSN__08X__s
push edi
call fcn.0040fac5
add esp, 0x10
mov ecx, dword [esp + 0x330]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040fbc6
add esp, 0x328
ret

Function at 0x40a8a0
Capabilities:
Get session user name
Query environment variable

Disassembly:
sub esp, 0x314
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00412200
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00412200
push 0x103
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.00412200
add esp, 0x24
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x110]
push ecx
mov dword [esp + 0xc], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x103
lea edx, [esp + 0x214]
push edx
push str.COMPUTERNAME
call esi
push 0x103
lea eax, [esp + 0xc]
push eax
push str.USERDOMAIN
call esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x214]
push edx
call fcn.00410685
add esp, 8
test eax, eax
pop esi
jne 0x40a991
lea eax, [esp + 0x108]
push eax
push 0x42636c
push edi
call fcn.0040fac5
add esp, 0xc
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0040fbc6
add esp, 0x314
ret
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push edx
push str._s._s
push edi
call fcn.0040fac5
mov ecx, dword [esp + 0x320]
add esp, 0x10
xor ecx, esp
call fcn.0040fbc6
add esp, 0x314
ret
Function at 0x40a9d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x860
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push ebp
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x255]
push ebx
push eax
mov byte [esp + 0x25c], bl
call fcn.00412200
add esp, 0xc
push 0x103
lea ecx, [esp + 0x45]
push ebx
push ecx
mov byte [esp + 0x4c], bl
call fcn.00412200
add esp, 0xc
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov eax, 3
xor ecx, ecx
cpuid
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x260]
push str._lu_lu_lu_lu
push eax
call fcn.0040fac5
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x165]
push ebx
push ecx
mov byte [esp + 0x16c], bl
call fcn.00412200
add esp, 0x24
lea ecx, [esp + 0x148]
call fcn.0040a760
push 0x103
lea edx, [esp + 0x35d]
push ebx
push edx
mov byte [esp + 0x364], bl
call fcn.00412200
add esp, 0xc
lea edi, [esp + 0x358]
call fcn.0040a8a0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, edi
push eax
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x258]
push edx
call ebp
push eax
lea eax, [esp + 0x50]
push str.P_U_F_B_HW_A_1____PID:_d__CID:_s__UID:_s__UN:_s
push eax
call fcn.0040fac5
add esp, 0x18
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3ff
lea edx, [esp + 0x465]
push ebx
push edx
mov byte [esp + 0x46c], bl
call fcn.00412200
add esp, 0xc
mov eax, edi
push eax
lea ecx, [esp + 0x14c]
push ecx
push str._s._s
lea edx, [esp + 0x46c]
push edx
call fcn.0040fac5
lea eax, [esp + 0x470]
push eax
call fcn.00420273
xor eax, eax
lea ecx, [esp + 0x264]
add esp, 0x14
push ecx
lea edi, [esp + 0x20]
lea ecx, [esp + 0x464]
mov byte [esp + 0x20], bl
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
call fcn.0040b5a0
mov edx, esi
mov ecx, edi
add esp, 4
mov eax, edi
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x40ab85
push esi
lea edx, [esp + 0x464]
push edx
call ebp
push eax
lea eax, [esp + 0x4c]
push str.P_U_F_B_HW_A_2____PID:_d__UUID:_s__UV:_s
push eax
call fcn.0040fac5
add esp, 0x14
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x864]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040fbc6
add esp, 0x860
ret
Function at 0x40b460
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov byte [esp + 0x85], al
mov eax, edx
push esi
mov byte [esp + 0x68], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b4b3
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov byte [edi + 0x20], cl
sub eax, esi
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.0040abe0
add esp, 4
lea esi, [esp + 0x10]
lea ecx, [esp + 0x8c]
call fcn.0040aca0
lea eax, [esp + 0x69]
xor esi, esi
mov dword [esp + 0xc], eax
mov bl, byte [esp + esi + 0x8c]
mov edx, dword [esp + 0xc]
movzx ecx, bl
push ecx
add edx, 0xffffffff
push str._02x
push edx
call fcn.0040fac5
shl bl, 4
movzx eax, bl
mov ebx, dword [esp + 0x18]
push eax
push str._02x
push ebx
call fcn.0040fac5
add esi, 1
add ebx, 2
add esp, 0x18
cmp esi, 0x10
mov dword [esp + 0xc], ebx
jl 0x40b529
push 0x20
lea ecx, [esp + 0x6c]
push ecx
push edi
call fcn.00416680
mov ecx, dword [esp + 0xa8]
add esp, 0xc
pop esi
pop ebx
xor ecx, esp
mov eax, edi
call fcn.0040fbc6
mov esp, ebp
pop ebp
ret