joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4757d1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c8738]
je 0x4757ec
inc edi
cmp edi, 0x17
jb 0x4757dd
cmp edi, 0x17
jae 0x47596c
push ebp
push 3
call fcn.004812fe
cmp eax, 1
pop ecx
je 0x475938
push 3
call fcn.004812fe
test eax, eax
pop ecx
jne 0x475820
cmp dword [0x4c8700], 1
je 0x475938
cmp ebx, 0xfc
je 0x47596b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4cb178
push ebp
call fcn.00475b3a
add esp, 0xc
test eax, eax
je 0x475856
push esi
push esi
push esi
push esi
push esi
call fcn.0046ff17
add esp, 0x14
push 0x104
mov esi, 0x4cb191
push esi
push 0
mov byte [0x4cb295], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47589a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00475b3a
add esp, 0xc
test eax, eax
je 0x47589a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046ff17
add esp, 0x14
push esi
call fcn.00475ba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4758df
push esi
call fcn.00475ba0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4cb48c
push 0x4b3294
sub ecx, eax
push ecx
push eax
call fcn.0048124b
add esp, 0x14
test eax, eax
je 0x4758df
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046ff17
add esp, 0x14
jmp 0x4758e1
xor esi, esi
push 0x4b3290
push ebx
push ebp
call fcn.004811da
add esp, 0xc
test eax, eax
je 0x475901
push esi
push esi
push esi
push esi
push esi
call fcn.0046ff17
add esp, 0x14
push dword [edi*8 + 0x4c873c]
push ebx
push ebp
call fcn.004811da
add esp, 0xc
test eax, eax
je 0x475923
push esi
push esi
push esi
push esi
push esi
call fcn.0046ff17
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048101d
add esp, 0xc
jmp 0x47596b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47596b
cmp ebp, 0xffffffff
je 0x47596b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c873c]
push dword [esi]
call fcn.00475ba0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48101d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00474f5c
xor ebx, ebx
cmp dword [0x4cb8c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4810f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4811d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4811d3
push eax
call fcn.00474eee
mov dword [esp], 0x4b35b8
push edi
mov dword [0x4cb8c8], eax
call esi
push eax
call fcn.00474eee
mov dword [esp], 0x4b35a4
push edi
mov dword [0x4cb8cc], eax
call esi
push eax
call fcn.00474eee
mov dword [0x4cb8d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00479fd0
test eax, eax
pop ecx
pop ecx
je 0x4810c1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046ff17
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4810f3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00474eee
cmp eax, ebx
pop ecx
mov dword [0x4cb8d8], eax
je 0x4810f3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00474eee
pop ecx
mov dword [0x4cb8d4], eax
mov eax, dword [0x4cb8d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x481178
cmp dword [0x4cb8d8], ecx
je 0x481178
push eax
call fcn.00474f65
push dword [0x4cb8d8]
mov esi, eax
call fcn.00474f65
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x481178
cmp edi, ebx
je 0x481178
call esi
cmp eax, ebx
je 0x481145
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x481145
test byte [ebp - 0x18], 1
jne 0x481178
lea eax, [ebp - 0x10]
push eax
call fcn.0047a007
test eax, eax
pop ecx
je 0x481160
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046ff17
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48116f
or dword [ebp + 0x10], 0x200000
jmp 0x4811b3
or dword [ebp + 0x10], 0x40000
jmp 0x4811b3
mov eax, dword [0x4cb8cc]
cmp eax, dword [ebp - 8]
je 0x4811b3
push eax
call fcn.00474f65
cmp eax, ebx
pop ecx
je 0x4811b3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4811b3
mov eax, dword [0x4cb8d0]
cmp eax, dword [ebp - 8]
je 0x4811b3
push eax
call fcn.00474f65
cmp eax, ebx
pop ecx
je 0x4811b3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cb8c8]
call fcn.00474f65
cmp eax, ebx
pop ecx
je 0x4811d3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4811d5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48c522
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4c8678]
xor eax, ebp
mov dword [ebp + 0x268], eax
mov eax, dword [ebp + 0x274]
push ebx
push esi
push edi
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x61]
push ebx
push eax
mov byte [ebp + 0x60], bl
call fcn.004700e0
add esp, 0xc
lea esi, [edi + 1]
push esi
lea eax, [ebp + 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.00486270
cmp eax, ebx
pop ecx
pop ecx
je 0x48c5c4
push eax
call fcn.00475ba0
mov dword [ebp - 0x6c], 1
sub dword [ebp - 0x6c], eax
lea eax, [ebp + 0x60]
push eax
call fcn.00475ba0
add eax, dword [ebp - 0x6c]
pop ecx
cmp eax, ebx
pop ecx
jle 0x48c5a7
mov byte [ebp + eax + 0x60], bl
push 9
lea eax, [ebp + 0x60]
push str.crash.dmp
push eax
call fcn.004a10c0
add esp, 0xc
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x70], eax
je 0x48c6f5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x165]
push ebx
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp + 0x164], bl
call fcn.004700e0
add esp, 0xc
push esi
lea eax, [ebp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 0x164]
push eax
call fcn.00475ba0
cmp byte [ebp + eax + 0x163], 0x5c
pop ecx
je 0x48c64c
push 1
lea eax, [ebp + 0x164]
push 0x4b4f78
push eax
call fcn.004a10c0
add esp, 0xc
push 0xb
lea eax, [ebp + 0x164]
push str.DbgHelp.dll
push eax
call fcn.004a10c0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
lea eax, [ebp + 0x164]
push eax
call esi
lea eax, [ebp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48c6b2
push str.MiniDumpWriteDump
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
je 0x48c6b2
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x6c]
push 0xc7
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.004700e0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push edi
push 0x4b4f3c
push 0x77
push eax
call fcn.00473842
add esp, 0x20
lea eax, [ebp - 0x68]
push eax
call esi
cmp edi, ebx
je 0x48c6ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0046fb90
add ebp, 0x26c
leave
ret 4
Function at 0x48caa2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x48cb7f
cmp byte [edi], bl
je 0x48cb7f
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x48cb7f
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x48cb7f
push ebx
push edi
mov dword [ebp - 8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
mov byte [esi], bl
je 0x48cb71
push edi
call fcn.00470180
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x48cb71
push eax
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x48cb68
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x4b4f78
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48cb68
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x77
push esi
call fcn.00473842
add esp, 0x1c
mov dword [ebp - 8], 1
push dword [ebp - 4]
call fcn.0046fe7a
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x48cb81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48cb86
Capabilities:
Get file version info
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x4c8678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov esi, edx
je 0x48cd2a
cmp byte [edi], bl
je 0x48cd2a
cmp esi, ebx
je 0x48cd2a
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
je 0x48cd2a
push ebx
push edi
mov dword [ebp - 0x58], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x48], eax
mov byte [esi], bl
je 0x48cc67
push eax
call fcn.00470180
cmp eax, ebx
pop ecx
mov dword [ebp - 0x5c], eax
je 0x48cc67
push eax
push dword [ebp - 0x48]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x48cc5e
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x4b4f78
push dword [ebp - 0x5c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48cc5e
push esi
call fcn.00475ba0
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + 0xc]
push edx
movzx edx, word [ecx + 0xe]
push edx
movzx edx, word [ecx + 8]
movzx ecx, word [ecx + 0xa]
push edx
push ecx
dec eax
push str._d._d._d._d
push eax
push esi
call fcn.00473842
add esp, 0x20
mov dword [ebp - 0x58], 1
push dword [ebp - 0x5c]
call fcn.0046fe7a
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x48cd1c
cmp dword [ebp - 0x50], 0x40
jne 0x48cd1c
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x48cd1c
cmp dword [ebp - 0x50], 0xf8
jne 0x48cd1c
push esi
call fcn.00475ba0
add esi, eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ebx
call fcn.004a1096
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x80]
inc eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x70]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x77
push dword [ebp - 0x54]
call fcn.00473842
add esp, 0x2c
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
jmp 0x48cd2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046fb90
leave
ret
Function at 0x49e467
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cbd38], 0
push esi
jne 0x49e3da
call fcn.0049e305
test eax, eax
je 0x49e41d
mov eax, dword [0x4cbd38]
cmp eax, 1
jne 0x49e3fb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49e41d
pop esi
ret
push eax
call dword [0x4cbd40]
test eax, eax
jne 0x49e465
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x49e421
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cbd38]
call dword [0x4cbd40]
mov edi, eax
test edi, edi
je 0x49e448
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49e464
lea edi, [esi + 0xff0]
push esi
push dword [0x4cbd38]
call dword [0x4cbd3c]
add esi, 0x10
cmp esi, edi
jb 0x49e44e
mov eax, esi
pop edi
pop esi
ret
jmp 0x49e3c7

Function at 0x49e5b8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c8678]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049e54d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004700e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49e607
cmp dword [ebp - 0x1c], 5
jb 0x49e61f
jmp 0x49e61b
cmp dword [ebp - 0x10], 1
jne 0x49e61f
cmp dword [ebp - 0x1c], 4
ja 0x49e61b
jne 0x49e61f
cmp dword [ebp - 0x18], 0
jbe 0x49e61f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b5dac
call fcn.0040cca0
test eax, eax
jge 0x49e640
mov byte [0x4caa80], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046fb90
add ebp, 0x78
leave
ret
Function at 0x49ece0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4ab768
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c8678]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4cbddc]
test eax, eax
jne 0x49ed12
xor esi, esi
jmp 0x49ed1b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x49ed5d
cmp dword [esi + 0x14], 0
jne 0x49ed9f
cmp dword [esi + 0x10], 0
jne 0x49eda5
push 0x49e800
push 0x4cbdd4
call fcn.0049ea00
mov eax, dword [0x4cbddc]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x49ed8b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49ed8b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x49ede5
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x49edd3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x49eda5
cmp dword [esi + 0x14], 0
je 0x49ed37
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x49ee0a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x49ee3b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49ee3b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49ee3b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x49edef
jmp 0x49ed31
Function at 0x49efb0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4ab7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c8678]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x49ee60
push 0
push 0
call fcn.00471b34
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x49f01b
lea ecx, [esp + 0x10]
call fcn.0046fc38
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00412cc0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x49f041
cmp eax, 0xffffffff
je 0x49f041
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4a05f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x4a05ff
mov eax, dword [eax + 4]
jmp 0x4a0602
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a069a
push esi
call fcn.0049fa70
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4a067f
cmp eax, 3
je 0x4a067f
cmp eax, 0x7b
je 0x4a067f
cmp eax, 0xf
je 0x4a067f
cmp eax, 0x15
je 0x4a067f
cmp eax, 0x57
je 0x4a067f
cmp eax, 0xa1
je 0x4a067f
cmp eax, 0x35
je 0x4a067f
cmp eax, 0x20
jne 0x4a0674
mov eax, dword [0x4cbe38]
mov dword [ecx], eax
mov edx, dword [0x4cbe3c]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4cbe38]
mov dword [ecx], eax
mov edx, dword [0x4cbe3c]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4cbe38]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4cbe3c]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4a06c7
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x4a06f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4ab99b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4c8678]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c8678]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.00409ac0
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x4a07b7
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4a079c
call fcn.00470037
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4a07ab
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x4b60b0
je 0x4a07bc
mov edx, 0x4b60a8
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4a07c1
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00409cc0
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x4a07ee
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4a0831
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x4a0814
call edi
mov esi, eax
call fcn.0049fa70
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x4a08b3
mov eax, dword [esp + 0x24]
push eax
jmp 0x4a08ab
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x4a0840
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4a0840
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00409bb0
test byte [esp + 0x3c], 0x10
je 0x4a087b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4a088f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4cbe38]
mov dword [ebp], eax
mov ecx, dword [0x4cbe3c]
mov dword [ebp + 4], ecx
jb 0x4a08b3
mov edx, dword [esp + 0x24]
push edx
call fcn.0046fbc9
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0046fb90
add esp, 0x288
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x448e04], 0
push esi
jne 0x406426
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 0x406400
mov dword [ecx*4 + 0x448e00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
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 + 0x448e00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x2f274739
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x48af190f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219