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

Disassembly:
push 0xffffffffffffffff
push 0x46eec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00449f30
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00449f30
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00449fa0
cmp dword [esp + 0x40], ebx
jne 0x44a708
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.00449f50
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00449f50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0044a5c0
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0044a3d0
cmp eax, esi
jb 0x44a78b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x4901ec
lea ecx, [esp + 0x1c]
call fcn.0044a350
cmp eax, 1
jne 0x44a77d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a0f0
push ebx
lea ecx, [esp + 0x20]
call fcn.0044a450
push eax
call fcn.004524c1
add esp, 8
test eax, eax
jge 0x44a77d
push ebx
lea ecx, [esp + 0x20]
call fcn.0044a440
push eax
call edi
test eax, eax
je 0x44a7c0
lea ecx, [esp + 0xc]
inc esi
call fcn.0044a3d0
cmp esi, eax
jbe 0x44a72d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00449f50
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00449f50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00449f50
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00449f50
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x44cd40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x44cd4b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x44ce4e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x479abc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x479abc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x479abc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x479abc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x479abc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x479abc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x479abc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x479abc]
xor eax, edx
inc ecx
dec edi
jne 0x44cd66
pop edi
test esi, esi
je 0x44ce70
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x479abc]
xor eax, edx
inc ecx
dec esi
jne 0x44ce52
pop esi
pop ebx
not eax
ret

Function at 0x44d810
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x44d851
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d846
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x44d864
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x44e7a0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x44e855
cmp dword [ebp + 4], 0xffffffff
jne 0x44e855
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x490474
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
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x44e81d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x44e81d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.0044d5a0
add esp, 0x10
test eax, eax
jne 0x44e840
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0044dae0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x44ecb0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x44ed78
mov al, byte [ecx]
test al, al
je 0x44ed78
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x44ecdb
cmp al, 0x5c
jne 0x44ecdd
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x44ecd3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x44ed14
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.00452b6a
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.0044ecb0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4524c1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4524e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00453fa9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x452504
test byte [esp + 8], 2
je 0x452504
call fcn.0045401c
mov dword [eax], 0xd
call fcn.00454025
mov dword [eax], 5
jmp 0x4524dd
xor eax, eax
ret

Function at 0x463315
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46334d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004613cc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004613a4
jmp 0x463359
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464a0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464a4c
call fcn.0046a4c4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464a4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464a43
xor eax, eax
jmp 0x464a54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464a5a
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a9f4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46aa22
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46aa40
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a95a
jmp 0x46aa40
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46aa40
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a95a
test edi, edi
mov eax, edi
jne 0x46aa2a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40131e
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x405a50
call fcn.004026d0
sub esp, 0xc
push str.Tenio_Initialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp + 8], 0
je 0x40136c
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40136c
lea ecx, [ebp - 0x18]
call fcn.00401786
mov ecx, dword [ebp - 0x14]
push dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x38]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004017c9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40137a
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
mov eax, 0x405a64
call fcn.004026d0
sub esp, 0x230
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.00401786
xor esi, esi
push esi
push 8
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40145a
cmp dword [ebp - 0x14], esi
je 0x40145a
push edi
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x238]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x224
push eax
push ebx
call sub.KERNEL32.dll_Module32First
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
je 0x40140b
push str.TenioDllFreeMap
push dword [ebp - 0x220]
call esi
test eax, eax
je 0x4013fa
call eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4013e7
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x14]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x401453
push str.TenioSetDllSafe
push dword [ebp - 0x220]
call esi
test eax, eax
je 0x401444
push 0
call eax
pop ecx
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
jmp 0x40142a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tenio_Uninitialize_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004017c9
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40147f
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and dword [ebp - 0x12c], 0
push esi
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x128]
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401534
lea eax, [ebp - 0x108]
push str.QQGameDl.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x401504
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4014d9
jmp 0x401534
push dword [ebp - 0x124]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401534
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401531
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret 4

Function at 0x401570
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x405a78
call fcn.004026d0
sub esp, 0x14
push esi
push edi
mov esi, ecx
call fcn.004028a0
push eax
push 1
push str.CatchException
push str.QQGame
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov dword [esi + 4], eax
je 0x40161b
call fcn.00402379
mov edi, eax
mov ecx, edi
call fcn.00402237
test al, al
je 0x40161b
lea eax, [ebp - 0x20]
push str.HelpDll.dll
push eax
mov ecx, edi
call fcn.0040226d
and dword [ebp - 4], 0
push str.CMain1
lea ecx, [ebp - 0x20]
call fcn.00402260
push eax
call fcn.00402979
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00402260
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0xc], eax
je 0x40160f
push str.QQExceptionFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40160f
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [esi + 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040222e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401914
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
and byte [ebp - 0x400], 0
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 0xc]
push 0x3ff
push 0x400
push eax
call dword [0x408030]
add esp, 0x14
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
leave
ret
Function at 0x401968
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x503]
mov byte [ebp - 0x504], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x504]
push 0x400
push eax
push ebx
push 0x408284
push 0x408280
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push 0x104
push eax
lea eax, [ebp - 0x504]
push eax
mov ecx, esi
call fcn.00401e7c
lea eax, [ebp - 0x104]
test eax, eax
je 0x401a3c
lea eax, [ebp - 0x104]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x401a08
cmp byte [ebp - 0x104], 0x5c
jne 0x401a3c
cmp dword [ebp + 0xc], ebx
je 0x401a53
cmp dword [ebp + 0x10], ebx
jle 0x401a53
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x10]
pop ecx
jae 0x401a53
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x40803c]
add esp, 0xc
jmp 0x401a53
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
mov ecx, esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00401b11
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401b11
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
and byte [ebp - 0x10], 0
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0xf]
and byte [ebp - 0x618], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
push dword [ebp + 8]
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x617]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x618]
push 0x400
push eax
push 0x4082c4
push str.NotUseDefaultDllPath
push 0x408280
call ebx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0xa
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.00401e7c
cmp byte [ebp - 0x10], 0x31
jne 0x401b9e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00401f0f
jmp 0x401c74
and byte [ebp - 0x218], 0
push esi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push esi
push eax
push 0
push str.DllPath
push str.DefaultValue
call ebx
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push dword [ebp + 0xc]
push eax
call fcn.00401df8
lea eax, [ebp - 0x114]
pop esi
test eax, eax
je 0x401c2e
lea eax, [ebp - 0x114]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x401c40
cmp byte [ebp - 0x114], 0x5c
je 0x401c40
push dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push dword [ebp + 0x10]
push eax
jmp 0x401b8e
cmp dword [ebp + 0x10], 0
je 0x401c74
cmp dword [ebp + 0x14], 0
jle 0x401c74
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x14]
pop ecx
jae 0x401c74
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [0x40803c]
add esp, 0xc
pop edi
pop ebx
leave
ret 0x10
Function at 0x401c7a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x104]
push 0x104
xor edi, edi
push eax
push edi
push str.Path
push str.Redirect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x104]
test ecx, ecx
je 0x401d37
mov cl, byte [ebp - 0x104]
test cl, cl
je 0x401d37
cmp cl, 0x20
je 0x401ce6
cmp cl, 9
jne 0x401cec
mov cl, byte [eax + 1]
inc eax
jmp 0x401cd8
lea eax, [ebp - 0x104]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
jne 0x401d21
cmp byte [ebp - 0x104], 0x5c
je 0x401d21
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
mov ecx, ebx
push dword [ebp + 0xc]
push eax
push esi
call fcn.00401f0f
jmp 0x401d61
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
mov ecx, ebx
push dword [ebp + 0xc]
push eax
call fcn.00401c7a
jmp 0x401d61
cmp dword [ebp + 0xc], edi
je 0x401d61
cmp dword [ebp + 0x10], edi
jle 0x401d61
cmp esi, edi
je 0x401d61
push esi
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0x10]
pop ecx
jae 0x401d61
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0x40803c]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4024a2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40254e
mov esi, 0x400
lea ecx, [ebp - 0x400]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402503
lea eax, [ebp - 0x400]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x402503
mov byte [eax + 1], bl
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40254e
push esi
lea eax, [ebp - 0x400]
push str.UpdateUpdate.exe
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0xc
test eax, eax
je 0x40254e
push 1
push ebx
lea eax, [ebp - 0x400]
push str._CreateResourceOnly
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
pop eax
jmp 0x402550
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403097
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 1
jne 0x4030d3
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x4030c1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
leave
ret
Function at 0x404958
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
mov eax, dword [eax + 4]
mov esi, ecx
cmp eax, edi
jne 0x40496e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4049f8
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 8], eax
je 0x4049f8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x4049f8
mov dword [esi + 0x14], eax
cmp word [eax], 0x5a4d
jne 0x4049f8
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp eax, edi
mov dword [esi + 0x18], eax
je 0x4049f8
cmp dword [eax], 0x4550
jne 0x4049f8
movzx eax, word [eax + 6]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
add eax, 0x18
push 1
mov dword [esi + 0x1c], eax
mov eax, dword [eax + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x1c]
add eax, 0xe0
mov dword [esi + 0x24], eax
pop eax
jmp 0x4049fa
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x404a55
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret