joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a893
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x424600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call sub.mfc100.dll_Ordinal_374
xor ecx, ecx
mov dword [esi], vtable.CMemDC.0
mov dword [ebp - 4], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov byte [ebp - 4], 1
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x407a8b
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.mfc100.dll_Ordinal_2183
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0x10]
call sub.mfc100.dll_Ordinal_2184
lea eax, [esi + 0x10]
test eax, eax
je 0x407a57
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.mfc100.dll_Ordinal_11924
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call sub.mfc100.dll_Ordinal_12861
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call sub.mfc100.dll_Ordinal_4131
jmp 0x407a9d
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418cf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b359
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x424600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0
je 0x418d5c
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call fcn.00418af0
test eax, eax
je 0x418d5c
push 5
push 0
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4196ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424600]
jne 0x4196d8
repz ret
jmp fcn.00419c74

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x138e1f39
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x74c9660d
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4011b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401920
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push 0x20
push str.hra_u.dll
push eax
xor ebx, ebx
call dword [0x408e58]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40199f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartWork
push esi
call edi
push str.StopWork
push esi
mov dword [0x4093fc], eax
call edi
test eax, eax
mov dword [0x409400], eax
pop edi
je 0x40198d
mov eax, dword [0x4093fc]
test eax, eax
je 0x40198d
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402240
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x40226c
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402260
pop esi
ret

Function at 0x402270
Capabilities:
Contain obfuscated stackstrings
Get common file path
Move file

Disassembly:
sub esp, 0x21c
mov al, 0x65
push esi
mov byte [esp + 5], al
mov byte [esp + 0xc], al
mov byte [esp + 0x10], al
mov byte [esp + 0x14], al
lea eax, [esp + 4]
push edi
mov cl, 0x6c
push eax
push str.kernel32.dll
mov byte [esp + 0x10], 0x47
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x13], 0x4d
mov byte [esp + 0x14], 0x6f
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x75
mov byte [esp + 0x17], cl
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1d], 0x4e
mov byte [esp + 0x1e], 0x61
mov byte [esp + 0x1f], 0x6d
mov byte [esp + 0x21], 0x41
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push ecx
push 0
stosb byte es:[edi], al
call edx
lea edx, [esp + 0x120]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x120]
push str.SOFTWARE.LOG
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x120]
push 3
lea edx, [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
je 0x402360
push 5
lea eax, [esp + 0x124]
push 0
push eax
call esi
pop edi
pop esi
add esp, 0x21c
ret
Function at 0x402460
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Nationalnpc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408e10]
test eax, eax
je 0x4024b5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
call dword [0x408e14]
test eax, eax
je 0x402506
mov edx, dword [esp + 0x10]
push edx
call dword [0x408e18]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
push eax
call dword [0x408e18]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40252d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x2c]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40255a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x40257e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4025a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4025d2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x120]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x402602
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push eax
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x40263b
push str.Nationalnpc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Nationalnpc
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x40265c
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x4018c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x403464], eax
mov edi, 0
mov ecx, 0xa
push edi
loop 0x4018dd
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [0x403464]
mov dword [ebp - 0x1c], edx
lea ecx, str.contents
mov dword [ebp - 8], ecx
lea eax, section..text
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x403464]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x66
push dword [0x403464]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x403464]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403474], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403474]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019a6
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40198d
pop ebp
ret 0x10
Function at 0x40b851
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412d78
cmp edx, dword [eax]
je 0x40b873
add eax, 8
inc ecx
cmp eax, 0x412e08
jl 0x40b864
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412d78]
jne 0x40b9a1
mov eax, dword [0x4133c0]
cmp eax, 1
je 0x40b97b
test eax, eax
jne 0x40b8a4
cmp dword [0x412918], 1
je 0x40b97b
cmp edx, 0xfc
je 0x40b9a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40b8db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406940
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b91e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406940
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4105e8
push edi
call section..text
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a530
lea eax, [ebp - 0xa0]
push 0x4105c8
push eax
call fcn.0040a530
push dword [esi + 0x412d7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d324
add esp, 0x2c
pop edi
jmp 0x40b9a1
lea eax, [ebp + 8]
lea esi, [esi + 0x412d7c]
push 0
push eax
push dword [esi]
call fcn.00406940
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xe3c5144
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5aaf22ca
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x405024
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445b3c]
jne 0x40502e
repz ret
jmp fcn.00408e12

Function at 0x40b8ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004069f0
and dword [ebp - 4], 0
cmp dword [0x447470], 0
mov ebx, eax
jne 0x40b95d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ba0e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ba0e
push eax
call fcn.0040697e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x447470], eax
call esi
push eax
call fcn.0040697e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x447474], eax
call esi
push eax
call fcn.0040697e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x447478], eax
call esi
push eax
call fcn.0040697e
pop ecx
mov dword [0x447480], eax
test eax, eax
je 0x40b95d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040697e
pop ecx
mov dword [0x44747c], eax
mov eax, dword [0x44747c]
cmp eax, ebx
je 0x40b9b5
cmp dword [0x447480], ebx
je 0x40b9b5
push eax
call fcn.004069f9
push dword [0x447480]
mov esi, eax
call fcn.004069f9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b9b5
test edi, edi
je 0x40b9b5
call esi
test eax, eax
je 0x40b9ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b9ac
test byte [ebp - 0xc], 1
jne 0x40b9b5
or dword [ebp + 0x10], 0x200000
jmp 0x40b9ee
mov eax, dword [0x447474]
cmp eax, ebx
je 0x40b9ee
push eax
call fcn.004069f9
pop ecx
test eax, eax
je 0x40b9ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9ee
mov eax, dword [0x447478]
cmp eax, ebx
je 0x40b9ee
push eax
call fcn.004069f9
pop ecx
test eax, eax
je 0x40b9ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447470]
call fcn.004069f9
pop ecx
test eax, eax
je 0x40ba0e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ba10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul edi
or edi, 0xe4
and edx, 0xf2
imul ebx
rol edi, 0xb9
mov ebx, 0xaf
add esi, 0xe8
ror edx, 0x14
add edi, 0x97
neg edx
dec eax
inc edi
bswap edi
mov esi, 0xd7
or ebx, 0x2d
bswap ebx
inc eax
ror ebx, 0x89
inc edx
rol eax, 0xa
mov ebx, 0xa7
and esi, 0x37
not edx
sbb edx, 0x6d
mov edx, 0xe1
bswap edi
or ebx, 0x9c
or esi, 0x16
imul edi
and edx, 0x79
rcl ebx, 0x14
inc ebx
bswap esi
and eax, 0xdf
imul edx
sbb esi, 0xfd
inc edx
rcr ebx, 0x3b
neg edx
dec ebx
dec edx
dec ebx
sub ebx, 0xf
or edi, 0x78
rol ebx, 0x38
or edx, 0x11
or edi, 0x23
sbb ebx, 6
mov edi, 0x3f
not esi
xor ecx, ecx
xor edi, edi
inc edx
rcl esi, 0xeb
mov esi, 0x10
neg edx
not eax
sbb esi, 0xba
ror edi, 0x71
rol edx, 0xd1
rcr eax, 0xf2
neg edi
bswap eax
add edi, 0x46
and edi, 0x4d
sbb edi, 0x98
rol esi, 0xa3
neg edx
bswap esi
imul ebx
not ebx
rol eax, 0xf8
sbb esi, 0xbf
sbb edi, 0x68
bswap ebx
not edi
or esi, 0xe5
rol esi, 0x54
add eax, 0x4d
not edx
neg edx
bswap ebx
sbb esi, 0x6f
add eax, 0x28
rol edx, 0xe2
add ebx, 0xae
not edx
rcr edx, 0xb7
and edi, 0x92
mov esi, 0x1a
imul edi
add eax, 0x7e
not esi
not eax
neg edi
mov edi, 0x77
or ebx, 0x98
not ebx
dec ebx
not edx
neg ebx
mov ebx, 0x85
mov ecx, dword [ebp + 0xc]
and esi, 0xc5
not esi
mov edi, 7
ror esi, 0x10
dec edi
bswap edi
dec eax
neg ebx
rol edx, 0xf5
dec edi
imul edx
ror esi, 0xc9
neg esi
sbb edx, 0x31
sbb ebx, 0x55
not eax
ror ebx, 0x8a
sbb eax, 0x7b
sub edi, 0x4c
bswap ebx
dec eax
sub esi, 0xb3
ror ebx, 0x34
neg eax
rcl edi, 0xf0
bswap ebx
dec eax
add esi, 0xc5
rcl ebx, 0x35
ror ebx, 0x90
sub esi, 0xa1
sbb esi, 0xbe
inc edx
inc eax
dec edx
ror eax, 0xa7
add esi, 0x43
sbb edx, 0x82
imul ebx
imul edi
bswap edi
dec ebx
bswap eax
rcl edx, 0xee
dec esi
imul edi
inc edi
not eax
or eax, 0xa9
ror eax, 0xd8
mov edi, dword [ebp + 8]
mov ebx, esi
mov eax, esi
xor eax, ebx
not byte [edi]
mov ebx, esi
xor esi, ebx
mov esi, ebx
mov ebx, ebx
mov ebx, esi
xor eax, eax
xor eax, ebx
mov ebx, ebx
mov eax, esi
add byte [edi], 0x26
mov ebx, ebx
mov esi, esi
xor eax, eax
mov eax, esi
xor esi, ebx
xor esi, eax
xor ebx, esi
mov eax, esi
xor esi, eax
sub byte [edi], 0x86
xor esi, esi
mov esi, esi
xor ebx, esi
xor esi, esi
mov esi, eax
xor ebx, esi
xor esi, esi
mov eax, ebx
xor esi, ebx
imul byte [edi]
inc edi
loop 0x4103ed
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40318c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x840658]
mov ecx, dword [0x83f5a8]
sub esp, 0x400
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x40322f
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x840658], 0x959
jne 0x403221
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
call fcn.00402ff1
add edi, 8
dec ebx
jne 0x4031b4
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40413c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420168]
jne 0x404146
repz ret
jmp fcn.00407efc

Function at 0x40963c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004067ae
and dword [ebp - 4], 0
cmp dword [0x422310], 0
mov ebx, eax
jne 0x4096ed
push 0x40248c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40979e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402480
push edi
call esi
test eax, eax
je 0x40979e
push eax
call fcn.0040673c
mov dword [esp], 0x402470
push edi
mov dword [0x422310], eax
call esi
push eax
call fcn.0040673c
mov dword [esp], 0x40245c
push edi
mov dword [0x422314], eax
call esi
push eax
call fcn.0040673c
mov dword [esp], 0x402440
push edi
mov dword [0x422318], eax
call esi
push eax
call fcn.0040673c
pop ecx
mov dword [0x422320], eax
test eax, eax
je 0x4096ed
push 0x402428
push edi
call esi
push eax
call fcn.0040673c
pop ecx
mov dword [0x42231c], eax
mov eax, dword [0x42231c]
cmp eax, ebx
je 0x409745
cmp dword [0x422320], ebx
je 0x409745
push eax
call fcn.004067b7
push dword [0x422320]
mov esi, eax
call fcn.004067b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409745
test edi, edi
je 0x409745
call esi
test eax, eax
je 0x40973c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40973c
test byte [ebp - 0xc], 1
jne 0x409745
or dword [ebp + 0x10], 0x200000
jmp 0x40977e
mov eax, dword [0x422314]
cmp eax, ebx
je 0x40977e
push eax
call fcn.004067b7
pop ecx
test eax, eax
je 0x40977e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40977e
mov eax, dword [0x422318]
cmp eax, ebx
je 0x40977e
push eax
call fcn.004067b7
pop ecx
test eax, eax
je 0x40977e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422310]
call fcn.004067b7
pop ecx
test eax, eax
je 0x40979e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4097a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret